Output Compare Registers A And B (Ocra And Ocrb)-H'ff94; Input Capture Registers A To D (Icra To Icrd)-H'ff98, H'ff9A, H'ff9C, H'ff9E - Hitachi H8/329 Series Hardware Manual

Single-chip microcomputer
Table of Contents

Advertisement

6.2.2 Output Compare Registers A and B (OCRA and OCRB)—H'FF94
Bit
15
14
13
Initial 1
1
1
value
Read/ 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
Write
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 6.3, "CPU Interface."
OCRA and OCRB are initialized to H'FFFF at a reset and in the standby modes.
6.2.3 Input Capture Registers A to D (ICRA to ICRD)—H'FF98, H'FF9A, H'FF9C, H'FF9E
Bit
15
14
13
Initial 0
0
0
value
Read/ R
R
R
Write
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).
12
11
10
9
1
1
1
1
12
11
10
9
0
0
0
0
R
R
R
R
117
8
7
6
5
1
1
1
1
8
7
6
5
0
0
0
0
R
R
R
R
4
3
2
1
1
1
1
1
4
3
2
1
0
0
0
0
R
R
R
R
0
1
0
0
R

Advertisement

Table of Contents
loading

Table of Contents