Hi there,
One question about how to save power with software optimization with a I2C data communication. In my mind, the key concept is to deal with interrupts.
In a read operation in the body of my code there the following lines :
while(data_read == 0){
UCB0CTL1 |= UCTXSTT;
UCB0TXBUF = 0x00;
UCB0CTL1 |= UCTXSTP;
__delay_cycles(200);
data_read = UCB0RXBUF;
}
I ask me the opportunity to programming that with interrupt with USCIAB0TX_VECTOR to send my data. But three question :
- May really same energy with an interrupt to send data in that part ?
- Is-there a mean to adapt that with USCIAB0TX_VECTOR and enable RX interrupt ?
Thanks for your reply.
BR
GM