- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Everyone,
I want to fire an interrupt on the falling edge of the comparator. I directly attached an interrupt source to a comparator(see attachment), but it only has a rising edge option.
I don't really understand the option "LEVEL".
Looking forward for your help!
Regards
Awais
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Set the polarity of the comparator to "inverted".
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you, Bob, for your reply.
Sorry, One information is missing : I want to generate the interrupt on the rising and falling edge of the comparator.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Use an inverter and two isrs. Does that work?
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I haven't tested that.
But I think it will not work! Because according to datasheet:
Inverting: Output goes high when the positive input is less than the negative input.
Non-Inverting (default): Output goes high when positive input is greater than negative input.
Also the question is, how the ISR will know when the falling edge of the signal is there? because if we see in the properties of the isr, it has three options, derived, rising and level.
I have no idea about "level".
Awais
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Are you using comparator v 1.20? If not, update!!!
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No, Its 2.0
Awais
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Update!!!! Are you using Creator 3.3 CP3 (Creator -> Help -> About) If not, update first Creator to latest!!!
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I updated all components. But I think v 2.0 is the latest one.
Yes, I am Using PSoC Creator 3.3 SP2 (3.3.0.9604).
Awais
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry, my fault. I was on PSoC4 which has a different comparator. So you need to connect two isr components to the comparator output and the inverted comparator output using a NOT gate.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ahan!
Ok, I will try this 🙂
Thankyou Bob