How to configure MSP430 Master amp Slaves for UART and I2C
>> YOUR LINK HERE: ___ http://youtube.com/watch?v=pzsGnZ8YYlg
Save yourself time and frustration by removing the jumper connecting P1.6 to the LED on every MSP430. It's impossible to implement I2C without this step! Also, to use UART on the MSP430 rotate both jumpers connecting TX and RX so that they're parallel with the writing on the LaunchPad board • Please excuse the crossed wires! We color-coordinated the lines to make this easier to see and wire. • .This video shows how to configure UART and I2C with a Master MSP430 and several MSP430 Slaves (MSP430G2553). • Our Master communicates with multiple Slaves over I2C. Additionally, the Master communicates over UART with the 'main' CPU. To remove interference between UART and other USB communication, we used the CP2102 bridge. Lastly, for our implementation we used 2 computers: the main CPU and the programming computer. • There are 2 lines for I2C communication: the master clock signal (P1.7) and data line (P1.6). Both of these lines are pulled high (VCC) with 10kOhm resistors. The MSP430s must share common ground and VCC. • When our master free-runs, we can see the clock signal and data signal using an oscilloscope. The clock signal is the blue and the data signal is yellow. Sorry about the confusion. The probes also must share ground with the MSP430s. Alternatively we connected one probe to the UART transmit line. • There are also 2 lines for UART comminucation, one to transmit (P1.2 TX) and one to receive (P1.2 RX). We connected these lines to the CP2102, a UART bridge to USB. • PuTTy allows us to handle UART communication between the main CPU and the master MSP430: • http://www.chiark.greenend.org.uk/~sg... • The CP2102 bridge separates UART from other USB communication. Find the CP2102 driver here: • http://www.silabs.com/products/mcu/pa... • This bridge is necessary because we program, debug and power the MSP430 over USB. • We used Code Composer Studio 5.4 on the programming computer: • http://processors.wiki.ti.com/index.p... • This is video 1 in a series on UART and I2C programming: • MSP430: C programming UART ISR Switchcase • • MSP430 Hardware Interrupt via UART: C... • MSP430: C programming UART ISR Characterwise: • • MSP430 Hardware Interrupt via UART: C...
#############################
