Hello my friends,
I'm fairly new to MSP programming with CCS. I have already done somethings, like use the ADC or serial communication with the computer successfully, but now I'm having some trouble, and need some help.
I have a custom IC which I projected, and want to control it with MSP. My trouble is with the serial communication, that works this way:
1) When ENABLE (from MSP to the IC) changes from 0 to 1, it starts to shift serially its internal shift register data at every CLK cycle. CLK is also controlled by the MSP and sent to the IC (control flow: MSP-->IC).
2) MSP must receive the serial data from the IC (serial data flow: IC-->MSP). The serial data has the following profile:
START/DATA, where START = 2 bits; DATA = 9 bits. START means the communication began, and is always a binary [10]. As DATA has 9 bits I'm having trouble to make it work. There is no STOP bit sent from the IC.
3) When the IC sends NO DATA, the output line is at 0.
For example: ..00000000 10 011111100 000000000...
..no data START DATA no data..
The MSP must read 252 (= 011111100). I've been researching but didn't find a way so it can work. Please, could you help me with ideas of how to read this 9 bits with the START bits, and/or code examples in how to configure the MSP to do this task!!?
Many many thanks in advance!!
Pablo Belmonte