Thank you neil...I see it now. Was expecting to see a statement like; "qualifier not supported on m2 chips when use Hserin". JimSSuggest looking at manual 2 for hserin on M2 parts.
You can't use a qualifier.
'*************************************************
'* Picaxe 20x2 uses hserin with qualifier and
'* select case to turn B.7 high (ON) or low (OFF).
'*************************************************
symbol rcv_data=b1
#picaxe 20x2
SetFreq M8
HSerSetup B9600_8, %000 'Setup baud 9600 @ 8Mhz
' "H" = 72 "L" =76 .
main:
Do
Do
HSerIn 0,1 {,("A")} 'Put hserin data Into s pad "0".
w4=@ptr
Loop Until w1 <> $FF 'Wait for data in.
Select Case w4
Case "H" : High B.7 'If data is H then high B.7
Case "L" : Low B.7 'If data is L then low B.7.
End Select
Loop
Thank you Hippy....The PE6 syntax checker doesn't like this statement with the qualifier. When I comment out the qualifier portion it is OK & the code runs on the simulator. JimSw4 and w1Code:Do HSerIn 0,1 {,("A")} 'Put hserin data Into s pad "0". w4=@ptr Loop Until w1 <> $FF 'Wait for data in.
HSerIn 0,1 '{,("A")} 'Put hserin data Into s pad "0"
Thank you..srnet. That did it. I removed the "curly brackets" & it passes the syntax check. JimSTry it without the curly brackets.
Curly brackets, in the manual, indicate and optional item.