From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

Generating I2S Serial Format Data

    Other

  • HSDIO device

Code and Documents

Attachment

Description

Overview


Generates a sine wave and convert it into 16 bit DIO data to be generated from an HSDIO device.

This example program generates a sine wave, converts the data to a 16-bit array, and then generates I2S format data to be generated with a high-speed digital I/O device.

The Inter IC Sound (I2S) format is a common way to send stereo data to sound-integrated circuits.

Related Links:
High-Speed Digital I/O Devices
Can NI Products Interface to I2S Protocol?

 

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.