Shop OBEX P1 Docs P2 Docs Learn Events
Pc -> data -> basic stamp hex problem — Parallax Forums

Pc -> data -> basic stamp hex problem

VICTOR MEDRANOVICTOR MEDRANO Posts: 2
edited 2009-04-16 18:38 in BASIC Stamp
I HAVE A STANGRE PROBLEM COMUNICATING MY VISUAL BASIC NET APPLICATION
TO BASIC STAMP· B2SX. WHEN I SEND DATA THE CHIP RECEPIVE LIKE HEX NUMBERS.

SEE PAR OF CODE

DATA· VAR Byte(1)
timer_1 var byte
SERIN 8\9,16780,1000,MAIN,[noparse][[/noparse]STR data\3]
·
·
IF (serial(0)="A") THEN·
······timer_1 = serial(1) & serial(2)

ENDIF

what i need is to send A3000 decimal not hex.

regards,


victor

Comments

  • UnsoundcodeUnsoundcode Posts: 1,532
    edited 2009-04-16 18:38
    Hi Victor, what baud rate are you trying to use , it looks as though the value might be wrong . Also using P8 it's possible you should run in true mode not inverted , can you give a few more details on your serial setup.

    Jeff T.

    Edit: there are a few other problems I see too , lets just verify the serial side of things first.


    Post Edited (Unsoundcode) : 4/16/2009 6:51:55 PM GMT
Sign In or Register to comment.