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 CCS Technical Support

losing pics. ICD-U40 problem.

 
Post new topic   Reply to topic    CCS Forum Index -> CCS ICD / Mach X / Load-n-Go
View previous topic :: View next topic  
Author Message
ivanperino



Joined: 08 Jun 2006
Posts: 14

View user's profile Send private message

losing pics. ICD-U40 problem.
PostPosted: Fri Mar 16, 2007 4:40 pm     Reply with quote


PIC16F88 - ICD v2.73 - ICD-U40 firmware v2.14 rev#100 - PCHW v4.017

Hi. We think we have serious problems with an ICD-U Programmer. We have used it for a long time until a stack happened. The NOMCLR fuse and a piece of code make the PIC useless, since it becomes undetectable from the ICD! the message "Couldn't detect target chip" appears after programming. We have tested with 2 PIC 16F88 and 2 PIC16F819 and both seem damaged.

I can show you the code if it is necessary. It is a very large one

Please, any orientation or help will be crucial at this stage. Thanks for your support.

Ivan Perino, Sergio Calderon
San Luis University - Argentina

Code:
#include <16F88.h>
#device ADC=10

#fuses WDT,INTRC_IO, PUT, NOBROWNOUT, NOLVP, NOWRT, NOPROTECT, NOMCLR
#use delay(clock=8000000)

#use rs232(baud=38400,xmit=PIN_A2,rcv=PIN_B0)
#define salida_pos pin_a7    //positivo para medir
#define salida_R1 pin_a0     //activa la resistencia R1.
#define salida_R2 pin_a1     //activo la resistencia R2.

#ifndef EEPROM_SDA                                                           
#define EEPROM_SDA  PIN_A3                                                   
#define EEPROM_SCL  PIN_A6                                                   
#endif                                                                       
#use i2c(master, sda=EEPROM_SDA, scl=EEPROM_SCL, FAST=400000)               
#define PIN_COM_PC  PIN_A5
...
...
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Mar 16, 2007 5:59 pm     Reply with quote

Quote:
The NOMCLR fuse and a piece of code make the PIC useless:

#fuses WDT,INTRC_IO, PUT, NOBROWNOUT, NOLVP, NOWRT, NOPROTECT, NOMCLR


The problem is the use of NOMCLR and INTRC_IO (or INTRC) at the
same time. It can cause the PIC to become un-programmable.
The Microchip ICD2 (and MPLAB) warn against doing this.

Read some topics on the Microchip forum about this problem:
http://forum.microchip.com/tm.aspx?m=147929
http://forum.microchip.com/tm.aspx?m=232283

Here is an article on it from Microchip Tech Support:
http://support2.microchip.com/KBSearch/KB_StdProb.aspx?ID=SQ6UJ9A003LD0
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> CCS ICD / Mach X / Load-n-Go 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