'############################
'#PICAXE 20M2 controller.U2,
'############################
symbol int_req=pinC.1 'C.1 (pin 9).
symbol RLED=B.3 'B.3 (pin 15).
symbol GLED=B.2 'B.2 (pin 16).
#picaxe 20m2
setfreq m4
pause 1000 'Pause to initialize system
pause 30
setint %00000010,%00000010 'Enable interrupt ON; C.1 (pin 9).
idle: '######################################
'#Routine waits for interrupt request
'#from U1 on C.1 (pin 9).
'######################################
do
high RLED 'Turn RLED ON.
pause 100
loop
interrupt: '##Interrupt detected.
low RLED 'Turn RLED OFF if get interrupt.
pause 500
high GLED 'Turn GLED ON if rcv serial data.
pause 1000
low GLED 'Turn GLED OFF if get this far.
pause 500
setint %00000010,%00000010 'Enable interrupt ON; C.1 (pin 9).
return
Thank you hippy. I have attached the 2 files as you requested. Also, want to let you know that the .BAS files runs a expected in the PICAXE PE.The SETINT demo provided with VSM seems to work.
Please post your .DSN and .BAS files and we can see what happens when we run those.
There does seem to be a 20M2 interrupt issue on C.1 or C.2 in VSM, the other pins (C.3-C.5) work as expected.
Sorry about that, we'll have to look into it. The real chip will be fine.
If possible try VSM simulating on C.3, C.4 or C.5 instead for now.
A small patch download (4.0.5) to fix this issue is now online at www.picaxe.com/vsm
Thank you "technical". I've downloaded the patch but haven't had time to check it yet. Jims