PDA

View Full Version : unfun with Hyperterminal



Mab
08-21-2008, 07:48 PM
и
и
I am trying to use serout on pin 0 it my PC. I made the cable that parallax has in the Serout instructions. I have an LCD on pin 0 now too.
и
Code
и
' {$STAMP BS2pe}
' {$PBASIC 2.5}
HIGH 0
PAUSE 1000ииииииииииииииииииииииииииииииииии ; start up LCD
SEROUT 0, 84, [$12, $16, $C]иииииииииии; setup LCD
PAUSE 1000
SEROUT 0, 84, ["A"]иииииииииииииииииииииии ; send an A to the LCD but in HyperTerminal I get ;:‑_ (so _=A)?
DEBUG "A", CRиииииииииииииииииииииииииииииии ; A on debug
SEROUT 16, 84, ["A"]ииииииииииииииииииииии ; A on debug
и
Port settings
9600
8
None
1
None
и
What am I missing I think it most be in HyperTerminal

и

PJ Allen
08-21-2008, 08:44 PM
If you're doing a direct connect to the PC (via a 22K resistor) then try the inverted baudmode.

Mab
08-21-2008, 08:55 PM
Inverted baudmode did it thanks

with the debug terminal both

serout 16, 84 ["A"]
serout 16, 16468 ["A"]

will both work. why?

Phil Pilgrim (PhiPi)
08-21-2008, 10:11 PM
When you use "pin 16", the compiler ignores the "invert" bit.

-Phil

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
'Still some PropSTICK Kit bare PCBs (http://forums.parallax.com/showthread.php?p=729096) left!