DM5816/DM6816
RTD Embedded Technologies, Inc.
38
Before exiting your program, you must restore the interrupt mask register and interrupt vectors
to the state they were in when your program started. To restore the IMR, write the value that
was saved when your program started to I/O port 21H. Restore the interrupt vector that was
saved at startup with either DOS function 35H (get interrupt vector), or use the library routine
supplied with your compiler. Performing these two steps will guarantee that the interrupt status of
your computer is the same after running your program as it was before your program started
running.
Common Interrupt Mistakes
•
Remember that hardware interrupts are numbered 8 through 15, even though the
corresponding IRQs are numbered 0 through 7.
•
Two of the most common mistakes when writing an ISR are forgetting to clear the
interrupt status of the DM5816 and forgetting to issue the EOI command to the 8259
interrupt controller before exiting the ISR.
Summary of Contents for DM5816
Page 1: ...BDM 610010027 Rev A DM5816 DM6816 Triggered User s Manual...
Page 7: ...DM5816 DM6816 RTD Embedded Technologies Inc 7...
Page 15: ...DM5816 DM6816 RTD Embedded Technologies Inc 15 Fig 1 7 Base Address Switch S1...
Page 22: ...DM5816 DM6816 RTD Embedded Technologies Inc 22...
Page 42: ...DM5816 DM6816 RTD Embedded Technologies Inc 42 P3 Connector P6 Connector...