cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1 MCU

MaTr_1730276
New Contributor II

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,

0 Likes
Reply
1 Solution
MaTr_1730276
New Contributor II

Ok, no more help needed, I solved the problem by myself!

Regards

View solution in original post

0 Likes
Reply
3 Replies
MaTr_1730276
New Contributor II

What I need to know is how to get the same value of the API  PRS_Read()  on the stream output.

0 Likes
Reply
MaTr_1730276
New Contributor II

Nobody help me?

0 Likes
Reply
MaTr_1730276
New Contributor II

Ok, no more help needed, I solved the problem by myself!

Regards

View solution in original post

0 Likes
Reply