EasyManua.ls Logo

Freescale Semiconductor MPC5553 - Page 675

Default Icon
1208 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
MPC5553/MPC5554 Microcontroller Reference Manual, Rev. 5
17-36 Freescale Semiconductor
reading EMIOS_CCNTRn after the flag is set, the software must check if the time base value is out of the
time interval defined by registers A1 and B1.
For single shot operation (MODE[6] set), the next match between comparator A and the selected time base
has no effect, until a new write to register A is performed.
NOTE
The FORCMA and FORCMB bits have no effect when the unified channel
is configured for PEC mode.
Figure 17-24 and Figure 17-25 show how the unified channel can be used for continuous or single shot
pulse/edge counting mode.
Figure 17-24. Pulse/Edge Counting Continuous Mode Example
Selected
Counter Bus
0x000090 0x000090
B1 Value
2
0x000090
0x000303 0x0003030x000303
Amount of
EMIOS_CCNTRn
FLAG
Set Event
MODE[6] = 0
A1 Match B1 Match B1 Match
A1 Value
1
Notes:
1
Writing EMIOS_CADRn writes to A1.
2
Writing EMIOS_CBDRn writes to B1.
Time
0x000000
Events
Detected
A1 Match
A1 & B1
Write
0x000090 0x000303 0x000090 0x000303

Table of Contents

Related product manuals