SolidWorksMagi
Senior Member
Can somebody tell me why this program is not working?
I don't seem to be getting a ":" back from the Emic2 nor does it speak anything.
If I plug it into a BOE the Emic2 works perfectly ... so it must be
I don't seem to be getting a ":" back from the Emic2 nor does it speak anything.
If I plug it into a BOE the Emic2 works perfectly ... so it must be
Code:
; Emic2&PICAXE
#picaxe 28X2 ; Define the µProcessor IC Type
hsersetup B9600_32, %10 ; 9600 baud, inverted polarity
symbol Ready = b0
; BEGIN Main Body * * * * * * * * * * * * * * * * * * * * *
main:
pause 5000
do
gosub speak1
loop
end
; END Main Body * * * * * * * * * * * * * * * * * * * * **
; BEGIN Subroutines * * * * * * * * * * * * * * * * * * **
ReadyChk:
hserin 0,Ready
debug b0
if Ready <> ":" then return ; Waiting for the Emic2 to send its ":" character as being READY
endif
return
speak1:
hserout 0,("S", "Hello")
gosub ReadyChk
hserout 0,("S", "My name is the Emic 2")
gosub ReadyChk
return
end
; END Subroutines * * * * * * * * * * * * * * * * * * * **
Last edited by a moderator: