Quantcast
Channel: MSP low-power microcontroller forum - Recent Threads
Viewing all articles
Browse latest Browse all 22466

CCS/MSP432P401R: Clear Timer_A Capture Overflow bit through DriverLib

$
0
0

Part Number:MSP432P401R

Tool/software: Code Composer Studio

Is there a way to clear the Timer_A Capture Overflow bit through DriverLib calls? This is the COV bit of TAxCCTLn, defined as TIMER_A_CAPTURE_OVERFLOW in DriverLib's timer_a.h and TIMER_A_CCTLN_COV in msp432p401r.h

I see that this bit can be checked though Timer_A_getCaptureCompareInterruptStatus(), but I can't find a way to clear it.

The closest option is Timer_A_clearCaptureCompareInterrupt(), which only clears the interrupt flag bit, CCIFG.

A manual workaround is to modify the bit directly as follows, although it would be nice to accomplish everything through DriverLib.

BITBAND_PERI(TIMER_A_CMSIS(timer)->CCTL[idx],TIMER_A_CCTLN_COV_OFS) = 0;

Using DriverLib version 1.30.00.40


Viewing all articles
Browse latest Browse all 22466

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>