Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - PIC16F88 Error in Hex File

(you are viewing a thread; or go back to list of threads)

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
Mon Jun 12 2017, 15:56:48, download attachment PIC16F88 ERROR IN HEX.rar
(no subject) (by Ihor Nehrutsa)
You have very strange CONFIGURATION WORD.
Try default 0x3F42
Mon Jun 12 2017, 17:42:22
(no subject) (by MAQ)
Dear sir
Ihor Nehrutsa


Configuration default is 0x3f42 set but
after that problem still there.

i think there is no config problem .try different config but problem still there.

please help ?
Wed Jun 14 2017, 17:05:02, download attachment TEST PIC16F88 WITH DEFAULT CONFIG 0x3F42.JPG
(no subject) (by MGP)
I think it is, because the error is CONFIG2 (2008H) it's filled with 0000 and in the hexfile it's 3FFC.
Wed Jun 14 2017, 17:38:53, download attachment Config2_16F88.jpg
(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
Wed Jun 14 2017, 18:02:15
(no subject) (by MAQ)
Dear sir
Ihor Nehrutsa

please see fig

thanks
Tue Jun 20 2017, 18:09:03, download attachment PIC16F88 ERROR IN HEX.rar
(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
Wed Jun 21 2017, 03:46:16, download attachment fig 3_2.JPG
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):