- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In the Description it says the Comperator should be generating a Puls if V+ > V-. But when Measured, the Compoutpin is always at Highlevel.
(Signals for testing were applyed correctly, Comperator was started)
What is wrong?
Interrupt Works perfectly fine but Comp Output doesnt.
Solved! Go to Solution.
- Labels:
-
PSoC 4 Architecture
- Tags:
- comparator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It looks like you forgot to clear the interrupt in your LPComp interrupt handler?
Try adding this:
LPComp_ClearInterrupt(LPComp_INTR);
And you should lock the pins to IO pins that you know will not be set to invalid values and you can read/measure on your own.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can it be you are using a Cypress kit and the pin is already in use on your board?
Have a look into your kit schematics. When still stuck, post a complete workspace archive.
Bob
- 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
You did not follow the instructions I gave you. Please use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.
Bob
- 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
The fitter assigned pins from different LPComps. See to define the pins to use and have them locked in pin-view. See attached corrected project.
And: You are not using a CY8CKIT-001 which is a PSoC5 kit. Probably you are using a PSoC4 -042 pioneer kit. There P0_2 and P0_3 are already in use for the on-board LEDs
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
1. after Locking them it still does not work (constant Highlevel)
2. YES i am using a CY8CKIT-001 with a PSoC4 modul. (you can also put a PSoC5 , PSoC3 or even a PSoC1 on it.
but i am using it with the PSoC4 Modul (CY8C4245AXI-483)
3. I took a lock at the Analog Setup and i have noticed that there is no Output on the Analog Setup...
thx for the Help so far but i Need more
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It looks like you forgot to clear the interrupt in your LPComp interrupt handler?
Try adding this:
LPComp_ClearInterrupt(LPComp_INTR);
And you should lock the pins to IO pins that you know will not be set to invalid values and you can read/measure on your own.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hey I am just chacking it throug but it is looking good so far.
i am getting something on the Output now.
Thank you very much for all of your help