Enhanced Modular I/O Subsystem (eMIOS200)
MPC5510 Microcontroller Family Reference Manual, Rev. 1
Freescale Semiconductor
26-45
Preliminary
26.9.3
Coherent Accesses
For IPWM and IPM modes, it is recommended that the software wait for a new FLAG set event before
reading EMIOS_CADR[n] and EMIOS_CBDR[n] registers to get a new measurement. The FLAG
indicates that new data has been captured and it is the only way to assure data coherency.
The FLAG set event can be detected by polling the FLAG bit or by enabling the interrupt or DMA request
generation.
Reading the EMIOS_CADR[n] register again in the same period of the last read of EMIOS_CBDR[n]
register may lead to incoherent results. This will occur if the last read of EMIOS_CBDR[n] register
occurred after a disabled B2 to B1 transfer.