I got a new problem. I programed my 12F629 chip and the program seems to be running fast. It tests perfectly in MPLAB 7.0. I have a 5 minute delay in my code. with the stopwatch in mplab, the delay is exactly 300 seconds (5 minutes). When i programed my chip, it only ran for about 3 minutes and 15 seconds. I don't know where else to look for any problems.
I am calibrating the 4 mhz internal clock with:
bsf STATUS, RP0 ;Bank 1
call 3FFh ;Get the cal value
movwf OSCCAL ;Calibrate
bcf STATUS, RP0 ;Bank 0
I have set up the configuration bits with 01C4h, which is data/memory code protection off, BOD enabled, MCLRE internal, PWRT enabled, WDTE disabled, and INTOSC no clock output.
The only other thing that can effect my program running, is in my TMR0 interrupt. I have setup the interrupt to happen every 1ms. my program runs through once, and then waits for the interrupt, and then runs though again afterwards. It runs perfectly on MPLAB, so I wouldn't think that would be the issue.
any help would be great.... I don't know where to look anymore. I have tired a few chips, with the same exact results.
Thanks,
Steve
I am calibrating the 4 mhz internal clock with:
bsf STATUS, RP0 ;Bank 1
call 3FFh ;Get the cal value
movwf OSCCAL ;Calibrate
bcf STATUS, RP0 ;Bank 0
I have set up the configuration bits with 01C4h, which is data/memory code protection off, BOD enabled, MCLRE internal, PWRT enabled, WDTE disabled, and INTOSC no clock output.
The only other thing that can effect my program running, is in my TMR0 interrupt. I have setup the interrupt to happen every 1ms. my program runs through once, and then waits for the interrupt, and then runs though again afterwards. It runs perfectly on MPLAB, so I wouldn't think that would be the issue.
any help would be great.... I don't know where to look anymore. I have tired a few chips, with the same exact results.
Thanks,
Steve