Part Number: MSP430G2553
Other Parts Discussed in Thread: MSP-FET
Tool/software: Code Composer Studio
Hi,
i´m playing around with the example codes atm and try to learn I2C.
I´m using the example codes "Master TX multiple bytes to MSP430 Slave" and "Slave RX multiple bytes from MSP430 Master" on my MSP430 Launchpads.
I was wondering if it´s possible to write a code without the I2C State Machine and go step by step to see what happens on the bus with an oscilloscope.
Is there maybe a code out there to see how that would work? (in C)
Maybe with these defines:
#define I2C_SLC_INIT P1OUT&=~BIT6
#define I2C_SLC_HI P1DIR&=~BIT6
#define I2C_SLC_LOW P1DIR|=BIT6
#define I2C_SDA_INIT P1OUT&=~BIT7
#define I2C_SDA_HI P1DIR&=~BIT7
#define I2C_SDA_LOW P1DIR|=BIT7
Thanks in advance and best regards