Microprocessor Lab Report
Microprocessor Lab Report
Microprocessor Lab Report
Hardware
In this experiment, students were given expositor to the Primer Trainer. The Primer
Trainer is a popular experiment board which is used by beginners to learn about microprocessors.
Most of todays electronics technologies such as
contain a microprocessor. The Primer 8085 which is used in this experiment demonstrates the
principles used by these products, and in addition it educates us on how to write a program
interlace, and control these devices. To program the trainer, Monitor Operating System known as
MOS will be used. The MOS will function to display and edit memory and registers. It also
allows students to conduct single step by instruction, run full speed with breakpoint and run
diagnostic to test board. Students need to use assembly language which involves source codes
and opcodes to operate the MOS. The MOS used together with Primer Trainer for this
experiment is known as ProComm.
Figure 1 : Experiment
Board
The Primer Experiment Board is the heart of the learning environment. It is the means by which
the software and the experiment board communicate with each other.
The hardware features are as follows:
Based on popular INTEL integrated circuits (IC). Knowledge gained on the
Primer applies directly to computer that are widely used in engineering and
business applications. ICs used include:
8085 Microprocessor.
1
Software
The programming features of the Primer Trainer are as follows:
Monitor Operating System (MOS) allows users to:
Display and edit memory
Display and edit registers
Display and edit top of stack
Single step by instruction
Run full speed with breakpoint
Run diagnostic to test board
Utilize MOS internal subroutines for each I/O device as well as for
multiply, divide, getkey, display number, and ASCII
Assembly Language
Commented source code listing
With addresses & opcodes
ProComm is a powerful full featured communication software package that is ideally suited for
use with the Primer Trainer. ProComm runs on IBM PCs and compatibles, using COM ports 1
4 at baud rates of up 19,200 baud.
In the terminal mode of operation ProComm is acting like a dumb terminal, that is sending
keystrokes to the Primer and displaying any information from the Primer to the display. If the
Trainer is powered up and the communication cable is connected to the correct COM port, the
Primer should be on-line.
The PRIMER allows the uploading and downloading of INTEL hex files. An INTEL hex file is
an ASCII file that contains all of the memory information from some starting address to some
ending address. The address information and the memory information are contained together,
2
along with checksums, to verify each line of the file. INTEL hex files are usually generated by
assembler and some compilers. If the user has access to an 8080/8085 assembler that generates
INTEL hex files, it is possible to create an assembly language program, assemble it and upload
the resulting INTEL hex file to the PRIMER using ProComm. This eliminates entering each hex
code using the Edit command mode. After uploading, the program can be changed using the Edit
command and the Downloaded back to the PC, saving the modified INTEL hex file to disk. This
program can also be listed to the display in its INTEL hex form.
User will upload a program that was assembled on a PC into the PRIMER which was
downloaded to the PC to save the program. It is extremely important that the user uploads the
program to the address where the program was originally developed. In the case of the
assembler, the upload address is determined by the address chosen in the assembler ORG
statement. It is highly recommended that all programs start at the same address to avoid
confusion. A convenient address on the PRIMER is FF01H, which is the address that the system
defaults to a power-up. Exceptions to the above rule are when the users program is relocatable
or when data, instead of a program, is being uploaded.
OBJECTIVES
APPARATUS/COMPONENTS
Primer Trainer
Power Supply unit
Serial Cable
Personal Computer (PC) with ProComm software preloaded
PROCEDURE
An Assembly Program is being wrote and analysed :
STEP 1:
STEP 2:
Step 2
On Command Prompt window, cd..is being typed and enter is being pressed, C
prompt is being appeared. (command prompt figure referred)
Step 3
Figure 2 : Command
prompt figure
Step 4
Blue
background
Figure 3 : Command
prompt figure
Step 5
Step 6
$FF01
A,$02
B,$09
B
File is being saved and exit. (exit button under file button at the top left is being
used)
Figure 4 : Command
prompt figure
Step 2
Step 3
Procomm is being typed again and the terminal emulator PROCOMM with the
computer host interconnected.
Figure 5 : Command
prompt figure
Step 4
Presse
d
Figure 6 : Reset
Button
Step 5
Figure 7 :
LED
Step 2
Step 3
Step 4
Step 6
Figure 5 is being referred. All keys that can be used to analyse my program using
PROCOMM is being showed in figure 5.
Step 2
Step 3
Step 4
American physicists John Bardeen, Walter Brattain, and William Shockley, the transistor
revolutionized the field of electronics, and paved the way for smaller and cheaper radios,
calculators, and computers, among other things. The transistor is on the list of IEEE
milestones in electronics, and the inventors were jointly awarded the 1956 Nobel Prize in
Physics for their achievement
UNIT :
The Arithmetic/Logic Unit
Performs both arithmetic and logical operations on data: add, subtract, multiply,
AND, OR and etc.
ii.
The Control Unit
As the name implies, the control unit controls what is happening in the
microprocessor. It provides the necessary control and timing signals to all operations
in the microprocessor as well as its contact to the outside world. The control unit has
control lines to each of the microprocessors logic function: ALU, registers, memory,
I/O. The timing signal such as clock provides synchronization for communication
between the components of microprocessor. It also processes interrupt and power-up
sequence.
i.
iii.
CONCLUSION
Upon completing this microprocessor lab, Some of the error are found in the experiment
when doing experiment but it has been identify because of the spacing for the lab.
And the objective to familiarize with EMAC Primer Trainer hardware and to familiarize with
ProComm software modules was fulfilled. Basically the whole lab was carried out successfully
without any problem. No problems occurred during the lab. As conclusion, this lab had provided
a good exercise and understanding on using the microprocessor hardware and software
technology module.
REFFERENCE
- http://www.procomm-guide.com/
10
http://www.aspectscripting.com/procomm.shtml
ELECTRONICS
FACULTY OF ENGINEERING
LAB 3
Microprocessor
12