Intercore communication and SPI on MF ref. audio design

New to XMOS and XCore? Get started here.
Post Reply
Dohny
Member++
Posts: 26
Joined: Tue Dec 03, 2013 6:57 pm

Intercore communication and SPI on MF ref. audio design

Post by Dohny »

Hi everybody,

recently I downloaded source code for https://www.xmos.com/download/public/MF ... 1.0%29.pdf and build it for L8 (L1) device. Everything works well, but now I need XMOS to communicate with another small MCU over some 4bit paraller output. I need to send all sample frequencies, mute etc. (function AudioHwConfig) and LED A (stream started, audiostream.xc file) and LED B (enumerated) state, but these LEDs are operated from another core. How can I get state of these LEDs in core which is doing that 4bit output and AudioHwConfig function?

I tried to get state of bit of P32 port, but I need to change 4bit immediately as soon as the state of LEDs changes, so this solution is useless.

Also, i Would like to use SPI instead of paraller 4 bit out and I noticed that for U8 device there is implemented I2C for DAC control, is there any way to replace this with SPI and implement it for L8 device (I have 2 free 1bit ports and CS can by done by P32 port)?

Thank you very much!

It will be used for my board:
Image


Post Reply