Hello everyone,
I'm working on the creation of TDM slave code, since it is not present.
Starting from the AN0162 (I2S loopback demo), i2s_slave_impl.h and tdm_master_impl.h I've created tdm_slave_impl.h.
The loop is working as a 4 channel TDM, but there are still some problems.
In attachment there are also the project and the lib_i2s.
I will work on this again and I will post the results, but is not an high priority task for me. If someone else is interested we could help each other.
Many thanks in advance,
Andrea
TDM slave library Topic is solved
-
- Member
- Posts: 10
- Joined: Tue May 31, 2016 3:00 pm
TDM slave library
You do not have the required permissions to view the files attached to this post.
View Solution
-
- XCore Expert
- Posts: 580
- Joined: Thu Nov 26, 2015 11:47 pm
Hi Andrea,
Thanks, I have need for this eventually. I will try to take a look sometime this week.
Cheers
Adam
Thanks, I have need for this eventually. I will try to take a look sometime this week.
Cheers
Adam
-
- Member
- Posts: 10
- Joined: Tue May 31, 2016 3:00 pm
Hi Adam,
thank you.
After an answer on another post I found out that a new I2S/TDM library is in development (lib_i2s repo). The TDM slave is still not present, but the I2S slave have significant improvement.
So I've reimplemented the TDM from that source and this is the result: It seems to work fine @2,4 and 8 channels, but, since my setup is made of a lot of flying cables, audio precision, oscilloscope etc, the clock signals are not so good and it often loose the sync. Now I need to wait that my hardware will be done and try it on it (hopefully next week).
I will update the post with results.
thank you.
After an answer on another post I found out that a new I2S/TDM library is in development (lib_i2s repo). The TDM slave is still not present, but the I2S slave have significant improvement.
So I've reimplemented the TDM from that source and this is the result: It seems to work fine @2,4 and 8 channels, but, since my setup is made of a lot of flying cables, audio precision, oscilloscope etc, the clock signals are not so good and it often loose the sync. Now I need to wait that my hardware will be done and try it on it (hopefully next week).
I will update the post with results.
You do not have the required permissions to view the files attached to this post.
-
- Member
- Posts: 10
- Joined: Tue May 31, 2016 3:00 pm
I've corrected synchronization problem (both send and receive where 1 bit early).
Now it seems perfect. Doesn't support offset != 0 and sync_len !=1 (values are ignored).
Now it seems perfect. Doesn't support offset != 0 and sync_len !=1 (values are ignored).
You do not have the required permissions to view the files attached to this post.