Skip to content

xmos/lib_i2s

Repository files navigation

I2S/TDM Library

vendor:XMOS
Version: 2.3.0
scope:General Use
description:Arithmetic and DSP library
category:General Purpose
keywords:Arithmetic, DSP, VPU
devices:xcore.ai

Overview

This is a software library that allows you to control an I2S or TDM (time division multiplexed) bus via xCORE ports. I2S and TDM are digital data streaming interfaces particularly appropriate for transmission of audio data. The components in the library are controlled via C using the XMOS multicore extensions (xC) and can either act as I2S master, TDM master or I2S slave.

Features

  • I2S master, TDM master and I2S slave modes.
  • Handles multiple input and output data lines.
  • Support for standard I2S, left justified or right justified data modes for I2S.
  • Support for multiple formats of TDM synchronization signal.
  • Efficient "frame-based" versions of I2S master and slave allowing use of processor cycles in between I2S signal handling.
  • Sample rate support up to 192kHz or 384kHz for I2S.
  • Up to 32 channels in/32 channels out (depending on sample rate and protocol).

Resource Usage

The I2S and TDM modules use one logical core and between 1.6 and 2.1kB of memory. There may be spare processing time available in the callbacks of I2S and TDM. IO usage is 1 x 1b port for each signal or 4b ports for data in some cases.

Related Application Notes

The following application notes use this library:

Known Issues

  • None

Required Tools

  • XMOS XTC Tools: 15.3.0

Required Libraries (dependencies)

Support

This package is supported by XMOS Ltd. Issues can be raised against the software at www.xmos.com/support