Blinkers - Elenco Electronics SNAP CIRCUITS XP SCXP-50 Instruction Manual

Table of Contents

Advertisement

Project B2
Optional:
You can change the blink rate by editing the
PAUSE times in the program, then re-downloading
it to the microcontroller.
The PAUSE time must be a whole number
between 0 and 65535. This is a delay in
milliseconds (1/1000 second) between program
commands. You can change the PAUSE times in
any of the Blinkers programs and see the effect.
Do not change anything else in the program. The
program at right is the Blinkers program.
Only valid programs (without errors) may be
downloaded, or a downloading error will result.
You can check for errors by selecting Syntax.

Blinkers

Build this circuit and turn on the switch (S1). Load program
Blinkers into the microcontroller using the programming
instructions in project B1. The microcontroller controls the red and
green LEDs (D1 & D2), and alternates turning them on and off.
Now download one of the other Blinkers programs (Blinkers
Together, Blinkers Faster, or Blinkers Uneven) into the
microcontroller using the same procedure as in project B1. The
Blinkers programs change the LEDs' blinking pattern.
You can download a new program into the microcontroller while
it is running another program; the running program will be
interrupted and the new program started. The programming
cable only needs to be connected while downloading a program
into the microcontroller.
The microcontroller lets you control the
LEDs in ways that would be difficult to
do using switches or other devices.
-34-

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Snap circuits xp

Table of Contents