
Decimation Filter
MPC5644A Microcontroller Reference Manual, Rev. 6
1204
Freescale Semiconductor
26.5.4
Output buffer description
The decimation filter has an output buffer to send filtering results to a master block using the PSI, or to the
CPU using the device slave-bus, as selected through the DECFILTER_MCR bits ISEL and MIXM bits.
Filtering of prefill inputs do not update the output buffer, so the flag ODF is not set.
When filter types IIR and FIR are selected and the input source is the PSI master block (normal or PSI
input mixed modes), the output buffer receives data from the MAC sub-block or from the timestamp
storage register. The result from the MAC is written immediately after the processing if the decimation is
enabled. However, the timestamp data is enabled to be written in the output buffer only when the output
buffer is empty, the decimation count is reached, and the corresponding data was also ready to be
transmitted. When a new word of data is available in the output buffer, a read request signal is sent to the
master block. The master block has to send the corresponding read commands to clear the read request
signal. In this configuration, the core can always read the output buffer. The flag ODF is set when the
buffer is updated.
When in filter operation mode with input from the device slave-bus (ISEL = 1), only sample data is
processed by the filter, as there is no way to input timestamps. When the filter result from the MAC is
ready, this is immediately written to the output buffer when the decimation count is reached. The flag ODF
is set when the buffer is updated. It also generates a DMA read request if DSEL = 1 in standalone or PSI
input mixed modes.
When the filter is bypassed (FTYPE = 00), and PSI is selected as output (normal mode or PSI output mixed
mode), the data written into the input buffer waits until the output buffer is empty before passing the data.
This is needed because the master block takes some clock cycles to send the read commands to the
decimation filter after the read request signal is asserted. When the filter is bypassed and the device
slave-bus is selected as output (standalone mode or PSI input mixed mode), the data written into the input
buffer is immediately written into the output buffer. The flag ODF is set when the buffer is updated and a
DMA read request is asserted if DSEL = 1.
Soft reset clears the output buffer, as well as any data read request generated in any mode.
26.5.4.1
Output buffer overrun
An output overrun occurs when the output buffer is holding output data (sample or timestamp) that has not
been read is overwritten with another word of data (sample or timestamp).
Output overruns are flagged by the DECFILTER_MSR bit OVR, if the output buffer is updated when not
empty. The output buffer empty condition depends on the mode and output selection as follows:
•
if PSI is selected as output (normal mode or PSI output mixed mode), the output buffer is
considered empty when the last output has been read.
•
if cascade mode is selected, the output buffer is considered empty if the last output request was
acknowledged.
•
if the device slave-bus is selected (standalone or PSI input mixed mode) for output and DMA is
selected (DSEL = 1), the output buffer is considered empty if the last output has been read.
•
if the device slave-bus is selected (standalone or PSI input mixed mode) for output and DMA is
not selected (DSEL = 0), the output buffer is considered empty when the ODF flag is negated.
Содержание MPC5644A
Страница 2: ...MPC5644A Microcontroller Reference Manual Rev 6 2 Freescale Semiconductor...
Страница 24: ...MPC5644A Microcontroller Reference Manual Rev 6 24 Freescale Semiconductor...
Страница 26: ...MPC5644A Microcontroller Reference Manual Rev 6 26 Freescale Semiconductor...
Страница 52: ...Introduction MPC5644A Microcontroller Reference Manual Rev 6 52 Freescale Semiconductor...
Страница 56: ...Memory Map MPC5644A Microcontroller Reference Manual Rev 6 56 Freescale Semiconductor...
Страница 130: ...Device Performance Optimization MPC5644A Microcontroller Reference Manual Rev 6 130 Freescale Semiconductor...
Страница 204: ...Multi Layer AHB Crossbar Switch XBAR MPC5644A Microcontroller Reference Manual Rev 6 204 Freescale Semiconductor...
Страница 212: ...Peripheral Bridge PBRIDGE MPC5644A Microcontroller Reference Manual Rev 6 212 Freescale Semiconductor...
Страница 558: ...System Integration Unit SIU MPC5644A Microcontroller Reference Manual Rev 6 558 Freescale Semiconductor...
Страница 582: ...Frequency modulated phase locked loop FMPLL MPC5644A Microcontroller Reference Manual Rev 6 582 Freescale Semiconductor...
Страница 766: ...Enhanced Time Processing Unit eTPU2 MPC5644A Microcontroller Reference Manual Rev 6 766 Freescale Semiconductor...
Страница 1228: ...Decimation Filter MPC5644A Microcontroller Reference Manual Rev 6 1228 Freescale Semiconductor...
Страница 1236: ...System Information Module and Trim SIM MPC5644A Microcontroller Reference Manual Rev 6 1236 Freescale Semiconductor...
Страница 1250: ...Cyclic Redundancy Checker CRC Unit MPC5644A Microcontroller Reference Manual Rev 6 1250 Freescale Semiconductor...
Страница 1336: ...Deserial Serial Peripheral Interface DSPI MPC5644A Microcontroller Reference Manual Rev 6 1336 Freescale Semiconductor...
Страница 1388: ...Enhanced Serial Communication Interface ESCI MPC5644A Microcontroller Reference Manual Rev 6 1388 Freescale Semiconductor...
Страница 1440: ...FlexCAN Module MPC5644A Microcontroller Reference Manual Rev 6 1440 Freescale Semiconductor...
Страница 1624: ...FlexRay Communication Controller FlexRay MPC5644A Microcontroller Reference Manual Rev 6 1624 Freescale Semiconductor...
Страница 1670: ...JTAG Controller JTAGC MPC5644A Microcontroller Reference Manual Rev 6 1670 Freescale Semiconductor...
Страница 1692: ...Nexus Port Controller NPC MPC5644A Microcontroller Reference Manual Rev 6 1692 Freescale Semiconductor...
Страница 1701: ...Development Trigger Semaphore DTS MPC5644A Microcontroller Reference Manual Rev 6 Freescale Semiconductor 1701...
Страница 1702: ...Development Trigger Semaphore DTS MPC5644A Microcontroller Reference Manual Rev 6 1702 Freescale Semiconductor...