CRC 2.4  component

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
AlVa_264671
Level 5
Level 5
25 sign-ins First like given First like received

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
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

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
lock attach
Attachments are accessible only for community members.
AlVa_264671
Level 5
Level 5
25 sign-ins First like given First like received

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
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

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
Level 5
Level 5
25 sign-ins First like given First like received

Hi Bob

   

Thank you, I will fix the issue.

   

Regards,

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

You are always welcome!

   

 

   

Bob

0 Likes