Shop OBEX P1 Docs P2 Docs Learn Events
BS2pe Sending files through serial port. — Parallax Forums

BS2pe Sending files through serial port.

yukiyuki Posts: 2
edited 2007-08-22 01:12 in BASIC Stamp
What kind of terminal program you guys suggest that I use to send a file w/ hexadecimal characters so that my basic stamp chip can receive and process the bytes.

I tried using hyperterminal in windows but it doesn't seem to get any response from my microcontroller.

DO
SERIN 16, 396, 10, NextPin, [noparse][[/noparse]HEX2 serialData]
STORE 15 'switch to slot 15
DEBUG "in the serial data loop"
DEBUG ?serialData
OUT15 = 1
WRITE eIndex, serialData 'write to eeprom
eIndex = eIndex + 1
LOOP

this is the code I have for reading in serial input. Is it the code I have wrong or should i use some other terminal program? THanks in advance for helping

Comments

  • TechnoRobboTechnoRobbo Posts: 323
    edited 2007-08-22 01:12
    try "rem"ing out the Debug statements - Debug is pin16 at 9600 baud - your serin is at 2400 baud. Also read the doc regarding the "WAIT" statement. You could also try using serout at 2400 baud (instead of debug) ·that way your in synch with your serin

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Have Fun


    TR

    Post Edited (TechnoRobbo) : 8/22/2007 1:17:08 AM GMT
Sign In or Register to comment.