PICAXE-M2

6
PICAXE-M2 Product Briefing
revolution
(c) Revolution Education Ltd. Email: info@rev-ed.co.uk Web: www.picaxe.co.uk Version 1.5 05/11
picaxem2.pmd
Clock Frequency
Much higher clock rates are now available. This greatly improves the PICAXE processing speed.
The default power-up operating frequency is 4MHz, using the internal resonator. Alternate internal clock
frequencies up to 32MHz are now available – 8x faster than 4MHz!
See: setfreq
More I/O Pins
The serial download pins can now be used as general purpose pins. The new reset command replaces the need for a
separate external reset pin. Therefore on 18 pin parts leg 4 is now available as another general purpose input pin.
See: serrxd, sertxd, disconnect, reconnect, reset
Timeout Support
The M2 parts now support timeouts on the serial, infra red and keyboard commands.
See: serin, serrxd, irin, kbin
Play/Tune Multiple LED Flash
Multiple outputs can now be programmed to flash in time to play and tune ring-tone commands. The piezo for
the tune can be connected to any output pin. All 4 predefined play tunes can be used on any size chip.
See: play, tune
Servo
The servo command operation has been fully updated and revised, and is now more accurate due to additional
‘anti-jitter’ coding. Servo operates at either 4 or 16 MHz.
See: servo, servopos
Infra-red Support
Infra-red input and output can now be used on any pin. Irin input also supports an optional timeout
See: irin, irout (note irin replaces infrain/infrain2)
RF Support
14M2 and 20M2 parts now also support Manchester encode RF radio transmission
See: rfin, rfout
i2c Support
The 08M2, 14M2 and 20M2 parts now also support i2c in addition to the 18M2
See: hi2csetup, hi2cin, hi2cout
More PWM outputs
More PWM output pins are available (up to 4 on the 20M2), see pinout diagrams for more details.
See: pwmout, pwmduty
Longer Nap Delays
The nap command has an extended number of options, giving longer delay options.
See: nap
Internal Input Type / Pullups
Most pins have a weak internal pullup resistor that can be enabled via the ‘pullup’ command. In addition on the
14M2 and 20M2 parts the inputtype can be selected to be be either TTL or ST style on any pin.
See: pullup, inputtype