This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/BOOSTXL-SENSORS: + red MSP432 board : how to use startWakeUpTimerA()

Part Number: BOOSTXL-SENSORS

Tool/software: Code Composer Studio

I am working with the MSP-EXP432P401R rev 2.1  launchpad + BOOSTXL-SENSORS.

I tried " boostxl_sensors_sensorgui_msp432p401r_MSP_EXP432P401R_nortos_ccs " on v8.

I can run the project all right. 

I want to change the speed and send accelXYZ in csv format. 

I add ("z":1}  command to send accelXYZ every time.  ( see the captured screens )

It work fine.

Now, I want to increase the rate. 

I want to get taccelXYZ every 10mS.

I think I can use " startWakeUpTimerA(10) " instead of  " MAP_WDT_A_startTimer() ". 

I can get the taccelXYZ  every 10mS now. 

Below is some part of 2018-5-17_accel_sensor_timer_A_10mS_start_only_time_teraterm.log file.

[Thu May 17 17:45:17.606 2018] accel,369,-69,16355
[Thu May 17 17:45:17.616 2018] accel,368,-71,16360
[Thu May 17 17:45:17.626 2018] accel,368,-71,16360
[Thu May 17 17:45:17.636 2018] accel,368,-71,16360
[Thu May 17 17:45:17.646 2018] accel,368,-71,16360

My question is, 

Is this the light way to use " startWakeUpTimerA(10) "  ?

Should I put " stopWakeUpTimerA() " somewhere ?

Hope to receive some answer soon !

  • Hello,
    Yes, you have implemented the timer function correctly. You do not need to use the stop function unless you need to stop the timer before the 10ms limit is reached. If you look at lines 802 through lines 848 you can find the start, stop, and the ISR for the timer. By replacing the WDT with the TimerA the exit from LPM0 (line 729) will occur when the timer isr is exited instead of the WDT (please note that the disableSleepOnIsrExit is defined out ).

    Happy Coding.
    Chris

**Attention** This is a public forum