RobotHeart
Junior Member level 3
Re: changing a simple code from MikroC format to HI-TECH for
ok i tried the debugger as u asked me...by choosing the MPLAB SIM and then running the simulation (by pressing the play button).....what happend is that i recieved this error:
CORE-E0002: Stack under flow error occurred from instruction at 0x000014
and the green arrow was jumping from the start to the end of the following code:
and i seriously don't know what does that means, and how to solve it !
...
ok i tried the debugger as u asked me...by choosing the MPLAB SIM and then running the simulation (by pressing the play button).....what happend is that i recieved this error:
CORE-E0002: Stack under flow error occurred from instruction at 0x000014
and the green arrow was jumping from the start to the end of the following code:
Code:
void interrupt isr(void)
{
if(TMR0IF) // TMR0 is overflow
{
TMR0IF = 0; // clear flag bit
To += 0x100; // count number of TMR0 overflow ( make it to 16bit TMR)
sysclock++;
}
}
and i seriously don't know what does that means, and how to solve it !
...