Chapter 1 Basic Economic Concepts Section 1.1 A Look at Wants and Needs.
1.1 microprocesser Concepts 1.pdf
-
Upload
omar-bassam -
Category
Documents
-
view
218 -
download
0
Transcript of 1.1 microprocesser Concepts 1.pdf
![Page 1: 1.1 microprocesser Concepts 1.pdf](https://reader031.fdocuments.net/reader031/viewer/2022013101/55cf9320550346f57b9beeed/html5/thumbnails/1.jpg)
prepared by: Maher AL omari
Microprocessors & Microcomputers
� Microprocessors
– Digital IC …Can be programmed with a series of instructions to perform a specific function on data
� Microcomputers
A program SERIES OF
0 & 1’S
![Page 2: 1.1 microprocesser Concepts 1.pdf](https://reader031.fdocuments.net/reader031/viewer/2022013101/55cf9320550346f57b9beeed/html5/thumbnails/2.jpg)
prepared by: Maher AL omari
Basic elements of the UP
ARETHMETIC &
LOGIC OPER.
TIMING AND CONTROL
SIGNALS OF ALL OPER.
TEMP. STORAGE OF DATA
AND INSTRUCTIONS
DURING EXCUTIONS
![Page 3: 1.1 microprocesser Concepts 1.pdf](https://reader031.fdocuments.net/reader031/viewer/2022013101/55cf9320550346f57b9beeed/html5/thumbnails/3.jpg)
prepared by: Maher AL omari
The instructions set
All the instructions that
the uP or the
microcontroller
understands
Word: # of bits the uPrecognizes and processes at a time.
fixed series of bits that till the uP or the microcontroller what to do
![Page 4: 1.1 microprocesser Concepts 1.pdf](https://reader031.fdocuments.net/reader031/viewer/2022013101/55cf9320550346f57b9beeed/html5/thumbnails/4.jpg)
prepared by: Maher AL omari
Machine Code and Assembler Language:exampleMachine Code and Assembler Language:example
– The instruction :“set W register to F7”
– machine code (binary format ) : 11 00xx 1111 0111
– machine code (Hex format ): 30F7
– Assembler Language (MNUMONIC format.): movlw F7.
� The instruction is one 14-bits word
� PICS have 35 different instructions.
![Page 5: 1.1 microprocesser Concepts 1.pdf](https://reader031.fdocuments.net/reader031/viewer/2022013101/55cf9320550346f57b9beeed/html5/thumbnails/5.jpg)
prepared by: Maher AL omari
Up and microcontrollers Basic Operations.
� Executes a program by repeatedly cycling
the following steps:
– Fetch the instruction from memory.
– Decode the instruction.
– Execute ( do what the instruction asks).
– Write the result to where the instruction requires.
![Page 6: 1.1 microprocesser Concepts 1.pdf](https://reader031.fdocuments.net/reader031/viewer/2022013101/55cf9320550346f57b9beeed/html5/thumbnails/6.jpg)
prepared by: Maher AL omari
ASSEMBLY LANGUAGE
movlw K 30FF hex
![Page 7: 1.1 microprocesser Concepts 1.pdf](https://reader031.fdocuments.net/reader031/viewer/2022013101/55cf9320550346f57b9beeed/html5/thumbnails/7.jpg)
prepared by: Maher AL omari
computer languages.
Low
level lan
gu
age
![Page 8: 1.1 microprocesser Concepts 1.pdf](https://reader031.fdocuments.net/reader031/viewer/2022013101/55cf9320550346f57b9beeed/html5/thumbnails/8.jpg)
prepared by: Maher AL omari
Machine independence of a program written in a high-level language.
![Page 9: 1.1 microprocesser Concepts 1.pdf](https://reader031.fdocuments.net/reader031/viewer/2022013101/55cf9320550346f57b9beeed/html5/thumbnails/9.jpg)
prepared by: Maher AL omari
Assembly vs. high level language
� Less memory
� More efficient
� Small applications
� Machine dependent
� High memory requirements
� Less efficient
� Large applications
� Easier to debug
� Machine independent
� Instructions are English statements.