Shop OBEX P1 Docs P2 Docs Learn Events
unfun with Hyperterminal — Parallax Forums

unfun with Hyperterminal

MabMab Posts: 12
edited 2008-08-21 15:11 in BASIC Stamp
·
·
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, [noparse][[/noparse]$12, $16, $C]···········; setup LCD
PAUSE 1000
SEROUT 0, 84, [noparse][[/noparse]"A"]······················· ; send an A to the LCD but in HyperTerminal I get ;:‑_ (so _=A)?

DEBUG "A", CR······························· ; A on debug
SEROUT 16, 84, [noparse][[/noparse]"A"]······················ ; A on debug

·
Port settings
9600
8
None
1
None
·
What am I missing I think it most be in HyperTerminal

·

Comments

  • PJAllenPJAllen Banned Posts: 5,065
    edited 2008-08-21 13:44
    If you're doing a direct connect to the PC (via a 22K resistor) then try the inverted baudmode.
  • MabMab Posts: 12
    edited 2008-08-21 13:55
    Inverted baudmode did it thanks

    with the debug terminal both

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

    will both work. why?
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2008-08-21 15:11
    When you use "pin 16", the compiler ignores the "invert" bit.

    -Phil

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    'Still some PropSTICK Kit bare PCBs left!
Sign In or Register to comment.