Datasheet

C505/C505C/C505A/C505CA
Data Sheet 29 12.00
Timer/Counter 2 with Compare/Capture/Reload
The timer 2 of the C505 provides additional compare/capture/reload features. which allow the
selection of the following operating modes:
Compare : up to 4 PWM signals with 16-bit/300 ns resolution (@ 20 MHz clock)
Capture : up to 4 high speed capture inputs with 300 ns resolution
Reload : modulation of timer 2 cycle time
The block diagram in Figure 11 shows the general configuration of timer 2 with the additional
compare/capture/reload registers. The I/O pins which can used for timer 2 control are located as
multifunctional port functions at port 1.
Figure 11
Timer 2 Block Diagram
MCB02730
Comparator
CCL3/CCH3
Capture
Input/
Output
Control
P1.0/
INT3/
CC0
CC1
INT4/
P1.1/
CC2
INT5/
P1.2/
CC3
INT6/
P1.2/
CCL2/CCH2
Comparator
CCL1/CCH1
Comparator
CRCL/CRCH
Comparator
Bit16 16 Bit 16 Bit 16 Bit
OSC
÷6
÷12
f
OSC
T2PS
Sync.
P1.7/
T2
T2EX
P1.5/
Sync.
&
T2I1
T2I0
Timer 2
TH2TL2
TF2
Reload
EXEN2
Reload
1
EXF2
Interrupt
Request
Compare
_
<