![]() Setting values is acting like calling a function. However, when I see something in a TI example like: UCB0CTL0 = UCMST + UCMODE_3 + UCSYNC // I2C Master, synchronous mode The above, when called would set pin 14 as an output pin. I'm used to calling a function like: SetPinMode(14,OUTPUT) I'm just having trouble with the basic concepts of how things work when programming controllers in CCS. I'm not asking somebody to write my code. If somebody could point me to a good example of the above 3 operations that will work in Code Composer Studio 7.x, I'd be very grateful. I have been programming in Windows for 20 years, but the low level controller programming is just one huge paradigm shift for me. I need to read MULTIPLE bytes from a single I2C slave.I need to do the above on 2 different I2C slaves.Write a byte of data to a specific register.I need to figure out how to do the following using Code Composer Studio 7x On an MSP430G2553 with I2C: All I can find are code snippets out of context or single byte examples. I've been scouring the forums for a complete I2C implementation for MSP430G2553 using Code Composer Studio.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |