AM263Px MCU+ SDK: SDFM Filter sync DMA read

| AM263Px MCU+ SDK 26.00.00 |

SDFM Filter sync DMA read

# Introduction

A SDFM example that reads filter data from CPU In this example, SDFM filter data is read by DMA by SDFM FIFO DATA READTY INT trigger. SDFM configuration is shown below:

- SDFM used in this example - SDFM0
- Input control mode selected - MODE0
- Data filter settings
  - Filter 1 is enabled
  - Sinc3 filter selected
  - OSR = 256
  - Synchronized by using MFE (Main Filter enable bit)
  - Filter output represented in 16 bit format
  - In order to convert 26 bit Data filter into 16 bit format user needs to right shift by 10 bits for Sinc3 filter with OSR = 256
  - FIFO is enabled for 16 levels.
- Interrupt module settings for SDFM filter
  - Filter 1 will generate interrupt when a new filter FIFO Threshold is crossed.

Example Block diagram

## External Connections

- Connect Sigma-Delta streams to SDFM0_CLK0, SDFM0_D0

## Watch Variables

- filter1Result - Output of filter 1

## AM263X-CC or AM263PX-CC or AM261x-SOM

When using with TMDSHSECDOCK (HSEC180 controlCARD Baseboard Docking Station)

- Connect Sigma-Delta streams to HSEC Pin 91, HSEC Pin 72

If required, use PWM waveforms as data and clock

- Connect HSEC Pin 51 to HSEC Pin 91
- Connect HSEC Pin 49 to HSEC Pin 72

## AM263X-LP or AM263PX-LP

This example is not supported on AM263X-LP

# Supported Combinations

Parameter | Value
--- | ---
CPU + OS | r5fss0-0 nortos
Toolchain | ti-arm-clang
Board | am263px-cc
Example folder | examples/drivers/sdfm/sdfm_filter_sync_dmaread/

# Steps to Run the Example

- When using CCS projects to build, import the CCS project for the required combination and build it using the CCS project menu (see Using SDK with CCS Projects).
- When using makefiles to build, note the required combination and build using make command (see Using SDK with Makefiles)
- Establish connections as mentioned in External Connections section
- Launch a CCS debug session and run the executable, see CCS Launch, Load and Run
- View the UART console logs for results

# See Also

SDFM

# Sample Output

Shown below is a sample output when the application is run,

SDFM filter sync CPU read Test Started ...
gSdfmFifo1Base : 50268032
Some of the copied FIFO data...
Transfer number : 0 | Data : -2731 -13654 -16384 -16384 -16384 -16384 -16384 -16384 -16384 -16384 -16384 -16384 -1638
Transfer number : 12 | Data : -16384 -16384 -16384 -16384 -16384 -16384 -16384 -16384 -16384 -16384 -16384 -16384 -16
Transfer number : 24 | Data : -16384 -16384 -16384 -16384 -16384 -16384 -16384 -16384 -16384 -16384 -16384 -16384 -16
Transfer number : 36 | Data : -16384 -16384 -16384 -16384 -16384 -16384 -16384 -16384 -16384 -16384 -16384 -16384 -16
Transfer number : 48 | Data : -16384 -16384 -16384 -16384 -16384 -16384 -16384 -16384 -16384 -16384 -16384 -16384 -16
Transfer number : 60 | Data : -16384 -16384 -16384 -16384 -16384 -16384 -16384 -16384 -16384 -16384 -16384 -16384 -16
All tests have passed!!