SWRU626 December 2025 CC3501E , CC3551E
Table 13-4 lists the memory-mapped registers for the GPTIMER registers. All register offset addresses not listed in Table 13-4 should be considered as reserved locations and the register contents should not be modified.
| Offset | Acronym | Register Name | Section |
|---|---|---|---|
| 0h | DESC | Description | Section 13.5.1 |
| 4h | DESCEX | Description Extended | Section 13.5.2 |
| 8h | STARTCFG | Start Configuration | Section 13.5.3 |
| Ch | CTL | Timer Control | Section 13.5.4 |
| 10h | OUTCTL | Output Control | Section 13.5.5 |
| 14h | CNTR | Counter | Section 13.5.6 |
| 18h | PRECFG | Clock Prescaler Configuration | Section 13.5.7 |
| 1Ch | PREEVENT | Prescaler Event | Section 13.5.8 |
| 3Ch | DMA | Direct Memory Accsess | Section 13.5.9 |
| 40h | DMARW | Direct Memory Accsess | Section 13.5.10 |
| 44h | ADCTRG | Direct Memory Accsess | Section 13.5.11 |
| 48h | IOCTL | IO Control Register | Section 13.5.12 |
| 68h | IMASK | Interrupt Mask | Section 13.5.13 |
| 6Ch | RIS | Raw Interrupt Status | Section 13.5.14 |
| 70h | MIS | Masked Interrupt Status | Section 13.5.15 |
| 74h | ISET | Interrupt Set | Section 13.5.16 |
| 78h | ICLR | Interrupt Clear | Section 13.5.17 |
| 7Ch | IMSET | Interrupt Clear | Section 13.5.18 |
| 80h | IMCLR | Interrupt Clear | Section 13.5.19 |
| 84h | EMU | Interrupt Clear | Section 13.5.20 |
| C0h | C0CFG | Channel 0 Configuration | Section 13.5.21 |
| C4h | C1CFG | Channel 1 Configuration | Section 13.5.22 |
| C8h | C2CFG | Channel 2 Configuration | Section 13.5.23 |
| FCh | PTGT | Target | Section 13.5.24 |
| 100h | PC0CC | Pipeline Channel 0 Capture Compare | Section 13.5.25 |
| 104h | PC1CC | Pipeline Channel 1 Capture Compare | Section 13.5.26 |
| 108h | PC2CC | Pipeline Channel 2 Capture Compare | Section 13.5.27 |
| 13Ch | TGT | Target | Section 13.5.28 |
| 140h | C0CC | Channel Capture Compare | Section 13.5.29 |
| 144h | C1CC | Channel Capture Compare | Section 13.5.30 |
| 148h | C2CC | Channel Capture Compare | Section 13.5.31 |
| 17Ch | PTGTNC | Shadow Target | Section 13.5.32 |
| 180h | PC0CCNC | Pipeline Channel 0 Capture Compare No Clear | Section 13.5.33 |
| 184h | PC1CCNC | Pipeline Channel 1 Capture Compare No Clear | Section 13.5.34 |
| 188h | PC2CCNC | Pipeline Channel 2 Capture Compare No Clear | Section 13.5.35 |
| 1BCh | TGTNC | Shadow Target No Clear | Section 13.5.36 |
| 1C0h | C0CCNC | Channel 0 Capture Compare No Clear | Section 13.5.37 |
| 1C4h | C1CCNC | Channel 1 Capture Compare No Clear | Section 13.5.38 |
| 1C8h | C2CCNC | Channel 2 Capture Compare No Clear | Section 13.5.39 |
| 1000h | CLKCFG | Clock Enable Register | Section 13.5.40 |
Complex bit access types are encoded to fit into small table cells. Table 13-5 shows the codes that are used for access types in this section.
| Access Type | Code | Description |
|---|---|---|
| Read Type | ||
| R | R | Read |
| Write Type | ||
| W | W | Write |
| Reset or Default Value | ||
| -n | Value after reset or the default value | |
DESC is shown in Table 13-6.
Return to the Summary Table.
Description Register. This register provides IP module ID, revision information, instance index and standard MMR registers offset.
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-16 | MODID | R | DE49h | Module identifier used to uniquely identify this IP. |
| 15-12 | STDIPOFF | R | 1h | Standard IP MMR block offset. Standard IP MMRs are the set of from aggregated IRQ registers till DTB. 0: Standard IP MMRs do not exist 0x1-0xF: Standard IP MMRs begin at offset of (64*STDIPOFF from the base IP address) |
| 11-8 | INSTIDX | R | 0h | IP Instance ID number. If multiple instances of IP exist in the device, this field can identify the instance number. |
| 7-4 | MAJREV | R | 1h | Major revision of IP. |
| 3-0 | MINREV | R | 0h | Minor revision of IP. |
DESCEX is shown in Table 13-7.
Return to the Summary Table.
Description Extended This register describes the parameters of the LGPT.
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-20 | RESERVED | R | 0h | Reserved |
| 19 | HIR | R | 1h | Has IR logic. |
| 18 | HDBF | R | 1h | Has Dead-Band, Fault, and Park logic. |
| 17-14 | PREW | R | 8h | Prescaler width. The prescaler can maximum be configured to 2^PREW-1. |
| 13 | HQDEC | R | 1h | Has Quadrature Decoder. |
| 12 | HCIF | R | 1h | Has channel input filter. |
| 11-8 | CIFS | R | 8h | Channel input filter size. The prevailing state filter can maximum be configured to 2^CIFS-1. |
| 7 | HDMA | R | 1h | Has uDMA output and logic. |
| 6 | HINT | R | 1h | Has interrupt output and logic. |
| 5-4 | CNTRW | R | 0h | Counter bit-width.
The maximum counter value is equal to 2^CNTRW-1.
|
| 3-0 | NCH | R | 4h | Number of channels. |
STARTCFG is shown in Table 13-8.
Return to the Summary Table.
Start Configuration This register is only for when MODE is configured to one of the SYNC modes. This register defines when this LGPT starts.
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-2 | RESERVED | R | 0h | Reserved |
| 1-0 | LGPT0 | R/W | 0h | LGPT start |
CTL is shown in Table 13-9.
Return to the Summary Table.
Timer Control
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-12 | RESERVED | R | 0h | Reserved |
| 11 | RESERVED | R | 0h | Reserved |
| 10 | C2RST | W | 0h | Channel 2 reset.
|
| 9 | C1RST | W | 0h | Channel 1 reset.
|
| 8 | C0RST | W | 0h | Channel 0 reset. |
| 7-6 | RESERVED | R | 0h | Reserved |
| 5 | INTP | R/W | 0h | Interrupt Phase. This bit field controls when the TGT and ZERO interrupts are set. |
| 4-3 | CMPDIR | R/W | 0h | Compare direction.
This bit field controls the direction the counter must have in order to set the [RIS.*] compare interrupts.
|
| 2-0 | MODE | R/W | 0h | Timer mode control
The [CNTR.*] restarts from 0 when MODE is written to UP_ONCE, UP_PER, UPDWN_PER, QDEC, SYNC_UP_ONCE, SYNC_UP_PER or SYNC_UPDWN_PER.
When writing MODE all internally queued updates to the channels and [TGT.*] is cleared.
When configuring the timer, MODE should be the last thing to configure. If changing timer configuration after MODE has been set is necessary, instructions, if any, given in the configuration registers should be followed. See for example [C0CFG.*].
|
OUTCTL is shown in Table 13-10.
Return to the Summary Table.
Output Control Set and clear individual outputs manually. Manual update of an output takes priority over automatic channel updates to the same output. It is not possible to set and clear an output at the same time, such requests will be neglected. An output can be automatically cleared, set, toggled, or pulsed by each channel, listed in decreasing order of priority. The action with highest priority happens when multiple channels want to update an output at the same time. All outputs are connected to the event fabric and the IO controller. The outputs going to the IO controller have an additional complementary output, this output is the inverted IO output. Both the IO and the IO complementary outputs are passed through an IO Controller, see [IOCTL.*].
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-8 | RESERVED | R | 0h | Reserved |
| 7 | RESERVED | R | 0h | Reserved |
| 6 | RESERVED | R | 0h | Reserved |
| 5 | SETOUT2 | W | 0h | Set output 2. Write 1 to set output 2. |
| 4 | CLROUT2 | W | 0h | Clear output 2. Write 1 to clear output 2. |
| 3 | SETOUT1 | W | 0h | Set output 1. Write 1 to set output 1. |
| 2 | CLROUT1 | W | 0h | Clear output 1. Write 1 to clear output 1. |
| 1 | SETOUT0 | W | 0h | Set output 0. Write 1 to set output 0. |
| 0 | CLROUT0 | W | 0h | Clear output 0. Write 1 to clear output 0. |
CNTR is shown in Table 13-11.
Return to the Summary Table.
Counter The counter of this timer. After MODE is set the counter updates at the rate specified in [PRECFG.*].
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-0 | VAL | R/W | 0h | Current counter value. If MODE = QDEC this can be used to set the initial counter value during QDEC. |
PRECFG is shown in Table 13-12.
Return to the Summary Table.
Clock Prescaler Configuration This register is used to set the timer clock period. The prescaler is a counter which counts down from the value TICKDIV. When the prescaler counter reaches zero, [CNTR.*] is updated. The field TICKDIV effectively divides the prescaler tick source. The timer clock frequency can be calculated as TICKSRC/(TICKDIV+1).
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-16 | RESERVED | R | 0h | Reserved |
| 15-8 | TICKDIV | R/W | 0h | Tick division. TICKDIV determines the timer clock frequency for the counter, and timer output updates. The timer clock frequency is the clock selected by TICKSRC divided by (TICKDIV + 1). This inverse is the timer clock period. 0x00: Divide by 1. 0x01: Divide by 2. ... 0xFF: Divide by 256. |
| 7-2 | RESERVED | R | 0h | Reserved |
| 1-0 | TICKSRC | R/W | 0h | Prescaler tick source.
TICKSRC determines the source which decrements the prescaler.
|
PREEVENT is shown in Table 13-13.
Return to the Summary Table.
Prescaler Event This register is used to output a logic high signal before the zero crossing of the prescaler counter. The output is routed to the IOC.
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-8 | RESERVED | R | 0h | Reserved |
| 7-0 | VAL | R/W | 0h | Sets the HIGH time of the prescaler event output. Event goes high when the prescaler counter equals [VAL]. Event goes low when prescaler counter is 0. Note: - Can be used to precharge or turn an external component on for a short time before sampling, like in QDEC. - If there is a requirement to create such events that have very short periods compared to timer clock period, use two timers. One timer acts as prescaler and event generator for another timer. |
DMA is shown in Table 13-14.
Return to the Summary Table.
Direct Memory Access This register is used to enable DMA requests from the timer and set the register addresses which the DMA will access (read/write). Choose DMA request source by setting the REQ field. The setting of the corresponding interrupt in the [RIS.*] registers also sets the DMA request. Upon a DMA request defined by REQ an internal address pointer is set to Address*4. Every access to [DMARW.*] will increment the internal pointer by 4 such that the next DMA access will be to the next register. The internal pointer will stop after RWC increments. Further access will be ignored.
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-20 | RESERVED | R | 0h | Reserved |
| 19-16 | RWC | R/W | 0h | The read/write counter. RWCNTR+1 is the number of times the DMA can access (read/write) the DMARW register. For each DMA access to DMARW an internal counter is incremented, writing to the next address field. Address + 4*RWC is the final register address which can be accessed by the DMA. |
| 15 | RESERVED | R | 0h | Reserved |
| 14-8 | Address | R/W | 0h | The base address which the DMA access when reading/writing DMARW. The base address is set by taking the 9 LSB of the physical address and divide by 4. For example, if you wanted the Address to point to the PTGT register you should set Address = 0x0FC/4. |
| 7-3 | RESERVED | R | 0h | Reserved |
| 2-0 | REQ | R/W | 0h | DMA request trigger
|
DMARW is shown in Table 13-15.
Return to the Summary Table.
Direct Memory Access This register is used by the DMA to access (read/write) register inside this LGPT module. Each access to this register will increment the internal DMA address counter. See [DMA.*] for description.
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-0 | VAL | R/W | 0h | DMA read write value. The value that is read/written from/to the registers. |
ADCTRG is shown in Table 13-16.
Return to the Summary Table.
ADC Trigger This register is used to enable ADC trigger from the timer. Choose ADC trigger source by setting the SRC field. The setting of the corresponding interrupt in the [RIS.*] registers also sets the ADC trigger.
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-3 | RESERVED | R | 0h | Reserved |
| 2-0 | SRC | R/W | 0h | ADC request trigger
|
IOCTL is shown in Table 13-17.
Return to the Summary Table.
IO Controller This register controls the IO outputs.
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-16 | RESERVED | R | 0h | Reserved |
| 15-14 | RESERVED | R | 0h | Reserved |
| 13-12 | RESERVED | R | 0h | Reserved |
| 11-10 | COUT2 | R/W | 0h | IO complementary output 2 control
This bit field controls IO complementary output 2.
|
| 9-8 | OUT2 | R/W | 0h | IO output 2 control
This bit field controls IO output 2.
|
| 7-6 | COUT1 | R/W | 0h | IO complementary output 1 control
This bit field controls IO complementary output 1.
|
| 5-4 | OUT1 | R/W | 0h | IO output 1 control
This bit field controls IO output 1.
|
| 3-2 | COUT0 | R/W | 0h | IO complementary output 0 control
This bit field controls IO complementary output 0.
|
| 1-0 | OUT0 | R/W | 0h | IO output 0 control
This bit field controls IO output 0.
|
IMASK is shown in Table 13-18.
Return to the Summary Table.
Interrupt mask. This register selects interrupt sources which are allowed to pass from [RIS.*] to [MIS.*] when the corresponding bit-fields are set to 1.
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-12 | RESERVED | R | 0h | Reserved |
| 11 | RESERVED | R | 0h | Reserved |
| 10 | C2CC | R/W | 0h | Enable C2CC interrupt.
|
| 9 | C1CC | R/W | 0h | Enable C1CC interrupt.
|
| 8 | C0CC | R/W | 0h | Enable C0CC interrupt.
|
| 7 | RESERVED | R | 0h | Reserved |
| 6 | FAULT | R/W | 0h | Enable FAULT interrupt.
|
| 5 | IDX | R/W | 0h | Enable IDX interrupt.
|
| 4 | DIRCHNG | R/W | 0h | Enable DIRCHNG interrupt.
|
| 3 | CNTRCHNG | R/W | 0h | Enable CNTRCHNG interrupt.
|
| 2 | DBLTRANS | R/W | 0h | Enable DBLTRANS interrupt.
|
| 1 | ZERO | R/W | 0h | Enable ZERO interrupt.
|
| 0 | TGT | R/W | 0h | Enable TGT interrupt.
|
RIS is shown in Table 13-19.
Return to the Summary Table.
Raw interrupt status. This register reflects the state of all pending interrupts, regardless of masking. This register allows the user to implement a poll scheme. A flag set in this register can be cleared by writing 1 to the corresponding [ICLR.*] register bit.
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-12 | RESERVED | R | 0h | Reserved |
| 11 | RESERVED | R | 0h | Reserved |
| 10 | C2CC | R | 0h | Status of the [C2CC] interrupt. The interrupt is set when [C2CC] has capture or compare event.
|
| 9 | C1CC | R | 0h | Status of the [C1CC] interrupt. The interrupt is set when [C1CC] has capture or compare event.
|
| 8 | C0CC | R | 0h | Status of the [C0CC] interrupt. The interrupt is set when [C0CC] has capture or compare event.
|
| 7 | RESERVED | R | 0h | Reserved |
| 6 | FAULT | R | 0h | Status of the [FAULT] interrupt. The interrupt is set immediately on active fault input.
|
| 5 | IDX | R | 0h | Status of the [IDX] interrupt. The interrupt is set when [IDX] is active.
|
| 4 | DIRCHNG | R | 0h | Status of the [DIRCHNG] interrupt. The interrupt is set when the direction of the counter changes.
|
| 3 | CNTRCHNG | R | 0h | Status of the [CNTRCHNG] interrupt. The interrupt is set when the counter increments or decrements.
|
| 2 | DBLTRANS | R | 0h | Status of the [DBLTRANS] interrupt. The interrupt is set when a double transition has happened during QDEC mode.
|
| 1 | ZERO | R | 0h | Status of the [ZERO] interrupt. The interrupt is set when [CNTR.*] = 0.
|
| 0 | TGT | R | 0h | Status of the [TGT] interrupt. The interrupt is set when [CNTR.*] = [TGT.*].
|
MIS is shown in Table 13-20.
Return to the Summary Table.
Masked interrupt status. This register is simply a bit-wise AND of the contents of [IMASK.*] and RIS.*] registers. A flag set in this register can be cleared by writing 1 to the corresponding [ICLR.*] register bit.
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-12 | RESERVED | R | 0h | Reserved |
| 11 | RESERVED | R | 0h | Reserved |
| 10 | C2CC | R | 0h | Masked status of the C2CC interrupt.
|
| 9 | C1CC | R | 0h | Masked status of the C1CC interrupt.
|
| 8 | C0CC | R | 0h | Masked status of the C0CC interrupt.
|
| 7 | RESERVED | R | 0h | Reserved |
| 6 | FAULT | R | 0h | Masked status of the FAULT interrupt.
|
| 5 | IDX | R | 0h | Masked status of the IDX interrupt.
|
| 4 | DIRCHNG | R | 0h | Masked status of the DIRCHNG interrupt.
|
| 3 | CNTRCHNG | R | 0h | Masked status of the CNTRCHNG interrupt.
|
| 2 | DBLTRANS | R | 0h | Masked status of the DBLTRANS interrupt.
|
| 1 | ZERO | R | 0h | Masked status of the ZERO interrupt.
|
| 0 | TGT | R | 0h | Masked status of the TGT interrupt.
|
ISET is shown in Table 13-21.
Return to the Summary Table.
Interrupt set register. This register can used by software for diagnostics and safety checking purposes. Writing a 1 to a bit in this register will set the event and the corresponding [RIS.*] bit also gets set. If the corresponding [IMASK.*] bit is set, then the corresponding [MIS.*] register bit also gets set.
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-12 | RESERVED | R | 0h | Reserved |
| 11 | RESERVED | R | 0h | Reserved |
| 10 | C2CC | W | 0h | Set the C2CC interrupt.
|
| 9 | C1CC | W | 0h | Set the C1CC interrupt.
|
| 8 | C0CC | W | 0h | Set the C0CC interrupt.
|
| 7 | RESERVED | R | 0h | Reserved |
| 6 | FAULT | W | 0h | Set the FAULT interrupt.
|
| 5 | IDX | W | 0h | Set the IDX interrupt.
|
| 4 | DIRCHNG | W | 0h | Set the DIRCHNG interrupt.
|
| 3 | CNTRCHNG | W | 0h | Set the CNTRCHNG interrupt.
|
| 2 | DBLTRANS | W | 0h | Set the DBLTRANS interrupt.
|
| 1 | ZERO | W | 0h | Set the ZERO interrupt.
|
| 0 | TGT | W | 0h | Set the TGT interrupt.
|
ICLR is shown in Table 13-22.
Return to the Summary Table.
Interrupt clear register. This register allows software to clear interrupts. Writing a 1 to a bit in this register will clear the event and the corresponding [RIS.*] bit also gets cleared. If the corresponding [IMASK.*] bit is set, then the corresponding [MIS.*] register bit also gets cleared.
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-12 | RESERVED | R | 0h | Reserved |
| 11 | RESERVED | R | 0h | Reserved |
| 10 | C2CC | W | 0h | Clear the C2CC interrupt.
|
| 9 | C1CC | W | 0h | Clear the C1CC interrupt.
|
| 8 | C0CC | W | 0h | Clear the C0CC interrupt.
|
| 7 | RESERVED | R | 0h | Reserved |
| 6 | FAULT | W | 0h | Clear the FAULT interrupt.
|
| 5 | IDX | W | 0h | Clear the IDX interrupt.
|
| 4 | DIRCHNG | W | 0h | Clear the DIRCHNG interrupt.
|
| 3 | CNTRCHNG | W | 0h | Clear the CNTRCHNG interrupt.
|
| 2 | DBLTRANS | W | 0h | Clear the DBLTRANS interrupt.
|
| 1 | ZERO | W | 0h | Clear the ZERO interrupt.
|
| 0 | TGT | W | 0h | Clear the TGT interrupt.
|
IMSET is shown in Table 13-23.
Return to the Summary Table.
Interrupt mask set register. Writing a 1 to a bit in this register will set the corresponding [IMASK.*] bit.
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-12 | RESERVED | R | 0h | Reserved |
| 11 | RESERVED | R | 0h | Reserved |
| 10 | C2CC | W | 0h | Set the C2CC mask.
|
| 9 | C1CC | W | 0h | Set the C1CC mask.
|
| 8 | C0CC | W | 0h | Set the C0CC mask.
|
| 7 | RESERVED | R | 0h | Reserved |
| 6 | FAULT | W | 0h | Set the FAULT mask.
|
| 5 | IDX | W | 0h | Set the IDX mask.
|
| 4 | DIRCHNG | W | 0h | Set the DIRCHNG mask.
|
| 3 | CNTRCHNG | W | 0h | Set the CNTRCHNG mask.
|
| 2 | DBLTRANS | W | 0h | Set the DBLTRANS mask.
|
| 1 | ZERO | W | 0h | Set the ZERO mask.
|
| 0 | TGT | W | 0h | Set the TGT mask.
|
IMCLR is shown in Table 13-24.
Return to the Summary Table.
Interrupt mask clear register. Writing a 1 to a bit in this register will clear the corresponding [IMASK.*] bit.
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-12 | RESERVED | R | 0h | Reserved |
| 11 | RESERVED | R | 0h | Reserved |
| 10 | C2CC | W | 0h | Clear the C2CC mask.
|
| 9 | C1CC | W | 0h | Clear the C1CC mask.
|
| 8 | C0CC | W | 0h | Clear the C0CC mask.
|
| 7 | RESERVED | R | 0h | Reserved |
| 6 | FAULT | W | 0h | Clear the FAULT mask.
|
| 5 | IDX | W | 0h | Clear the IDX mask.
|
| 4 | DIRCHNG | W | 0h | Clear the DIRCHNG mask.
|
| 3 | CNTRCHNG | W | 0h | Clear the CNTRCHNG mask.
|
| 2 | DBLTRANS | W | 0h | Clear the DBLTRANS mask.
|
| 1 | ZERO | W | 0h | Clear the ZERO mask.
|
| 0 | TGT | W | 0h | Clear the TGT mask.
|
EMU is shown in Table 13-25.
Return to the Summary Table.
Debug control This register can be used to freeze the timer when CPU halts when HALT is set to 1. When HALT is set to 0, or when the CPU releases debug halt, the filters and edge detection logic is flushed and the timer starts. For setting a predefined output value during a CPU debug halt, [PARK.*], if the timer has this register, should be configured additionally. If this timer does not have the [PARK.*] register a predefined output value during CPU halt is not possible.
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-2 | RESERVED | R | 0h | Reserved |
| 1 | CTL | R/W | 0h | Halt control.
Configure when the counter shall stop upon CPU halt. This bitfield only applies if HALT = 1.
|
| 0 | HALT | R/W | 0h | Halt LGPT when CPU is halted in debug.
|
C0CFG is shown in Table 13-26.
Return to the Summary Table.
Channel 0 Configuration This register configures channel function and enables outputs. Each channel has an edge-detection circuit. The the edge-detection circuit is: - enabled while [CCACT] selects a capture function and MODE is different from DIS. - flushed while [CCACT] selects a capture function and MODE is changed from DIS to another mode. The flush action uses two system clock periods. It prevents capture events caused by expired signal values stored in the edge-detection circuit. The channel input signal enters the edge-detection circuit. False capture events can occur when: - the edge-detection circuit contains expired signal samples and the circuit is enabled without flush as described above. - the [CCACT] field is reconfigured while CTL.MODE is different from DIS. Primary use scenario is to select [CCACT] before starting the timer. Follow these steps to configure [CCACT] to a capture action while MODE is different from DIS: - Set [EDGE] to NONE. - Configure [CCACT]. - Wait for three system clock periods before setting [EDGE] different from NONE. These steps prevent capture events caused by expired signal values in edge-detection circuit.
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-12 | RESERVED | R | 0h | Reserved |
| 11 | RESERVED | R | 0h | Reserved |
| 10 | OUT2 | R/W | 0h | Output 2 enable.
When 0 < [CCACT] < 8, OUT2 becomes zero after a capture or compare event.
|
| 9 | OUT1 | R/W | 0h | Output 1 enable.
When 0 < [CCACT] < 8, OUT1 becomes zero after a capture or compare event.
|
| 8 | OUT0 | R/W | 0h | Output 0 enable.
When 0 < [CCACT] < 8, OUT0 becomes zero after a capture or compare event.
|
| 7 | RESERVED | R | 0h | Reserved |
| 6 | INPUT | R/W | 0h | Select channel input.
|
| 5-4 | EDGE | R/W | 0h | Determines the edge that triggers the channel input event. This happens post filter.
|
| 3-0 | CCACT | R/W | 0h | Capture-Compare action.
Capture-Compare action defines 15 different channel functions that utilize capture, compare, and zero events. In every compare event the timer looks at the current value of [CNTR.*]. The corresponding output event will be set 1 timer period after [CNTR.*] = [C0CC.*].
|
C1CFG is shown in Table 13-27.
Return to the Summary Table.
Channel 1 Configuration This register configures channel function and enables outputs. Each channel has an edge-detection circuit. The the edge-detection circuit is: - enabled while [CCACT] selects a capture function and MODE is different from DIS. - flushed while [CCACT] selects a capture function and MODE is changed from DIS to another mode. The flush action uses two system clock periods. It prevents capture events caused by expired signal values stored in the edge-detection circuit. The channel input signal enters the edge-detection circuit. False capture events can occur when: - the edge-detection circuit contains expired signal samples and the circuit is enabled without flush as described above. - the [CCACT] field is reconfigured while CTL.MODE is different from DIS. Primary use scenario is to select [CCACT] before starting the timer. Follow these steps to configure [CCACT] to a capture action while MODE is different from DIS: - Set [EDGE] to NONE. - Configure [CCACT]. - Wait for three system clock periods before setting [EDGE] different from NONE. These steps prevent capture events caused by expired signal values in edge-detection circuit.
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-12 | RESERVED | R | 0h | Reserved |
| 11 | RESERVED | R | 0h | Reserved |
| 10 | OUT2 | R/W | 0h | Output 2 enable.
When 0 < [CCACT] < 8, OUT2 becomes zero after a capture or compare event.
|
| 9 | OUT1 | R/W | 0h | Output 1 enable.
When 0 < [CCACT] < 8, OUT1 becomes zero after a capture or compare event.
|
| 8 | OUT0 | R/W | 0h | Output 0 enable.
When 0 < [CCACT] < 8, OUT0 becomes zero after a capture or compare event.
|
| 7 | RESERVED | R | 0h | Reserved |
| 6 | INPUT | R/W | 0h | Select channel input.
|
| 5-4 | EDGE | R/W | 0h | Determines the edge that triggers the channel input event. This happens post filter.
|
| 3-0 | CCACT | R/W | 0h | Capture-Compare action.
Capture-Compare action defines 15 different channel functions that utilize capture, compare, and zero events. In every compare event the timer looks at the current value of [CNTR.*]. The corresponding output event will be set 1 timer period after [CNTR.*] = [C1CC.*].
|
C2CFG is shown in Table 13-28.
Return to the Summary Table.
Channel 2 Configuration This register configures channel function and enables outputs. Each channel has an edge-detection circuit. The the edge-detection circuit is: - enabled while [CCACT] selects a capture function and MODE is different from DIS. - flushed while [CCACT] selects a capture function and MODE is changed from DIS to another mode. The flush action uses two system clock periods. It prevents capture events caused by expired signal values stored in the edge-detection circuit. The channel input signal enters the edge-detection circuit. False capture events can occur when: - the edge-detection circuit contains expired signal samples and the circuit is enabled without flush as described above. - the [CCACT] field is reconfigured while CTL.MODE is different from DIS. Primary use scenario is to select [CCACT] before starting the timer. Follow these steps to configure [CCACT] to a capture action while MODE is different from DIS: - Set [EDGE] to NONE. - Configure [CCACT]. - Wait for three system clock periods before setting [EDGE] different from NONE. These steps prevent capture events caused by expired signal values in edge-detection circuit.
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-12 | RESERVED | R | 0h | Reserved |
| 11 | RESERVED | R | 0h | Reserved |
| 10 | OUT2 | R/W | 0h | Output 2 enable.
When 0 < [CCACT] < 8, OUT2 becomes zero after a capture or compare event.
|
| 9 | OUT1 | R/W | 0h | Output 1 enable.
When 0 < [CCACT] < 8, OUT1 becomes zero after a capture or compare event.
|
| 8 | OUT0 | R/W | 0h | Output 0 enable.
When 0 < [CCACT] < 8, OUT0 becomes zero after a capture or compare event.
|
| 7 | RESERVED | R | 0h | Reserved |
| 6 | INPUT | R/W | 0h | Select channel input.
|
| 5-4 | EDGE | R/W | 0h | Determines the edge that triggers the channel input event. This happens post filter.
|
| 3-0 | CCACT | R/W | 0h | Capture-Compare action.
Capture-Compare action defines 15 different channel functions that utilize capture, compare, and zero events. In every compare event the timer looks at the current value of [CNTR.*]. The corresponding output event will be set 1 timer period after [CNTR.*] = [C2CC.*].
|
PTGT is shown in Table 13-29.
Return to the Summary Table.
Pipeline Target A read or write to this register will clear the ZERO and TGT interrupt. If MODE != QDEC. Target value for next counter period. The timer will copy VAL to VAL on the upcoming [CNTR.*] zero crossing only if VAL has been written. The copy does not happen when restarting the timer. This is useful to avoid period jitter in PWM applications with time-varying period, sometimes referenced as phase corrected PWM. If MODE = QDEC The [CNTR.*] value is updated with VALUE on IDX if the counter is counting down. If the counter is counting up, [CNTR.*] is loaded with zero on IDX. In this mode the VALUE is not loaded into [TGT] on zero crossing.
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-0 | VAL | R/W | 0h | The pipleline target value. |
PC0CC is shown in Table 13-30.
Return to the Summary Table.
Pipeline Channel 0 Capture Compare
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-0 | VAL | R/W | 0h | Pipeline Capture Compare value. User defined pipeline compare value or channel-updated capture value. A read or write to this register will clear the C0CC interrupt. Compare mode: An update of VAL will be transferred to VAL when the next VAL is zero and MODE is different from DIS. This is useful for PWM generation and prevents jitter on the edges of the generated signal. Capture mode: When CCACT equals PER_PULSE_WIDTH_MEAS then VAL contains the width of the low or high phase of the selected signal. This is specified by EDGE. |
PC1CC is shown in Table 13-31.
Return to the Summary Table.
Pipeline Channel 1 Capture Compare
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-0 | VAL | R/W | 0h | Pipeline Capture Compare value. User defined pipeline compare value or channel-updated capture value. A read or write to this register will clear the C1CC interrupt. Compare mode: An update of VAL will be transferred to VAL when the next VAL is zero and MODE is different from DIS. This is useful for PWM generation and prevents jitter on the edges of the generated signal. Capture mode: When CCACT equals PER_PULSE_WIDTH_MEAS then VAL contains the width of the low or high phase of the selected signal. This is specified by EDGE. |
PC2CC is shown in Table 13-32.
Return to the Summary Table.
Pipeline Channel 2 Capture Compare
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-0 | VAL | R/W | 0h | Pipeline Capture Compare value. User defined pipeline compare value or channel-updated capture value. A read or write to this register will clear the C2CC interrupt. Compare mode: An update of VAL will be transferred to VAL when the next VAL is zero and MODE is different from DIS. This is useful for PWM generation and prevents jitter on the edges of the generated signal. Capture mode: When CCACT equals PER_PULSE_WIDTH_MEAS then VAL contains the width of the low or high phase of the selected signal. This is specified by EDGE. |
TGT is shown in Table 13-33.
Return to the Summary Table.
Target User defined counter target. A read or write to this register will clear the ZERO and TGT interrupt.
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-0 | VAL | R/W | 0h | User defined counter target value. |
C0CC is shown in Table 13-34.
Return to the Summary Table.
Channel 0 Capture Compare
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-0 | VAL | R/W | 0h | Capture Compare value. User defined compare value or channel-updated capture value. A read or write to this register will clear the C0CC interrupt. Compare mode: VAL is compared against VAL and an event is generated as specified by CCACT when these are equal. Capture mode: The current counter value is stored in VAL when a capture event occurs. CCACT determines if VAL is a signal period or a regular capture value. |
C1CC is shown in Table 13-35.
Return to the Summary Table.
Channel 1 Capture Compare
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-0 | VAL | R/W | 0h | Capture Compare value. User defined compare value or channel-updated capture value. A read or write to this register will clear the C1CC interrupt. Compare mode: VAL is compared against VAL and an event is generated as specified by CCACT when these are equal. Capture mode: The current counter value is stored in VAL when a capture event occurs. CCACT determines if VAL is a signal period or a regular capture value. |
C2CC is shown in Table 13-36.
Return to the Summary Table.
Channel 2 Capture Compare
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-0 | VAL | R/W | 0h | Capture Compare value. User defined compare value or channel-updated capture value. A read or write to this register will clear the C2CC interrupt. Compare mode: VAL is compared against VAL and an event is generated as specified by CCACT when these are equal. Capture mode: The current counter value is stored in VAL when a capture event occurs. CCACT determines if VAL is a signal period or a regular capture value. |
PTGTNC is shown in Table 13-37.
Return to the Summary Table.
Pipeline Target No Clear Use this register to read or write to [PTGT.*] without clearing the ZERO and TGT interrupt.
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-0 | VAL | R/W | 0h | A read or write to this register will not clear the TGT interrupt. If MODE != QDEC. Target value for next counter period. The timer copies VAL to VAL when VAL becomes 0. The copy does not happen when restarting the timer. This is useful to avoid period jitter in **PWM** applications with time-varying period, sometimes referenced as phase corrected PWM. If MODE = QDEC. The VAL is updated with VAL on IDX. VAL is not loaded into VAL when VAL becomes 0. |
PC0CCNC is shown in Table 13-38.
Return to the Summary Table.
Pipeline Channel 0 Capture Compare No Clear
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-0 | VAL | R/W | 0h | Pipeline Capture Compare value. User defined pipeline compare value or channel-updated capture value. A read or write to this register will not clear the C0CC interrupt. Compare mode: An update of VAL will be transferred to VAL when the next VAL is zero and MODE is different from DIS. This is useful for **PWM** generation and prevents jitter on the edges of the generated signal. Capture mode: When CCACT equals PER_PULSE_WIDTH_MEAS then VAL contains the width of the low or high phase of the selected signal. This is specified by EDGE. |
PC1CCNC is shown in Table 13-39.
Return to the Summary Table.
Pipeline Channel 1 Capture Compare No Clear
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-0 | VAL | R/W | 0h | Pipeline Capture Compare value. User defined pipeline compare value or channel-updated capture value. A read or write to this register will not clear the C1CC interrupt. Compare mode: An update of VAL will be transferred to VAL when the next VAL is zero and MODE is different from DIS. This is useful for **PWM** generation and prevents jitter on the edges of the generated signal. Capture mode: When CCACT equals PER_PULSE_WIDTH_MEAS then VAL contains the width of the low or high phase of the selected signal. This is specified by EDGE. |
PC2CCNC is shown in Table 13-40.
Return to the Summary Table.
Pipeline Channel 2 Capture Compare No Clear
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-0 | VAL | R/W | 0h | Pipeline Capture Compare value. User defined pipeline compare value or channel-updated capture value. A read or write to this register will not clear the C2CC interrupt. Compare mode: An update of VAL will be transferred to VAL when the next VAL is zero and MODE is different from DIS. This is useful for **PWM** generation and prevents jitter on the edges of the generated signal. Capture mode: When CCACT equals PER_PULSE_WIDTH_MEAS then VAL contains the width of the low or high phase of the selected signal. This is specified by EDGE. |
TGTNC is shown in Table 13-41.
Return to the Summary Table.
Target No Clear Use this register to read or write to [TGT.*] without clearing the ZERO and TGT interrupt.
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-0 | VAL | R/W | 0h | User defined counter target value. |
C0CCNC is shown in Table 13-42.
Return to the Summary Table.
Channel 0 Capture Compare No Clear
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-0 | VAL | R/W | 0h | Capture Compare value. User defined compare value or channel-updated capture value. A read or write to this register will not clear the C0CC interrupt. Compare mode: VAL is compared against VAL and an event is generated as specified by CCACT when these are equal. Capture mode: The current counter value is stored in VAL when a capture event occurs. CCACT determines if VAL is a signal period or a regular capture value. |
C1CCNC is shown in Table 13-43.
Return to the Summary Table.
Channel 1 Capture Compare No Clear
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-0 | VAL | R/W | 0h | Capture Compare value. User defined compare value or channel-updated capture value. A read or write to this register will not clear the C1CC interrupt. Compare mode: VAL is compared against VAL and an event is generated as specified by CCACT when these are equal. Capture mode: The current counter value is stored in VAL when a capture event occurs. CCACT determines if VAL is a signal period or a regular capture value. |
C2CCNC is shown in Table 13-44.
Return to the Summary Table.
Channel 2 Capture Compare No Clear
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-0 | VAL | R/W | 0h | Capture Compare value. User defined compare value or channel-updated capture value. A read or write to this register will not clear the C2CC interrupt. Compare mode: VAL is compared against VAL and an event is generated as specified by CCACT when these are equal. Capture mode: The current counter value is stored in VAL when a capture event occurs. CCACT determines if VAL is a signal period or a regular capture value. |
CLKCFG is shown in Table 13-45.
Return to the Summary Table.
Clock Enable Register
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-1 | RESERVED | R | 0h | Reserved |
| 0 | ENABLE | R/W | 0h | GPTimer main clock Enable |