Output Compare Module Registers - Fujitsu FR60 Hardware Manual

Hide thumbs Also See for FR60:
Table of Contents

Advertisement

CHAPTER 14 UART, SERIAL I/O INTERFACE (SIO), INPUT CAPTURE MODULE, AND OUTPUT COMPARE
14.4.2

Output Compare Module Registers

This section describes the configuration and functions of the registers used by the
output compare operation. The output compare module has the two types of registers
shown below.
■ Compare Register (OCCP0 to OCCP7)
The bit configuration of the compare register (OCCP0 to OCCP7) is shown below.
CCCP0 to 7
Address : 0000E6
H
0000E4
H
0000EA
H
0000E8
H
0000EE
H
0000EC
H
0000F2
H
0000F0
H
Note: The MB91F353A/351A/352A/353A have two output compare channels (OCCP0 and OCCP2), but
do not have OCCP1 and OCCP3 to OCCP7.
The compare register is 16 bits, and its value is compared with the value of the 16-bit free-running timer.
Because the initial value of the compare register is undefined, be sure to set a value in it before enabling
output compare. The output compare register must be accessed in 16-bit or 32-bit units. If the value of the
compare register matches the value of the 16-bit free-running timer, a compare signal is generated and the
output compare interrupt flag is set. If the corresponding OTE bit of the port function register (PFR0) is set
to enable output, the output level corresponding to the compare register is reversed.
■ Output Control Register (OCS0 to OCS7)
The bit configuration of the output control register (OCS0 to OCS7) is shown below.
OCP01, 23, 45, 67
Address : 0000F6
H
0000F4
H
0000FA
H
0000F8
H
Only the output control registers for channels 0 and 1 are explained here. For details of the output control
registers for channels 2 to 7, when reading, replace channel number 0 with channel number 2, 4, or 6, and
channel number 1 with channel number 3, 5, or 7.
434
15
14
13
C15
C14
C13
C12
R/W
R/W
R/W
R/W
7
6
5
C07
C06
C05
C04
R/W
R/W
R/W
R/W
15
14
13
-
-
CMOD
-
-
-
R/W
7
6
5
ICP1
ICP0
ICE1
ICE0
R/W
R/W
R/W
R/W
12
11
10
9
C11
C10
C09
R/W
R/W
R/W
4
3
2
1
C03
C02
C01
R/W
R/W
R/W
12
11
10
9
-
OTD1
-
R/W
4
3
2
1
-
CST1
-
R/W
8
Initial value:
XXXX
C08
H
R/W
0
C00
R/W
8
Initial value:
11101100
OTD0
B
R/W
0
Initial value:
CST0
R/W
00001100
B

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb91350a series

Table of Contents