PicAxe BASIC - Input & Output

You are in home \ microcontroller \ PicAxe \ BASIC Intro. (back)  

PicAxe pages: Picaxe General   Wiring up the Picaxe   Programming the Picaxe   Projects  
Software

Intro.

Input &
Output

Branching
& Jumping

Looping

Serial
comms.

Picaxe code
to html
converter

   
 

PicAxe BASIC - Input & Output


Preliminary info...
Currently incomplete...

 

 

 

 

 

 

I/O on Pins


General Output commands for the PicAxe range are: Output commands used only on the Picaxe-08: General Input commands for the PicAxe range are:


On power-on, all port-pins on the Picaxe-08 are set as inputs (exceptport-pin 0). Pins can become outputs merely by using the low or high command on that pin. All input or output commands automagically reconfigure that port-pin to an input or output as appropriate. The absolute maximum current that any port-pin can source or sink is 25 mA. The absolute maximum current that the '08 can source or sink for all I/O pins combined is 125 mA. Note that this is the maximum permissible current that you must ensure is not exceeded. Even remaining with in the current limits, there are also temperature limits, so keep track that excessive power dissipation isn't being demanded of the chip which would result in heating beyond a safe temperature, also resulting in damage.

The PicAxe-08 chip is a Pic12F629 with the Rev-Ed Pic-Axe BASIC bootloader added. You should familiarise yourself with the specs (available from Microchip) for this chip, noting the differences in capability between the 'raw' Pic chip and the PicAxe.