Dear Members,
Where can I find from software development kit the example for writing and reading from I2C EEPROM ?
Thanks
Dear Members,
Where can I find from software development kit the example for writing and reading from I2C EEPROM ?
Thanks
An I2C EEPROM neither knows nor cares what microcontroller you use; all it sees is the transactions on the I2C bus - Start Conditions, Addressing, Stop Conditions; ACK/NAK, etc.
The Nordic SDK examples show you how to use the I2C (aka "TWI") hardware in the nRF52 - ie how to address a Slave, Read, and Write.
So you use the basic functions, together with the datasheet of your EEPROM, to generate the I2C transactions that the EEPROM requires.
For examples, see:
There are 4 TWI examples
which one is the closest application with I2C EEPROM ?
This one
nRF5_SDK_17.0.2_d674dde\examples\peripheral\twi_master_with_twis_slave\pca10056\blank\arm5_no_packs ?
thanks
I got :
[1;37m[1;32muart_cli:~$ [1;37meeprom clear
[1;31mcommunication error
[1;37m[1;32muart_cli:~$ [1;37meeprom clear
[1;31mcommunication error
[1;37m[1;32muart_cli:~$ [1;37m
what do I miss ? I use a real 24C16 chip
Is that what you're actually seeing on your terminal?
You need to remove the escape sequences to make that legible.
you should start with the TWI Scanner to verify your hardware connections, and Slave Address
on TWI scanner, I can not find 0xA0, which is 24C16, what do I miss ?
nfo> app: TWI scanner started.
nfo> app: TWI device detected at address 0x3C.
nfo> app: TWI device detected at address 0x50.
nfo> app: TWI device detected at address 0x51.
nfo> app: TWI device detected at address 0x52.
nfo> app: TWI device detected at address 0x53.
nfo> app: TWI device detected at address 0x54.
nfo> app: TWI device detected at address 0x55.
nfo> app: TWI device detected at address 0x56.
nfo> app: TWI device detected at address 0x57.
do i need pull up resistor on SCL and SDA on 24C16 ? thanks
How can I remove " escape sequences" ? thanks
How can I remove " escape sequences" ? thanks