BS2 Rev J - Serial I/O
Arthur Campbell
Posts: 9
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
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
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
I think you're supposed to use a 10k, see the bottom of the PBASIC Help page on SEROUT
P.S. it worked nicely!
surpassing anyones (except mine - i knew it would work WELL) expectations
waiting no new order for more ...