CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Programming OTP vs. EPROM issue

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
oscar
Guest







Programming OTP vs. EPROM issue
PostPosted: Thu Oct 31, 2002 12:40 am     Reply with quote

Hi all,

I have been doing my development for a PIC16C771 with a EPROM-UV erasable part until today that I had to actually program a OTP version of the PIC16C771. I have basically trashed two OTP PIC16C771's via ICSP. It programs it and at the end it gives me an error that looks as follows (excerpt from error file):

Device Type: 16C771
Program Memory Errors
Address Good Bad
0001: 008A 3FFF
0002: 29FD 3FFF
0003: 0000 3FFF
0004: 1683 3FFF
0005: 1205 3FFF
0006: 1283 3FFF
0007: 1205 3FFF
0008: 3400 3FFF
0009: 3060 3FFF
000A: 0084 3FFF
000B: 0800 3FFF
000C: 1903 3FFF
000D: 281F 3FFF
000E: 3001 3FFF
000F: 00A1 3FFF
0010: 30BF 3FFF
0011: 00A0 3FFF
0012: 0064 3FFF
0013: 0BA0 3FFF
0014: 2812 3FFF
0015: 0BA1 3FFF
0016: 2810 3FFF
0017: 304A 3FFF
0018: 00A0 3FFF
0019: 0BA0 3FFF
001A: 2819 3FFF
001B: 0000 3FFF
001C: 0064 3FFF
001D: 0B80 3FFF
001E: 280E 3FFF
001F: 3400 3FFF
0020: 1705 3FFF
Any additional errors are not displayed.
Configuration Bits Errors
Configuration Setting Expected Received
Oscillator INTRC I/O ER CLKOUT
Power Up Timer On Off
Brown Out Voltage 4.2V 2.5V
Master Clear Enable Internal External


It says that the configuration bits and the actual program memory were programmed incorrectly. With the UV erasable part I never had these problems.... I think that my ICSP connector from my PICSTART PLUS may not be carrying all of the signals. Currently I have Vdd, Vss, Vpp, RB6 & RB7 connected from the programmer to the PCB. I have only one more 'C771 OTP part left and I don't want to program it again and have to trash it because I'm doing it wrong. Has anyone encountered this problem????

Thanks,
O.
___________________________
This message was ported from CCS's old forum
Original Post ID: 8322
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

Re: Programming OTP vs. EPROM issue
PostPosted: Thu Oct 31, 2002 6:51 am     Reply with quote

Don't throw those parts away yet. From the data, it looks like the part is not programmed at all. When you program the EPROM version, is it installed in the exact setup that you are programming the OTP?


:=Hi all,
:=
:=I have been doing my development for a PIC16C771 with a EPROM-UV erasable part until today that I had to actually program a OTP version of the PIC16C771. I have basically trashed two OTP PIC16C771's via ICSP. It programs it and at the end it gives me an error that looks as follows (excerpt from error file):
:=
:=Device Type: 16C771
:=Program Memory Errors
:=Address Good Bad
:=0001: 008A 3FFF
:=0002: 29FD 3FFF
:=0003: 0000 3FFF
:=0004: 1683 3FFF
:=0005: 1205 3FFF
:=0006: 1283 3FFF
:=0007: 1205 3FFF
:=0008: 3400 3FFF
:=0009: 3060 3FFF
:=000A: 0084 3FFF
:=000B: 0800 3FFF
:=000C: 1903 3FFF
:=000D: 281F 3FFF
:=000E: 3001 3FFF
:=000F: 00A1 3FFF
:=0010: 30BF 3FFF
:=0011: 00A0 3FFF
:=0012: 0064 3FFF
:=0013: 0BA0 3FFF
:=0014: 2812 3FFF
:=0015: 0BA1 3FFF
:=0016: 2810 3FFF
:=0017: 304A 3FFF
:=0018: 00A0 3FFF
:=0019: 0BA0 3FFF
:=001A: 2819 3FFF
:=001B: 0000 3FFF
:=001C: 0064 3FFF
:=001D: 0B80 3FFF
:=001E: 280E 3FFF
:=001F: 3400 3FFF
:=0020: 1705 3FFF
:=Any additional errors are not displayed.
:=Configuration Bits Errors
:=Configuration Setting Expected Received
:=Oscillator INTRC I/O ER CLKOUT
:=Power Up Timer On Off
:=Brown Out Voltage 4.2V 2.5V
:=Master Clear Enable Internal External
:=
:=
:=It says that the configuration bits and the actual program memory were programmed incorrectly. With the UV erasable part I never had these problems.... I think that my ICSP connector from my PICSTART PLUS may not be carrying all of the signals. Currently I have Vdd, Vss, Vpp, RB6 & RB7 connected from the programmer to the PCB. I have only one more 'C771 OTP part left and I don't want to program it again and have to trash it because I'm doing it wrong. Has anyone encountered this problem????
:=
:=Thanks,
:=O.
___________________________
This message was ported from CCS's old forum
Original Post ID: 8326
johnpcunningham
Guest







