IIC Pin-Mapping XMC4k without bidirectional pins

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User7823
Level 1
Level 1
We want to implement IIC on an existing design for which we have only specific pins available.
I am following the Datasheet Chapter 15.5.1.1 Signal Description ff.



We have the pins available as outlined in the picture and we want to implement a single master I2C. We do not allow clock stretching by a slave.

3382.attach

Following the specification ....
the pin assignment of module IIC A shows separate pins for the input and output signals for SDA and SCL.
This assignment can be used if the application does not provide pins having DOUT0 and a DX0 stage input for the same pin
(similar for SCLKOUT and DX1).

....
I should be able to set-up something like this:
SDA-IN:
USIC1_CH1.DX0D I P0.0
SDA-OUT
USIC1_CH1.DOUT0 O P0.1

SCL-OUT
USIC1_CH1.SCLKOUT O P1.8
SCL-IN
USIC1_CH1.DX1G I USIC1_CH1.SCLKOUT

I cannot select this pinning in DAVE.
When I generate some I2CMaster-code with Dave and another pinning which lines to I have to change to get to the pinning as outlined above?

Thx
0 Likes
1 Reply
jferreira
Employee
Employee
10 sign-ins 5 sign-ins First like received
Hi,

The I2C_MASTER APP does not allow this. You will need to use the I2C_CONFIG APP.
3214.attach

Regards,
Jesus
0 Likes