APPENDIX
Appendix 2. Control registers
✽✽Timer mode
Timer A0 register (Addresses 4716, 4616)
Timer A1 register (Addresses 4916, 4816)
Timer A2 register (Addresses 4B16, 4A16)
Timer A3 register (Addresses 4D16, 4C16)
Timer A4 register (Addresses 4F16, 4E16)
Timer A5 register (Addresses C716, C616)
Timer A6 register (Addresses C916, C816)
Timer A7 register (Addresses CB16, CA16)
Timer A8 register (Addresses CD16, CC16)
Timer A9 register (Addresses CF16, CE16)
(b15)
b7
(b8)
b0
b7
b0
Bit
Function
Any value in the range from “000016” to “FFFF16” can be set.
At reset R/W
Reference
7-12
15 to 0
Undefined RW
Assuming that the set value = n, the counter divides the count source frequency by (n + 1).
When reading, the register indicates the counter value.
Note: Reading from or writing to this register must be performed in a unit of 16 bits.
b7 b6 b5 b4 b3 b2 b1 b0
Timer Aj mode register (j = 0 to 2, 4, 9) (Addresses 5616 to 5816, 5A16, DA16)
0
0 0
Bit
0
Bit name
Function
At reset R/W
Reference
b1 b0
7-12
9-11
10-14
0
0
0
RW
RW
RW
Operating mode select bits
0 0 : Timer mode
1
0 : No pulse output
2
Pulse output function select bit
Gate function select bits
7-16
(TAjOUT pin functions as a programmable I/O port
pin.)
1 : Pulse output
(TAjOUT pin functions as a pulse output pin.)
b4 b3
3
4
0
0
RW
RW
7-15
0 0 :
0 1 :
No gate function
(TAjIN pin functions as a programmable I/O
port pin.)
1 0 :
Gate function
(Counter is active only while TAjIN pin’s in-
put signal is at “L” level.)
Gate function
1 1 :
(Counter is active only while TAjIN pin’s in-
put signal is at “H” level.)
Fix this bit to “0” in timer mode.
5
6
7
0
0
0
RW
RW
RW
Count source select bits
See Table 7.2.3.
7-6
b7 b6 b5 b4 b3 b2 b1 b0
Timer Ak mode register (k = 3, 5 to 8) (Addresses 5916, D616 to D916)
0 0 0 0 0 0
Function
Reference
Bit
Bit name
At reset R/W
b1 b0
7-12
9-11
0
0
0
0
0
0
RW
RW
RW
RW
RW
Operating mode select bits
0 0 : Timer mode
1
5 to 2
6
Fix these bits to “0000” in timer mode.
See Table 7.2.3.
7-6
Count source select bits
7
7906 Group User’s Manual Rev.2.0
20-21