Quantcast
Channel: MSP430 Technical Forums
Viewing all articles
Browse latest Browse all 2077

Transmitting Serial data (ASCII) received from the computer to external LED circuit

$
0
0

Hi there!

I am not very much experienced in MSP430 platform. I am kind of stuck in a problem. Let me describe my project goal first. What I want to do is:

1) I will input a letter (suppose "K") via serial monitor to my MSP430G2553,

2) Upon receiving the letter, the launchpad will vary the voltage level a GPIO PIN (let's assume P1.4) based on the input, which is connected to an LED,

3) As the LED blinks based on the input bit pattern (K, ASCII value = 75, Binary equivalent = 01001011), one light dependent resistor will read this variation, which is connected to another Launchpad, and stores it a buffer

4) The launchpad will read this buffer value, and print it to serial monitor

So, this is essentially a chat module between two launchpad, using serial monitor and some electronic stuff.

My Problem:

(I am using Energia for coding) I can read the character from Energia Serial Monitor, however, I don't know

1. How to transmit the received BIT pattern through a GPIO pin, towards a external LED. I am using the Hardware UART for communication with computer- Is there any other way, I can send data serially over regular GPIO PINs?


Please let me know, if my question requires further clarification. I am working on it... if I can solve it, or have any update, I am gonna post it here. I'd really appreciate your help. Thank you in advance!


Viewing all articles
Browse latest Browse all 2077

Trending Articles