MAX232 RS-232 communication to hyperterminal


hi,

i started experimenting today interfacing arduino computers com-port using max232 chip.

my code comes out of tutorial:

arduinosoftwarers232
(i'm not able include hyperlink first message on forum -the tutorial can found on website)

hardware set in tutorial, chip different , i'm using pin 7 , 10 tx/rx

i open hyperterminal , set 9600 baud, 8 databits, no parity, 1 stop bit, described in tutorial. when start typing in character, return me character, not right one.

by comparing binary values in ascii table able tell decimal difference between typed , returned character 128. figured somehow there problem 8th bit. when set hyperterminal settings to: "9600, 7databits, no parity, 1 stop bit" problem seems solved. when type in "a", character "a" returns.

also, debugging start message "hi", appears "45" , non-displayable character. basically, problems have:

-why "hi" doesn't display?
-why have set hyperterminal 7-databits, while should 8-bits according tutorial?
-why characters typed return type them? supposed capitalized (that's purpose of program).

any appreciated!
thanks,
jens

it looks there bits shifted,
h = 0110 1000
4 = 0011 0100 / / bits shifter 1 pos

i =  0110 1001
5 = 0110 0101  // bits shifted except last

then again, timing problem. please try terminal program putty or teraterm see if have similar problems,


please post second message code used. (use # button [ code] tags)

quote
only chip different

did check datasheet of alternative chip?

quote
they supposed capitalized

capitalizing characters in ascii done subtracting 32 or 0x20 if done on wrong bit explain every character 128 big ...


Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > MAX232 RS-232 communication to hyperterminal


arduino

Comments

Popular posts from this blog

CAN'T INSTALL MAMBELFISH 1.5 FROM DIRECTORY - Joomla! Forum - community, help and support

error: expected initializer before 'void'

CPU load monitoring using GPIO and leds - Raspberry Pi Forums