I2C timing

Moderator: Benj

Post Reply
ylanchec
Posts: 54
Joined: Mon Jan 14, 2013 10:14 pm
Has thanked: 2 times
Been thanked: 2 times
Contact:

I2C timing

Post by ylanchec »

Hello,

I am using flowcode v5 on a pic16f1827.

I have a xtal running a 24Mhz and i have set i2c speed to 1Mhz, but i get this : (clock is a 250Kz instead of 1Mhz)

SCL :
scl.png
CLOCK
(12.56 KiB) Downloaded 2268 times
SDA :
sda.png
DATA
(10.9 KiB) Downloaded 2268 times
My other problem is the time beetween two frames : i have 2.4ms but i haven't any delay in my software. So how to reduce this time ?.
flow.png
I2C
(17.07 KiB) Downloaded 993 times
Best regards

ylanchec

ylanchec
Posts: 54
Joined: Mon Jan 14, 2013 10:14 pm
Has thanked: 2 times
Been thanked: 2 times
Contact:

Re: I2C timing

Post by ylanchec »

Hello,

I have found the problem, there was a bug in PIC_CAL_I2C.C on sppadd register.
I have several computers and i have forget to update one of them.
This problem is corrected in 5.5 version.

I have also see the delay between data frames, i have to modify this file to reduce it.

Is it possible to make this configurable in the component box ?

Best regards.

ylanchec

Post Reply