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

XMC™ Forum Discussions

Odri
Level 2
Level 2
First solution authored Welcome! 5 replies posted
Hi

Im using the USIC module in XMC1302 boot kit as I2C and i got one question.

Its possible to set the I2C protocol signals to 320Kbps?
0 Likes
2 Replies
DRubeša
Employee
Employee
First solution authored First like received
Hi Xabi_Odri,

under chapter 15.5 Inter-IC Bus Protocol (IIC) in the XMC1300 Reference Manual you can find information that USIC support I2C fast mode which is up to 400 kbit/s. So yes, it´s possible to set baudrate to 320 kbps.

If you´re using DAVE APPS, just set the "Desired bus speed [KHz]:" to 320:
2529.attach

If you use XMCLibs then easiest way is to have something like:

const XMC_I2C_CH_CONFIG_t I2C_MASTER_0_channel_config =
{
.baudrate = (uint32_t)(320000U),
.address = 0
};
...
...
...
XMC_I2C_CH_Init(XMC_I2C0_CH1, &I2C_MASTER_0_channel_config);
...
...


Of course, you need to set other options too but this should be sufficient to set the baudrate to desired value.

Best regards,
Deni
0 Likes
Vamshi_b
Level 3
Level 3
25 sign-ins 10 replies posted 10 sign-ins

Hi,

Can you please send me the XMC1302 Boot Kit I2C working project. I want to use USIC P1.4 and P1.5. 

0 Likes