cancel
Showing results for 
Search instead for 
Did you mean: 

Using exti alongside systick

jdcowpland
Associate II
Posted on August 13, 2014 at 00:24

I have an exti set up on a gpio, which when triggered, sends a command to a peripheral. Within that piece of code is a small delay which makes use of the systick. It doesn't seem to work though. Guessing the issue is the interrupt with an interrupt? Both interrupts seem to work independently, but not together. Anyone know how to get them working together? Can put up some example code if need be.

1 REPLY 1
Posted on August 13, 2014 at 02:10

A delay of how long? Is this something you can defer to a SysTick interrupt, or two, later?

Alternatively don't use an interrupt based timer, you have the SysTick counter (24-bit) and what ever you have it wrapping at, DWT_CYCCNT (32-bit SystemCoreClock), or a free running timer (TIM2->CNT ?)
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..