[Icc-mot] 9S08 Interrupt mask.

Richard richard-lists at imagecraft.com
Tue May 1 12:28:54 PDT 2007


Modify the Startup file. Call it crt09aw60 or something so it is clear that 
it is doing something AW60 specific. That ought to make your client happy.

At 08:30 AM 5/1/2007, Bob Smith wrote:
>A couple lf weeks ago, I mentioned that I couldn't get the RTI on my
>9S08AW60 to throw interrupts as expected.
>
>Well  the problem is now worse as I can't get the SCIx to throw
>interrupts either.
>
>Further, according to my debugger (NoIce08) the interrupt mask bit in
>the CCR is set at the entrance to main() and at all other times in my
>program.  Well after a bit of arm-chair digging in the AW60 Data Sheet
>this A.M. it seems that the AW60 comes out of reset with the I bit in
>the CCR set, thus masking all interrupts.  This is, they claim, to allow
>me time to set up the stack pointer, et al.  OK, I can live with that
>but, I have a fussy client who insists that everything be done in C so I
>am not happy with the idea of sticking an "asm("CLI") in main() or my
>HC08Setup routine.  Of course I could modify the library cstart routine
>and hide a CLI in there.
>
>Anybody got any better ideas;  how do _you_ deal with this problem??
>
>All suggestions welcome.
>
>Many thanks, Bob Smith

// richard (This email is for mailing lists. To reach me directly, please 
use richard at imagecraft.com) 



More information about the Icc-mot mailing list