Output Compare - Fujitsu F2MC-16LX Hardware Manual

Mb90470 series 16-bit microcontroller
Hide thumbs Also See for F2MC-16LX:
Table of Contents

Advertisement

CHAPTER 12 16-BIT INPUT/OUTPUT TIMER

12.2.2 Output compare

Output compare consists of a 16-bit compare register, compare output pin section,
and control register. If the compare register of this module and the 16-bit free-running
timer have matching values, the output level of the pin may be reversed and an
interrupt may be generated.
• A total of six compare registers are provided, and each operates independent of the
other.
With their settings, the two compare registers are used to control output.
• Interrupt can be specified with compare matching.
I List of output compare registers
Figure 12.2-9 "Registers of output compare" shows a list of the registers of output compare.
00004B
H
00004D
15
H
00004F
H
C15
000051
H
(R/W) (R/W) (R/W) (R/W) (R/W) (R/W) (R/W) (R/W) Initial value XXXXXXXX
000053
H
000055
H
00004A
H
00004C
H
00004E
H
C07
000050
H
(R/W) (R/W) (R/W) (R/W) (R/W) (R/W) (R/W) (R/W) Initial value XXXXXXXX
000052
H
000054
H
15
000057
H
000059
H
00005B
H
(-)
000056
H
ICP1 ICP0 ICE1 ICE0
000058
H
00005A
(R/W) (R/W) (R/W) (R/W)
H
Note:
To rewriting the compare register, within the compare interrupt routine or compare operation
is disabled. Be sure not to occur simultaneously a compare match and writing the compare
register.
232
Figure 12.2-9 Registers of output compare
14
13
12
C14
C13 C12
7
6
5
4
C06
C05 C04
14
13
12
-
-
-
CMOD OTE1 OTE0 OTD1 OTD0 Control register
(-)
(-)
(R/W) (R/W) (R/W) (R/W) (R/W) Initial value ---00000
7
6
5
4
11
10
9
8
C11
C10
C09
C08
3
2
1
0
C03
C02
C01
C00
11
10
9
8
3
2
1
0
-
-
CST1 CST0 Control register
(-)
(-)
(R/W) (R/W) Initial value 0000--00
OCCP0 to 5
Compare register
OCCP0 to 5
Compare register
OCS1/3/5
B
OCS0/2/4
B
B
B

Advertisement

Table of Contents
loading

Table of Contents