You are here

How to Place an interrupt on the comparator? | Cypress Semiconductor

How to Place an interrupt on the comparator?

Summary: 2 Replies, Latest post by maknight on 12 Sep 2016 03:24 AM PDT
Verified Answers: 1
Last post
Log in to post new comments.
maknight's picture
User
220 posts

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

user_242978793's picture
User
1457 posts

"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.

maknight's picture
User
220 posts

Thank you bobgoar  for your reply!

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

 

Log in to post new comments.