when trying to initialize the nrf52...little bit confused how to specifically address a pin for i2c....can anyone help me with a piece of code. Thank you in advance.
when trying to initialize the nrf52...little bit confused how to specifically address a pin for i2c....can anyone help me with a piece of code. Thank you in advance.
Hi,
There are multiple TWI (I2C-compatible) examples in our SDK:
Best regards,
Jørgen
Hi,
There are multiple TWI (I2C-compatible) examples in our SDK:
Best regards,
Jørgen
Thank you for your reply, But I still don't understand how to initialize the pins. My question is, how to initialize the particular pin for i2c these above programs are predefined. Plz advise
If you want to setup the peripheral on the register-level, you need to look in the nRF52832 product specifications. There are both legacy TWI and TWIM with EasyDMA support in the nRF52832. This example on GitHub show setup of TWIM peripheral using registers only.
Thank you, Jorgen for help....! I'll take a look
i am using vcnl4020 sensor and want to interface it to nrf52832 DK...which of above example would be more appropriate for this...m just trying to read sensor.....i was using twi_sensor eample for this....
i am using nrf52832 SDK 15.3
than you..your answer would be great help to me
TWI sensor example should work fine, but you need to modify it to read and write the correct registers.