Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

16F88 Code protected question

Status
Not open for further replies.

RonnyBone

New Member
Note: Using Winpic Software, Noppp interface, and Pic Simulator IDE for compiling

16F628, 16F84A, and 16F648 works great with the note i specified above. I just received my 16F88 and seems to program/erase ok only when using hex files compiled with non 16F88 using pic simulator. All of my 16F628 files programmed successfully to 16F88. I wrote a sample test file using 16F88 as a micro selection and compiled it then programmed it to 16F88 and ever since cant program this chip anymore. I dont know if its code protected or what? The winpic cant get the chip programmed anymore. It happened to 3 of my 16F88. I read somewhere that if code protected, it must perform a chip erase to remove code protection. Is there anyway around this using winpic? Is winpic capable of removing code protection? Any help is appreciated.

Thanks
 
I think your serial port may not be putting out sufficient voltage to erase the devices properly, or perhaps putting them into programming mode at all...
I personally, would build a parallel port programmer, with proper onboard power supply and erase the devices that way, the software I would use with it would be IC-Prog from Bonny Gijzen. Perhaps not what you wanted to hear, but that's life I'm afraid :)
 
As suggested, programmers that connect to the serial port (but aren't serial port programmers) tend to be troublesome - because they often rely on the serial port exceeding the RS232 standard.

However, another possibility is the config fuse settings, have you enabled the internal oscillator in the 16F88's?. If you have, you may not be able to enter programming mode anymore with a crude programmer - because you have to enter programming mode BEFORE the oscillator can start running, this requires either switching Vdd, or being able to ground MCLR to reset the device.
 
By the way i have attached the Noppp interface schematic (parallel port) that im using with 14V Adapter.

Nigel, yes i use the internal oscillator with all types of pics and never seems to give me problems except the 16f88. Im not sure if you guys are aware of winpic software, but Winpic relies on the Dev files from MBLAB IDE for correct configuration. I did not have it at the time using 16F88. Maybe this could of caused the problem and possibly enabled the code protection? Im out of 16F88 to give it another try, but next time will use dev files attached.

I know this interface is capable of flashing 16F88 as it did successfully with 3 of them the first time and only. Is there any modifications or tricks i can get around this.
 

Attachments

  • noppp-x.gif
    noppp-x.gif
    11 KB · Views: 700
Last edited:
What a dreadful looking programmer...I don't doubt though that it works, with a range of parallel ports, but probably not all. Not all parallel ports drive the same, especially when they are configured as ecp/epp. I have seen ports that output as little as 3.7V before, but because it would be a logic high, so the printer works ok with it, but little else will. I assume that you have tried setting the port as a standard parallel port on the PC ?

I would definately build a better programmer if I were you :)
 
That was it. Thank you so much Nigel. I did as you told me too "this requires either switching Vdd, or being able to ground MCLR to reset the device." grounding MCLR then read the 16f88 until read successfully which indicated its in programming mode. It may take few attempts. I owe it all too you Nigel.

Any good bootloaders out there? I think serial programming is more reliable then what i currently have, dont you think?
 
Last edited:
No, it's not really any different - it's just at the moment you only have a very poor programmer, reducing the parts count to the minimum obviously reduces functionality.
 
Help with pic 16f88 and willem

I GOT THE WILLEM 5.0C 0.98D8 SOFTWARE AND BURNER AS THE PICTURES I'VE POSTED HERE... BUT IT DOES NOT RECOGNIZE MY PIC AS EMPTY....

It is my first pic, so can someone help me out how to put this hex into that????

Can some expert help me to pass this life trouble?

Cheers!


I AM TRYING TO PUT THIS HEX ONTO THE PIC 16F88:



