bananasiong
New Member
Hi,
I'm trying to use this PIC, 16F883. After reading the datasheet, I started to program and I found that there are 2 configuration settings (fuse settings), i.e. config1 and config2. After trying a few times, this configuration setting gives no error:
Am I doing the right way? For the config2, I don't use brown off reset and the code are not protected, so my setting 0xFFFF should be correct. But MPLAB gives me this message:
About the code protection, I know that once it is enabled, in order to reprogram the chip, bulk erase has to be performed. I have read the memory programming specification and also the reference book by Myke Predko, customizing and programming PICmicro microcontroller. Both showing the table as attached. But I'm not quite understand. Should I write my new program, and insert a few lines into the beginning which are the instructions that giving the value to the configuration word and calling the delay?
I'm trying to use this PIC, 16F883. After reading the datasheet, I started to program and I found that there are 2 configuration settings (fuse settings), i.e. config1 and config2. After trying a few times, this configuration setting gives no error:
Code:
LIST P=16F883
#include <P16F883.inc>
ERRORLEVEL 0, -302
_config1 EQU 0x2007
_config2 EQU 0x2008
__config _config1, 0x38E1
__config _config2, 0xFFFF
Message[303] G:\PIC\EXAMPLES\MY\16F883\RFLED\RFLED.ASM 7 : Program word too large. Truncated to core size. (FFFF)
About the code protection, I know that once it is enabled, in order to reprogram the chip, bulk erase has to be performed. I have read the memory programming specification and also the reference book by Myke Predko, customizing and programming PICmicro microcontroller. Both showing the table as attached. But I'm not quite understand. Should I write my new program, and insert a few lines into the beginning which are the instructions that giving the value to the configuration word and calling the delay?