NEW: Learning electronics? Ask your questions on the new Electronics Questions & Answers site hosted by CircuitLab.
Microcontroller Programming » Trouble with uart
November 30, 2010 by gusr205 |
I used the simple program example to test printf_P and scanf_P via uart to my laptop.
|
---|---|
December 01, 2010 by exussum |
Hit enter, Its being types on the other side. There is a setting i think on Hyper Terminal to see whats being typed but im not 100% sure. Also you will probably need to have your code accept a string not a double. |
December 01, 2010 by exussum |
Solution: If the remote computer is not configured to echo user input, you can configure your computer to do so with the following steps:
|
December 01, 2010 by hevans (NerdKits Staff) |
Hi gusr205, Like exussm mentioned terminal programs are not always configured to echo the input you type into the keyboard to the screen. They however almost always send your keyboard input to out the serial port. Looking at your code it looks like you have your code set up to get input from the serial port, then echo that input back out to terminal. And that should work. It looks like your code is expecting a number. Is that what you are typing in the keyboard? Also remember that you need to press enter after you enter a number for the scanf function to read it in. Humberto |
Please log in to post a reply.
Did you know that you can impress a loved one with a digitally-controlled Valentine's Day Card with randomly twinkling LEDs? Learn more...
|