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?
You do not have the required permissions to view the files attached to this post.
-
- XCore Expert
- Posts: 580
- Joined: Thu Nov 26, 2015 11:47 pm
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?
-
- Member
- Posts: 10
- Joined: Wed Dec 30, 2020 8:11 pm
- Location: Hamburg
-
- XCore Expert
- Posts: 580
- Joined: Thu Nov 26, 2015 11:47 pm
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