Use 8 bit port with i2c Topic is solved

If you have a simple question and just want an answer.
voodoosound
Active Member
Posts: 63
Joined: Sat Oct 15, 2011 8:53 pm

Use 8 bit port with i2c

Post by voodoosound »

Hi  *,

 

I want to use the 8 bit port XS1_PORT_8D for i2c, also for audio data out and clock input.

Bitmask:

XS1_PORT_8D = (AUDIO OUT, none, none, none, CLK IN, none, SDA, SCL)

 

Is this possible?

If so, how can I assign the port SDA and SCL to the i2c struct?

If not, can I split up XS1_PORT_8D in 8 1 bit ports?

 

Regards,

Ck

 

View Solution
User avatar
infiniteimprobability
Verified
XCore Legend
Posts: 1164
Joined: Thu May 27, 2010 10:08 am

Post by infiniteimprobability »

You can use an 8b (or 4b) port for I2C with restrictions (write only, no ACK detection).

You cannot easily use the rest of the port for audio clock/data as your mask suggests.

Please see here for more 

http://www.xcore.com/forum/viewtopic.php?f=26&t=3080

 

Engineer at XMOS