English
Language : 

M16C26A Datasheet, PDF (141/352 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/Tiny SERIES
M16C/26A Group (M16C/26A, M16C/26B, M16C/26T)
12. Timer
Timer B2 register (1)
(b15)
b7
(b8)
b0 b7
Symbol
b0
TB2
Address
After reset
039516 to 039416 Indeterminate
Function
Divide the count source by n + 1 where n = set value.
Timer A1, A2 and A4 are started at every occurrence of
underflow.
NOTE:
1. The register must be accessed in 16 bit units.
Setting range RW
000016 to FFFF16
RW
Trigger select register
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
TRGSR
Address
038316
After reset
0016
Bit symbol
Bit name
Function
RW
TA1TGL Timer A1 event/trigger To use the V-phase output control RW
select bit
circuit, set these bits to “01 2”(TB2
underflow).
TA1TGH
RW
TA2TGL
Timer A2 event/trigger
select bit
To use the W-phase output control
circuit, set these bits to “01 2”(TB2
RW
underflow).
TA2TGH
RW
TA3TGL
Timer A3 event/trigger
select bit
b5 b4
0 0 : Input on TA3IN is selected (1)
RW
0 1 : TB2 overflow is selected (2)
TA3TGH
1 0 : TA2 overflow is selected (2)
RW
1 1 : TA4 overflow is selected (2)
TA4TGL Timer A4 event/trigger To use the U-phase output control RW
select bit
circuit, set these bits to “01 2”(TB2
TA4TGH
underflow).
RW
NOTES:
1. Set the corresponding port direction bit to “0” (input mode).
2. Overflow or underflow
Count start flag
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
TABSR
Address
038016
After reset
0016
Bit symbol
Bit name
Function
RW
TA0S
Timer A0 count start flag
0 : Stops counting
RW
TA1S
Timer A1 count start flag
1 : Starts counting
RW
TA2S
Timer A2 count start flag
RW
TA3S
Timer A3 count start flag
RW
TA4S
Timer A4 count start flag
RW
TB0S
Timer B0 count start flag
RW
TB1S
Timer B1 count start flag
RW
TB2S
Timer B2 count start flag
RW
Figure 12.3.7. TB2 Register, TRGSR Register, and TABSR Register
Rev. 2.00 Feb.15, 2007 page 124 of 329
REJ09B0202-0200