Output Comparing Register A And B (Ocra And Ocrb) - Renesas Hitachi H8S/2194 Series Hardware Manual

16-bit single-chip microcomputer
Table of Contents

Advertisement

17.2.2

Output Comparing Register A and B (OCRA and OCRB)

Output comparing register AH and BH (OCRAH and OCRBH)
Output comparing register AL and BL (OCRAL and OCRBL)
Bit :
15
1
Initial value :
R/W
R/W :
The OCR consists of twin 8-bit read/write registers (OCRA and OCRB). The contents of the
OCR are always being compared with the FRC and, when the value of these two match, the
OCFA and OCRB of the TCSRX will be set to 1. At this time, if the OCIAE and OCIB of the
TIER are being set to 1, an interrupt request will be issued to the CPU.
When performing compare matching, if the OEA and OEB of the TOCR are being set to 1, the
level value having been set to the OLVLA and OLVLB of the TOCR will be output through the
FTOA and FTOB pins. After resetting, 0 will be output through the FTOA and FTOB pins until
the first compare matching occurs.
Reading/writing can be made from and to the OCR through the CPU at 8-bit or 16-bit.
The OCR is cleared to H'FFFF when reset or under the standby mode, watch mode, subsleep
mode, module stop mode or subactive mode.
Rev. 2.0, 11/00, page 360 of 1037
14
13
12
11
10
1
1
1
1
1
R/W
R/W
R/W
R/W
R/W
OCRAH, OCRBH
OCRA, OCRB
9
8
7
6
5
1
1
1
1
1
R/W
R/W
R/W
R/W
R/W
OCRAL, OCRBL
4
3
2
1
0
1
1
1
1
1
R/W
R/W
R/W
R/W
R/W

Advertisement

Table of Contents
loading

Table of Contents