Sir i want to send 24 bit data using USART in PIC18F4520.. i m using hi-tech c compliler and Mplab. please sir suggest me how to send data and please give some code for it. i m attaching one file which contains data that i have to send.. please some one help me out...
You can send data of any length using USART. Send one character at a time. The data is in excel file. How will you read excel file from microcontroller?
actually the excel sheet provided is the frame format of different commands. How can I create this frames and save in the controller so that whenever a request is made the corresponding frame can reply
I don't have excel installed on my PC. Post the screenshot of the excel files. You will need to create a table but there is limitation depending upon memory of the controller.
Sir i want to send 24 bit data using USART in PIC18F4520.. i m using hi-tech c compliler and Mplab. please sir suggest me how to send data and please give some code for it. i m attaching one file which contains data that i have to send.. please some one help me out...
Post an example of the your different kind of frame. You need to send data 1 byte at a time. If you post an example of a complete frame then I will write a piece of code to send that frame. On the receiving side you have to collect and store the entire frame in a sting variable and check if data is valid. If data is valid then you can do further actions.
AA0105006655
here in this example
AA is the start byte
01 is the slave address
05 is the function code
00 is the data
66 is the crc &
55 is the stop byte
in response to this frame the data part will be filled with some data nd will responsed back