oliverb
Member
I have an existing program I presume written in PBP2.x. I have the demo version of PBP 3 and can't seem to get the program workng from PBP3.
The circuit is a meter clock using a 16F628A that I am trying to add a bit of code to sync it to my mater clock.
I can program a fresh chip with the original HEX code and the clock works fine. When I compile the original .bas file I get errors.
I have found the migration document for my chip and have carried out the following
Original system options
' System Clock Options
'@ DEVICE pic16F628A, HS_OSC
' Watchdog Timer
'@ DEVICE pic16F628A, WDT_ON
' Power-On Timer
'@ DEVICE pic16F628A, PWRT_ON
' Master Clear Options (Internal)
'@ DEVICE pic16F628A, MCLR_OFF
' Brown-Out Detect
'@ DEVICE pic16F628A, BOD_OFF
' Low-Voltage Programming
'@ DEVICE pic16F628A, LVP_OFF
' Data Memory Code Protect
'@ DEVICE pic16F628A, CPD_OFF
' Program Code Protection
'@ DEVICE pic16F628A, PROTECT_OFF
Replaced with this
#CONFIG
__config _HS_OSC & _WDT_ON & _PWRTE_ON & _MCLRE_OFF & _BODEN_OFF & _LVP_OFF & _CPD_OFF & _CP_OFF
#ENDCONFIG
The compile now works without errors. However when I program the chip from the HEX file the circuit no longer functions correctly.
Is there any obvious errors in what I am doing or do I have to update other parts of the code to make if work in PBP3?
Thanks.
edit I presume the demo works as the full version?
The circuit is a meter clock using a 16F628A that I am trying to add a bit of code to sync it to my mater clock.
I can program a fresh chip with the original HEX code and the clock works fine. When I compile the original .bas file I get errors.
I have found the migration document for my chip and have carried out the following
Original system options
' System Clock Options
'@ DEVICE pic16F628A, HS_OSC
' Watchdog Timer
'@ DEVICE pic16F628A, WDT_ON
' Power-On Timer
'@ DEVICE pic16F628A, PWRT_ON
' Master Clear Options (Internal)
'@ DEVICE pic16F628A, MCLR_OFF
' Brown-Out Detect
'@ DEVICE pic16F628A, BOD_OFF
' Low-Voltage Programming
'@ DEVICE pic16F628A, LVP_OFF
' Data Memory Code Protect
'@ DEVICE pic16F628A, CPD_OFF
' Program Code Protection
'@ DEVICE pic16F628A, PROTECT_OFF
Replaced with this
#CONFIG
__config _HS_OSC & _WDT_ON & _PWRTE_ON & _MCLRE_OFF & _BODEN_OFF & _LVP_OFF & _CPD_OFF & _CP_OFF
#ENDCONFIG
The compile now works without errors. However when I program the chip from the HEX file the circuit no longer functions correctly.
Is there any obvious errors in what I am doing or do I have to update other parts of the code to make if work in PBP3?
Thanks.
edit I presume the demo works as the full version?