Expand description

Standard counter/timers (CTIMER0 to 4)

Modules

Capture Control Register. The CCR controls which edges of the capture inputs are used to load the Capture Registers and whether or not an interrupt is generated when a capture takes place.

Capture Register . CR is loaded with the value of TC when there is an event on the CAPn. input.

Count Control Register. The CTCR selects between Timer and Counter mode, and in Counter mode selects the signal and edge(s) for counting.

External Match Register. The EMR controls the match function and the external match pins.

Interrupt Register. The IR can be written to clear interrupts. The IR can be read to identify which of eight possible interrupt sources are pending.

Match Control Register

Match Register . MR can be enabled through the MCR to reset the TC, stop both the TC and PC, and/or generate an interrupt every time MR matches the TC.

Match Shadow Register

Prescale Counter

Prescale Register

PWM Control Register. This register enables PWM mode for the external match pins.

Timer Counter

Timer Control Register. The TCR is used to control the Timer Counter functions. The Timer Counter can be disabled or reset through the TCR.

Structs

Register block

Type Definitions

CCR register accessor: an alias for Reg<CCR_SPEC>

CR register accessor: an alias for Reg<CR_SPEC>

CTCR register accessor: an alias for Reg<CTCR_SPEC>

EMR register accessor: an alias for Reg<EMR_SPEC>

IR register accessor: an alias for Reg<IR_SPEC>

MCR register accessor: an alias for Reg<MCR_SPEC>

MR register accessor: an alias for Reg<MR_SPEC>

MSR register accessor: an alias for Reg<MSR_SPEC>

PC register accessor: an alias for Reg<PC_SPEC>

PR register accessor: an alias for Reg<PR_SPEC>

PWMC register accessor: an alias for Reg<PWMC_SPEC>

TC register accessor: an alias for Reg<TC_SPEC>

TCR register accessor: an alias for Reg<TCR_SPEC>