![Freescale Semiconductor PXR4030 Reference Manual Download Page 1166](http://html1.mh-extra.com/html/freescale-semiconductor/pxr4030/pxr4030_reference-manual_23306601166.webp)
Decimation Filter
28-52
Freescale Semiconductor
PXR40 Microcontroller Reference Manual, Rev. 1
28.5.2.2.3
CPU Interrupt Handler
All sources of interrupts from the Decimation Filters A, B, C and D are routed to separate single vector
numbers. Each of the remaining Decimation Filters has a single interrupt vector for all interrupt sources.
Decimation Filter C uses vector numbers 467 to 469.
Set INTC vector number 468 to the address of Decimation Filter C output data interrupt handler.
Set the priority for the Decimation Filter and enable interrupts by lowering the processor priority.
When the interrupt occurs, if DECFILT_C_MSR[OBIF] = 1 then this indicates filter output data is
available.
In this case, read the DECFILT_C_OB, then clear the output data interrupt by writing
DECFILT_C_MSR[OBIC] = 1.
Note that DECFILT_C_MSR[IBIF] should also be set when the output data interrupt occurs, as a result of
the previous write to the input data register, so it should be cleared also by writing
DECFILT_C_MSR[IBIC] = 1. The CPU can now also write a new input value to the DECFILT_C_IB
register.
The error flags OVF, OVR and IVR should also be checked at this point, and clear if set, and remedial
action taken, if desired by the application.
Summary of Contents for PXR4030
Page 1: ...PXR40 Microcontroller Reference Manual Devices Supported PXR4030 PXR4040 PXR40RM Rev 1 06 2011...
Page 30: ...PXR40 Microcontroller Reference Manual Rev 1 Freescale Semiconductor xxx...
Page 40: ...PXR40 Microcontroller Reference Manual Rev 1 xl Freescale Semiconductor...
Page 66: ...Memory Map PXR40 Microcontroller Reference Manual Rev 1 2 4 Freescale Semiconductor...
Page 120: ...Signal Descriptions 3 54 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Page 860: ...FlexCAN Module 24 50 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Page 1167: ...Decimation Filter Freescale Semiconductor 28 53 PXR40 Microcontroller Reference Manual Rev 1...
Page 1168: ...Decimation Filter 28 54 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...