Chapter 7
Interrupt Processing
7.1 Objective
To become familiar with interrupt processing.
7.2 Background
In an earlier lab, you had to generate a 30.52 Hz square wave signal on PA4 pin.
The code for generating the square wave is given below for your reference. Make
sure that you run the program and verify that you get the square wave before
proceeding further. Also, to understand this lab, you must connect the PA4 pin
to a oscilloscope and see the square waves.
; Various defines go here ...
ORG $3000 don’t forget the $
ME FCC /Your name/
FCB 10
FCC /ECE 372/
FCB 10
FCC /Date the program was last changed/
FCB 10, 10, 4
ORG $2000 DONT FORGET THE $
LDX #ME
JSR OUTSTRG ; MAKE SURE YOU HAVE EQU FOR OUTSTRG
LOOP1
77
Comentarios a estos manuales