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

Conflict between SPI1 and TWI1 on nRF51

Hello

I've been having some strange problems with my SPI and TWI bus. In my setup, I'm using SPI0 and TWI1. I noticed that, even though I'm not using it, that SPI1 was consuming a lot of power so I disabled it with NRF_SPI0->ENABLE = 0;.

Now I seem to be having problems with my TWI1 bus, it stops working sometimes when SPI1 is disabled, why is this happening? Are they somehow related? Or how do I stop the SPI1 bus from consuming power when I'm not using it?

Thanks

Parents
  • Is your main problem now to disable and enable the TWI? or is it with the current cunsomption? Are you using XTAL clock? if you are using internal RC HFCLK then this current consumption does not be explained unless there are other modules you are using and are active at the time of current measurement, Are you sure that you are measuring this increased current because of SPI1 or are there some other modules active? what is your working environment like which SDK, SD and hardware?

    Do you wait for EVENTS_READY before using TWI!?

Reply
  • Is your main problem now to disable and enable the TWI? or is it with the current cunsomption? Are you using XTAL clock? if you are using internal RC HFCLK then this current consumption does not be explained unless there are other modules you are using and are active at the time of current measurement, Are you sure that you are measuring this increased current because of SPI1 or are there some other modules active? what is your working environment like which SDK, SD and hardware?

    Do you wait for EVENTS_READY before using TWI!?

Children
No Data
Related