MCUXpresso SDK Documentation

spdif_interrupt_transfer

spdif_interrupt_transfer#

Overview#

The spdif_interrupt_transfer example shows how to use spdif driver with interrupt:

In this example, one spdif instance playbacks the audio data recorded by the same spdif instance using interrupt.

Notice: Please use 48KHz sample rate for PC playback and set SPDIF output device to 48KHz.

Supported Boards#

MIMXRT1170-EVKB
Hardware requirements
  • Mini/micro USB cable

  • MIMXRT1170-EVKB board

  • Personal Computer

  • Two SPDIF RCA lines

  • Soundcacrd support SPDIF interface

Board settings

1.Make sure J35,J36,J37,J45,J46,T1 and T2 are installed. Weld 10kΩ resistor to R295. 2.Remove R188, R203, R209 and R835.

Prepare the Demo
  1. Connect a USB cable between the host PC and the OpenSDA USB port on the target board.

  2. Connect J46 with SPDIF soundcard output inteface, connect J45 with SPDIF soundcard input interface.

  3. Playback music using the SPDIF soundcard, make the SPDIF signals input to MIMXRT1170 board.

  4. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  5. Download the program to the target board.

  6. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

After run the demo, you can hear the music playbacked from SPDIF soundcacrd, the log below shows the output of the example in the terminal window:

SPDIF example started!
SPDIF example finished!
MIMXRT1160-EVK
Hardware requirements
  • Mini/micro USB cable

  • MIMXRT1160-EVK board

  • Personal Computer

  • Two SPDIF RCA lines

  • Soundcacrd support SPDIF interface

Board settings

1.Make sure J35,J36 and J37 are installed. Weld 10kΩ resistor to R295. 2.Remove R209/R835.

Prepare the Demo
  1. Connect a USB cable between the host PC and the OpenSDA USB port on the target board.

  2. Connect J46 with SPDIF soundcard output inteface, connect J45 with SPDIF soundcard input interface.

  3. Playback music using the SPDIF soundcard, make the SPDIF signals input to MIMXRT1160 board.

  4. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  5. Download the program to the target board.

  6. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

After run the demo, you can hear the music playbacked from SPDIF soundcacrd, the log below shows the output of the example in the terminal window:

SPDIF example started!
SPDIF example finished!
MIMXRT1180-EVK
Hardware requirements
  • Mini/micro USB cable

  • MIMXRT1180-EVK board

  • Personal Computer

  • Two SPDIF RCA lines

  • Soundcard support SPDIF interface

Board settings

1.Make sure J23,J25,J26,T1,T2,J24 and J27 are installed. Weld 10kΩ resistor to R375. 2.Remove R140/R141/R2158/R2159.

Prepare the Demo
  1. Connect a USB cable between the host PC and the OpenSDA USB port on the target board.

  2. Connect J27 with SPDIF soundcard output inteface, connect J24 with SPDIF soundcard input interface.

  3. Playback music using the SPDIF soundcard, make the SPDIF signals input to MIMXRT1180 board.

  4. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  5. Download the program to the target board.

  6. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

After run the demo, you can hear the music playbacked from SPDIF soundcacrd, the log below shows the output of the example in the terminal window:

SPDIF example started!
SPDIF example finished!