Downloading your first program
This first simple program can be used to test your system. It requires the connection of
an LED (and 330R resistor) to output pin 4. If connecting the LED directly to a PICAXE
chip on a home-made board or proto board, connect the LED between the output pin
and 0V (G). (Make sure the LED is connected the correct way around!).
Note: The PICAXE microcontroller can be connected to a computer via the PICAXE-08
proto board OR via a simple self-made circuit board. Circuit connections are provided
later in this booklet and in th e ‘interfacing electronics’ booklet.
1. Connect the PICAXE cable to the computer serial port. Note which port it is connected to
(normally labelled COM1 or COM2).
2. Start the Programming Editor software.
3. Select View>Options to select the Mode Options screen (this may automatically appear).
4. Click on the ‘Mode’ tab and select PICAXE-08
5. Click on the ‘Serial Port’ tab and select the serial port that the PICAXE cable is connected
6. Click ‘OK’
7. Type in the following program:
main: high 4
(NB note the colon (:) directly after the label ‘main’ and the spaces between the
commands and numbers)
8. Make sure the PICAXE circuit is connected to the serial cable, and that the batteries are
connected. Make sure the LED and 330R resistor are connected to output 4. If using the
proto board make sure the download header is in the ‘PROG’ position.
9. Select PICAXE menu>Run
A download bar should appear as the program downloads. When the download is
complete the program should start running automatically – the LED on output 4 should
flash on and off every second.
revolution Revolution Education Ltd. Email: email@example.com Web: www.rev-ed.co.uk Version 1.0 06/09/02
© copyright 01-02