In my project, xmos xu232 will be used to receive TDM datas ( TDM slave mode), receive 32 channels TDM16 fromat data.
In official lib_i2s(3.0.0), just provide I2s master and slave, TDM master reference code. where can i find TDM slave mode code?
would you please give some advice or document? thank a lot.
i found a reference code in xmos github, but test fail, print "sync error". please check attached file
How to implement TDM slave mode?
-
- Active Member
- Posts: 45
- Joined: Thu Apr 20, 2017 9:00 am
How to implement TDM slave mode?
- Attachments
-
- tdm_slave.h
- (5.85 KiB) Downloaded 529 times
- tdm_slave.h
- (5.85 KiB) Downloaded 529 times
What you have there is an i2s slave. It's not hard to do TDM slave but you have to combine the concepts from tdm_master.h and i2s_slave.h.
It honestly took me a few days to get it working.
It honestly took me a few days to get it working.
-
- Active Member
- Posts: 45
- Joined: Thu Apr 20, 2017 9:00 am
thanks for your reply
Last edited by susanyin0501 on Fri Dec 20, 2019 9:26 am, edited 4 times in total.
-
- Active Member
- Posts: 45
- Joined: Thu Apr 20, 2017 9:00 am
susanyin0501 wrote: ↑Thu Dec 19, 2019 9:42 amthanks for your reply. can you share something for me?
I probably can't since it's pretty much tuned to my application. But it started by essentially looking at the i2s slave and i2s master and seeing what I would have to do to make the same changes to tdm master to make tdm slave by basically implementing the same changes made from i2s master to i2s slave