Kayıtlar

MSP communication etiketine sahip yayınlar gösteriliyor

Communication between two MSP430 with using UART (MSP430 Application C ++)

Hello guys, This tutorial shows you how to communicate between two MSPs. Firstly,  one of them must be a master controller. And the other remaining one must be slaves. Basically , when you enter some input from master contoller, A signal comes from master, goes  into slave's input. This tutorial is show us when you press button from master controller, other controller led will light up.  Embed the codes into microcontroller separately. Play the code as you wish. Mail me if there are any problems with code. Mail: g.haddeler@gmail.com You all succeed! ------------------------- MASTER MSP430 CODES #include "msp430g2553.h" // When you press buton , data which is 0x01 , sends it to slave msp via UART . As long as the data coming from master msp is equal to '2' , the master msp's led lights up. // function prototypes void UARTInit(void); void main(void){ WDTCTL = WDTPW + WDTHOLD;// watchdog timer OFF //DCO clock freq settings BCSCTL1...

Calculator with using MSP430G2553 and UB232R module .

Resim
Calculator with using MSP430G2553 and UB232R              Purpose : Creating Basic calculator(*,/,-,+) by using MSP430 . This will be done by processing the numbers entered from the computer into MSP and printing the result on the computer screen. Used: 1 unit MSP430G2553 1 unit UB232R (uart modülü) 4  jumper cables A  computer program called Putty (You can connect your computer with Putty via terminal via various commands ) CIRCUIT DIAGRAM In order to run the program, first you have to send the codes to MSP430, so plug the USB cable into MSP430 and embed the codes with the IAR program. Then remove the usb cable from msp and plug it into the UART module( UB232R) . Right click on the computer icon and press Manage. In the "Device Manager" section on the left you can find the Port number of the USB connected to the UART module in the...