English
Language : 

M16C6NK Datasheet, PDF (162/404 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/60 SERIES
Under development
This document is under development and its contents are subject to change.
M16C/6N Group (M16C/6NK, M16C/6NM)
14. Three-Phase Motor Control Timer Function
Timer B2 Interrupt Occurrence Frequency Set Counter (1) (2) (3)
b7
b0
Symbol
Address
After Reset
ICTB2
01CDh
Indeterminate
Function
Setting Range RW
When the INV01 bit in the INVC0 register is set to "0"
(the ICTB2 counter increments whenever the timer B2
underflows) and the setting value is n, the timer B2 interrupt
is generated every nth time timer B2 underflow occurs.
When the INV01 bit is set to "1" (the INV00 bit selects
1 to 15
WO
count timing of the ICTB2 counter) and setting value is
n, the timer B2 interrupt is generated every nth time
timer B2 underflow meeting the condition selected in
the INV00 bit occurs.
Nothing is assigned. When write, set to "0".
NOTES:
1. Use the MOV instruction to set the ICTB2 register.
2. If the INV01 bit is set to "1", set the ICTB2 register when the TB2S bit is set to "0" (timer B2 counter stopped),
If the INV01 bit is set to "0" and the TB2S bit to "1" (timer B2 counter start), do not set the ICTB2 register
when the timer B2 underflows.
3. If the INV00 bit is set to "1", the first interrupt is generated when the timer B2 underflows n-1 times, n being
the value set in the ICTB2 counter. Subsequent interrupts are generated every n times the timer B2 underflows.
Timer B2 Special Mode Register (1)
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
TB2SC
Address
039Eh
After Reset
XXXXXX00b
Bit
Symbol
Bit Name
Function
RW
PWCON
Timer B2 Reload Timing
Switching Bit
0 : Timer B2 underflow
1 : Timer A output at odd-numbered
occurrences (2)
RW
0 : Three-phase output forcible cutoff
by NMI input (high-impedance)
IVPCR1
Three-Phase Output Port
NMI Control Bit 1 (3)
disabled
1 : Three-phase output forcible cutoff
RW
by NMI input (high-impedance)
enabled
- Nothing is assigned. When write, set to "0".
(b7-b2) When read, their contents are "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 in the INVC1 register is "0" (three-phase mode 0) or the INV06 bit in the INVC0 register
is "1" (sawtooth wave modulation mode), set this bit to "0" (timer B2 underflow).
3. Related pins are U(P8_0/TA4OUT), U(P8_1/TA4IN), V(P7_2/CLK2/TA1OUT), V(P7_3/CTS2/RTS2/TA1IN),
W(P7_4/TA2OUT), W(P7_5/TA2IN). If a low-level signal is applied to the NMI pin when the IVPCR1 bit
= 1, the target pins go to a high-impedance state regardless of which functions of those pins are being
used.
After forced interrupt (cutoff), input "H" to the NMI pin and set the IVPCR1 bit to "0": this forced cutoff will
be reset.
Figure 14.6 ICTB2 Register and TB2SC Register
Rev.2.00 Nov 28, 2005 page 144 of 378
REJ09B0124-0200