:020000040000FA
:0200000069286D
:080008000528F000030EF100D1
:10001000831203138B183928831203130C19192820
:100020008C18582883120313710E8300F00E700E83
:1000300009000C11831203133518202805162128F6
:100040000512B509321C28283108AF003008AE006F
:100050001608AB001508AA002B082F07AD002A08C8
:100060002E07AC000318AD0A2D0896002C08950049
:1000700008288B100F08A5000E08A4000F08250201
:10008000031946280F08A5000E08A400331C5028A9
:1000900023082502A70022082402A600031CA703A8
:1000A0002508A3002408A200B401910164000828D7
:1000B0008C1083120313B40A341D0828831603130B
:1000C0000C11831203130B12970110101211051655
:1000D0001228831603130F178F160F168312031798
:1000E000103085008316031301118110011083164F
:1000F00003139B01831203138501831603134030FE
:10010000850083120313860183160313FF308600D4
:10011000831603138113831203139016831603139C
:10012000A9309200831203139101B4017F30920031
:10013000831203130030970083120313B501CD011E
:10014000CC010516A420C828A001A101051F201478
:100150000608FE39A1000310A109A10C21087F3A6D
:1001600003198B2921087E3A0319A22921087D3A17
:100170000319B62921087C3A0319CA29201CC4286E
:100180002108643ECC00C7282108643CCC0008004C
:100190009101B401101075308F00A30030308E0033
:1001A000A2000C100618D228061CD4281014061819
:1001B000D728061CD9280C18C8280E08A4000F0838
:1001C000A50023082502A70022082402A600031C7C
:1001D000A7032708AF0096002608AE009500250863
:1001E000A3002408A200831203170514831203132B
:1001F0008B100C118C100B1683160313011783162A
:1002000003130C158C14831203130B178B170A306E
:100210009700A42033102708A9002608A80033144B
:10022000182132102908B1002808B0003214092919
:100230000730C000A130C1002030C2002908C3002F
:100240002808C40071214108C0004208C1004D08BF
:10025000C3004C08C40050214608C0004708C10034
:100260004808C2000030C3006430C4007121410856
:10027000C3004208C400C0010730C000A130C10063
:100280002030C20071214108A9004208A8000310D3
:10029000A90CA80C031C4F29A80A0319A90A0800D5
:1002A000C501C601C7018030C800C00CC10C031CC9
:1002B00062294408C70743080318430FC6070318F9
:1002C000C50A0310C11F6A294408C607430803185A
:1002D000430FC507C50CC60CC70CC80C031C552919
:1002E0000800C901CA011830CB00420DC10DC00D74
:1002F000CA0DC90DC20D4408CA024308031C430FAE
:10030000C9020318421442188829C9074408CA07B9
:10031000CB0B752908000530D10085179521851371
:100320009521D10B8D298513A4280830CE002F30BC
:10033000CF000330D000CE0B9E29CF0BA029D00BCD
:100340009B290800FF30D10085170516AD21051245
:10035000AD21D10BA5298513A428C230CE000230CF
:10036000CF00CE0BB429CF0BB1290800FF30D1004C
:1003700085170516C1210512C121D10BB929051216
:10038000A428C230CE000130CF00CE0BC829CF0B3D
:10039000C52908000A30D1000618CC298517061C8B
:0C03A000CF298513D10BCC298513A4288C
:02400E00502F31
:02401000FC3F73
:00000001FF
 
PLEASE, PEOPLE SOMEBODY HELP ME ... I CANNOT FIND THE 13.5V ON VPP .... MY WILLEM 5.0C DOES NOT SUPPORT IT?

I FOUND THIS INFO:

VPP Signal (Signal a programming action)
Vpp connects to the reset input of the pic microcontroller labelled MCLR. During programming or verify this signal is raised to the programming voltage (13.5V) - or VCC+3.5V. This signals to the microcontroller that programming/verification is about to start and for older parts, supplies current.

do I need to force this voltage into the vpp? what jumper settings must be made in order to use the power supply external for this willem crap 5.0c????

PLEASE, PLEASE AND PLEASE!
 
The programmer should have its own internal Vpp supply in it. Can't really help much without a schematic of the programmer itself.

Does your programmer use the serial or parallel port on the PC?
 
Last edited:
Some mods must be made manually on willem 5.0c hardware

I think I found the problem is that the crap willem does not provide all the links, some stuff must be wired manually, I found this:
 

Attachments

  • icsp_c.png
    icsp_c.png
    3.2 KB · Views: 518
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top