TIMER A
7.3 Timer mode
Timer A0 register (Addresses 4716, 4616)
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)
Timer A1 register (Addresses 4916, 4816)
Timer A2 register (Addresses 4B16, 4A16)
Timer A3 register (Addresses 4D16, 4C16)
Timer A4 register (Addresses 4F16, 4E16)
(b8)
b0 b7
(b15)
b7
b0
Bit
Function
Any value in the range from “000016” to “FFFF16” can be set.
At reset R/W
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.
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
b1 b0
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
(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
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.
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
Bit
Bit name
At reset R/W
b1 b0
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.
Count source select bits
7
Fig. 7.3.1 Structures of timer Ai register and timer Ai mode register in timer mode
7906 Group User’s Manual Rev.2.0
7-12