English
Language : 

E202075_HD404889 Datasheet, PDF (92/202 Pages) Renesas Technology Corp – Low-Voltage AS Microcomputers with On-Chip LCD Circuit
HD404889/HD404899/HD404878/HD404868 Series
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 40 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 41 and 42).
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.
Timer write register B (lower) (TWBL: $012)
Bit
Read/Write
Initial value on reset
Bit name
3
W
0
TWBL3
2
W
0
TWBL2
1
W
0
TWBL1
0
W
0
TWBL0
Figure 41 Timer Write Register B (Lower) (TWBL)
90