Microprocessor-Systems-Learning-Module-2-1-24-2-ver-1
Microprocessor-Systems-Learning-Module-2-1-24-2-ver-1
Microprocessor Systems
This is a property of
PRESIDENT RAMON MAGSAYSAY STATE UNIVERSITY
NOT FOR SALE
CpE 323 – Microprocessor Systems
First Edition, 2025
Copyright. Republic Act 8293 Section 176 provides that “No copyright shall subsist in any work of
the Government of the Philippines. However, prior approval of the government agency or office
wherein the work is created shall be necessary for exploitation of such work for profit. Such agency or
office may, among other things, impose as a condition the payment of royalties.
Borrowed materials included in this module are owned by their respective copyright holders. Every
effort has been exerted to reach and seek permission to use these materials from their respective
copyright owners. The University and authors do not claim ownership over them.
Assigned
Title Author
Chapter
Structural Components of
Chapter 1:
Microprocessor/Microcontroller
Chapter 2: Data Representation and Number Systems
Chapter 3:
Dionisio M. Martin Jr.
Chapter 4:
Chapter 5:
Chapter 6:
Chapter 7:
Evaluators:
The Microprocessor Systems course is a four-unit professional course which offers an in-
depth exploration of microprocessors and their application in embedded systems. It provides
students with the foundational knowledge required to understand, program, and interface
microprocessors with various peripherals.
By the end of the course, students will gain practical skills in designing, programming, and
debugging microprocessor-based systems used in a wide range of modern technologies such as
robotics, automation, communication devices, and consumer electronics.
At the end of the semester, 85% of the students have attained 90% level of understanding for
being aware in the computer engineering, locally and globally.
Course Details:
The University LMS will be used for asynchronous learning and assessment. The link and class
code for LMS will be provided at the start of class through the class’ official Facebook Group.
Edmodo
Google Classroom
University LMS
Students will be assessed in a regular basis thru quizzes, assignments, individual/group outputs
using synchronous and/or asynchronous modalities or submission of SLM exercises. Rubrics
are also provided for evaluation of individual/group outputs.
Major examinations will be given as scheduled. The scope and coverage of the examination
will be based on the lessons/topics as plotted in the course syllabus.
0323
Module Overview
Introduction
Microprocessors form the backbone of modern electronics, from simple household devices to
complex industrial control systems. As the demand for embedded systems continues to grow,
understanding how microprocessors work, how they are programmed, and how they interface
with external systems is crucial for engineering students. The Microprocessor Systems course
prepares students for careers in electronics, automation, robotics, and embedded system design
by providing the foundation needed to work with real-time systems and hardware interfaces.
The course emphasizes practical application, enabling students to design, build, and
troubleshoot microprocessor-based systems. It integrates theoretical learning with laboratory
sessions and project work, where students can apply their knowledge to solve real-world
problems.
Table of Contents
Chapter 2
Data can be anything that provides information numbers, characters, images, audio, video, and
even more complex forms such as software and applications. It can be raw information that is
processed and interpreted to create meaningful output.
In computing, all data must be converted into binary (0s and 1s) for storage and manipulation
because the underlying hardware is built to handle only these binary states.
Data representation in computer organization refers to the way information is encoded within
a computer so that it can be understood and processed by the system. At the core of this process
is the transformation of data into binary digits (bits). The choice of data representation
techniques impacts the efficiency, speed, and accuracy of computing operations.
For example, integers, characters, and floating-point numbers are all represented differently in
a computer system. Data representation not only impacts how data is stored in memory but also
affects how it is manipulated by the processor and how results are output to the user.
Specific Objectives
Duration
_____________________________________________
Let us take an example of interpretation. Say a byte in Memory has value "0011 0001".
Although there exists a possibility of so many interpretations as in figure 3.2, the program has
only one interpretation as decided by the programmer and declared in the program.
Data Interpretation
CHARACTERS REPRESENTATION
A character can be presented in a computer using a binary code. This code should be
same for different types of computers, else the information from one computer will not be
transferable to other computers. Thus, there is need of a standard for character representation. A
coding standard has to address two basic issues:
a. the length of code
b. organization of different types of characters (printable character set of
different languages and special charact rs)
Standard character sets like EBCDIC and ASCII are chosen to represent alphabets,
numbers and special characters. And Unicode standard is use for non-English language like
Chinese, Hindi, Spanish, etc.
– This 8-bit coding scheme is referred to as an 8-bit American standard code for
information interchange. The symbolic representation of letter ‘A’ using this scheme is
010000012 and also equal to 4116 or 6510.
ASCII as a 7-bit coding schemes, valid hexa values for an ASCII characters are 00
through 7F. The 8 rows in the chart below correspond to the first hexa digit of an ASCII
character (0 to 7). The 16 columns correspond to the second hexa digit of the character (0 to
F). The contents of the cells show the EBCDIC value (hexa) that corresponds to the ASCII
character.
Example 1:
Conversion of ASCII to EBCDIC of the following character: a) A and b) +.
Answer:
ASCII-EBCDIC
ASCII Code Conversion Table
EBCDIC Code
Character
decimal hexa row column hexa decimal
a) A 65 41 4 1 C1 193
b) + 43 2B 2 B 4E 78
Example 2:
Conversion of EBCDIC to ASCII of the following character: a) a and b) 9.
Answer:
ASCII-EBCDIC
ASCII Code Conversion Table
EBCDIC Code
Character
decimal hexa row column hexa decimal
a) a 129 81 6 1 61 97
b) 9 249 F9 3 9 39 57
Example 3:
What is the equivalent decimal, binary and hexadecimal of the message Form #1 in a) ASCII
and b) EBCDIC? All in one line.
Answer:
a) ASCII code
In decimal: 70 111 114 109 32 35 49
In binary: 01000110 01101111 01110010 01101101 00100000 00100011 00110001
In hexadecimal: 46 6F 72 6D 20 23 31
b) EBCDIC code
In decimal: 198 150 153 148 64 123 241
In binary: 11000110 10010110 10011001 10010100 01000000 01111011 11110001
In hexadecimal: C6 96 99 94 40 7B F1
Example 4:
Decode this message (binary form) using 7-bit ASCII code:
1001000 1000101 1001100 1001100 1001111 0100000 1000110 1001111 1010010
1001101
Answer:
In decimal: 72 69 76 76 79 32 70 79 82 77
Message: HELLO FORM
_____________________________________________
References/Additional Resources/Readings
https://witscad.com/course/computer-architecture/chapter/data-representation
Activity Sheet
ACTIVITY 2.1
Direction: Match the items in column A with their correct equivalents in column B. Write only the
letter of your choice on the space provided.
A B
_____ 1. ASCII code for ‘G’ a. 20 (Hexa)
_____ 2. EBCDIC code for ‘A’ b. E9 (Hexa)
_____ 3. ASCII representation of ‘5’ c. 4D (Hexa)
_____ 4. EBCDIC equivalent of ASCII ‘Z’ d. 80 (Decimal)
_____ 5. Binary representation of ASCII ‘K’ e. C1 (Hexa)
_____ 6. ASCII to EBCDIC equivalent of ‘9’ f. 71 (Decimal)
_____ 7. Decimal equivalent of ASCII ‘#’ g. 35 (Decimal)
_____ 8. Hexadecimal equivalent of ASCII ‘M’ h. 1001011 (Binary)
_____ 9. ASCII code for space (‘ ’) i. 35 (Hexa)
_____ 10. EBCDIC equivalent of ASCII ‘&’ j. F9 (Hexa)
1. Convert the ASCII string "CODE" into its EBCDIC hexa equivalent.
2. The following EBCDIC sequence is given: D5 C9 C3 C5. Convert it to ASCII characters.
3. Convert the ASCII number "12345" into EBCDIC hexa format.
4. Convert the EBCDIC sequence 4E 5B 6B 7E into ASCII characters.
5. Convert the ASCII phrase "A1B2C3" into EBCDIC characters.
Direction: Give the complete terms for the following abbreviated words.
1. ASCII
2. EBCDIC
3. UTF
4. BCD
5. IEEE
6. ISO
7. RAM
8. ROM
9. BPS
10. KB