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.

C2000WARE: HC05 Bluetooth

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...)

  • Michael,

    If you already understand the echoback example, you are in a good place. try out the sci_loopback_interrupts example in C2000Ware. This is basically the same thing just sending and receiving data back from the transmit and storing it in an array. There really is not much to it.

    Please read through the TRM chapter for your device as well. it explains the FIFO and how that is accessed.

    -Mark