cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1 MCU

AlVa_264671
New Contributor II

Hi everyone !

   

I cannot get working the CRC  component.

   

I have a workspace with three project in there.

   

One project is CRC only.

   

The other two ones are Infrared  Emitter and Receiver, each one with its CRC component.

   

The setting for the three CRC is a same and I am getting three different CRC values when I am shifting serially the same 16 bit word

   

( I repeat with the same CRC component setting).

   

The word shifting is done similar to the CRC example, with Control Registers ( Enable, Data, but clock is a clock component.)

   

Each CRC  has  12 MHZ clock component attached.

   

My be I am wrong with something.

   

 

   

Thank you for any help.

0 Likes
5 Replies
JoMe_264151
Expert II

I do not know who spread the rumor that computers are deterministic. Can you please post your complete random number generator project 😉 , so that we all can have a look at all of your settings. To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.

   

 

   

Bob

0 Likes
AlVa_264671
New Contributor II

Hi Bob

   

Sorry for the delay

   

Please find attached project

   

I would like to understand why the component give me two different CRC  in alternates cycles.

   

May be it is necessary other couple of eyes or I am missing something

   

Thank you.

0 Likes
JoMe_264151
Expert II

Well, you did build a random number generator! The input clock into the CRC samples at every rising edge the data and is running completely independent from your program which sets/clears the incoming data. Even after reset by control register is performed during the CyDelay()s the CRC is still collecting data.

   

That's a Randomotron circuit!

   

 

   

Bob

0 Likes
AlVa_264671
New Contributor II

Hi Bob

   

Thank you, I will fix the issue.

   

Regards,

0 Likes
JoMe_264151
Expert II

You are always welcome!

   

 

   

Bob

0 Likes