Interrupt on a 18M2 chip???

FIREMANJIM

New Member
Can I do a Interrupt on a 18M2 chip? In Manual 2 it has a 18M2 diagram but it doesn't tell which pins...I want to interrupt on pin C.2 and I want it to interrupt when pin C.2 goes high and only when C.2 is high. Would the code be SetInt %100000000, %100000000 I am deriving this by using all the pins down the left side of the chip. Is this correct?? If someone would explain I would greatly appreciate it. Because in my numbers I am counting the + power pin and in my mind it just doesnt seem correct.
 

westaust55

Moderator
For PICAXE ports which are nominally 8 it’s wide but may not have all bits/pins implimented the sequence is
Pin 7,6,5,4,3,2,1,0

Thus for pin C.2 you need

SETINT %00000100, %00000100
 
Top