Tool/software: Code Composer Studio
Hi I am using c2000 piccolo launchpad , I have to receive 35 bytes of data through Rx pin and do some manipulation on it . How can i use interrupt to get such huge data.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: Code Composer Studio
Hi I am using c2000 piccolo launchpad , I have to receive 35 bytes of data through Rx pin and do some manipulation on it . How can i use interrupt to get such huge data.
Indrajit,
you should look at the controlSuite examples. Try SCI_echoBack (this is very close to what you want to do), scia_loopback, and scia_loopback_interrupts. They will show how to setup the SCI module as well as the FIFOs. Most of the SCI examples use "internal loopback" mode, you will need to disable this bit before communicating with an external device.
You should start with an example and change it to suit your use. If you are receiving data quickly I would suggest you use the FIFO enhancements rather than polling the SCI RX register.
Finally, to actually answer your question you will need to define a "start of block" or "end of block" frame or frames, UART is very simple and doesn't do this for you. If you are worried about your "start of block" frame looking like a data frame, you could a series of frames that you would never expect to occur in your data.
If you need help using the SCI module, look at the SCI Reference Guide.
Hope it helps,
Cody
Indrajit,
please refrain from making duplicate posts, if you have more information to add please add a reply to the same thread.
https://e2e.ti.com/support/microcontrollers/c2000/f/171/t/586336
https://e2e.ti.com/support/microcontrollers/c2000/f/171/t/586329
Regards,
Cody
Sorry for making multiples post.
My real problem is I am using idle line mode for communication, so to receive data first it checks for idle period which is 10 bit but i am communicating with bq76pl455 this ic send only data not that idle period because of that RXRDY flag is not set and i am unable to read data . How to read such device data without idle period.
And also how to to define a "start of block" or "end of block" frame , I am very new to multiprocessor mode communication , Please help me . Thanks,
Indrajit,
Sorry for the delayed response, are you still having this issue? Here is a post that describes how to use the Start and End of block frames.
Regards,
Cody