MikroC – CRC библиотека

MikroC – CRC LIBRARY

This post is also available in: Türkçe Azerbaycan Türkcesi Русский

  • You can use the CRC library that I wrote at MicroC for data communication.
  • The CRC “Circular Residual Capacity” is a world-class control system that checks whether data is transmitted correctly.
  • CRC is a tool that must be used in all standard data communication from SD card to HDD.
  • In the library there are CRC 3-CRC4-CRC 5-CRC6-CRC7-CRC8-CRC10-CRC11-CRC12-CRC15-CRC16-CRC24-CRC30.
  • Sorularınızı yorum olarak sorabilirsiniz !

Generally Accepted CRC Polynomials

  • CRC3->1011
  • CRC4->10011
  • CRC5->101001 / 110101 / 100101
  • CRC6->1000010
  • CRC7->10001001
  • CRC8->100000111 / 100110001 / 111010101 / 100011101 / 110011011
  • CRC10->11000110011
  • CRC11->101110000101
  • CRC12->1100000001111
  • CRC15->1100010110011001
  • CRC16->11000000000000101 / 10001000000100001 / 11000101110110111 / 10000010110001001 / 10000010110001001
  • CRC24->1010111010110110111001011 / 1100001100100110011111011
  • CRC30->1100000001100001011100111000111

Kodlar

EXAMPLE OF CRC USING

unsigned char data2[5];//Create the appropriate array for CRC

data2[0]=0b10111001;//data is loaded to sets
data2[1]=0b10111001;
data2[2]=0b10111001;
data2[3]=0b10001001;
data2[4]=0b10111001;

CRC7(data2,5,0b10001001,0);
//Crc function is called and parameters are entered
//If 0 is entered in the code variable (parameter 4), crc accounts
//Checks the correctness of the given variable if the crc code is entered in the code variable
If the result is zero, the data is transmitted correctly

Library and Resource Files



 


 

About ERCAN123 KOÇLAR

Çalışmalarım çocukken başladı kolonyalı kağıtları yakmak, ilaçları birbirine katmak gibi değişik deneylerim vardı. Kimya kitabında elektroliz ile suyun hidrojen ve oksijene ayrıldığı ve hidrojenin yandığını yazıyordu, o zamanlarda aklım almıyordu sudan nasıl yanan….Devamını okumak için tıklayınız ;)