I2C baud rate setting is not the right clock
Posted: Thu Apr 06, 2017 10:20 pm
Hi,
My project, PIC24EP512 is running at 120MHz clock.
This works with all the used timers and is accurate, also USB is working fine.
Now when setting the I2C (1) to 100k baud rate i get a baud rate arround 750kHz.
I checked this with an analizer. So customizing the baudrate setting to custom and select a value lower than 5000 it is working but is not how it should be.
Latest FC6 version.
Can you check this?
10-04-2017
I did some extra checks.
400k selected baud rate gives approx. 300k
100k selected baud rate gives approx. 760k
Custom selected baud rates:
100k gives 760k
50k gives 240k
25k gives 625k !!!!
20k gives 220k
It seems there is a baudrate calculation error..
Regards,
Patrick Schoon
My project, PIC24EP512 is running at 120MHz clock.
This works with all the used timers and is accurate, also USB is working fine.
Now when setting the I2C (1) to 100k baud rate i get a baud rate arround 750kHz.
I checked this with an analizer. So customizing the baudrate setting to custom and select a value lower than 5000 it is working but is not how it should be.
Latest FC6 version.
Can you check this?
10-04-2017
I did some extra checks.
400k selected baud rate gives approx. 300k
100k selected baud rate gives approx. 760k
Custom selected baud rates:
100k gives 760k
50k gives 240k
25k gives 625k !!!!
20k gives 220k
It seems there is a baudrate calculation error..
Regards,
Patrick Schoon