It is currently 19 Oct 2017 01:36

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: CRC LIBRARY
PostPosted: 17 Jun 2017 15:04 
Offline

Joined: 17 Jun 2017 14:56
Posts: 1
hi
Please i installed then crc library for pic18 compiler !
So when i call the function with varibles it works !
what i need is the field DATA+CRC concatenated
How can i get that?


Attachments:
New Bitmap Image.png
New Bitmap Image.png [ 150.37 KiB | Viewed 1730 times ]
Top
 Profile  
 
 Post subject: Re: CRC LIBRARY
PostPosted: 19 Jun 2017 17:11 
Offline
mikroElektronika team
User avatar

Joined: 15 Jan 2016 12:50
Posts: 1444
Hi,

Welcome to the MikroE forum.

If you are referring on PIC18 - CRC LIBRARY from Libstock, please contact the Author of that library.

Generally, you can try to define input array with one more member, for example:

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

void main() {
    data2[0]=0b10111001;//data is loaded to sets
    data2[1]=0b10111001;
    data2[2]=0b10111001;
    data2[3]=0b10001001;
    data2[4]=0b10111001;
    crcResult = CRC7(data2,5,0b10001001,0);
    data2[5] = crcResult;
}



Kind regards,
Lana


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: