AnsweredAssumed Answered

9S08SG8 - Timer problem

Question asked by Gian Fabio Viola on Oct 24, 2011
Latest reply on Oct 25, 2011 by Processor Expert

Hello to everybody,

I've a problem.

I'm using 9S08SG8 processor and processor expert for developing the code.

I use the component FreeCntr16 for counting 200us, the code is here:


  if (Time_us == 200){


but when I debug it, the true time simulator show me the following error:


Error: Attempt to push or pop with SP out of allowed range


I use RTCmod interrup source and 32 µs of resolution.

I've tried with other values but nothing happens: stack pointer exceed everytime!


Thank for all,