
AN07-00200-03E
65
4
Try to operate the bits pot yellow (single-unit)
4.1
Overview of single-unit operation
After system startup, the starter kit LEDs and buzzers are operated by the switches (SW2, SW3, and
volume switch) and temperature sensor as described below.
4.1.1
Turning ON LEDs using switch operations
General push switches and LEDs are mounted to the starter kit as shown in “Figure 4-1 Single-unit
operation/Switches and LEDs”, and connected to the microcontroller respectively.
This section explains how to turn ON and OFF the LEDs using SW2 operations.
Figure 4-1 Single-unit operation/Switches and LEDs
First, describes how to control turning ON the LEDs using the microcontroller.
The LEDs and microcontroller of the bits pot yellow are connected as shown in “Figure 4-2 LED
lighting circuit”. This is shown diagrammatically in “Figure 4-3 LED ON/OFF circuit example
(schematic diagram)”. When the LED is OFF as shown in Figure 4-3(a), pin P14 outputs are high, so
current does not flow to the LED, and the LED remains OFF. When the LED is ON as shown in
Figure 4-3(b), pin P14 outputs are low, so current flows to the LED, and the LED turns ON. The
switches of the microcontroller can be switched using the program that controls the microcontroller.
SW2
LED