Modular Input/Output Subsystem (MIOS14)
MPC561/MPC563 Reference Manual, Rev. 1.2
17-32
Freescale Semiconductor
If a 32-bit coherent operation is in progress when an edge (except for the first edge) is detected, the transfer
of data from B1 to B2 is deferred until the coherent operation is completed. At any time, the input level
present on the input signal can be read on the PIN bit.
The input pulse period is calculated by subtracting the value in data register B from the value in data
register A.
provides an example of how the MDASM can be used for input period measurement.
Figure 17-17. Input Period Measurement Example
17.9.3.4
Input Capture (IC) Mode
IC mode is selected by setting MODE[0:3] to 0b0011.
This mode is identical to the input period measurement mode (IPM) described above, with the exception
that the FLAG line is also activated at the occurrence of the first detected edge of the selected polarity. In
this mode the MDASM functions as a standard input capture function. In this case the value latched in
channel B can be ignored.
provides an example of how the MDASM can be used for input
capture.
FLAG reset
by software
Mode selection; EDPOL = 0 (Channel A capture on rising edge)
Input signal
Counter Bus
FLAG bit
0xxxxx
0x1000
0xxxxx
0x1000
Register B1
Register B2
0x1000
0xxxxx
0x1000
0x1400
0x1400
0x0400
0x1400
0x1400
0x1000
0x16A0
0x1400
0x16A0
Edge Trigger
Register A
0xxxxx
0xxxxx
Rising
Edge Trigger
Rising
Flag set
Flag set
Internal Register, not accessible to
software
FLAG reset
by softwa re
Edge Trigger
Rising
1
2
3
2
1
3
Flag set
Period = Reg A -Reg B
2
1
3
Flag set
Period = Reg A -Reg B
16-bit
0x0500
0x1000
0x1100
0x1400
0x1525
0x16A0
Summary of Contents for MPC561
Page 84: ...MPC561 MPC563 Reference Manual Rev 1 2 lxxxiv Freescale Semiconductor...
Page 144: ...Signal Descriptions MPC561 MPC563 Reference Manual Rev 1 2 2 46 Freescale Semiconductor...
Page 206: ...Central Processing Unit MPC561 MPC563 Reference Manual Rev 1 2 3 62 Freescale Semiconductor...
Page 302: ...Reset MPC561 MPC563 Reference Manual Rev 1 2 7 14 Freescale Semiconductor...
Page 854: ...Time Processor Unit 3 MPC561 MPC563 Reference Manual Rev 1 2 19 24 Freescale Semiconductor...
Page 968: ...Development Support MPC561 MPC563 Reference Manual Rev 1 2 23 54 Freescale Semiconductor...
Page 1144: ...Internal Memory Map MPC561 MPC563 Reference Manual Rev 1 2 B 34 Freescale Semiconductor...
Page 1212: ...TPU3 ROM Functions MPC561 MPC563 Reference Manual Rev 1 2 D 60 Freescale Semiconductor...
Page 1216: ...Memory Access Timing MPC561 MPC563 Reference Manual Rev 1 2 E 4 Freescale Semiconductor...