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
Use 8 bit port with i2c Topic is solved
-
- Active Member
- Posts: 63
- Joined: Sat Oct 15, 2011 8:53 pm
-
Verified
- XCore Legend
- Posts: 1164
- Joined: Thu May 27, 2010 10:08 am
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
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