198
9.5.2
Register Descriptions
Timer Mode Register Y (TMY)
Bit
7
6
5
4
3
2
1
0
TMY7
—
—
—
—
TMY2
TMY1
TMY0
Initial value
0
1
1
1
1
0
0
0
Read/Write
R/W
—
—
—
—
R/W
R/W
R/W
Timer mode register Y (TMY) is an 8-bit read/write register that performs auto-reload
function selection and input clock selection.
Upon reset, TMY is initialized to H'78.
Bit 7—Auto-Reload Function Select (TMY7): Bit 7 selects whether timer Y is used as an
interval timer or an auto-reload timer.
Bit 7: TMY7
Description
0
Interval function selected
(initial value)
1
Auto-reload function selected
Bits 6 to 3—Reserved Bits: Bits 6 to 3 are reserved bits. They are always read as 1 and
cannot be modified.
Bits 2 to 0—Clock Select (TMY2 to TMY0): Bits 2 to 0 select the clock input to TCY. For
external event input, the rising or falling edge can be selected.
Bit 2: TMY2
Bit 1: TMY1
Bit 0: TMY0
Description
0
0
0
Count on internal clock: ø/8192 (initial value)
1
Count on internal clock: ø/2048
1
0
Count on internal clock: ø/512
1
Count on internal clock: ø/256
1
0
0
Count on internal clock: ø/64
1
Count on internal clock: ø/16
1
0
Count on internal clock: ø/4
1
Count on external event (TMCIY) rising/falling
edge
*
Note:
*
External event edge selection is set with bit IEG2 in the interrupt edge select register
(IEGR). For details, see Interrupt Edge Select Register (IEGR), in 3.3.2.