How to Place an interrupt on the comparator?

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

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Hello Everyone,

   

I want to do the following:

   

1. I want to generate an interrupt on the rising edge of the comparator output, in order to set an external DAC.

   

2. I want to generate an interrupt on the falling edge of the comparator output, in order to do sampling .

   

I thought to place a pin and put interrupt on it.

   

I attached the project zip file. Can you please have a look on sheet A (Ch_A) and give me your suggestions.

   

 

   

Looking forward to your reply!

   

Regards

   

Awais

0 Likes
1 Solution
rola_264706
Level 8
Level 8
50 likes received 25 likes received 10 likes received

"You could just add an interrupt component to the output pin. Or replace the component with a Scanning Comparator component and set it for one channel. It has an interrupt pin.

View solution in original post

0 Likes
2 Replies
rola_264706
Level 8
Level 8
50 likes received 25 likes received 10 likes received

"You could just add an interrupt component to the output pin. Or replace the component with a Scanning Comparator component and set it for one channel. It has an interrupt pin.

0 Likes
Anonymous
Not applicable

Thank you bobgoar  for your reply!

   

By placing a direct interrupt, how i can fire it on the falling edge?

0 Likes