Re: Programming OTP vs. EPROM issue
PostPosted: Thu Oct 31, 2002 7:55 am     Reply with quote

It sounds like you have been doing your development with a UV part, programming it with the PicStart+, then putting it in you circuit. Now your tryingto use in-circuit serial programming to program the OTP device.

First, you can program the UV part using the serial method just as you can the OTP. Try that before you waste your last OTP part. Second, what is your clock configuration? I remember reading somewhere that if an external RC clock was being used, it needed to be disabled (i.e. jumper) during programming.


Also, check out the programming spec on the part. It has some caveats about Vpp, Vdd,and MCLR that you should read if you have not already.

<a href="http://www.microchip.com/download/lit/suppdoc/specs/30298d.pdf" TARGET="_blank">http://www.microchip.com/download/lit/suppdoc/specs/30298d.pdf</a>
___________________________
This message was ported from CCS's old forum
Original Post ID: 8329
oscar
Guest







Re: Programming OTP vs. EPROM issue
PostPosted: Thu Oct 31, 2002 12:17 pm     Reply with quote

Well, let me clarify things a bit. I have been doing my development with a UV part (Internal oscillator INTRC) on a protoboard. I used to program the UV part on the PICSTART plus and just plugged it into the protoboard and life was dandy.

Now I have my circuit layed out on a PCB with a OTP part so I just brought out the vital lines indicated in the icsp programming spec, namely Vdd, Vss, Vpp, RB6(sclk) & RB7(sda).


I will try to attach my UV DIP part to the PCB SOIC pads and try to program it like that. I will let you know if I succeeded.
Thanks,
O

:=It sounds like you have been doing your development with a UV part, programming it with the PicStart+, then putting it in you circuit. Now your tryingto use in-circuit serial programming to program the OTP device.
:=
:=First, you can program the UV part using the serial method just as you can the OTP. Try that before you waste your last OTP part. Second, what is your clock configuration? I remember reading somewhere that if an external RC clock was being used, it needed to be disabled (i.e. jumper) during programming.
:=
:=
:=Also, check out the programming spec on the part. It has some caveats about Vpp, Vdd,and MCLR that you should read if you have not already.
:=
:= <a href="http://www.microchip.com/download/lit/suppdoc/specs/30298d.pdf" TARGET="_blank"> <a href="http://www.microchip.com/download/lit/suppdoc/specs/30298d.pdf" TARGET="_blank">http://www.microchip.com/download/lit/suppdoc/specs/30298d.pdf</a></a>
___________________________
This message was ported from CCS's old forum
Original Post ID: 8341
oscar
Guest







Re: Programming OTP vs. EPROM issue
PostPosted: Thu Oct 31, 2002 12:19 pm     Reply with quote

