Hi everyone
So first - yes I know the Tiva is not indicated for low power, I should get a MSP430 or MSP432 or other low power directed MCU.
Well in one part of the project I probably will, the code is in energia and the MSP432 will do and has the advantage of Energia MT for power saving. But the other requires the Tiva for sure - still there are dead times where saving power would help. Note that both the parts of the project are battery powered.
Basically it's a remote controlled car and I want the controller to save power - again not the best use for a Tiva but the second part requires the Tiva and I want it to have power save features too (so just transport the code.
Second - I am not interested in the hibernation module, according to the power consumption table, Sleep and Deep Sleep modes will be enough - not only that but although the interrupt I require could probably use the RTC, it's extra work than using the sleep/deep sleep modes (at least it seems, correct me if I am wrong).
So some clarifications.
First, I have no idea about wake up times. There's mentions of longer or faster wake up times but what's even the slowest time? <- most important question
Second, what are the wake up sources? According to the datasheet it seems Sleep mode can be awoken from any interrupt. The same seems to hold true for the Deep Sleep - I am correct, right?
Now clocks and sleep modes implementation and getting to my problem.
So in Sleep I used it with no clock gating, no problem. Ok, clock gating - awesome. I did this by
- Setting up wide timer 4 to generate a periodic interrupt
- SysCtlPeripheralClockGating(1);
- SysCtlPeripheralSleepEnable(SYSCTL_PERIPH_WTIMER4);
- Then when I needed I would enable the timer counter and entered sleep mode.
- The interrupt handler would then disable the timer (probably should set the counter value to the load value again but I was just testing it.
Tried the same with Deep sleep mode.
Clock gating on - nope, noting. But wait, maybe I should listen to the warnings on the datasheet. Took it of debug and did a power cycle. But something is wrong with how the 2 parts work together, there's "hiccups" - here is why I asked about the wake up time!
So apparently the wake up time is over 30 milliseconds or something like that? I haven't measure it precisely, just a estimation considering the 40 millisecond sleep time and the fact that the "car" requires a transmission every 70 milliseconds.
So again, can I get an idea on Tiva wake up times from the different sleep modes?
Again I probably can use the MSP432 for the remote but the "car" I require the Tiva.