HCS12 Assembly Instructions
Each line of an HCS12 assembly program usually includes four parts:
MC9S12 Assembly Language Programming
; we begin by loading 10 into A.
Topics to be covered:
Advanced Assembly Language Programming
A.H. Mohsenian-Rad (U of T)
Networking and Distributed Systems
Dr. Hamed Mohsenian-Rad
ECE 3362: Microcontrollers Spring 2011
We have learned to write/run assembly programs on HCS12 CPU.
We now want to learn to involve I/O devices:
Parallel I/O Ports and Devices
(Chapters 4 and 7)
I/O devices are also called p
Basics of Interrupts
What is an interrupt?
A special event that requires the CPU to stop normal program execution
and perform some special service related to the event.
Example in daily life:
You are studying for your ex
Timers can be used for several applications:
Time delay creation and measurement
Period and pulse width measurement
Periodic interrupt generation