Enhanced Modular Input/Output Subsystem (eMIOS)
MPC5565 Microcontroller Reference Manual, Rev. 1.0
Freescale Semiconductor
16-33
shows the A1 and B1 updates when EMIOS_CADR
n
and EMIOS_CBDR
n
register reads
occur. The A1 register always has coherent data related to the A2 register. Note also that when an
EMIOS_CADR
n
read is performed, the B1 register is loaded with A1 register content. This guarantee that
the data in register B1 always has the coherent data related to the last EMIOS_CADR
n
read. The B1
register updates remains locked until an EMIOS_CBDR
n
read occurs. If an EMIOS_CADR
n
read is
performed, the B1 register is updated with A1 register content even if the B1 update is locked by a previous
EMIOS_CADR
n
read operation.
Figure 16-20. B1 and A1 Updates at EMIOS_CADR
n
and EMIOS_CBDR
n
Reads
Reading EMIOS_CADR
n
followed by EMIOS_CBDR
n
always provides coherent data. If coherent data
is not required, invert the sequence of reads; read EMIOS_CBDR
n
before reading EMIOS_CADR
n
. If B1
register updates are blocked after an EMIOS_CADR
n
read, a second EMIOS_CBDR
n
read is required to
release B1 register updates.
16.4.4.4.5
Input Period Measurement Mode (IPM)
The following table lists the input period measurement mode setting:
The IPM mode allows the measurement of the period of an input signal by capturing two consecutive rising
edges or two consecutive falling edges. Successive input captures are done on consecutive edges of the
same polarity. The edge polarity is defined by the EDPOL bit in the EMIOS_CCR
n
.
Table 16-18. IPM Operating Mode
MODE[0:6]
Unified Channel IPM
Operating
Mode
0b0000101
Input period measurement mode
0x000500
0x001000
0x001100
0x001250
0x001525
0x0016A0
Selected
counter bus
FLAG
set event
B
B
B
Captured A2
value
2
0xxxxxxx
Notes:
1
After input filter.
2
Reading EMIOS_CADRn returns the value of A2
.
Input signal
1
EDPOL = 1
A
A
B1 value
3
0x001525
0x001100
0xxxxxxx
0xxxxxxx
0x001000
0x001250
0x001000
Captured B2
value
3
Reading EMIOS_CBDRn returns the value of B1
.
0xxxxxxx
0x001000
0x001250
0x001000
A1 value
3
0x001250
Read MTSA[n]
Read MTSB[
n
]
0x0016A0
Summary of Contents for MPC5565
Page 18: ...MPC5565 Microcontroller Reference Manual Devices Supported MPC5565 MPC5565 RM Rev 1 0 09 2007...
Page 34: ...MPC5565 Reference Manual Rev 1 0 Freescale Semiconductor 15...
Page 35: ...MPC5565 Reference Manual Rev 1 0 16 Freescale Semiconductor...
Page 553: ...Flash Memory MPC5565 Microcontroller Reference Manual Rev 1 0 13 38 Freescale Semiconductor...
Page 559: ...SRAM MPC5565 Microcontroller Reference Manual Rev 1 0 14 6 Freescale Semiconductor...
Page 973: ...Preface MPC5565 Microcontroller Reference Manual Rev 1 0 21 36 Freescale Semiconductor...
Page 1153: ...Calibration MPC5565 Microcontroller Reference Manual Rev 1 0 B 8 Freescale Semiconductor...