PICAXE-40X2 microcontroller

The largest PICAXE microcontroller in the enhanced X2 range. Ideal in hobbyist projects due to its powerful features and extensive i/o capabilities, but also suitable for more advanced educational use. This is the universal voltage version 40X2 chip (based on the PIC18F45K22).


Availability: 69 In Stock

  • Buy 10 for $8.10 each and save 10%
  • Buy 100 for $7.79 each and save 14%

Free Shipping on orders over $50
(USA Only)

Economy shipping for $5.99 (USA Only)
Or choose UPS or USPS Priority Mail.

International Shipping also available.

US Schools/School Districts can order by Purchase Order



The 40X2 supports up to 33 inputs/outputs with 27 analogue/touch sensor channels with an operating speed up to 16MHz using an internal oscillator and up to 64MHz using an external resonator or crystal. This chip supports 4 internal and up to 32 external program slots, is capable of acting as an i2c slave device and comes in an industry standard 0.6" wide, 40-pin package.

All X2 series parts support enhanced features such as configurable i/o pins, ring tone music and touch sensor inputs, i2c, spi and high-speed serial with background receive. Scratchpad memory plus separate Data EEPROM and Data Table are supported.

Click here for more X2 series information.

For more details see the What is PICAXE and PICAXE Pinout pages.

The PICAXE-40X2 replaces the older PICAXE-40X, 40X1, 40X2-5V (PIC18F4520) and 40X2-3V (PIC18F45K20) chips.

Additional Info

Additional Info


The following table gives a brief summary of the various PICAXE chips.
For a more detailed comparison please see the PICAXE manuals and pinout diagrams.

Feature 08M2 14M2 18M2 20M2 20X2 28X2 40X2
Memory Capacity (bytes) 2048 2048 2048 2048 4096 4096 4096
RAM (bytes) 128 512 256 512 256 1280 1280
Byte Variables (bytes) 28 28 28 28 56 56 56
Input/Outputs Pins 6 12 16 18 18 22 33
ADC/Touch Pins 3 7 10 11 11 16 27
Max. Freq. (MHz) 32 32 32 32 64 64 64
Serial In/Out Yes Yes Yes Yes Yes Yes Yes
Infrared In/Out Yes Yes Yes Yes Yes Yes Yes
I2C Yes Yes Yes Yes Yes Yes Yes
Tune (ring tones) Yes Yes Yes Yes Yes Yes Yes
Parallel Tasks 4 8 4 8 1 1 1
Program Slots 1 1 1 1 1 4 4

The same software, BASIC language and USB download cable is shared between all the PICAXE chips.

- See more at: http://www.picaxe.com/Hardware/PICAXE-Chips/PICAXE-40X2-microcontroller/#sthash.Gczdo6YK.dpuf

Data Sheets

PICAXE-40X2 Microcontroller Datasheet - http://www.picaxe.com/docs/picaxe_manual1.pdf

X2 Series Product Summary - http://www.picaxe.com/docs/picaxex2.pdf

Details of using 'pwmdiv' options with the 'pwmout' command on the PICAXE-40X2 - http://www.picaxeforum.co.uk/showthread.php?21867-Using-PWMDIV-options-with-the-PICAXE-28X2-and-40X2

Minimum Age No
Other SKUs N/A