Dear Nordic Community,
Help me in interfacing AT42QT2120 capacitive touch sensor to nrf52840 controller.
Dear Nordic Community,
Help me in interfacing AT42QT2120 capacitive touch sensor to nrf52840 controller.
So what have you tried? Where are you stuck?
Remember that the AT42QT2120 - like any other external chip - neither knows nor cares what microcontroller you use.
The AT42QT2120 has an I2C interface; so all the AT42QT2120 requires is that you give it the correct sequence of Start Condition, Slave Address, etc, etc, as specified in its datasheet - and it will respond as specified in its datasheet.
https://www.microchip.com/wwwproducts/en/AT42qt2120
Similarly, the nRF52 I2C controller neither knows nor cares what slave(s) are connected to the bus: all it does is generate Start Condition, Slave Address, etc and receives responses, ACK/NACK, etc - as specified in its documentation:
https://infocenter.nordicsemi.com/topic/struct_nrf52/struct/nrf52840.html
There are TWI examples in the SDK - start with the TWI Scanner Example to verify that you can correctly address the peripheral:
infocenter.nordicsemi.com/.../twi_scanner_example.html
So what have you tried? Where are you stuck?
Remember that the AT42QT2120 - like any other external chip - neither knows nor cares what microcontroller you use.
The AT42QT2120 has an I2C interface; so all the AT42QT2120 requires is that you give it the correct sequence of Start Condition, Slave Address, etc, etc, as specified in its datasheet - and it will respond as specified in its datasheet.
https://www.microchip.com/wwwproducts/en/AT42qt2120
Similarly, the nRF52 I2C controller neither knows nor cares what slave(s) are connected to the bus: all it does is generate Start Condition, Slave Address, etc and receives responses, ACK/NACK, etc - as specified in its documentation:
https://infocenter.nordicsemi.com/topic/struct_nrf52/struct/nrf52840.html
There are TWI examples in the SDK - start with the TWI Scanner Example to verify that you can correctly address the peripheral:
infocenter.nordicsemi.com/.../twi_scanner_example.html
Thank you for your response Mr.Awneil.