You are on page 1of 3

LAB #6

Sequential Control
Systems

1
Electrical Engineering Department, College of Engineering, Qassim University, Buraidah,
Saudi Arabia, Microprocessor Laboratory (EE354)

LAB #6
Sequential Control Systems
6.0 Objective
The objective of this lab is to practice shift, rotate and logic instructions and use of them to
control hardware operations.
In this lab, we will do the following:
• Write programs using shift, rotate and logic instructions.
• Write programs for software based PPI port testing.
• Write programs using logic instructions.
• Comparison between software based and hardware based logic operations.

6.1 Equipment List


PC (with assembler and downloading program), Flight-8086 microprocessor training system,
RS-232 cable, LED/Switch unit.

6.2 Background
In sequential control systems individual steps are processed in a predetermined order,
progression from one sequence step to the next being dependent on defined conditions being
satisfied. Such a system may be time-dependent, in which the step transition conditions are
functions of time only; on external-event dependent, where the conditions are functions of input
signals or combinations of these conditions. A sequential control system is described in Figure
6.1 along with some control targets.

Figure 6.1: Sequential Control System

2
Electrical Engineering Department, College of Engineering, Qassim University, Buraidah,
Saudi Arabia, Microprocessor Laboratory (EE354)

Sequential systems are commonly found in industrial automation. . In this way it is possible to
automate many actions and tasks. Dangerous and simple tasks what were performed by people
are now done by machines, and employees can focus on safer operations. Machines do not get
tired like people. When people have a break, products are still produced using a series of planned
activities, even in conditions that are harmful to people.

6.3 Procedure

Experiment #1: Industrial Control


1) Use shift instructions to write an assembly language program to perform following sequence
of operations. Use PPI-P1 to interface with application board.

 operate heater for 3-minutes


 Operate motor ACW for 2-minutes
 Operate motor CW and heater at the same time for 4-minutes
 stop all devices for 3-seconds
and then same loop continues.

Experiment #2: Traffic Signals


1) Use shift instructions to write an assembly language program to generate traffic light signals
on port B of any PPI such that

 Green Light ON for 2 minutes


 Yellow Light ON for 1 minutes
 Red Light ON for 3 minutes
and then continue in same sequence.

Experiment #3: Switching to Various Control Systems

1) Write an assembly language program that uses the first two bits of PORT A of PPI-P1 to select
the various control options in accordance to the Table 6.1. For the rest of the combinations of
PORT A of PPI-P1 all devices should remain OFF. Use PPI-P1 to interface with
LED/SWITCH unit and PPI-P2 to interface with application board.

Table 6.1: Control Targets Bits


D1 D0 Control Targets
0 1 Traffic Signals
1 0 Motor Control using LDR
1 1 Count sequence 3 to 15

You might also like