Details On Registers Of Input Capture - Fujitsu FR60 Hardware Manual

32-bit microcontroller mb91301 series
Hide thumbs Also See for FR60:
Table of Contents

Advertisement

18.4 Details on Registers of Input Capture

This section describes the details on the registers of the input capture. The input
capture has the following two data registers:
• Input capture data registers (IPCP0 to IPCP3)
• Input capture control registers (ICS01, ICS23)
■ Input Capture Data Registers (IPCP0 to IPCP3)
IPCP0 to IPCP3
Address: 0000DA
0000D8
0000DE
0000DC
0000DB
0000D9
0000DF
0000DD
The input capture data registers (IPCP0 to IPCP3) are used to store the value of the 16-bits free
run timer when an effective edge of the corresponding external pin input waveform is detected.
This register is undefined at a reset. This register must be accessed in 16-bit or 32-bit data. The
user cannot write any value to this register.
■ Input Capture Control Registers (ICS01, ICS23)
ICS23
Address: 0000E1
ICS01
Address: 0000E3
[bit7, bit6]: ICP3, ICP2, ICP1, and ICP0
These bits are used as input-capture interrupt flags. When a effective edge of an external
input pin is detected, these bits are set to "1". When the interrupt permission bits (ICE3,
ICE2, ICE1, and ICE0) are also set, an interrupt is generated as soon as the effective edge
is detected. To clear these bits, set them to "0". Setting these bits to "1" has no effect. Read
operations with read-modify-write instructions always read "1" for these bits.
ICPn
0
1
"n" in ICPn indicates an input capture channel number.
bit
14
13
15
CP15
CP14
CP13
H
R
R
R
H
H
H
bit
6
5
7
CP07
CP06
CP05
H
R
R
R
H
H
H
bit
7
6
5
ICP3
ICP2
ICE3
H
R/W
R/W
R/W
bit
7
6
5
ICP1
ICP0
ICE1
H
R/W
R/W
R/W
No effective edge is detected. (initial value)
An effective edge is detected.
12
11
10
CP12
CP11
CP10
CP09
R
R
R
R
4
3
2
CP04
CP03
CP02
CP01
R
R
R
R
4
3
2
ICE2
EG31
EG30
EG21
R/W
R/W
R/W
R/W
4
3
2
ICE0
EG11
EG10
EG01
R/W
R/W
R/W
R/W
Input capture interrupt flag
CHAPTER 18 INPUT CAPTURE
9
8
CP08
Initial value
R
xxxxxxxx
B
1
0
CP00
Initial value
R
xxxxxxxx
B
1
0
EG20
Initial value
00000000
R/W
B
1
0
EG00
Initial value
00000000
R/W
B
493

Advertisement

Table of Contents
loading

Table of Contents