January
2006, Issue 186
Electronic
Scarecrow
TEST
MODES
The
remote unit has a pair of test modes that are helpful
when setting up the system. Holding down the On switch
while the MC9S08GT16 microcontroller resets enables
Local Test mode. This turns on the LED when any of the
sensors are triggered.
Holding
the Off switch down as the MC9S08GT16 resets enables
Remote Test mode. This calls a special routine that
constantly reads the sensors and sends data packets.
The LED indicates a valid reply packet, so this mode
is useful for radio link testing. Sensor data values
are also sent out through the serial port, which is
useful for more detailed system evaluation.