AN00203 tdm_config.offset

If you have a simple question and just want an answer.
User avatar
akp
XCore Expert
Posts: 579
Joined: Thu Nov 26, 2015 11:47 pm

AN00203 tdm_config.offset

Post by akp »

Quick question. In AN00203 the tdm_config.offset value seems to be set to -1 (main.xc line 114). However, the API (i2s.h line 31) says this value is to be from 0 to 31... what am I missing?

This offset is the number of BCLK cycles the FSYNC goes high before the MSB of the first data word in the frame. The resulting code for FSYNC generation doesn't make sense to me when offset is -1.


User avatar
Ross
XCore Expert
Posts: 966
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

That looks like bad info/description relating to the TDM implementation - please could you add an issue here: https://github.com/xmos/lib_i2s
User avatar
akp
XCore Expert
Posts: 579
Joined: Thu Nov 26, 2015 11:47 pm

Post by akp »

Done, thanks.