2.4 Multi-Function Timer
80
Chapter 2: Hardware
(4) Compare/Data Switching Register
This register is used to set switch between port register output and timer unit-only output.
[Bits 11 to 8] RT3 to RT0: Real-time output pin select bits
These bits are used to switch external pin functions.
(5) Compare Buffer Mode Control Register (CMCR)
This register controls transfer from the buffer register with respect to the OCPR register and CLRR
register.
[Bit 3] TREN: Transfer enable bit
This bit enables data transfer to the OCPR register and CLRR register from the respective register
buffers according to the conditions established by the buffer mode select bits BFS1, BFS0 (bits 1,
0).
[Bit 2] TMSK: Buffer transfer mask bit for zero detection
When the zero detect interrupt mask function is used, this bit determines whether or not data is
transferred from the OCPR register and CLRR register buffers when the zero detect interrupt is
masked.
RTOx
Description
0
Operate pin as general-purpose port (PDBR output)
1
Operate pin as multi-function timer output
TREN
Description
0
Disable transfer from buffer register to compare registers
1
Enable transfer from buffer register to compare registers
TMSK
Description
0
Execute data transfer from buffer register to compare registers at
zero-detection, even when zero detect interrupt masking is used.
1
Execute data transfer from buffer register to compare registers at
zero detection only when zero detect interrupt is actually generated.
–
RTO3 RTO2 RTO1 RTO0
Initial value
R/W
COER
15
14
13
12
11
10
9
8
----0000B
Address : 000043H
bit
–
TREN TMSK BFS1 BFS0
Initial value
R/W
CMCR
7
6
5
4
3
2
1
0
----1000B
Address : 000044H
bit