[Icc-mot] 9S08 Interrupt mask.
Bob Smith
bobsmith5 at verizon.net
Tue May 1 08:30:59 PDT 2007
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
---------------------------------------------------------
PCB and Embedded Control Sys Design
Smith Machine Works, Inc.
http://www.smithmachineworks.com
More information about the Icc-mot
mailing list