12.07.2015 Views

PICAXE Manual Section 1 - TechnoPujades - Free

PICAXE Manual Section 1 - TechnoPujades - Free

PICAXE Manual Section 1 - TechnoPujades - Free

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

www.picaxe.co.uk<strong>Section</strong> 1 79GETTING STARTEDCommands affected by resonator frequency.Many of the commands are affected by a change in resonator frequency. Asummary of the commands affected are given below (see section 2 of the manual- BASIC Commands for detailed command syntax and information).When using devices with an internal resonator, remember that it is sometimespossible to change back to 4MHz to run the command dependent on this speede.g.setfreq m4readtemp 1,b1setfreq m8This is not possible with devices with an external resonator. This process isautomatic on X1 and X2 parts.Commands for which operation is affected by change in resonator speed:• count• debug• readi2c, writei2c, i2cin, i2cout• pause, wait• pulsin, pulsout• pwm. pwmout• serin, serout, sertxd, serrxd, hsersetup, hserin, hserout• soundNote that nap, doze and sleep are not affected by resonator speed as they usetheir own, separate, internal timer.The following commands will not work at 8 or 16MHz due to timing issues withthe external device listed. Note that X1 and X2 parts automatically switch tointernal 4MHz operation to process these commands, so the external frequencycan be higher.• infrain, infrain2, infraout (infrared receiver)• keyin (keyboard)• keyled (keyboard)• readtemp / readtemp12 (DS18B20 temperature sensor)• readowsn (1-wire device)• servo (servo)• play, tune (music)revolution(c) Revolution Education Ltd. Email: info@rev-ed.co.uk Web: www.rev-ed.co.ukVersion 6.9 07/2009All rights reserved.79

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!