Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Timer interrupt issue stm32f303

Status
Not open for further replies.

umairmukati

Junior Member level 1
Junior Member level 1
Joined
Feb 1, 2012
Messages
18
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Visit site
Activity points
1,411
Hello,
I am trying to make a timer interrupt routine, which executes every 0.25us. The problem I am facing is that, the code length in the routine changes the duration. For example running an instruction at 72MHz, the next time the routine execute is 0.35us. It seems the the timer starts counting after returning from the TIMER2_IRQ routine, instead of counting just after overflow. I am using Auto-Reload register with value 18. Tell me what I am missing.
I am using KEIL uVision, and using ST-LINK Debugger for time observation.
Regards.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top