English
Language : 

HD404654 Datasheet, PDF (56/111 Pages) Hitachi Semiconductor – 4-Bit Single-Chip Microcomputer
HD404654 Series
Timer mode register C2 (TMC2: $014)
Bit
3
2
1
Initial value
—
0
0
Read/Write
—
R/W R/W
Bit name
Not used TMC22 TMC21
0
0
R/W
TMC20
TMC22 TMC21 TMC20
0
0
0
1
1
0
1
1
0
0
1
1
0
1
R31/TOC mode selection
R31
R31 port
TOC Toggle output
TOC 0 output
TOC 1 output
—
Inhibited
TOC PWM output
Figure 38 Timer Mode Register C2 (TMC2)
• Timer write register C (TWCL: $00E, TWCU: $00F): Write-only register consisting of a lower digit
(TWCL) and an upper digit (TWCU) as shown in figures 39 and 40. The lower digit is reset to $0 by
MCU reset, but the upper digit value is invalid.
Timer C is initialized by writing to timer write register C (TWCL: $00E, TWCU: $00F). In this case,
the lower digit (TWCL) must be written to first, but writing only to the lower digit does not change the
timer C value. Timer C is initialized to the value in timer write register C at the same time the upper
digit (TWCU) is written to. When timer write register C is written to again and if the lower digit value
needs no change, writing only to the upper digit initializes timer C.
Timer write register C (lower digit) (TWCL: $00E)
Bit
Initial value
Read/Write
Bit name
3
0
W
TWCL3
2
0
W
TWCL2
1
0
W
TWCL1
0
0
W
TWCL0
Figure 39 Timer Write Register C Lower Digit (TWCL)
54