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

Energia and serial.print

$
0
0

Greeings all!

 

I am using the Stellaris launchpad, but I think this applies to ant energia launchpad:

 

As a trial/test, I am using energia to have the launchpad send the number 1 on serial1 (using the hardware uart, not the USB uart):

 

Serial1.print(1);

 

Using my oscilloscope and a terminal, I see that it is actually sending 49, which is ascii (it assumes that I want to send an ASCII "1", so it converts my ASCII "1" into decimal 49, which is ASCII for 1). 

 

--> Is there a Serial/UART command, to send the "raw" data?  For instance, if I wanted to send the number 122 over the UART (and not have it interpreted as ASCII "1", "2", "2"), how would I do that?

 

-RT

 

 


Viewing all articles
Browse latest Browse all 2077

Trending Articles