This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Configuring twi slave and twi master in one chip

I am used NRF52810 controller, I wanted to know about there is possibility to work iic slave and iic master ( vice versa ) in single program ,can have any possibility about combination? 

i want to used iic for different taske at single time with single controller. 

Thank u

Parents
  • i want to used iic for different taske at single time with single controller. 

    No dice. The NRF52810 has only one peripherial that can work as either TWIM or TWIS, but not both at the same time.

    Thus you will have to use one of the "bigger" chips like NRF52832 which has two TWI peripherials.

    Other workaround: Implement the I²C master completely in software by toggeling GPIOs properly.

Reply
  • i want to used iic for different taske at single time with single controller. 

    No dice. The NRF52810 has only one peripherial that can work as either TWIM or TWIS, but not both at the same time.

    Thus you will have to use one of the "bigger" chips like NRF52832 which has two TWI peripherials.

    Other workaround: Implement the I²C master completely in software by toggeling GPIOs properly.

Children
Related