Download Print this page

Renesas M16C/50 Series User Manual page 269

Advertisement

M16C/5L Group, M16C/56 Group
fC32
fOCO-S
fOCO-F
f64TIMAB
f32TIMAB
f8TIMAB
f1TIMAB
or f2TIMAB
TAiOUT
Note:
1. Overflow or underflow
TCK1 to TCK0, TMOD1 to TMOD0, MR2 to MR0: Bits in the TAiMR register
TAiTGH to TAiTGL: Bits in the ONSF register when i = 0, bits in the TRGSR register
TAiS: Bit in the TABSR register
TAiUD: Bit in the UDF register
TCS7 to TCS0: Bits in the registers TACS0 to TACS2
POFSi: Bit in the TAPOFS register
PWMFSi: Bit in the PWMFS register
Figure 15.3
Timer A Block Diagram
Table 15.3
I/O Ports
Pin Name
TAiIN
Input
Output
TAiOUT
Input
ZP
Input
i = 0 to 4; however, i = 2, 3, 4 for two-phase pulse input, and i = 1, 2, 4 in programmable output mode
Note:
1.
When using pins TAiIN, TAiOUT, and ZP for input, set the port direction bits sharing pins to 0
(input mode).
R01UH0127EJ0110 Rev.1.10
Sep 01, 2011
TCS3
TCK1 to TCK0
·Timer:
or
00b
·One-shot timer:
TCS7
01b
·Pulse width modulation,
0
programmable output: TMOD1 to TMOD0 = 11b
10b
11b
TCS2 to TCS0
1
or TCS6 to TCS4
000b
001b
010b
011b
100b
101b
110b
Polarity
select
TAiIN
(1)
overflow
Timer B2
(1)
overflow
TAj
(1)
overflow
TAk
MR0
POFSi
0
1
when i = 1 to 4
I/O
Gate input (timer mode)
Count source input (event counter mode)
Two-phase signal input (event counter mode (two-phase pulse signal
(1)
processing))
Trigger input (one-shot timer mode, PWM mode, programmable output
mode)
Pulse output (timer mode, event counter mode, one-shot timer mode, PWM
mode, and programmable output mode)
Two-phase pulse input (event counter mode (two-phase pulse signal
(1)
processing))
Z-phase (counter initialization) input (event counter mode (two-phase pulse
(1)
signal processing))
Count source select
TMOD1 to TMOD0 = 00b, MR2 = 0
TMOD1 to TMOD0 = 10b
·Timer (gate function):
TMOD1 to TMOD0 = 00, MR2 = 1
·Event counter: TMOD1 to TMOD0 = 01b
00b
01b
To external
10b
trigger circuit
11b
TAiTGH to TAiTGL
Toggle flip-flop
Function
Data Bus
PWMFSi
TAi1 register
TAi register
Reload register
TMOD1 to TMOD0,
MR2
Counter
TAiS
Increment/decrement
Always decrement except
in event counter mode
00b
10b
11b
Decrement
01b
TAiUD
TMOD1 to TMOD0
i = 0 to 4
j = i - 1, except j = 4 if i = 0
k = i + 1, except k = 0 if i = 4
TAi
TAj
Timer A0
Timer A4
Timer A1
Timer A0
Timer A2
Timer A1
Timer A3
Timer A2
Timer A4
Timer A3
Page 232 of 803
15. Timer A
TAk
Timer A1
Timer A2
Timer A3
Timer A4
Timer A0

Advertisement

loading