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

Using MSP430 as a relay between a function generator and MATLAB

$
0
0

Hello, 

 

Problem Statement: I am trying to read in a square waveform from a function generator using the MSP430G2553 and whenever there is a falling edge the chip has to send out a ping to my laptop (I am using serial communication here for lack of knowledge on a better way). I then have to use MATLAB to read this "ping" coming from the MSP430G2553 and trigger another device.

 

By reviewing some basics on serial communication and examples on the Energia documentation, I am able to generate a ping solely from the MSP430 chip (without any input from the function generator) and cause MATLAB to read it. However I am a little lost on two parts of the problem.

 

1) How can I make the MSP430 accept the waveform that is continuously generated from the function generator (which is a TTL) and then output the necessary to the laptop. In other words, how can I interface the MSP430 launchpad to the function generator so that I can have a continuous input from the generator into the launchpad and then send the "ping" for every falling edge that is detected?

 

I have zero experience in serial communication and the very little I learnt from reading hasn't quite helped.

 

2) How can I make MATLAB continously look for the "ping" from the MSP430 chip. (irrelevant to this forum may be? I can work on figuring this out myself.)

 

 Any help will be greatly appreciated.


Viewing all articles
Browse latest Browse all 2077

Trending Articles