Interrupt from comparator - S/W guidelines.

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hello!

How to generate an interrupt from comparator's output without using any DigBuf module? Can I get two interrupts using the same transition before & after routing to a DigBuf ? I read related stuff on cypress documentation but wasn't able to figure out anything conclusive.

I did include pragma interrupt_handler in the beginning. I tried incorporating ljmp  _Comp1 (taking Comp1 as the name) in boot.tpl file & then to begin with, in my ISR, which I'm coding in C, I tried to change an LED's status everytime an interrupt occurs but couldn't succeed. Tell me the correct sequence and/or example code for the same. 

Thanks a lot.

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

I tested --- it works fine.

   

There is a file generated named COMP_INT.asm where the modifications have to be made

   

Attached is a working project. External connection is needed from Port0_0 to Port0_1, interrupt occurs once a second.

   

 

   

Bob

View solution in original post

0 Likes
17 Replies