beautypg.com

2 input capture edge specification and operation – FUJITSU MB91460 SERIES FR60 User Manual

Page 769

background image

753

Chapter 36 Input Capture

5.Operation

5.2 Input Capture Edge Specification and Operation

• When specifying rising edge

(1)

Detection of rising edge of input signal

(2)

Storage of free-run timer value in capture register (capture)

(3)

Input capture interrupt generation

• When specifying falling edge

(4)

Detection of input signal falling edge

(5)

Storage of free-run timer value in capture register (capture)

(6)

Input capture interrupt generation

• Both edges

(7)

Detection of input signal rising edge

(8)

Storage of free-run timer value in capture register (capture)

(9)

Input capture interrupt generation

(10) Clear interrupt request flag (ICS01.ICP0), (ICS01.ICP1) in software

(11) Detection of input signal falling edge

(12) Storage of free-run timer value in capture register (capture)

(13) Input capture interrupt generation

Reset

Free-run
timer 0
count value

Time

FFFFh

0000 h

Overflow

(IVF)

Count value A

Count value B

Count value C

Count value D

Interrupt
request

Input capture

Falling
edge

Capture data
register

Interrupt
request

Input capture

Rising
edge

Capture data
register

Input capture

Both
edges

Interrupt
request

Clearing of flags in software

Capture data
register

(1)

(2)

(5)

(4)

(3)

(8)

(7)

(6)

(9)

(10)

(11)

(12)

(13)

Indeterminate

Count value C

Count value A

Indeterminate

Count value B

Count value D

Indeterminate

7)