No, the EPROM part was programmed on the PICSTART PLUS programmer then I plugged it into my protoboard. Now I have my OTP part soldered (which I regret) into a PCB... I think you might be right.... it looks like all the locations are at 3FFF which means non-programmed.....
Do you have any advise?
Thanks,
O

:=Don't throw those parts away yet. From the data, it looks like the part is not programmed at all. When you program the EPROM version, is it installed in the exact setup that you are programming the OTP?
:=
:=
:=:=Hi all,
:=:=
:=:=I have been doing my development for a PIC16C771 with a EPROM-UV erasable part until today that I had to actually program a OTP version of the PIC16C771. I have basically trashed two OTP PIC16C771's via ICSP. It programs it and at the end it gives me an error that looks as follows (excerpt from error file):
:=:=
:=:=Device Type: 16C771
:=:=Program Memory Errors
:=:=Address Good Bad
:=:=0001: 008A 3FFF
:=:=0002: 29FD 3FFF
:=:=0003: 0000 3FFF
:=:=0004: 1683 3FFF
:=:=0005: 1205 3FFF
:=:=0006: 1283 3FFF
:=:=0007: 1205 3FFF
:=:=0008: 3400 3FFF
:=:=0009: 3060 3FFF
:=:=000A: 0084 3FFF
:=:=000B: 0800 3FFF
:=:=000C: 1903 3FFF
:=:=000D: 281F 3FFF
:=:=000E: 3001 3FFF
:=:=000F: 00A1 3FFF
:=:=0010: 30BF 3FFF
:=:=0011: 00A0 3FFF
:=:=0012: 0064 3FFF
:=:=0013: 0BA0 3FFF
:=:=0014: 2812 3FFF
:=:=0015: 0BA1 3FFF
:=:=0016: 2810 3FFF
:=:=0017: 304A 3FFF
:=:=0018: 00A0 3FFF
:=:=0019: 0BA0 3FFF
:=:=001A: 2819 3FFF
:=:=001B: 0000 3FFF
:=:=001C: 0064 3FFF
:=:=001D: 0B80 3FFF
:=:=001E: 280E 3FFF
:=:=001F: 3400 3FFF
:=:=0020: 1705 3FFF
:=:=Any additional errors are not displayed.
:=:=Configuration Bits Errors
:=:=Configuration Setting Expected Received
:=:=Oscillator INTRC I/O ER CLKOUT
:=:=Power Up Timer On Off
:=:=Brown Out Voltage 4.2V 2.5V
:=:=Master Clear Enable Internal External
:=:=
:=:=
:=:=It says that the configuration bits and the actual program memory were programmed incorrectly. With the UV erasable part I never had these problems.... I think that my ICSP connector from my PICSTART PLUS may not be carrying all of the signals. Currently I have Vdd, Vss, Vpp, RB6 & RB7 connected from the programmer to the PCB. I have only one more 'C771 OTP part left and I don't want to program it again and have to trash it because I'm doing it wrong. Has anyone encountered this problem????
:=:=
:=:=Thanks,
:=:=O.
___________________________
This message was ported from CCS's old forum
Original Post ID: 8342
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

Re: Programming OTP vs. EPROM issue
PostPosted: Thu Oct 31, 2002 2:12 pm     Reply with quote

Refer to the Microchip website for an App note regarding in circuit programming. Make sure that you have implemented it correctly. I believe all power pins must be powered. Special care must be taken in regards to the MCLR pin. This will have higher voltage the the Vdd pins. Make sure that your circuit is not dragging down the voltage.

PS: I like using machine pin sockets for the micros :)

Regards,
Mark

