Interrupt availability

f2cf1g

Member
Simple question to which I can't find a definitive answer in the manuals: are PICAXE interrupts available on 18X and 18M2, and if so, on which pins? All of Port C presumably? Thanks
 

f2cf1g

Member
As a matter of interest, is there any way of working out the (software) interrupt capability provided by the interpreter on a particular chip from first principles, e.g. the Microchip data sheet, or is it determined by Rev Ed design decisions?
 

Goeytex

Senior Member
I have no clue.

What I do to determine what pins can be used on any given Picaxe, is to enable all pins in code and then do a syntax check. The error message will tell what pins are avaliable
 

hippy

Ex-Staff (retired)
There is no guaranteed way to look at a raw PICmicro datasheet and accurately determine what SETINT ports or pin would be supported by PICAXE firmware.
 

westaust55

Moderator
As a summary:
1. PortC on all chips and on X2 parts only other ports can be designated.
2. Look at the PICAXE pinout diagrams in manual1 around pages 9, 10 & 11.
.. If the pin has the ability to be an input then it will/should work with the SETINT command.
 

hippy

Ex-Staff (retired)
Also see the SETINT command in "PICAXE Manual 2 - Basic Commands" -

Due to internal port configuration on some of the chips there is a limitation on which pins can be used. The default input port is portC.
14M/14M2 only inputs 0,1,2 may be used
20M only inputs 1-5 may be used
20M2/20X2 only portC may be used, and only C.1 to C.5 on portC
40X2 when using portA, only A.0 to A.3 may be used
 
Top