Giter Site home page Giter Site logo

xross / lib_i2s Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xmos/lib_i2s

0.0 0.0 0.0 1.58 MB

I2S/TDM digital audio interface library

License: Other

JavaScript 0.82% Python 21.59% C 27.27% Assembly 15.25% XC 26.37% Makefile 8.63% CMake 0.07%

lib_i2s's Introduction

I2S/TDM Library

Summary

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 768kHz for "frame-based" versions.
  • 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. IO usage is 1 x 1b port for each signal.

Software version and dependencies

The CHANGELOG contains information about the current and previous versions. For a list of direct dependencies, look for DEPENDENT_MODULES in lib_i2s/module_build_info.

Notes on "frame-based" I2S implementations

The library supports both "sample-based" and "frame-based" versions of I2S master and slave. The "frame-based" versions are recommended for new designs and support higher I2S channel counts and rates. In addition, the number of callbacks to pass data to and from the I2S handler task are reduced. "Frame-based" I2S pass an array of channels per sample period whereas "sample-based" versions make a callback per channel within a sample period. The "frame-based" callbacks are all grouped together allowing the user side to make maximum use of the MIPS between I2S frames. For example, a 48kHz (20.83us) I2S interface supports a total of 19us processing per sample period, in any order, across the callbacks. The older "sample-based" versions are currently maintained to provide compatibility with existing code examples.

Related application notes

The following application notes use this library:

  • AN00162 - Using the I2S library

lib_i2s's People

Contributors

acascarino avatar samchesney avatar ed-xmos avatar andrewstanfordjason avatar lucianomartin avatar xross avatar danielpieczko avatar brennangit avatar mbanth avatar oscarbailey-xmos avatar larry-xmos avatar kieran-kohtz avatar chrisc-xmos avatar cdoak avatar johned0 avatar quinnwang avatar shuchitak avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.