give input to AND programatically in PSOC Creator.

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

cross mob
anko_3968661
Level 1
Level 1
First like given

i want to give variable input to AND gate in cysch so that i can change that input according to my conditions programatically. how to do that?

for example:

i am using counter.

if compare gives high  output then and gate should take zero as a input else AND should take one as a input.

Best Regards

0 Likes
1 Solution

Perhaps you can use the Control Register as such a variable.
and.png

View solution in original post

5 Replies
lock attach
Attachments are accessible only for community members.
Ekta_N
Moderator
Moderator
Moderator
750 replies posted First like given 250 solutions authored

Hello Anuja,

I have created a project in which input to AND gate is output of a counter. You can have a look at it. In this case the input to AND gate is variable.

Best Regards

Ekta

0 Likes

Hello Ekta,

Thankyou for your reply. I didn't find any project file to see the example.

I dont want to give the output of counter directly to AND gate.

I want to add a condition if Compare output of counter is low then AND i/p must be High.and if comp goes high(Here Comp goes high when counter reaches to zero when we are down counting) then one of AND input should get zero.  and counter stops.

I need a variable which i can add as a input to AND gate. so by using API i can change its value.

Regards,

Anuja

0 Likes

Perhaps you can use the Control Register as such a variable.
and.png

Hello Evgeniy Pavlov,

Thankyou so much for your reply. It helped me assigning a variable . Thankyou again.

0 Likes

Anuj,

You may want to credit Evgenij with a "Correct Answer".  Doing this will also close the discussion with a resolution.

Len

Len
"Engineering is an Art. The Art of Compromise."
0 Likes