Ch03_Embedded_Systems programming
Ch03_Embedded_Systems programming
3.1 INTRODUCTION
• Microprocessor is a digital
device on a chip which can fetch
instructions from a memory,
decode and execute them i.e.
performs certain arithmetic and
logical operations, accept data
from input device, and send
results to output devices
• Basically, there are five building
blocks of a digital computer
namely:
Input Unit
Memory Unit
Arithmetic and Logical Unit (ALU)
Control Unit
Output Unit
Image Courtesy of
Recording Connection of Canada
3.1 INTRODUCTION
CH. 3: EMBEDDED SYSTEMS PROGRAMMING
• The high level programming language developed so far may be categorized into
third, fourth and fifth generation programming languages
Third Generation Programming Language including Java, C++,
Fourth-Generation Programming Language IDE , SQL , MATLAB etc.
Fifth-Generation Programming Language artificial intelligence
Problems
3.1 Discuss basic microprocessor system with the help of block diagram.
3.2 What are low level embedded programming languages? Discuss them.
3.3 Discuss first generation embedded programming languages.
3.4 Discuss second generation embedded programming languages.
3.5 Write short note on high level embedded programming languages.
3.6 What is the difference between assembly language and machine language?
3.7 Mention the brief description of Assembly Language. What are the advantages of
assembler? Image Courtesy of
Recording Connection of Canada
CH. 3: EMBEDDED SYSTEMS PROGRAMMING
Image Courtesy of
Recording Connection of Canada
WRITE A PROGRAM TO CONTROL THE TRAFFIC LIGHT SYSTEM USING 8085 & 8255 PPI.
DESCRIPTION: This Program controls light of one square. By changing the delay
between two signals one can change the speed of traffic.
8255 Port Address.
Port A- 00H
Port B -01H
Port C- 02H
Control Word 03H
2034 MOV A, D 52
2035 ORA E B3 Check whether count is 0
LXI H,0030
MOV A,M
ORA A
JPO 000F
MVI A,EE
OUT 02
JMP 0013
MVI A,00
OUT 02
HLT
# ORG 0030
# DB 04H
3.4 PROGRAMMING 8085 Microprocessor
CH. 3: EMBEDDED SYSTEMS PROGRAMMING
Questions:
1. What is microprocessor?
2. What are the basic units of microprocessor?
3. What is a bus?
4. Why data bus is bi-directional?
5. List the flags of 8085?
6. Why interfacing is needed for I/O devices?
7. What is a port?