MB95630H Series
MN702-00009-1v0-E
FUJITSU SEMICONDUCTOR LIMITED
441
CHAPTER 21 MULTI-PULSE GENERATOR
21.6 Registers
21.6.5.1
16-bit MPG Input Control Register (Upper)
(IPCUR)
The 16-bit MPG input control register (upper) (IPCUR) controls PPG edge
synchronization and the compare operation.
■
Register Configuration
■
Register Functions
[bit7:6] WTS[1:0]: PPG edge synchronization select bits
These bits select which edge of the next PPG signal is to be synchronized with the write timing.
[bit5] CPIF: Compare interrupt request flag bit
This bit is the compare interrupt request flag for the compare circuit. When the RDA[2:0] bits are compared
with the CPD[2:0] bits and they match, this bit is set to "1".
With the compare interrupt request already enabled (CPIE = 1), when this bit is set to "1", a compare
interrupt is generated.
Writing "0" to this bit clears it. Writing "1" to this bit has no effect on operation.
When read by the read-modify-write (RMW) type of instruction, this bit always returns "1".
[bit4] CPIE: Compare interrupt enable bit
This bit enables or disables the compare interrupt.
When this bit is set to "1", and the compare interrupt request flag bit (CPIF) is also set to "1", a compare
interrupt is generated.
bit
7
6
5
4
3
2
1
0
Field
WTS1
WTS0
CPIF
CPIE
CPD2
CPD1
CPD0
CMPE
Attribute
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial value
0
0
0
0
0
0
0
0
bit7:6
Details
Writing "00"
No edge synchronization
Writing "01"
Rising edge
Writing "10"
Falling edge
Writing "11"
Both edges
bit5
Details
Reading "0"
Indicates that no compare interrupt request has been generated.
Reading "1"
Indicates that a compare interrupt request has been generated.
Writing "0"
Clears this bit.
Writing "1"
Has no effect on operation.
bit4
Details
Writing "0"
Disables the compare interrupt.
Writing "1"
Enables the compare interrupt.