28X2 Motherboard

The 28X2 Motherboard is the controlling heart of a 28-pin PICAXE system to which other input and output interfaces connect.

Related Commands:

Print Page

Share

Schematic

PCB

Motherboard test program

This simple test program will demonstrate that the 28X2 microcontroller is functioning. Shortly after download the Terminal display will appear and show a message indicating the 28X2 is working.

Code Example:
#picaxe 28X2
#terminal 9600

	pause 2000
main:	sertxd( "I'm your 28X2 microcontroller", cr, lf )
	pause 1000
	goto main
Copy Code Submit an Example

Determine type of PICAXE and firmware version

The following program will report the type of PICAXE and firmware version for X2 PICAXE microcontrollers. Please note that the readfirmware and readsilicon commands are not supported for the M2 microcontrollers.

Code Example:
#terminal 9600

main:	pause 2000

	readsilicon b0

	b1 = b0 >> 5
	select case b1
	  case %001 : sertxd( "PICAXE-20X2 (PIC18F14K22)", cr, lf )
	  case %010 : sertxd( "PICAXE-28X2-5V (PIC18F2520)", cr, lf )
	  case %011 : sertxd( "PICAXE-40X2-5V (PIC18F4520)", cr, lf )
	  case %100 : sertxd( "PICAXE-28X2 (PIC18F25K22)", cr, lf )
	  case %101 : sertxd( "PICAXE-40X2 (PIC18F45K22)", cr, lf )
	  case %110 : sertxd( "PICAXE-28X2-3V (PIC18F25K20)", cr, lf )
	  case %111 : sertxd( "PICAXE-40X2-3V (PIC18F45K20)", cr, lf )
	end select

	readfirmware b0

	b1 = b0 / 16 + "0" : if b1 > "9" then : b1 = b1+7 : end if
	b0 = b0 & 15 + "0" : if b0 > "9" then : b0 = b0+7 : end if

	sertxd( "Firmware Version ", b1, ".", b0, cr, lf, cr, lf )

	goto main
Copy Code Submit an Example

Create Module

No 28X2 Motherboard is available for the create system at present, however a suitable alternative for moving 'robot' style projects is the BOT120 motherboard kit (based around the PICAXE-20X2 microcontroller) and for non-mobile circuits the 18M2 Motherboard (based around the PICAXE-18M2 microcontroller).

Bill of Materials

DescriptionCodeQty
PICAXE-28X2 Microcontroller AXE010X2 1 Buy Now
28-pin 0.3" DIL IC socket ICH028 1 Buy Now
3.5mm stereo jack socket CON039 1 Buy Now
Miniature 6mm Tactile Switch SEN030 1 Buy Now
4k7 resistor (pack 100) RES4K7 1 Buy Now
10k resistor (pack 100) RES10K 1 Buy Now
22k resistor (pack 100) RES22K 1 Buy Now
100nF miniature polyester capacitor CAP001 1 Buy Now

Simulation

No Image Selected

Submit Your Own Code!

You must be logged in to submit code examples. Login now.