:=No, the EPROM part was programmed on the PICSTART PLUS programmer then I plugged it into my protoboard. Now I have my OTP part soldered (which I regret) into a PCB... I think you might be right.... it looks like all the locations are at 3FFF which means non-programmed.....
:=Do you have any advise?
:=Thanks,
:=O
:=
:=:=Don't throw those parts away yet. From the data, it looks like the part is not programmed at all. When you program the EPROM version, is it installed in the exact setup that you are programming the OTP?
:=:=
:=:=
:=:=:=Hi all,
:=:=:=
:=:=:=I have been doing my development for a PIC16C771 with a EPROM-UV erasable part until today that I had to actually program a OTP version of the PIC16C771. I have basically trashed two OTP PIC16C771's via ICSP. It programs it and at the end it gives me an error that looks as follows (excerpt from error file):
:=:=:=
:=:=:=Device Type: 16C771
:=:=:=Program Memory Errors
:=:=:=Address Good Bad
:=:=:=0001: 008A 3FFF
:=:=:=0002: 29FD 3FFF
:=:=:=0003: 0000 3FFF
:=:=:=0004: 1683 3FFF
:=:=:=0005: 1205 3FFF
:=:=:=0006: 1283 3FFF
:=:=:=0007: 1205 3FFF
:=:=:=0008: 3400 3FFF
:=:=:=0009: 3060 3FFF
:=:=:=000A: 0084 3FFF
:=:=:=000B: 0800 3FFF
:=:=:=000C: 1903 3FFF
:=:=:=000D: 281F 3FFF
:=:=:=000E: 3001 3FFF
:=:=:=000F: 00A1 3FFF
:=:=:=0010: 30BF 3FFF
:=:=:=0011: 00A0 3FFF
:=:=:=0012: 0064 3FFF
:=:=:=0013: 0BA0 3FFF
:=:=:=0014: 2812 3FFF
:=:=:=0015: 0BA1 3FFF
:=:=:=0016: 2810 3FFF
:=:=:=0017: 304A 3FFF
:=:=:=0018: 00A0 3FFF
:=:=:=0019: 0BA0 3FFF
:=:=:=001A: 2819 3FFF
:=:=:=001B: 0000 3FFF
:=:=:=001C: 0064 3FFF
:=:=:=001D: 0B80 3FFF
:=:=:=001E: 280E 3FFF
:=:=:=001F: 3400 3FFF
:=:=:=0020: 1705 3FFF
:=:=:=Any additional errors are not displayed.
:=:=:=Configuration Bits Errors
:=:=:=Configuration Setting Expected Received
:=:=:=Oscillator INTRC I/O ER CLKOUT
:=:=:=Power Up Timer On Off
:=:=:=Brown Out Voltage 4.2V 2.5V
:=:=:=Master Clear Enable Internal External
:=:=:=
:=:=:=
:=:=:=It says that the configuration bits and the actual program memory were programmed incorrectly. With the UV erasable part I never had these problems.... I think that my ICSP connector from my PICSTART PLUS may not be carrying all of the signals. Currently I have Vdd, Vss, Vpp, RB6 & RB7 connected from the programmer to the PCB. I have only one more 'C771 OTP part left and I don't want to program it again and have to trash it because I'm doing it wrong. Has anyone encountered this problem????
:=:=:=
:=:=:=Thanks,
:=:=:=O.
___________________________
This message was ported from CCS's old forum
Original Post ID: 8346
oscar
Guest







Re: Programming OTP vs. EPROM issue
PostPosted: Thu Oct 31, 2002 2:29 pm     Reply with quote

Yes, I will double-check everything well.
I like machine pin sockets too except that my OTP micro on the PCB is a 20-pin SOIC.... couldn't fit a 20-pin DIP there.
Thanks.
O

