When using unusual hardware, always show us the data sheets and schematic
For the original project started in message #1, you never told us what hardware you were using. bivhitscar in message #9 added a link to get us close for some kind of TI hardware. You still never tolds what it was. In message #18, you generally describe it but sitll do not specify it (especially if it is a development kit).
In message #25, quzah tells you what little experiments you need to do before you take on the main task. With two people trying to help you, you keep posting basically the same code. Finally in message #38, you indicate that you tried an experimental code, but do not show us the "cut and paste" version of what you tried and what errors you got or what behavior you got.
So in message #51, you change projects or subprojects. Again, you are using unusual hardware but never mention it until you finally respond in #75 to ComputerTater's frustrated questions from #73. In message #56, #58, #60, and possibly others, cyberfish tells you to "read the datasheet". Yes, that really is that important. But you never a) show us where to look for the data sheet nor b) tell us what your hardware is nor c) tell us that you do not know how to look for a data sheet nor d) tell us that you do not know what a data sheet is.
So message #75 is the first message where you mention your unusual development kit hardware. But you still leave it to us volunteers to find the information. Well here it is. Message #84 is a good example of what confusion you left because you never sent us a link to the technical documentation for your unusual hardware.
So finally my questions for you:
1) Have you read the user's guide or the data sheets for this hardware?
2) Do you have specific questions about that information?
3) If so, what are they?
I am not going to look at them until you have a specific question, because I have my own work to do.
4) Is the code that cyberfish found, the code you copied?
5) Or did you and that guy copy code from the technical documentation for this hardware?
6) If so, where is that sample software in the technical documentation?
7) What parts of it do not make sense to you? (possibly line by line)
That is enough for now.