English
Language : 

M16C29 Datasheet, PDF (148/499 Pages) Renesas Technology Corp – RENESAS MCU M16C FAMILY / M16C/Tiny SERIES
M16C/29 Group
12. Timer B
Timer Bi Mode Register (i= 0 to 1)
b7 b6 b5 b4 b3 b2 b1 b0
00
Symbol
TB0MR to TB1MR
Address
039B16 to 039C16
After Reset
00XX00002
Bit Symbol
TMOD0
TMOD1
MR0
MR1
Bit Name
Function
Operation mode select bit
b1 b0
0 0: Timer mode or A/D trigger mode
Invalid in A/D trigger mode
Either 0 or 1 is enabled
MR2
MR3
TB0MR register
Set to 0 in A/D trigger mode
TB1MR register
Nothing is assigned. If necessary, set to 0. When read, its
content is undefined
When write in A/D trigger mode, set to 0. When read in A/D trigger
mode, its content is undefined
TCK0
TCK1
Count source select bit (1)
b7 b6
0 0: f1 or f2
0 1: f8
1 0: f32
1 1: fC32
RW
RW
RW
RW
RW
RW
RO
RW
RW
NOTE:
1. When this bit is used in delayed trigger mode 0, set the same count source to the timer B0 and timer B1.
Figure 12.23 TBiMR Register in A/D Trigger Mode
Timer B2 special mode register (1)
b7 b6 b5 b4 b3 b2 b1 b0
00 11
Symbol
TB2SC
Address
039E16
After Reset
X00000002
Bit Symbol
Bit Name
Function
RW
PWCON Timer B2 reload timing 0: Timer B2 underflow
switch bit (2)
1: Timer A output at odd-numbered
RW
IVPCR1 Three-phase output port 0: Three-phase output forcible cutoff
SD control bit 1
by SD pin input (high impedance)
(3, 4, 7)
disabled
RW
1: Three-phase output forcible cutoff
by SD pin input (high impedance)
enabled
TB0EN Timer B0 operation mode 0: Other than A/D trigger mode
select bit
1: A/D trigger mode (5)
RW
TB1EN Timer B1 operation mode 0: Other than A/D trigger mode
select bit
1: A/D trigger mode (5)
RW
TB2SEL Trigger select bit (6)
0: TB2 interrupt
1: Underflow of TB2 interrupt
RW
generation frequency setting counter [ICTB2]
(b6-b5) Reserved bits
Set to 0
RW
Nothing is assigned. If necessary, set to 0.
(b7)
When read, its content is 0
NOTES:
1. Write to this register after setting the PRC1 bit in the PRCR register to 1 (write enabled).
2. If the INV11 bit is 0 (three-phase mode 0) or the INV06 bit is 1 (triangular wave modulation mode), set this bit to 0 (timer
B2 underflow).
3. When setting the IVPCR1 bit to 1 (three-phase output forcible cutoff by SD pin input enabled), Set the PD85 bit to 0 (= input
mode).
4. Related pins are U(P80), U(P81), V(P72), V(P73), W(P74), W(P75). When a high-level ("H") signal is applied to the SD pin
and set the IVPCR1 bit to 0 after forcible cutoff, pins U, U, V, V, W, and W are exit from the high-impedance state. If a low-
level (“L”) signal is applied to the SD pin, three-phase motor control timer output will be disabled (INV03=0). At this time,
when the IVPCR1 bit is 0, pins U, U, V, V, W, and W become programmable I/O ports. When the IVPCR1 bit is set to 1,
pins U, U, V, V, W, and W are placed in a high-impedance state regardless of which function of those pins is used.
5. When this bit is used in delayed trigger mode 0, set bits TB0EN and TB1EN to 1 (A/D trigger mode).
6. When setting the TB2SEL bit to 1 (underflow of TB2 interrupt generation frequency setting counter[ICTB2]), set the INV02
bit to 1 (three-phase motor control timer function).
Figure 12.24 TB2SC Register in A/D Trigger Mode
Rev. 1.12 Mar.30, 2007 page 124 of 458
REJ09B0101-0112