English
Language : 

HD404374 Datasheet, PDF (77/161 Pages) Renesas Technology Corp – Low-Voltage AS Microcomputers with On-Chip A/D Converter
HD404374/HD404384/HD404389/HD404082/HD404084 Series
• Timer mode register B2 (TMB2: $011):
Timer mode register B2 (TMB2) is a 3-bit write-only register, used to select the timer B output mode
and EVNB pin detected edge as shown in figure 37.
Timer mode register B2 (TMB2) is reset to $0 by an MCU reset.
Timer mode register B2 (TMB2: $011)
Bit
3
2
Read/Write
—
W
Initial value on reset
—
0
Bit name
—
TMB22
1
W
0
TMB21
0
W
0
TMB20
TMB21 TMB20 EVNB pin detected edge
0
Not detected
0
1
Falling edge detection
0
Rising edge detection
1
1
Both rising and falling edge detection
TMB22 Timer B output waveform
0
Toggle output
1
PWM output
Figure 37 Timer Mode Register B2 (TMB2)
• Timer write register B (TWBL: $012, TWBU:$013):
Timer write register B (TWBL, TWBU) is a write-only register composed of a lower digit (TWBL) and
an upper digit (TWBU) (figures 38 and 39).
The lower digit (TWBL) of timer write register B is reset to $0 by an MCU reset, while the upper digit
(TWBU) is undetermined.
Timer B can be initialized by writing to timer write register B (TWBL, TWBU). To write the data, first
write the lower digit (TWBL). The lower digit write does not change the timer B value. Next, write the
upper digit (TWBU). Timer B is then initialized to the timer write register B (TWBL, TWBU) value.
When writing to timer write register B (TWBL, TWBU) from the second time onward, if it is not
necessary to change the lower digit (TWBL) reload value, timer B initialization is completed by the
upper digit write alone.
Rev.5.00, Sep.11.2003, page 77 of 161