Renesas M16C/6NK Hardware Manual page 162

16-bit single-chip microcomputer m16c family / m16c/60 series
Table of Contents

Advertisement

Under development
This document is under development and its contents are subject to change.
M16C/6N Group (M16C/6NK, M16C/6NM)
Timer B2 Interrupt Occurrence Frequency Set Counter
b7
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
b7
b6
b5
b4
b3
b2
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
REJ09B0124-0200
b0
Symbol
ICTB2
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 n th time timer B2 underflow occurs.
When the INV01 bit is set to "1" (the INV00 bit selects
count timing of the ICTB2 counter) and setting value is
n , the timer B2 interrupt is generated every n th time
timer B2 underflow meeting the condition selected in
the INV00 bit occurs.
Nothing is assigned. When write, set to "0".
(1)
b1
b0
Symbol
TB2SC
Bit
Symbol
Timer B2 Reload Timing
PWCON
Switching Bit
Three-Phase Output Port
IVPCR1
NMI Control Bit 1
Nothing is assigned. When write, set to "0".
-
(b7-b2)
When read, their contents are "0".
page 144 of 378
14. Three-Phase Motor Control Timer Function
(1) (2) (3)
Address
01CDh
Function
Address
039Eh
Bit Name
0 : Timer B2 underflow
1 : Timer A output at odd-numbered
occurrences
0 : Three-phase output forcible cutoff
by NMI input (high-impedance)
disabled
(3)
1 : Three-phase output forcible cutoff
by NMI input (high-impedance)
enabled
After Reset
Indeterminate
Setting Range
RW
1 to 15
WO
After Reset
XXXXXX00b
Function
RW
RW
(2)
RW
-

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/6nm

Table of Contents