Hi again mate, and thanks for your continued assistance.
My INC file is as shown in your post (#13), and the code does include the ADCON1=$0F line.
The PICpgm appliaction doesn't have any options to change, so I assume it takes the fuse settings etc from the code / inc / dev files. Reading the code back into WinPIC, gives the following info in the log
Under Device Config - Config word#1 is C027 (hex), with Config word#2 shown as 1F3F (hex)Reading 0x3FFFFE - 0x3FFFFF ...
Reading 0x300000 - 0x30000D ...
Reading 0xF00000 - 0xF000FF ...
Reading 0x000000 - 0x007FFF ...
Reading PIC ok.
Cannot verify at different voltages with this hardware.
Verifying...
Verifying CODE, 0x000000..0x0000BE
Verifying 0x000000..0x0000BE
No DATA MEMORY in buffer to verify.
Verifying CONFIG, 0x300000..0x300006
Verifying 0x300000..0x300006
Verify finished, no errors.
I Then loaded the same HEX file that gets compiled from your code that I previously loaded with PICpgm into Winpic and it reported the following under device config
Config word #1 = F0E7 (hex)
Config word #2 = 1F3F (hex)
In both cases nothing is else is listed listed (see images attached) If I try programming having loaded this file it errors
I'm really out of my depth here as I have no idea what all these numbers are - I opted for the PICpgm program because it auto detected the PIC and had less setting to change - it also seemed to work as it reported no errorsProgramming...
Erasing ("bulk" or "chip") ...
Programming CODE, 0x000000..0x0000BE
Verifying CODE, 0x000000..0x0000BE
Verifying 0x000000..0x0000BE
Verify Error: 000000: read 000000, wanted 00EF43, mask 00FFFF ==> diff=00EF43
Verify Error: 000002: read 000000, wanted 00F000, mask 00FFFF ==> diff=00F000
Verify Error: 000004: read 000000, wanted 005008, mask 00FFFF ==> diff=005008
Verify Error: 000006: read 000000, wanted 000B07, mask 00FFFF ==> diff=000B07
More Verify Errors, unable to list all (total=95)
Programming CONFIG, 0x300000..0x300006
Verifying CONFIG, 0x300000..0x300006
Verifying 0x300000..0x300006
Verify Error: 300000: read 00C027, wanted 00F0E7, mask 00FFFF ==> diff=0030C0
Verify Error: 300004: read 008500, wanted 00FDFF, mask 00FFFF ==> diff=0078FF
Verify Error: 300006: read 0000A1, wanted 00FFBB, mask 00FFFF ==> diff=00FF1A
ERROR: Programming FAILED !
Bookmarks