Part Number: C2000WARE
Hey All,
I am working on a project that will read incoming data from an HC05 using the C2000. The data comes in several bytes at a time, so I need to receive it and then be able to incrementally place it in an array of some sort. I already know how the SCI works; I just need help on the storing the data in an array part. What I mean by that is, how do I step through the buffer and assign each piece of data to a variable? My plan was to use an example such as the SCI echoback because I already know that it can receive the data I am sending. I know that there is a default buffer in the SCI and I know how to turn it on. How do I step through it, read the data that is in the buffer, and then place that data in an array?
Edit: I am looking mostly for a conceptual explanation here (i.e. fist you need to initialize the buffer, then to access it you just...)