Access Official Technical PDF

Share Summary:LinkedInEmail

Implementing automotive serial protocols with GTM requires more than generating and measuring signal edges. A design must also address synchronization, data-rate detection, arbitration, error recovery, and communication with the microcontroller. The Bosch Generic Timer Module (GTM) provides a collection of configurable hardware units that can coordinate these tasks, allowing protocol processing to run independently of the CPU where the implementation supports it.

The practical design question is how to divide work among the GTM’s timer, routing, and sequencing resources. A well-planned architecture can keep time-critical signal handling in hardware while leaving the CPU responsible for configuration and higher-level message handling.

Why automotive serial protocols challenge embedded designs

Serial protocols encode information in the timing and sequence of signal transitions. The receiver must identify message boundaries, measure pulses or bit periods, and determine whether incoming data falls within permitted timing limits. Some protocols also require arbitration, message prioritization, diagnostics, or recovery from detected errors.

Timing tolerance can be especially demanding when a protocol must handle substantial clock variation while still enforcing tight limits between calibration events. The whitepaper cites SENT as an example: it describes clock variation of up to plus or minus 20 percent alongside a permitted deviation of plus or minus 1.5625 percent between successive calibration pulses. These requirements illustrate why simple CPU polling can be a poor fit for time-sensitive signal measurement and response.

How GTM modules support protocol implementation

The GTM is not a single-purpose serial controller. It is a set of cooperating modules that can be configured to capture inputs, generate outputs, maintain time references, and move data between processing elements. The architecture described for serial protocols centers on the following units:

  • Multi Channel Sequencer (MCS): Runs protocol-related data processing independently of the CPU. It can receive input data from TIM, send output data through ATOM, use TBU timing, and exchange data through ARU.
  • Timer Input Module (TIM): Filters and characterizes input signals. It supports flexible input selection and can provide timestamps using the TBU or duration measurements using the CMU.
  • ARU-connected Timer Output Module (ATOM): Generates output signals and can operate independently of the CPU when connected through the ARU. Its serial output mode can support serial signal generation.
  • Advanced Routing Unit (ARU): Routes data between GTM submodules without requiring CPU-managed transfers for each exchange. Configurable streams and round-robin arbitration provide a defined routing mechanism.
  • Time Base Unit (TBU) and Clock Management Unit (CMU): Supply shared time bases and configurable clock signals for GTM counters and timing operations.
  • Dead Time Module (DTM): Provides enhanced signal routing within the GTM architecture.

These building blocks let designers map protocol functions to hardware resources. For example, TIM can capture and measure a receive signal, ARU can route the resulting data, and MCS can interpret it. On transmission, MCS can prepare data for ATOM to generate the required signal. The exact allocation depends on the protocol and target GTM configuration.

Keep time-critical processing out of the CPU path

A central implementation principle is to cover protocol features within the MCS and related GTM modules wherever practical. In this arrangement, the CPU primarily configures the hardware and handles messages rather than servicing every signal transition. This can reduce CPU workload and avoid making each time-critical action depend on software response.

That does not eliminate the need for CPU integration. The design still needs an intentional strategy for configuration, message delivery, and notification. The described approaches include:

  • Storing MCS program variables and exchanged data in MCS memory.
  • Using CPU access, including DMA, to transfer data.
  • Generating an interrupt when the MCS has new data available.
  • Using an ARU FIFO and fill-level-based interrupts for message delivery.

Message priority can also inform the interface choice. For example, a design may distinguish messages that the CPU polls from those that require interrupt-driven handling. The appropriate method depends on the application’s message behavior and system-level requirements.

Verification must cover more than nominal traffic

Protocol verification should connect the implementation to requirements, timing constraints, and applicable standard-conformance test cases. The outlined test flow includes simulation against a reference model and RTL, followed by FPGA and microcontroller testing. This staged approach supports checking behavior at different points in the implementation path.

Test benches can be derived from safety requirements and constraints. Constrained-random verification, including UVM-based Monte Carlo runs, can exercise combinations of inputs and conditions beyond a small set of hand-written scenarios. Verification should examine not only successful message reception and transmission but also timing boundaries, diagnostics, and error-handling behavior that the protocol implementation is expected to support.

Examples across SENT, LIN, and CAN

The whitepaper presents protocol examples tied to specific GTM versions and configurations; they should be read as implementation examples, not universal resource requirements for every device or design.

  • SENT: The described GTM V1.5 implementation supports up to four parallel channels using one MCS. It separates fast and slow channel reception, uses a FIFO for interrupt messages and RAM for polled messages, and performs message diagnostics in the MCS.
  • LIN: The GTM V1.5 example describes a LIN master operating at 20 kbit/s, with one ATOM, one MCS, and one TIM per master. CRC checking is performed by the MCS.
  • Classical CAN: The GTM V3.1 example covers synchronization using GTM building blocks, message prioritization, acceptance filtering, and MCS-based error detection and handling. It also describes a feasibility study for 500 kbit/s.

Practical implications for design teams

For engineers and system integrators, the key is to treat GTM protocol implementation as a coordinated hardware-and-software design. Start by identifying the protocol’s timing, synchronization, message, and recovery requirements. Then map signal capture, timing, data routing, and sequencing to available GTM modules, and define how the CPU will configure the system and receive messages.

Finally, verify the design against requirements and standard-conformance cases across simulation and hardware stages. Using the GTM to handle suitable time-critical functions can reduce dependence on CPU intervention, but robust implementation still depends on careful resource allocation, a clear MCU interface, and thorough verification.

Access Official Technical PDF

About The Author