Question about Comparator Output.

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

cross mob
Anonymous
Not applicable

pastedImage_0.png

pastedImage_3.png

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.

0 Likes
1 Solution
Anonymous
Not applicable

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.

View solution in original post

8 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

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

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

Thx for your Answer but sadly it still does not work.

The kit that I am working on is the CY8CKIT-001

here is my Project it is a costomized exampleproject (LPComperator_PSoC4_Example)

0 Likes

You did not follow the instructions I gave you. Please use

Creator->File->Create Workspace Bundle (minimal)

and attach the resulting file.

Bob

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

sorry.

here you go

0 Likes

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

Anonymous
Not applicable

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

0 Likes
Anonymous
Not applicable

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.

Anonymous
Not applicable

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

0 Likes