:=Refer to the Microchip website for an App note regarding in circuit programming. Make sure that you have implemented it correctly. I believe all power pins must be powered. Special care must be taken in regards to the MCLR pin. This will have higher voltage the the Vdd pins. Make sure that your circuit is not dragging down the voltage.
:=
:=PS: I like using machine pin sockets for the micros <img src="http://www.ccsinfo.com/pix/forum/smile.gif" border="0">
:=
:=Regards,
:=Mark
:=
:=:=No, the EPROM part was programmed on the PICSTART PLUS programmer then I plugged it into my protoboard. Now I have my OTP part soldered (which I regret) into a PCB... I think you might be right.... it looks like all the locations are at 3FFF which means non-programmed.....
:=:=Do you have any advise?
:=:=Thanks,
:=:=O
:=:=
:=:=:=Don't throw those parts away yet. From the data, it looks like the part is not programmed at all. When you program the EPROM version, is it installed in the exact setup that you are programming the OTP?
:=:=:=
:=:=:=
:=:=:=:=Hi all,
:=:=:=:=
:=:=:=:=I have been doing my development for a PIC16C771 with a EPROM-UV erasable part until today that I had to actually program a OTP version of the PIC16C771. I have basically trashed two OTP PIC16C771's via ICSP. It programs it and at the end it gives me an error that looks as follows (excerpt from error file):
:=:=:=:=
:=:=:=:=Device Type: 16C771
:=:=:=:=Program Memory Errors
:=:=:=:=Address Good Bad
:=:=:=:=0001: 008A 3FFF
:=:=:=:=0002: 29FD 3FFF
:=:=:=:=0003: 0000 3FFF
:=:=:=:=0004: 1683 3FFF
:=:=:=:=0005: 1205 3FFF
:=:=:=:=0006: 1283 3FFF
:=:=:=:=0007: 1205 3FFF
:=:=:=:=0008: 3400 3FFF
:=:=:=:=0009: 3060 3FFF
:=:=:=:=000A: 0084 3FFF
:=:=:=:=000B: 0800 3FFF
:=:=:=:=000C: 1903 3FFF
:=:=:=:=000D: 281F 3FFF
:=:=:=:=000E: 3001 3FFF
:=:=:=:=000F: 00A1 3FFF
:=:=:=:=0010: 30BF 3FFF
:=:=:=:=0011: 00A0 3FFF
:=:=:=:=0012: 0064 3FFF
:=:=:=:=0013: 0BA0 3FFF
:=:=:=:=0014: 2812 3FFF
:=:=:=:=0015: 0BA1 3FFF
:=:=:=:=0016: 2810 3FFF
:=:=:=:=0017: 304A 3FFF
:=:=:=:=0018: 00A0 3FFF
:=:=:=:=0019: 0BA0 3FFF
:=:=:=:=001A: 2819 3FFF
:=:=:=:=001B: 0000 3FFF
:=:=:=:=001C: 0064 3FFF
:=:=:=:=001D: 0B80 3FFF
:=:=:=:=001E: 280E 3FFF
:=:=:=:=001F: 3400 3FFF
:=:=:=:=0020: 1705 3FFF
:=:=:=:=Any additional errors are not displayed.
:=:=:=:=Configuration Bits Errors
:=:=:=:=Configuration Setting Expected Received
:=:=:=:=Oscillator INTRC I/O ER CLKOUT
:=:=:=:=Power Up Timer On Off
:=:=:=:=Brown Out Voltage 4.2V 2.5V
:=:=:=:=Master Clear Enable Internal External
:=:=:=:=
:=:=:=:=
:=:=:=:=It says that the configuration bits and the actual program memory were programmed incorrectly. With the UV erasable part I never had these problems.... I think that my ICSP connector from my PICSTART PLUS may not be carrying all of the signals. Currently I have Vdd, Vss, Vpp, RB6 & RB7 connected from the programmer to the PCB. I have only one more 'C771 OTP part left and I don't want to program it again and have to trash it because I'm doing it wrong. Has anyone encountered this problem????
:=:=:=:=
:=:=:=:=Thanks,
:=:=:=:=O.
___________________________
This message was ported from CCS's old forum
Original Post ID: 8350
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group