Hi,
Just looking at your code and decided to ask a question or two
Which code is that exactly? I'm sort of guessing here so if I'm referring to the wrong one please disregard this.
Why do you set the same configs twice?
The only code in this thread, which could be interpreted as if that's happening is in the third post, by Archangel, but he's not setting the same config twice. One set is commented out:
Code:
;@ DEVICE PIC16F648A, INTRC_OSC_NOCLOCKOUT
;@ DEVICE pic16F648A, WDT_OFF
;@ DEVICE pic16F648A, PWRT_ON
;@ DEVICE pic16F648A, MCLR_OFF
;@ DEVICE pic16F648A, BOD_OFF
;@ DEVICE pic16F648A, LVP_OFF
;@ DEVICE pic16F648A, CPD_OFF
;@ DEVICE pic16F648A, PROTECT_OFF
@ __CONFIG _INTOSC_OSC_NOCLKOUT & _WDT_OFF & _PWRTE_OFF & _MCLRE_OFF & _LVP_OFF & _BODEN_OFF & _BOREN_OFF
Why are some configs spelled differently from one to the other? PWRT/PWRTE, INTRC_OSC_NOCLOCKOUT/INTOSC_OSC_NOCLKOUT and MCLR/MCLRE are the ones I see as different.
My guess is that one set (the ones that are commented out) is/was targeting the now obsolete PM-assembler which came bundled with PBP while the other is for Microchips MPASM assembler.
/Henrik.
Bookmarks