To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.handyboardOpen lugnet.robotics.handyboard in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Handy Board / 67
66  |  68
Subject: 
Re: Interrupt routine hangs
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Thu, 15 Feb 1996 15:58:12 GMT
Original-From: 
Fred G. Martin <fredm@=NoMoreSpam=media.mit.edu>
Viewed: 
1930 times
  
You can't just put your code whereever you like in memory.

Use IC's .icb file format, which lets it relocate code as necessary.

-F



Hi all,

I'm trying to use IC to poke in a small ISR at $B600, to be fired by a
change-of-state on PA0 (IC3 interrupt).  All loads well, and the IC main
routine monitors a memory location to watch for signs of the interrupt's
occurrence.  However, when I trigger the interrupt, the hearbeat stops.

Here's the ISR-

OPT  l,c,cre,s ; turn on a bunch-o-options.

TFLG1 EQU $1023
PLEN  EQU $B650  ; memory location to mark ISR execution

ORG $B600
BSET TFLG1 #%00000001  ; clear interrupt-pending flag LSB=1
LDD #$00FF            ; mark passage through here
STD PLEN              ;  by setting $B650 to 0x00ff
RTI

The $FFEA:$FFEB memory locations, where the interrupt vector for IC3I
resides, has been set to $B600.  I've set it to trigger on rising edges
received at PA0.  The interrupt gets triggered, but immediately hangs.  I'm
pretty rusty with assembler, so is there something obvious I'm missing?

Thanks for any help.

-mike

* Michael L. Ross/C33 | Lockheed Engineering & Sciences Co.****
* Robotics Department | 2400 Nasa Rd. 1, Houston, TX 77058*****
*(713)333-7094 voice,(713)333-6071 fax*#include <disclaimer.h>*
* Finger me for my public key.  mross@outland.jsc.nasa.gov ****
* If you weren't a socialist in your twenties, you had no heart.
* If you weren't a conservative by your thirties, you have no brain.






1 Message in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR