- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello, I am trying to run a timer isr routine but never get executed. Timer is is set up with a 100KHz clock, Terminal Count of 1000, and interrupt output connected to isr. ISR is set to LEVEL. Includes and code in the isr.c file
main(){
Timer_1_Start()
isr_Timer_Start()
AMux_1_Start()
CyGlobalIntEnable
....
Code compile and programs but isr routine never gets called. What am I missing?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I cannot see your interrupt handler. Can you post your complete project, so that we all can have a look at all of your settings? To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.
and better set your isr from "level" to "rising edge".
When you get the handler called, do not forget to clear the interrupt in your timer by reading the status.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I ended up using an existing timer example and porting my code and design to it. Still not sure why my original design did not work with interrupts. I did everything from Cypress examples and documentation.
Thks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Could you please create the tech support case in cypress.com website and attach the complete project, so it will help us to debug the project?
Thanks
Ramesh B