Mr_Joe
- 19th October 2005, 06:54
Hi;
I've written code for 16F628 (working well), i've added some new lines to this code but code size is up to 2K. And i changed PIC 16F648A code space of 4K. You know this PIC's has identical hardware. I changed configuration for 16F648A but code doesnt work. After that i wrote original code (cof. lines for 16F628) to the 16F648A, only chosing 16F648A on programmer. I'm suprising it's working. I changed only conf. lines for 16F648A on original code and wrote to PIC it doesn't work.
Conf. lines on original code:
@ DEVICE pic16F628A
@ DEVICE pic16F628A, WDT_ON
@ DEVICE pic16F628A, PWRT_ON
@ DEVICE pic16F628A, PROTECT_OFF
@ DEVICE pic16F628A, MCLR_OFF
@ DEVICE pic16F628A, INTRC_OSC_NOCLKOUT
Conf. lines for 16F648A:
@ DEVICE pic16F648A
@ DEVICE pic16F648A, WDT_ON
@ DEVICE pic16F648A, PWRT_ON
@ DEVICE pic16F648A, PROTECT_OFF
@ DEVICE pic16F648A, MCLR_OFF
@ DEVICE pic16F648A, INTOSC_OSC_NOCLKOUT
What do you think, why it doesn't working?
I've written code for 16F628 (working well), i've added some new lines to this code but code size is up to 2K. And i changed PIC 16F648A code space of 4K. You know this PIC's has identical hardware. I changed configuration for 16F648A but code doesnt work. After that i wrote original code (cof. lines for 16F628) to the 16F648A, only chosing 16F648A on programmer. I'm suprising it's working. I changed only conf. lines for 16F648A on original code and wrote to PIC it doesn't work.
Conf. lines on original code:
@ DEVICE pic16F628A
@ DEVICE pic16F628A, WDT_ON
@ DEVICE pic16F628A, PWRT_ON
@ DEVICE pic16F628A, PROTECT_OFF
@ DEVICE pic16F628A, MCLR_OFF
@ DEVICE pic16F628A, INTRC_OSC_NOCLKOUT
Conf. lines for 16F648A:
@ DEVICE pic16F648A
@ DEVICE pic16F648A, WDT_ON
@ DEVICE pic16F648A, PWRT_ON
@ DEVICE pic16F648A, PROTECT_OFF
@ DEVICE pic16F648A, MCLR_OFF
@ DEVICE pic16F648A, INTOSC_OSC_NOCLKOUT
What do you think, why it doesn't working?