Hi,
I am using the SYS/BIOS for MSP430F5437A and trying to utilized the dynamic clock tick (to reduce the power consumption).
There are three task running, one task goes to sleep for 1000 ms and other two tasks are blocked until an external interrupt (HWI) occurs.
The clock module is configured to use ACLK (32768 Hz) with Timer ID 0. The tick period is set to 1000 uS. The CPU is running at 4 MHz ( 3997696 Hz to be exact). The system goes to LPM4 when possible.
It appears that when Task_sleep() is called, it messes up the clock timing as a result for a 1000 ms wait, it take about 3000 mS.
I have read the SYS/BIOS documentation about the MSP430, which talks about the clock tick suppression and possible issues. But I don't have any SWI and the HWIs are also not doing anything long (completes in 10s microseconds).
I have tried to eliminate everything by just having the clock module running and only have one active task which sleeps for 1000 ms in a loop then toggle a LED and go back into the sleep. Even this simple code having the issue where the sleep takes around 3000 seconds (instead of 1000 seconds).
When I used the clock in periodic mode (instead of dynamic) mode the Task_sleep seems to be working OK, but obviously I loose the power savings.
Any help would be appreciated with resolving this issue.
Thanks.