4.104.114.84.95
Rev | Line | |
---|
[ac7d5ef0] | 1 | # timer_isr() |
---|
| 2 | # |
---|
| 3 | # This routine provides the ISR for the Z8036 timer on the MVME136 |
---|
| 4 | # board. The timer is set up to generate an interrupt at maximum |
---|
| 5 | # intervals. |
---|
| 6 | # |
---|
| 7 | # Input parameters: NONE |
---|
| 8 | # |
---|
| 9 | # Output parameters: NONE |
---|
| 10 | # |
---|
| 11 | # COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. |
---|
| 12 | # On-Line Applications Research Corporation (OAR). |
---|
| 13 | # All rights assigned to U.S. Government, 1994. |
---|
| 14 | # |
---|
| 15 | # This material may be reproduced by or for the U.S. Government pursuant |
---|
| 16 | # to the copyright license under the clause at DFARS 252.227-7013. This |
---|
| 17 | # notice must appear in all copies of this file and its derivatives. |
---|
| 18 | # |
---|
| 19 | # $Id$ |
---|
| 20 | # |
---|
| 21 | |
---|
| 22 | #include "asm.h" |
---|
| 23 | |
---|
| 24 | BEGIN_CODE |
---|
| 25 | |
---|
| 26 | .set CT1_CMD_STATUS, 0xfffb000a | port A |
---|
| 27 | .set RELOAD, 0x24 | clr IP & IUS,allow countdown |
---|
| 28 | |
---|
| 29 | PUBLIC (timerisr) |
---|
| 30 | SYM (timerisr): |
---|
| 31 | movl a0,a7@- | save a0 |
---|
| 32 | movl #CT1_CMD_STATUS,a0 | a0 = addr of cmd status reg |
---|
| 33 | movb #RELOAD,a0@ | reload countdown |
---|
| 34 | addql #1, SYM (Ttimer_val) | increment timer value |
---|
| 35 | movl a7@+,a0 | save a0 |
---|
| 36 | rte |
---|
| 37 | |
---|
| 38 | END_CODE |
---|
| 39 | END |
---|
Note: See
TracBrowser
for help on using the repository browser.