Shop OBEX P1 Docs P2 Docs Learn Events
BSII not compactible with BSIISX?? — Parallax Forums

BSII not compactible with BSIISX??

ArchiverArchiver Posts: 46,084
edited 2000-04-10 12:50 in General Discussion
Hi all stampers,

I have a problem in reading the serial data from the computer COM port by using
the BSIISX!..
The serial data output from COM port was then input to the BSIISX pin P01 by
using the following program, it works very well and all the data were captured
when I using BSII but the wrong data were captured when I using BSIISX
instead!!!

''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
INPUT 1
Speed var byte(9)

get_signal:
SERIN 1, 16468, [noparse][[/noparse]str Speed\8]
DEBUG ? Speed(0)
DEBUG ? Speed(1)
DEBUG ? Speed(2)
DEBUG ? Speed(3)
DEBUG ? Speed(4)
DEBUG ? Speed(5)
DEBUG ? Speed(6)
DEBUG ? Speed(7)
DEBUG ? Speed(8),cr
goto get_signal

''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

It is just a simple program, can anyone tell me why it not works on BSIISX but
work precisely in BSII??? What is wrong in the above program!!.


Thanks in advance,

Louie Ko



___________________________________________________________________________
Get your hongkong.com freemail at http://www.hongkong.com
Free newsletters center at http://post4u.hongkong.com

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2000-04-10 03:43
    Baud modes and data rates numbers(16468 for example), not apply same way
    for both BS2 and BS2SX. Timing are different.
    Check BS2SX manual:
    Table 1.6
    http://64.27.84.239/downloads/Documentation/Basic%20Stamps/BASIC%20Stamp%202SX%2\
    0Addendum%20Manual%20v1.3.pdf


    ACJacques


    cityu_soccerrobot@h... wrote:
    >
    > Hi all stampers,
    >
    > I have a problem in reading the serial data from the computer COM port by
    using the BSIISX!..
    >
    > The serial data output from COM port was then input to the BSIISX pin P01 by
    using the following program, it works very well and all the data were captured
    when I using BSII but the wrong data were captured when I using BSIISX
    instead!!!
    >
    > ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    >
    > INPUT 1
    >
    > Speed var byte(9)
    >
    > get_signal:
    >
    > SERIN 1, 16468, [noparse][[/noparse]str Speed\8]
    >
    > DEBUG ? Speed(0)
    >
    > DEBUG ? Speed(1)
    >
    > DEBUG ? Speed(2)
    >
    > DEBUG ? Speed(3)
    >
    > DEBUG ? Speed(4)
    >
    > DEBUG ? Speed(5)
    >
    > DEBUG ? Speed(6)
    >
    > DEBUG ? Speed(7)
    >
    > DEBUG ? Speed(8),cr
    >
    > goto get_signal
    >
    > ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    >
    > It is just a simple program, can anyone tell me why it not works on BSIISX but
    work precisely in BSII??? What is wrong in the above program!!.
    >
    > Thanks in advance,
    >
    > Louie Ko
    >
    > ___________________________________________________________________________
    > Get your hongkong.com freemail at http://www.hongkong.com
    > Free newsletters center at http://post4u.hongkong.com
  • ArchiverArchiver Posts: 46,084
    edited 2000-04-10 12:50
    The BS2SX has a different baud rate map than the BS2. That might be your
    problem.
    Original Message
    From: cityu_soccerrobot@h... <cityu_soccerrobot@h...>
    To: basicstamps@egroups.com <basicstamps@egroups.com>
    Date: Sunday, April 09, 2000 10:10 PM
    Subject: [noparse][[/noparse]basicstamps] BSII not compactible with BSIISX??


    >Hi all stampers,
    >
    >I have a problem in reading the serial data from the computer COM port by
    using the BSIISX!..
    >The serial data output from COM port was then input to the BSIISX pin P01
    by using the following program, it works very well and all the data were
    captured when I using BSII but the wrong data were captured when I using
    BSIISX instead!!!
    >
    >''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    >INPUT 1
    >Speed var byte(9)
    >
    >get_signal:
    > SERIN 1, 16468, [noparse][[/noparse]str Speed\8]
    > DEBUG ? Speed(0)
    > DEBUG ? Speed(1)
    > DEBUG ? Speed(2)
    > DEBUG ? Speed(3)
    > DEBUG ? Speed(4)
    > DEBUG ? Speed(5)
    > DEBUG ? Speed(6)
    > DEBUG ? Speed(7)
    > DEBUG ? Speed(8),cr
    >goto get_signal
    >
    >''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    >
    >It is just a simple program, can anyone tell me why it not works on BSIISX
    but work precisely in BSII??? What is wrong in the above program!!.
    >
    >
    >Thanks in advance,
    >
    >Louie Ko
    >
    >
    >
    >___________________________________________________________________________
    >Get your hongkong.com freemail at http://www.hongkong.com
    >Free newsletters center at http://post4u.hongkong.com
    >
    >
    >
    >
    >
    >
Sign In or Register to comment.