How do you have the configuration set when using PBP? The ASM code is using the internal OSC while the default in PBP for the 16F628A uses an external OSC.
How do you have the configuration set when using PBP? The ASM code is using the internal OSC while the default in PBP for the 16F628A uses an external OSC.
Dave
Always wear safety glasses while programming.
Dave,
Thanks for the lightning fast response!!! Wow.
I was planning on using the internal oscillator. Since you pointed out the potential issue I am trying to determine how to change PBP to use the internal one. I have been messing around with the PIC16F628.PBPINC file with this instead
But to no avail. Am I barking up the wrong tree? Where can I set this to internal? Thanks so much for your help with this! I really cannot believe I cannot figure this out.#CONFIG
ifdef PM_USED
;device pic16F628, xt_osc, wdt_on, pwrt_on, mclr_on, lvp_off, protect_off
device pic16F628, _INTRC_OSC_NOCLKOUT, wdt_on, pwrt_on, mclr_on, lvp_off, protect_off
else
;__config _XT_OSC & _WDT_ON & _PWRTE_ON & _MCLRE_ON & _LVP_OFF & _CP_OFF
__config _INTRC_OSC_NOCLKOUT & _WDT_ON & _PWRTE_ON & _MCLRE_ON & _LVP_OFF & _CP_OFF
endif
#ENDCONFIG
Patrick
In your first post you were working with the 16F628A , but the you have the 16F628.inc file posted?
And do not forget to set OSCCON in your code for the speed.
Dave
Always wear safety glasses while programming.
Sorry, the 16F628A only has one internal speed.
Comment out the config lines in the *.inc file and add this to your code near the beginning.
Code:'16F628A @ __config _INTRC_OSC_NOCLKOUT & _WDT_OFF & _MCLRE_OFF & _LVP_OFF & _CP_OFF DEFINE OSC 4
Dave
Always wear safety glasses while programming.
Bookmarks