1
Dr. Tao Li
1
EEL 4744C: Microprocessor Applications
Lecture 4
S/W Design and 68HC12
Programming
Dr. Tao Li
2
•
Software and Hardware Engineering: Chapter 3,
8, 9 (New version)
Or
•
Microcontrollers and Microcomputers: Chapter
6
&
•
Software and Hardware Engineering: Chapter 6
(Old version)
Reading Assignment
Dr. Tao Li
3
•
Means designing the software before writing the
program code
•
The general approach is to learn the instruction
set and the syntax first, without too much
design
•
As you become familiar with the processor,
work on designing the solution, rather than just
coding the solution
•
Designing the software is more than just writing
the software!
Software Design
Dr. Tao Li
4
Use Flowcharts to Plan Program Structure
Flow Chart Symbols
Dr. Tao Li
5
IF-THEN Flow Structure
Dr. Tao Li
6
Example: IF-THEN
Assembly Code
Pseudocode
This
preview
has intentionally blurred sections.
Sign up to view the full version.
2
Dr. Tao Li
7
IF-THEN-ELSE Flow Structure
Dr. Tao Li
8
Example: IF-THEN-ELSE
Assembly Code
Pseudocode
Dr. Tao Li
9
Example: IF-THEN-ELSE Decision
; Get Temperature
ldaa

This is the end of the preview.
Sign up
to
access the rest of the document.
- Fall '09
- Staff
- Microprocessor, Dr. Tao Li
-
Click to edit the document details