Decimation Filter
Freescale Semiconductor
28-51
PXR40 Microcontroller Reference Manual, Rev. 1
The ALT_CONFIG_SEL field should be set to select the ADC_ACRn register that was configured in
Section 28.5.2.1.3. For example, if ADC_ACR1 were selected, then the ALT_CONFIG_SEL field should
be 0x08.
28.5.2.2
Use Case 2 - Input/Output from/to the CPU/DMA, Stored data filtering.
The input to Filter C is through the memory mapped input register.
Filter C is configured as a 4th order low pass IIR.
The output from the filter is routed to a memory mapped output register and an interrupt is issued when
new data is available.
In this example the ADC is not used at all, and no ADC configuration or commands are needed to support
the Decimation Filter operation.
Decimation is not enabled.
Saturation is enabled.
28.5.2.2.1
DECFILT_C_MCR — Module Configuration Register settings
Enable interrupt when new filtered data is available: ODEN=1
Enable IIR Filter type: FTYPE=1
Scale coefficients to a range of +1 to -1: SCAL=8
Enable saturation of filter output result: SAT=1
Select the CPU/DMA as the output destination to transfer data to memory mapped output register:
DECFILT_x_MCR[IO_SEL[0:1] = 01 or 10
Select no decimation: DEC_RATE=0
28.5.2.2.2
DECFILT_C_COEFn
Write the filter coefficients given in
DECFILT_C_COEF0 = 0x005AB5
DECFILT_C_COEF1 = 0x001240
DECFILT_C_COEF2 = 0x008277
DECFILT_C_COEF3 = 0x001240
DECFILT_C_COEF4 = 0x005AB5
DECFILT_C_COEF5 = 0x2B29E6
DECFILT_C_COEF6 = 0xCC414E
DECFILT_C_COEF7 = 0x1EB97D
DECFILT_C_COEF8 = 0xF8546A
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...