- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I have implemented correctly a PRS_17 using firmware routine in PSoC5 LP.
My system is properly working with the following step:
* I read a 17 bit pseudo sequence (as a bar code) and I decode it with a 17 bit polynomial;
* I set in the firmware the start seed using PRS_17_Seed(1);
* With a for cycle (start from 0 to 131072), I run the PRS_17_Read() function + PRS_17_Step();
* When my decode number match the PRS_17_Read() number, I break the for cycle;
* The cycle counter is my displacement of the absolute code.
The above system i s properly working.
My problem is that the "for cycle" can takes up to 2^17 iterations to terminate and in my case it means about 150ms.
I want to reduce this time, so I was thinking to replace firmware routine with hardware implementation.
First, I annotated the initial sequence returned from the PRS_17_Read() function, start with seed = 1 (see attached routine).
Second, I turned PRS_17 component as "clocked". On each clock the PRS_17 increment by 1 (as PRS_17_Step() function).
The problem is that the output stream is not the same of the annotate sequence and I can't understand why.
I attached a simplified project.
Regards,
Solved! Go to Solution.
- Labels:
-
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
What I need to know is how to get the same value of the API PRS_Read() on the stream output.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nobody help me?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ok, no more help needed, I solved the problem by myself!
Regards