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 100GETTING STARTEDWhy does the <strong>PICAXE</strong> only support up to 4800 baud rate on serout/serin commands?Can I send and receive serial data via the download cable?The maximum baud rates were originally selected for reliable operation withmicrocontrollers with internal resonator. The early internal resonators were notas accurate as an external device, and a slower baud rate ensures reliableoperation. The X1 and X2 parts support much higher baud rates via the hardwareEUSART using the hserout command.Many parts can send data via the download cable via a ‘sertxd’ command andreceive data via the ‘serrxd’ command.Does the <strong>PICAXE</strong> support interrupts?The <strong>PICAXE</strong> uses the internal microcontroller interrupts for some of it’s BASICcommands (e.g. servo). Therefore the internal interrupts are not available forgeneral use. However the A, M and X parts all support a single ‘polled’ interrupton the input port. Use the ‘setint’ BASIC command to setup the desired interruptport setting to enable the polled interrupt. The polled interrupt scans the inputport between every BASIC command (and constantly during pause commands),and so activates very quickly.revolution(c) Revolution Education Ltd. Email: info@rev-ed.co.uk Web: www.rev-ed.co.ukVersion 6.9 07/2009All rights reserved.100

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

Saved successfully!

Ooh no, something went wrong!