Shop OBEX P1 Docs P2 Docs Learn Events
BS2 Rev J - Serial I/O — Parallax Forums

BS2 Rev J - Serial I/O

Arthur CampbellArthur Campbell Posts: 9
edited 2010-12-20 10:06 in BASIC Stamp
i am new to parallax and the basic stamp - although familiar with VB6 programming in about a week and 1/2 i have made great success in
setting up a project with speaker, 7 segment display and a 12 key keypad
i am connecting a button box project to a kenwood twoway radio using the Fleet Sink protocol the project works well using the rs232 port but with the echo that occurs when using the standard port 16 i decided to move output to pin 0
but now the serial data out is garbled example

SEROUT 16, 84, [2,"E2001001","1",keypress + 48,3] works well at 9600,n,8,2

SEROUT 0, 84, [2,"E2001001","1",keypress + 48,3] is garbled as tho the
baud rate is incorrect any help will be appreciated

Comments

  • PJAllenPJAllen Banned Posts: 5,065
    edited 2010-09-02 11:25
    Change your baudmode to the "inverted" value.
  • Arthur CampbellArthur Campbell Posts: 9
    edited 2010-09-02 13:00
    i tried that let me know if i did something wrong here is what i tried

    SEROUT 0, 4084, [2,"E2001001","1",keypress + 48,3]

    SEROUT 0, $4084, [2,"E2001001","1",keypress + 48,3]

    SEROUT 0, 84, [2,"E2001001","1",keypress + 48,3]

    SEROUT 0, $84, [2,"E2001001","1",keypress + 48,3]

    did i muss understand something ? i thought $4084 would be 9600,n,8,2 inverted

    do i need any special hardware i have P0 directly connected to pin 3 on db 25 i also tried it with a 220 Ohm resistor in line for pading ... arthur
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2010-09-02 14:01
    SEROUT 0, 16468 (and the rest to follow)

    I think you're supposed to use a 10k, see the bottom of the PBASIC Help page on SEROUT
  • Arthur CampbellArthur Campbell Posts: 9
    edited 2010-09-02 15:08
    Thank You! - Very much i am under the gun to make over 100 boxes ASAP this was a big help ... arthur

    P.S. it worked nicely!
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2010-09-02 16:29
    Good deal. Thanks for advising as to your progress and success.
  • Arthur CampbellArthur Campbell Posts: 9
    edited 2010-12-20 10:06
    Just a note on progress ... everything worked well and we have 10 demo boxes installed and working
    surpassing anyones (except mine - i knew it would work WELL) expectations
    waiting no new order for more ...
Sign In or Register to comment.