- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Every one,
I am little lost, please help me!
I have two flip flops connected togather (see attachement). I want to take the output (q- terminal) of these two flip flops and perform some mathematical operations e.g multiplication, inside software (by writing C-code). The problem is, how i can store or take these output in side creator?
I attached a pic of my thing.
Looking forward for your reply!
Regards
maknight
Solved! Go to Solution.
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Just route the outputs to a status register. You can use this register then to read the values in your code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Just route the outputs to a status register. You can use this register then to read the values in your code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Hli,
Thankyou for your reply.
So this means if i want to store out_put_1 into "unit8 output " variable. Then i have to do this by calling it from status register?
Can you share an example code for it?
Looking forward for your reply!
Regards
maknight
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I would route both DFF-output to the (2-bit) status register. The just use StatusReg_Read() to get the value.
I suggest also to read the component data sheet for the Status Register.
- 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
Code-wise this looks fine.