- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Labels:
-
PSoC 5 Device Programming
-
PSoC 5LP
- 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Perhaps you can use the Control Register as such a variable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Evgeniy Pavlov,
Thankyou so much for your reply. It helped me assigning a variable . Thankyou again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Anuj,
You may want to credit Evgenij with a "Correct Answer". Doing this will also close the discussion with a resolution.
Len
"Engineering is an Art. The Art of Compromise."