Hi All,
I am using nrf52840 custom board. SDK version 17.0.2
What value do I need to set in nrf52840_bitfields.h for I2C frequency to get <= 50 k ??
(Line number 13990 to 13996)
Looking ahead for your response.
Regards
Sudharsan
Hi All,
I am using nrf52840 custom board. SDK version 17.0.2
What value do I need to set in nrf52840_bitfields.h for I2C frequency to get <= 50 k ??
(Line number 13990 to 13996)
Looking ahead for your response.
Regards
Sudharsan
Hi,
You can try 0x00C80000, which should give ~48.9 kHz. Note that other values than the ones listed in the register has not been tested or verified, and may not work correctly. The minimum supported bitrate in the TWI(M) peripheral is 100 kbps, so below this you are operating outside of spec.
Best regards,
Jørgen
Hi,
You can try 0x00C80000, which should give ~48.9 kHz. Note that other values than the ones listed in the register has not been tested or verified, and may not work correctly. The minimum supported bitrate in the TWI(M) peripheral is 100 kbps, so below this you are operating outside of spec.
Best regards,
Jørgen
Hi Jorgen,
If you don't mind, would you please give me the register values for
~10kHz
~20kHz
~30kHz
~40kHz
We are doing trial and error method as our one of the I2C peripheral is not detecting.
We have connected 5 number of peripherals in I2C0. Pullup - 500 ohms
out of 5 peripherals, one is not detecting at all in any of our custom board.
This is where we reduced our pull-up resistor from 1K to 500 ohms and trying to reduce the I2C clock also.
Please give your suggestion
Regards,
Sudharsan
~9.8 kHz = 0x00280000
~19.5 kHz = 0x00500000
~29.3 kHz = 0x00780000
~39.1 kHz = 0x00A00000
Thanks for your reply.
Please tell us your suggestion on I2C peripheral which is not detecting. What would be the cause?
Regards
Sudharsan
What have you tested to detect the peripherals?
Have you used the TWI scanner example to get the correct address of the connected peripherals?
Are the peripherals powered correctly?
Have you verified that the peripherals work correctly with other I2C master?
Have you looked at the signals on the TWI bus with a logic analyzer, to see if the slave responds to the commands?
Thanks Jorgen. I will get back to you