Professional Documents
Culture Documents
System Requirements: Switch Input LED Output
System Requirements: Switch Input LED Output
1. The system will have one input and one output. The input switch called
SW1 and port pin P2.1. A LED is used as output (RED) connected to
P3.1. The specifications are summarized in the following table.
2. The system will have two inputs and two outputs. The inputs are
switches called SW1 and SW2, which are connected port pin P2.0 and
P2.1 respectively. Two LEDs namely GREEN, RED are connected to
P3.1, P3.2 respectively. The system behavior is summarized in the
following table.
3. The system will have two inputs and three outputs. The inputs are
switches called SW1 and SW2, which are connected port pin P2.0 and
P2.1 respectively. Three LEDs namely GREEN, RED and YELLOW are
connected to P3.1, P3.2 and P3.3 respectively. The system behavior is
summarized in the following table.
Switch Input LED Output
Both switches SW1 and SW2 are The LED should be blue
pressed
When just SW1 switch is pressed The red LED should glow
When just SW2 switch is pressed The green LED should glow
4. Design a system that will have only one output. A LED is used as
output (BLUE) connected to P3.1. Toggle the LED after every 500ms.