Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 231574

Forum Post: RE: AM2432: Timer Callback without Interrupt

$
0
0
Hello Kevin The user call back support is valid in the Interrupt mode. If the user wants to go with the polling Model, user needs to check whether the timer is overflowing or not. The below example snippet works for your use case. The Timer example is already available in the MCU+SDK 10.1. Please look at the paths below. C:\ti\mcu_plus_sdk_am64x_10_01_00_32\examples\drivers\timer\timer_interrupt C:\ti\mcu_plus_sdk_am64x_10_01_00_32\examples\drivers\gp_timer uint32_t status =0 ; while(1) { status = TimerP_isOverflowed(gTimerBaseAddr[CONFIG_TIMER0] ); if(status) { TimerP_clearOverflowInt(gTimerBaseAddr[CONFIG_TIMER0] ); } } Regards, Anil.

Viewing all articles
Browse latest Browse all 231574

Trending Articles



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