S/PDIF, AES3 generation for Prop2?
Mark_T
Posts: 1,981
in Propeller 2
Just wondering if anyone's done a version for the Prop2 yet - I note a Prop1 implementation from a while back using the
video generator, but clearly that's not a direct match.
And of course a receiver for these would also be interesting...
__Mark
video generator, but clearly that's not a direct match.
And of course a receiver for these would also be interesting...
__Mark
Comments
AES3 I don't know... Is that encryption tools?
Both are serial transmission of digital audio:
https://www.rane.com/note149.html
Multiple versions, but the coax version is similar to the Video DAC params, and the encode could be via 16b wide LUT, so send looks doable.
I think the P2 pins have a threshold DAC mode, so they might be able to receive the coax data maybe with some amplitude-sense.
Yes, I think encode is not so hard, where you can use the LUT to do 8 data bits to 16 modulation slots & I think that can streamer feed too.
Going the other way is tighter, as you need to somehow edge-sync, and receive at the same time.
Maybe a combination of Edge-Event, and a prop-generated clock, (costs 1 more pin) can sync-sample the incoming data ?
Sync receive of 8 samples, from 8 modulation slots could decode 4 data bits via LUT the other way.
and get decent performance, or else implement a FIFO with as much SRAM as you can afford. Being able to switch from 44.1kSPS to 48kSPS with accurate clocking isn't so simple either (nor is rate conversion between them as the ratio is 160:147)
For generation I've got an inner loop thus: where the data register is used for determining the parity, pattern is the biphase/mark.
That should handle upto about 10Mb rate, and 48kSPS only needs 3Mb or so. Byte lookup would be needed for 192kSPS I think.