Motorola MSC8101 ADS User's Guide Page 199

  • Download
  • Add to my manuals
  • Print
  • Page
    / 346
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 198
Programming Examples
Enhanced Filter Coprocessor (EFCOP) 9-23
empty and channel 1 transfers eight 32-bit samples from the FDOR whenever the FDOR is
full. The IIR session proceeds as follows:
1. The EFCOP is disabled by clearing the FCTL before the IIR session parameters are
programmed into the FCTL.
2. The following control parameters are written to the EFCOP control registers:
a. The FDM and FCM are located at an offset from the beginning of the shared
memory defined by the
IIR_FDBA and IIR_FCBA constants.
b. The
IIR_FCNT constant defines the IIR filter length and is equal to the number
of real filter coefficients.
IIR_FCNT – 1 is written to the Filter Count Register.
c. The
IIR_FACR constant is written to the Filter ALU Control Register. This
constant can be used to enable scaling for the IIR output if necessary.
d. The value 0xC083 is written to FCTL to enable the EFCOP in IIR filter mode.
This value also sets the input and output data modes to burst transfer.
3. DMA Channel 0 of the DMA is used in flyby mode to transfer the input data from
memory to the FDIR in burst mode; that is, the DMA transfers eight 32-bit samples
to the FDIR whenever the FDIR is empty. The DMA control registers are
programmed as follows:
a. The address location of the input data (the FIR session output),
TMP_ADDR, is
written to the DMA buffer address pointer field (BD_ADDR0).
b. The total number of bytes to transfer,
NSAMP, is written to the DMA buffer size
field (BD_SIZE0).
c. To configure the DMA for a burst read transaction, the value 0x00000210 is
written to the DMA attribute field (BD_ATTR0).
d. To enable DMA channel 0 in flyby mode triggered by an EFCOP write request,
the value 0x80004305 is written to the DMA Channel Configuration Register
(DCHCR0).
4. DMA Channel 1 of the DMA is used in flyby mode to transfer the output data from
the FDOR to memory in burst mode; that is, the DMA transfers eight 32-bit
samples from the FDOR whenever the FDOR is full. The DMA control registers
are programmed as follows:
a. The address location of the output data,
OUT_ADDR, is written to the DMA buffer
address pointer field (BD_ADDR1).
b. The total number of bytes to transfer,
NSAMP, is written to the DMA buffer size
field (BD_SIZE1).
c. The value 0x00000200 is written to the DMA attribute field (BD_ATTR1).
This value configures the DMA for a burst write transaction.
Page view 198
1 2 ... 194 195 196 197 198 199 200 201 202 203 204 ... 345 346

Comments to this Manuals

No comments