PIC16F88 Error in Hex File (by MAQ)
Ihor Nehrutsa
Thanks to co-operation
PIC16F88 ic we create simple prog after load in ic after that
we face this Error in Hex file please check Attach file
thanks
whats problem is there ? we can not find-out Problem solution
(no subject) (by Ihor Nehrutsa)
I see an addressing error when writing the CONFIGURATION WORD's to .hex file.
Will fixed in v4.2.2
(no subject) (by Ihor Nehrutsa)
By default for PIC16F88 LDmicro sets CONFIGURATIOn BITS in mcutable.h like
// CONFIG2: CONFIGURATION WORD 2 REGISTER (ADDRESS 2008h)
//(1 << 17) | // IESO: Internal External Switchover mode enabled
//(1 << 16) | // FCMEN: Fail-Safe Clock Monitor enabled
// CONFIG1: CONFIGURATION WORD 1 REGISTER (ADDRESS 2007h)
(1 << 13) | // Flash Program Memory Code Protection off
(1 << 12) | // CCP1 function on RB0 (doesn't matter)
(1 << 11) | // DEBUG: ICD disabled
(3 << 9) | // Flash Program Memory write protection off
(1 << 8) | // Data EE Memory Code protection off
(0 << 7) | // LVP disabled
(1 << 6) | // BOR enabled
(0 << 5) | // RA5/nMCLR is RA5
(0 << 4) | // FOSC2=0 for osc sel, HS oscillator
(0 << 3) | // PWRT enabled
(0 << 2) | // WDT disabled
(2 << 0), // HS oscillator
so
CONFIGURATION WORD 2 == 0x00
CONFIGURATION WORD 1 == 0x3F42
Perhaps it will be more correct to set the
CONFIGURATION WORD 2 == 0x03
but I left it 0x00 to compatible with the previous LDmicro versions.
You can set 0x33F42 in menu
Settings->MCU PArameters->PIC Configuration Bits