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

active current TWI

Hello,

i am measuring the current on my nrf51822 board. While sending messages over I2C i have a current about 4.4 mA.

This should be correct? The CPU, 1v2, hfclk and i2c are using during the send/receive?

Greets Matthias

Parents
  • From the description of what you have running, then yes, you should see a current consumption around what you measure. If you need to lower it then perhaps you can shut down the MCU for longer periods or at least put into power down during transmissions.

  • i am using s110 softdevice. sd_app_evt_wait() is the right one and im using an oszilloskop to measure the voltage~current. only while the twi is active the current is as high as described and the rest of the time its okay. i use a self writte code because all the examples you offer are not power saving. Until now i used loops like below(of course the cpu is not shutting down then). i tried to insert the sd_app_evt_wait() but i dont know how to enable the events/interrupts while s110 is enabled which i asked here

    	{
    while(NRF_TWI1->EVENTS_TXDSENT != 0x1)
    {
    	//sd_app_evt_wait();
    }
    
    NRF_TWI1->EVENTS_TXDSENT = 0;
    
    }
    
Reply
  • i am using s110 softdevice. sd_app_evt_wait() is the right one and im using an oszilloskop to measure the voltage~current. only while the twi is active the current is as high as described and the rest of the time its okay. i use a self writte code because all the examples you offer are not power saving. Until now i used loops like below(of course the cpu is not shutting down then). i tried to insert the sd_app_evt_wait() but i dont know how to enable the events/interrupts while s110 is enabled which i asked here

    	{
    while(NRF_TWI1->EVENTS_TXDSENT != 0x1)
    {
    	//sd_app_evt_wait();
    }
    
    NRF_TWI1->EVENTS_TXDSENT = 0;
    
    }
    
Children
No Data
Related