interrupt on port C

yurif74

New Member
hi to all, i've problem setting an interrupt on pin5 of portc. i use a picaxe 28x2

the command:
SETINT %00100000,%00100000, PORTC
doesn't work.... any help?

thanks
 
Eclectic, thank you for the heads-up .
I used the editor's conversion tool for a program that was running on a 28X1. The setint command did not include the port letter after the conversion and it did not generate an error message when I run the simulator. Since I have not run the program on the X2 yet (and I did not check the manual :eek:) I was not aware of the problem.
 
Last edited:

hippy

Technical Support
Staff member
I used the editor's conversion tool for a program that was running on a 28X1. The setint command did not include the port letter after the conversion and it did not generate an error message when I run the simulator.
I believe this is correct conversion. Either not stating the port or stating "C" would be the same; the problem seems to be having used "PORTC" not "C".
 

hippy

Technical Support
Staff member
Welcome to the PICAXE forum.

The full error is probably, "Error: Label not defined - interrupt: (setint)"

You need to define an interrupt routine with the label "Interrupt:", similar to -

#Picaxe 28X2

SetInt %00010000, %00010000, C
Do : Loop

interrupt:
Return
 
Last edited:
Top