Murugesh_89
Full Member level 5
Hi,
I want to work with mplab simulator debugger. So i started with the very basic program.
I run the program and after 15 seconds in my wrist watch i halted the execution. I want the variable "count" to be 75 but instead it showing some values around 200.
I repeated this for various timing but the "count" value is showing wrongly.
I am using MPLAB 8.92 and selected MPLAB SIM under debugger.
Could anybody pls correct me?
I want to work with mplab simulator debugger. So i started with the very basic program.
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 #include<18f45k22.h> #fuses NOWDT,INTRC_IO,MCLR,NOPUT,DEBUG,NOPROTECT,NOBROWNOUT,NOLVP #use delay( clock = 8M ) unsigned long count = 0; void main() { count = 0; while( 1 ) { delay_ms(200); count++; } }
I run the program and after 15 seconds in my wrist watch i halted the execution. I want the variable "count" to be 75 but instead it showing some values around 200.
I repeated this for various timing but the "count" value is showing wrongly.
I am using MPLAB 8.92 and selected MPLAB SIM under debugger.
Could anybody pls correct me?
Last edited by a moderator: