TC1796
Peripheral Units (Vol. 2 of 2)
General Purpose Timer Array (GPTA)
User’s Manual 24-18 V2.0, 2007-07
GPTA, V2.0
Prescaler Mode
In Prescaler Mode, the input signal is sampled and analyzed with f
GPTA
. The FPC control
unit counts each rising (or falling) edge of the input signal. When the timer value matches
the compare value:
• one GPTA module clock pulse is generated at the trigger output signal SOTk and
level output signal SOLk
• the timer FPCTIMk.TIM is reset to 0000
H
Figure 24-11 shows a divide-by-6 operation using the FPC in Prescaler Mode with
trigger on rising edge selected.
Figure 24-11 FPC Prescaler Mode
For a divide-by-n operation, the compare value FPCCTRk.CMP must be set to n - 1.
The FPC Prescaler Modes are selected by:
• FPCCTRk.MOD = 110
B
: Prescaler Mode triggered on rising edge
• FPCCTRk.MOD = 111
B
: Prescaler Mode triggered on falling edge
FPCCTRk.CMP = 0005
H
MCT05920
Signal Input
SINk
Timer Value
FPCCTRk.TIM
Level/Trigger
Outputs
SOLk/SOTk
0000
H
0001
H
0002
H
0005
H
0000
H
0001
H
0002
H
0004
H
0003
H