GPIO.3 RESET

General discussion on mikroC.
Author
Message
Storic
Posts: 393
Joined: 01 Oct 2004 00:20
Location: Australia (S.A.)

GPIO.3 RESET

#1 Post by Storic » 09 Jul 2005 04:17

hi,
when I disable the Master clear so as to use GPIO port 3 as an input, when I try to reprogram, the 12F675 micro will not program any more. :(

Is their any way to program the micro when the master reset has been disabled. :?

Andrew

Charlie
Posts: 2744
Joined: 01 Dec 2004 22:29

#2 Post by Charlie » 09 Jul 2005 11:43

HI storic,


What are you using to program the pic with ?
Regards Charlie M.

Charlie
Posts: 2744
Joined: 01 Dec 2004 22:29

#3 Post by Charlie » 09 Jul 2005 20:55

Hi Storic,

I am working with a 12F675 and using the Easypic2 making a Servo controller have had no problems with programming the PIC.I have all the config fuses set in software and everything is working Great .Thats why I ask about the Programmer you are using.:)
Regards Charlie M.

Storic
Posts: 393
Joined: 01 Oct 2004 00:20
Location: Australia (S.A.)

#4 Post by Storic » 09 Jul 2005 23:27

I am using the EasyPIC2 board and it all programs OK, it is just when I turn off the master reset in the edit project (MCLRE_OFF is ticked), then once I program the 12F675 micro, It can not be reprogramed.

I am currently leaving out GPIO.3 untill the last moment when I will need to start debugging my program with this pin.

Code Protect is NONE,
Data EE Protect is disable,
BOD enabled,
Master Clear Disable,
Power up timer Disabled,
Watchdog timer Disabled OCS INTRC I/O

Andrew

Charlie
Posts: 2744
Joined: 01 Dec 2004 22:29

#5 Post by Charlie » 10 Jul 2005 00:11

Hi Andrew,

HI Know exactly you are talking about.In the past I have had problems with the 675 pics,and on ocasion I still do.I have found that if I go to the USB/config in the tool bar of PICFlash and slow down the transfer rate then I no longer have problems. Let me know how it goes.
Regards Charlie M.

Storic
Posts: 393
Joined: 01 Oct 2004 00:20
Location: Australia (S.A.)

#6 Post by Storic » 10 Jul 2005 03:13

I tried your suggestion, Slowed down the USB programming and found the problem still exist. The additional information is the OSC

When I get the problem :(
Bandgap Cal. Voltage = 0-lowest
OSCCAL Location 0000

When the 675 programs OK :)
Bandgap Cal. Voltage = 1-
OSCCAL Location 34A0

Andrew

Storic
Posts: 393
Joined: 01 Oct 2004 00:20
Location: Australia (S.A.)

#7 Post by Storic » 10 Jul 2005 03:35

In addition, when I read the program on the 675, I get the

code protect 0000h - 03ffh(all)
Data EE Protect Enabled
OSC LP
:?: :? :?: :? :?:

Andrew

Charlie
Posts: 2744
Joined: 01 Dec 2004 22:29

#8 Post by Charlie » 10 Jul 2005 12:04

Hi Andrew,
When I get the problem Sad
Bandgap Cal. Voltage = 0-lowest
OSCCAL Location 0000

When the 675 programs OK Smile
Bandgap Cal. Voltage = 1-
OSCCAL Location 34A0
I get the same thing when I program the pic and I don't have any problems.I know its sure can be frustration.How slow did you configure the transfer speed? I have mine set in the middle. I tried to mike mine cause the error ,but I can't. This has come quite a few times.You could do a search for 12675 errors and see if you can get any info from that.Im the mean time I will try to simulate the problem.
Regards Charlie M.

Storic
Posts: 393
Joined: 01 Oct 2004 00:20
Location: Australia (S.A.)

#9 Post by Storic » 10 Jul 2005 12:25

I had slowed down all the way to its lowest level, Increased by step up to the mid and still no good, ????

I had even tried an earlier version (the older type from Pascal 2.16) still the same. I will look deeper, It could even be my PC causing this problem????

I will get back to it within a couple of days, I find I get closer to a solution when I have a break from the problem.

Andrew

Charlie
Posts: 2744
Joined: 01 Dec 2004 22:29

#10 Post by Charlie » 10 Jul 2005 12:54

Hi Andrew,

Do you have the newest version of PicFlash? 5.0.0.07 5005 ?
Regards Charlie M.

Storic
Posts: 393
Joined: 01 Oct 2004 00:20
Location: Australia (S.A.)

#11 Post by Storic » 10 Jul 2005 23:16

Yes,
I have the newest version of PICFLASH 5.0.0.07 5005

It has been noted that with the 12F675 that program OK, I done see any LED blink on the EASYPIC2 board, the one that done program after the master clear has been disabled, leds blink on the easypic2 board.

Out of 5 675 chips that have been the master clear disabled, that do not program anymore, I manage to recover one of them. ( I did nothing different with that one than with the others).

It may be that I have a batch of poor 12F675 micros???

As this is under the 2 k limit, I will try on another 2 x PC (Notebook and desktop).

Andrew

Storic
Posts: 393
Joined: 01 Oct 2004 00:20
Location: Australia (S.A.)

#12 Post by Storic » 11 Jul 2005 13:23

I have tried on another 2 x PC and I still have the problem, I even tried a different 12F675 from another batch and problem is still their,

That is I can program the 675 with the master clear enabled all the time,
I can program the 675 with the master clear disabled only once.

I ask, is this a normal thing or an I just unlucky.
Do I need to use MPlab???

Andrew

Storic
Posts: 393
Joined: 01 Oct 2004 00:20
Location: Australia (S.A.)

#13 Post by Storic » 11 Jul 2005 14:24

Please note:

Their seems to be a problem within the Programmer???

A say thei due to the following test. :o

I had reinstalled MPLAB V7.2 and enabled my old PICSTART Plus. I was then able to erase the program and reuse the 675 micro. :shock:

I disable the master clear within mC and tried again using the onboard programmer, Can only write once if the master clear has been disabled.

MPLAB I can load any different HEX files with the master clear disabled and program over the top of a program that has the master clear disabled. :?

I am using COM PORT 1 on the MPLAB PICKSTART Plus and USB on the mC.

Andrew

Charlie
Posts: 2744
Joined: 01 Dec 2004 22:29

#14 Post by Charlie » 11 Jul 2005 18:14

Hi Andrew,

I have a PICkit1 and when Ever I get the "error" with the 675 I erase the Pic with the PICkit and all is good.I was going to mention that,but not too many people what to hear that.:)I don't quite know what happens to cause the error. :?
Regards Charlie M.

Storic
Posts: 393
Joined: 01 Oct 2004 00:20
Location: Australia (S.A.)

#15 Post by Storic » 12 Jul 2005 01:03

I remember hearing somethink about the reset volgage level, If this is incorrect then you will not be able to program the micro, could this be the case with the master clear disabled. Is the programmer required to have a higher reset voltage? :?:

As an added note: with my meter on the reset pin on the PICKSTART Plus, I dont get any voltage varience. not like the onboard programmer of the Easypic2 board where I get 12V? :roll:

This was the only difference I could find when comparing the two. :?

Andrew

Post Reply

Return to “mikroC General”