![NXP Semiconductors MPC5605BK Reference Manual Download Page 674](http://html.mh-extra.com/html/nxp-semiconductors/mpc5605bk/mpc5605bk_reference-manual_1721852674.webp)
Chapter 27 Timers
MPC5606BK Microcontroller Reference Manual, Rev. 2
672
Freescale Semiconductor
captured as soon as they occur thus reading register A always returns the value of the latest captured event.
Subsequent captures are enabled with no need of further reads from EMIOSA[n] register. The FLAG is set
at any time a new event is captured.
The input capture is triggered by a rising, falling or either edges in the input pin, as configured by EDPOL
and EDSEL bits in EMIOSC[n] register.
show how the Unified Channel can be used for input capture.
Figure 27-18. Single action input capture with rising edge triggering example
Figure 27-19. Single action input capture with both edges triggering example
27.4.4.1.1.3 Single Action Output Compare (SAOC) mode
In SAOC mode (MODE[0:6] = 0000011) a match value is loaded in register A2, and then immediately
transferred to register A1 to be compared with the selected time base. When a match occurs, the EDSEL
bit selects whether the output flip-flop is toggled or the value in EDPOL is transferred to it. Along with
the match the FLAG bit is set to indicate that the output compare match has occurred. Writing to register
EMIOSA[n] stores the value in register A2 and reading to register EMIOSA[n] returns the value of register
A1.
An output compare match can be simulated in software by setting the FORCMA bit in EMIOSC[n]
register. In this case, the FLAG bit is not set.
When SAOC mode is entered coming out from GPIO mode the output flip-flop is set to the complement
of the EDPOL bit in the EMIOSC[n] register.
selected counter bus
0x000500
0x001000
0x001100
0x001250
0x001525
0x0016A0
FLAG pin/register
A2
(captured) value
2
0xxxxxxx
0x001000
0x001250
0x0016A0
input signal
1
Edge detect
Edge detect
Edge detect
Notes: 1. After input filter
2. EMIOSA[n]
A2
EDSEL = 0
EDPOL = 1
selected counter bus
0x001000
0x001102
FLAG set event
A2
(captured) value
2
0xxxxxxx 0x001000
input signal
1
Edge detect
Notes: 1. After input filter
2. EMIOSA[n]
A2
0x001103
0x001108
0x001104 0x001105 0x001106 0x001107
0x001001
FLAG pin/register
Edge detect
FLAG clear
Edge detect
0x001103
0x001108
EDSEL = 1
EDPOL = x
Summary of Contents for MPC5605BK
Page 2: ...This page is intentionally left blank...
Page 20: ...MPC5606BK Microcontroller Reference Manual Rev 2 20 Freescale Semiconductor...
Page 103: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 103 Clocks and power...
Page 645: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 643 Timers...
Page 715: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 713 ADC system...
Page 787: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 787 Memory...
Page 893: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 893 Integrity...
Page 943: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 943 Debug...