SolidWorksMagi
Senior Member
Hi,
I'm trying to send data through 28X2 pins to another device that requires 9600 BAUD 8N1 data/rate ... From the online manual this looks right, but doesn't work ...
#picaxe 28X2 ; Define the µProcessor IC Type
#terminal 9600
; BEGIN Main Body * * * * * * * * * * * * * * * * * * * * * * *
pause 3000
high A.0
serout A.0,T9600_8,("20, 96, 21, 114, 22, 82, 23, 5, 22, 87, 148, 135, 22, 82, 165, 148")
end
; END Main Body * * * * * * * * * * * * * * * * * * * * * * **
Why doesn't this work? I tried different settings for the "chip speed" but all I get is garbage on the other end ???
I'm trying to send data through 28X2 pins to another device that requires 9600 BAUD 8N1 data/rate ... From the online manual this looks right, but doesn't work ...
#picaxe 28X2 ; Define the µProcessor IC Type
#terminal 9600
; BEGIN Main Body * * * * * * * * * * * * * * * * * * * * * * *
pause 3000
high A.0
serout A.0,T9600_8,("20, 96, 21, 114, 22, 82, 23, 5, 22, 87, 148, 135, 22, 82, 165, 148")
end
; END Main Body * * * * * * * * * * * * * * * * * * * * * * **
Why doesn't this work? I tried different settings for the "chip speed" but all I get is garbage on the other end ???