- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have to compare a Digital output from an ADC with a Digital constant in a Digital comparator. How can i transfer my Digital output from ADC to a Digital comparator?
Solved! Go to Solution.
- Labels:
-
PSOC5 LP MCU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
AndreaLB,
One possibility is to use a custom ADC_SAR modified with digital bus output. Attached below is a project showing this approach.
Attached are project file and ADC_SAR_ex library. Please find library installation instructions below.
/odissey1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the answer.
In this case, can i directly take my voltage from the pin and compare it with my max voltage, without using an ADC and a DAC?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When your max voltage is an analog input you can compare it to the voltage using the analog comparator. Take care of oscillations at the compare-point.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you. I really appreciate, you were helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
AndreaLB,
One possibility is to use a custom ADC_SAR modified with digital bus output. Attached below is a project showing this approach.
Attached are project file and ADC_SAR_ex library. Please find library installation instructions below.
/odissey1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you. You were helpful