lanternfish
Senior Member
Hello all.
Not sure what I have done wrong but I cannot simulate a 20X2 hardware interrupt in the programme editor simulator.
I have read the manual (many times), searched the forums, and still no success.
Your help please.
Cheers
Not sure what I have done wrong but I cannot simulate a 20X2 hardware interrupt in the programme editor simulator.
I have read the manual (many times), searched the forums, and still no success.
Code:
' Constants
SYMBOL GPSbaud = B4800_8
' Variables
SYMBOL Intflag = b0
InitialisePicaxe:
SETFREQ m8 ; Set to 8Mhz clock
Intflag = 0
'HSERSETUP GPSbaud,%01 ; Set to GPS Baud Rate
HINTSETUP %00000010 ; Enable INT1 (bit5: 0 = rise 1 = fall trigger)
SETINTFLAGS %00000010,%00000010
InitialiseGPS:
LOW 2 ; Set Rx/Tx Routing to GPS
LOW 3 ; Enable Rx/Tx Routing
'HSEROUT 0,("$PRWIILOG,GGA,A,T,1,0") ; GPS Tx GGA info only
SERTXD ("$PRWIILOG,GGA,A,T,1,0") ; GPS Tx GGA info only
DO UNTIL Intflag>0:LOOP
Cheers