Problem Programming PIC18F2550

Discussions related to MegaDrum Hardware

Re: Problem Programming PIC18F2550

Postby Firelord » Wed Jul 22, 2009 11:56 am

dmitri wrote:No reading, it is not connected to anything in this case and so consequently you should read infinite resistance between this pin and any other point/pin when PIC is out.

That's right. Pin 14 is connected to the ground through a 470n cap. When I power on the board via USB without the PIC in its socket, I get a falling voltage reading between pin 14 (of the socket in this case) and ground -- as far as I know that's the capacitor discharge and is normal, right?
Firelord
 
Posts: 666
Joined: Wed Jun 10, 2009 7:50 pm
Location: Estonia

Re: Problem Programming PIC18F2550

Postby dmitri » Wed Jul 22, 2009 12:33 pm

Firelord wrote:
dmitri wrote:No reading, it is not connected to anything in this case and so consequently you should read infinite resistance between this pin and any other point/pin when PIC is out.

That's right. Pin 14 is connected to the ground through a 470n cap. When I power on the board via USB without the PIC in its socket, I get a falling voltage reading between pin 14 (of the socket in this case) and ground -- as far as I know that's the capacitor discharge and is normal, right?

If there is no PIC in the socket then there is nothing to charge the capacitor so there should not be any voltage at all unless you set your meter to a resistance measuring mode which you mustn't do with a powered board.
dmitri
Site Admin
 
Posts: 8715
Joined: Fri Aug 03, 2007 8:05 pm

Re: Problem Programming PIC18F2550

Postby Firelord » Wed Jul 22, 2009 12:46 pm

dmitri wrote:unless you set your meter to a resistance measuring mode which you mustn't do with a powered board.

Look, I may be quite new to manufacturing PCB's and flashing MCU's, but I'm not completely new to electronics in general and am able to handle the meter. The reading between ground and socket pin 14 usually starts at about 1.1V and is falling at about a 0.02V/s rate.
Firelord
 
Posts: 666
Joined: Wed Jun 10, 2009 7:50 pm
Location: Estonia

Re: Problem Programming PIC18F2550

Postby dmitri » Wed Jul 22, 2009 12:57 pm

Firelord wrote:
dmitri wrote:unless you set your meter to a resistance measuring mode which you mustn't do with a powered board.

Look, I may be quite new to manufacturing PCB's and flashing MCU's, but I'm not completely new to electronics in general and am able to handle the meter. The reading between ground and socket pin 14 usually starts at about 1.1V and is falling at about a 0.02V/s rate.

To be honest, I don't know what to say.
dmitri
Site Admin
 
Posts: 8715
Joined: Fri Aug 03, 2007 8:05 pm

Re: Problem Programming PIC18F2550

Postby Ken Forgettable » Wed Jul 22, 2009 1:40 pm

Firelord wrote:
dmitri wrote:unless you set your meter to a resistance measuring mode which you mustn't do with a powered board.

Look, I may be quite new to manufacturing PCB's and flashing MCU's, but I'm not completely new to electronics in general and am able to handle the meter. The reading between ground and socket pin 14 usually starts at about 1.1V and is falling at about a 0.02V/s rate.

Then check the onboard regulator and associated cap's too - got the power jumper off?
Ken Forgettable
 
Posts: 402
Joined: Tue Jan 06, 2009 5:04 pm

Re: Problem Programming PIC18F2550

Postby dmitri » Wed Jul 22, 2009 1:51 pm

Ken Forgettable wrote:Then check the onboard regulator and associated cap's too - got the power jumper off?

He is not using Synthex's PCB.
dmitri
Site Admin
 
Posts: 8715
Joined: Fri Aug 03, 2007 8:05 pm

Re: Problem Programming PIC18F2550

Postby Ken Forgettable » Wed Jul 22, 2009 2:29 pm

dmitri wrote:
Ken Forgettable wrote:Then check the onboard regulator and associated cap's too - got the power jumper off?

He is not using Synthex's PCB.

Then I think he needs a fresh battery in his meter ;)
Ken Forgettable
 
Posts: 402
Joined: Tue Jan 06, 2009 5:04 pm

Re: Problem Programming PIC18F2550

Postby Firelord » Wed Jul 22, 2009 2:50 pm

dmitri wrote:To be honest, I don't know what to say.

Never mind, I appreciate your helping efforts. But I usually get these non-trivial problems, most of them rather challenging (at least they seem to be at first). If I find the reason for this strange board behaviour, I'm going to publish it here.
Ken Forgettable wrote:Then I think he needs a fresh battery in his meter ;)

Much to my regret that's not the case. The second meter that I have here gives a slightly different reading but still -- the voltage between gnd and 14 pin without PIC in the socket is not 0V somehow.
Firelord
 
Posts: 666
Joined: Wed Jun 10, 2009 7:50 pm
Location: Estonia

Re: Problem Programming PIC18F2550

Postby dmitri » Wed Jul 22, 2009 3:26 pm

Forget about measuring voltage on a capacitor which has only one pin connected, it's pretty pointless exercise - it can be a charge from a static electricity, cosmic x-ray and etc. What matters is that pin 14 has infinite resistance to any other pin/track/point and that the capacitor's value is between 200nF and 500nF.
dmitri
Site Admin
 
Posts: 8715
Joined: Fri Aug 03, 2007 8:05 pm

Re: Problem Programming PIC18F2550

Postby Firelord » Wed Jul 22, 2009 3:34 pm

dmitri wrote:Forget about measuring voltage on a capacitor which has only one pin connected, it's pretty pointless exercise - it can be a charge from a static electricity, cosmic x-ray and etc. What matters is that pin 14 has infinite resistance to any other pin/track/point and that the capacitor's value is between 200nF and 500nF.

What about the cap's voltage rating? I use a 470nF 50V cap in there.
Firelord
 
Posts: 666
Joined: Wed Jun 10, 2009 7:50 pm
Location: Estonia

PreviousNext

Return to MegaDrum Hardware

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 121 guests