cancel
Showing results for 
Search instead for 
Did you mean: 

USART setup example

jgalea
Associate II
Posted on February 11, 2009 at 13:27

USART setup example

12 REPLIES 12
brunoalltest
Associate II
Posted on May 17, 2011 at 13:02

You´re sending 0x26 ( '&' in the ascii table)

If you´re not receiving a '&' in hyperterminal maybe your baudrate configuration is wrong(you need to set 9600 on hyperterminal).

Or maybe your ''#define HSE_Value'' on ''stm32f10x_conf.h'' is wrong.

jgalea
Associate II
Posted on May 17, 2011 at 13:02

Yes its correct. I need to use another program not the hyperterminal to receive the number as I write it in the code. Thanks for your help. Placed the code on the forum. Johann

brunoalltest
Associate II
Posted on May 17, 2011 at 13:02

You should try doing a code to send a buffer.

Then you should try to do your own printf()0 or at least your own puts()

(

http://embeddedgurus.net/stack-overflow/2009/02/effective-c-tips-1-using-vsprintf.html

).