Fujitsu MB90480 Series Hardware Manual page 256

F2mc-16lx 16-bit microcontroller
Table of Contents

Advertisement

CHAPTER 12 16-BIT INPUT/OUTPUT TIMER
Input capture control status register (ICS01)
The input capture control status register (ICS01) has the bit configuration shown below.
Figure 12.3-13 Bit configuration of input capture control status register (ICS01)
7
000060
ICP1 ICP0 ICE1 ICE0 EG11 EG10 EG01 EG00 Input capture control status register
H
(R/W) (R/W) (R/W) (R/W) (R/W) (R/W) (R/W) (R/W) Initial value
The input capture control status register (ICS01) consists of bits that have the functions
explained below.
[bit7, bit6] ICP1, ICP0
These bits are the interrupt flags of input capture. When a valid edge of the external input pin
is detected, this bit is set to "1". If the interrupt permit bit (ICE1, ICE0) is set, an interrupt may
occur when a valid edge is detected.
Writing "0" clears this bit. Writing "1" has no effect. An instruction of the read-modify-write
type always reads "1".
0
1
ICP1: Corresponds to input capture 1
ICP0: Corresponds to input capture 0
[bit5, bit4] ICE1, ICE0
These bits are used as the interrupt permit bits of input capture. If these bits are set to "1"
and the interrupt flag (ICP1, ICP0) is set, then an input capture interrupt occurs.
0
1
ICE1: Corresponds to input capture 1
ICE0: Corresponds to input capture 0
[bit3, bit2, bit1, bit0] EG11, EG10, EG01, EG00
These bits specify the valid edge polarity of external input. Also, they are used to specify the
enable of input capture operations.
EG11/EG01
EG11/EG10: Corresponds to input capture 1
EG01/EG00: Corresponds to input capture 0
234
6
5
4
3
No valid edge detected (initial value)
Valid edge detected
Interrupt prohibit (initial value)
Interrupt permit
EG10/EG00
0
0
0
1
1
0
1
1
2
1
0
ICS01
Edge detection polarity
No edge detected (stop state) (initial value)
Rising edge detected
Falling edge detected
Both edges detected
00000000
B

Advertisement

Table of Contents
loading

Table of Contents