Fujitsu MB90480 Series Hardware Manual page 278

F2mc-16lx 16-bit microcontroller
Table of Contents

Advertisement

CHAPTER 12 16-BIT INPUT/OUTPUT TIMER
Setting methods other than program example
● Type of external input valid edge polarity and selection method
The valid edge polarity has rising edge, falling edge, and both edges.
Set by the valid edge polarity bit of external input (ICS01.EG[01:00], ICS01.EG[11:10]).
● Method to set to external input pin (IN0, IN1)
Set by data direction bit (DDR9.P96, DDR9.P97).
To set to external input pin (IN0, IN1)
● Interrupt related register
The relationship between channel, interrupt level, and interrupt vector is shown in the following
table.
For details on the interrupt level and interrupt vector, see "CHAPTER 3 INTERRUPT".
Channel
Input capture 0
Input capture 1
The interrupt request flag (ICS01.ICP0, ICS01.ICP1) is not cleared automatically. Clear the flag
by writing "0" to the input capture interrupt request flag (ICP1, ICP0) with software before
returning from interrupt processing.
● Type of interrupt
One interrupt is provided only. Occurs at edge detection of the input signal.
256
Operation
To select rising edge
To select falling edge
To select both edges
Operation
Interrupt vector
#26
Address : FFFF94
#27
Address : FFFF90
Valid edge polarity bit of external input
(EG[01:00], EG[11:10])
Data direction bit (P96, P97)
Interrupt level setting register
Interrupt level register (ICR07)
Address : 0000B7
H
Interrupt level register (ICR08)
Address : 0000B8
H
Select "00
"
B
Select "10
"
B
Select "11
"
B
Set to "0"
H
H

Advertisement

Table of Contents
loading

Table of Contents