Hardware manual
Rev. 3.0, 09/98, page 131 of 361
7.2.2 Output Compare Registers A and B (OCRA and OCRB)H'FF94
Bit:1514131211109876543210
Initial value:1111111111111111
Read/Write: R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W
OCRA and OCRB are 16-bit readable/writable registers, the contents of which are continually
compared with the value in the FRC. When a match is detected, the corresponding output
compare flag (OCFA or OCFB) is set in the timer control/status register (TCSR).
In addition, if the output enable bit (OEA or OEB) in the timer output compare control register
(TOCR) is set to “1,” when the output compare register and FRC values match, the logic level
selected by the output level bit (OLVLA or OLVLB) in the TOCR is output at the output compare
pin (FTOA or FTOB).
OCRA and OCRB share the same address. They are differentiated by the OCRS bit in the TOCR.
A temporary register (TEMP) is used for write access, as explained in section 7.3, “CPU
Interface.”
OCRA and OCRB are initialized to H'FFFF at a reset and in the standby modes.
7.2.3 Input Capture Registers A to D (ICRA to ICRD)H'FF98, H'FF9A, H'FF9C,
H'FF9E
Bit:1514131211109876543210
Initial value:0000000000000000
Read/Write: R RRRRRRRRRRRRRRR
Each input capture register is a 16-bit read-only register.
When the rising or falling edge of the signal at an input capture pin (FTIA to FTID) is detected,
the current value of the FRC is copied to the corresponding input capture register (ICRA to
ICRD).* At the same time, the corresponding input capture flag (ICFA to ICFD) in the timer
control/status register (TCSR) is set to “1.” The input capture edge is selected by the input edge
select bits (IEDGA to IEDGD) in the timer control register (TCR).
Note: The FRC contents are transferred to the input capture register regardless of the value of
the input capture flag (ICFA/B/C/D).