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

Random reset of PIC - application
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Christophe



Joined: 10 May 2005
Posts: 323
Location: Belgium

View user's profile Send private message

PostPosted: Fri Feb 15, 2008 3:32 am     Reply with quote

I've tested the 3V3 devices and somehow they interfere with the circuit (see above).

This is only the switch board you see here. Only switches and protection devices are present. The switch board is connected to the PIC board via conectors J1 and J2. The ground of the TVS's is routed via the PIC board via J2 to the chassis.

Is it usefull to make this board a 4 layer board? The PIC board is a 4 layer board.
Christophe



Joined: 10 May 2005
Posts: 323
Location: Belgium

View user's profile Send private message

PostPosted: Fri Feb 15, 2008 6:54 am     Reply with quote

I've changed the schematic. I took 1000ohm - 100 pF as RC network instead of the 10nF caps. I think the 10nF will be too slow and interfere with the matrix.

Any comments are welcome:

cbarberis



Joined: 01 Oct 2003
Posts: 172
Location: Punta Gorda, Florida USA

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

PostPosted: Fri Feb 15, 2008 8:11 am     Reply with quote

Here is my two cents worth of advise:

Many of the above recomendations are very sound, especially using a large GROUND PLANE even if your board is a two layer board, use enough ground plane flooding troughout on both sides. Your photo above depicting the path of the alleged esd current flow, shows a single trace that appears to be about 5 cm long to a pad that mounts trough a standoff, although this conductor seems to be thick enough to handle a good amount of dc current it is absolutely useless to dissipate the energy of a human or any other esd event coming from your user interface, additionally there is enough inductance on that trace to guarantee it not to work. Keep in mind that the esd event has a rise time that can be less than a couple of nS this translates to energy contained in frequencies in the GHz, we all know that currents at those frequencies are "skin-effect currents" they need large surface areas not conductor thickness to propagate. All the esd diodes, transzorbs, resistor or capacitor networks in the world will have very little effect in fixing this problem, for in the end what you have here is a giant ground bounce problem.

Here are some of the things you can do (if this indeed is an ESD problem)

1. Re-do the layout throughtout using as much ground plane flooding as possible on all the boards concerned, specially where you user key interface is.

2. Do NOT rely on a mechanical standoff to complete your ground connection path between boards, use a flat braided (~ 1cm) cable with mounting lugs in place of or with the standoff.

3. If your device has a floating metallic enclosure, make sure that you can AC couple the enclosure via a small capacitor to the common return point directly at your power supply side.
Christophe



Joined: 10 May 2005
Posts: 323
Location: Belgium

View user's profile Send private message

PostPosted: Fri Feb 15, 2008 8:34 am     Reply with quote

The ESD ground plane, where can I connect it to? Can I connect this plane to the PIC ground?

Can this plane be close to other lines (I/O, power) ?

I think I get what you mean. The problem is that the ESD return path is going via my PIC board to chassis is a problem. I will provide a different layout where I connect the plane directly onto chassis.. to be continued..
cbarberis



Joined: 01 Oct 2003
Posts: 172
Location: Punta Gorda, Florida USA

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

PostPosted: Fri Feb 15, 2008 10:17 am     Reply with quote

Ideally, this groundplane should be tied directly to your power supply commom ground, you do not want to tie it to another ground point that has a shared return to the commom power supply point, as this will create a ground bounce situation on the shared path. You should have no problem even with a 15 mil spacing distance from other adjacent conductors, as long as the ground plane area is much larger(in surface area) that the other adjacent conductors; keep in mind that this sudden fast rising inpulse of current wants to find the easiest and lowest impedance path to earth. The one thing to keep in mind in terms of proximity to other conductors is in the case where you have very small analog signals that you may be measuring, in such case try to reduce the distance; i.e. dont have a 1mV signal path conductor running along side the point where your esd ground plane strap is located as there is the possibility of some inductive or capacitive coupling, try placing this low level signal further away along the same grond plane or perhap isolated to the other side of the power,; i.e. ground plane, 5V and then low level signal.
newguy



Joined: 24 Jun 2004
Posts: 1946

View user's profile Send private message

PostPosted: Fri Feb 15, 2008 10:43 am     Reply with quote

Christophe,

Your new circuit layout looks good, but as I and others have been saying, please incorporate a ground plane. You don't need a 4 layer board for the keypad PCB. Just add an 'external plane' to top & bottom layers.

Once again, this is how I route signals:
- place components, routing signal paths first.
- when all signal lines have been done, route power lines.
- fill in all free areas of the board (top & bottom layers) with a copper 'fill'. My layout software calls this an 'external plane'.
- connect all ground lines on components to these planes. Then insert vias to connect top & bottom planes to each other.
- if there are any small isolated fills that can't be connected to the ground plane, I delete them entirely.

For a very rough service environment, it's a good idea to incorporate a separate ESD ground plane that connects to the supply's - terminal at one point only. The geometry and size of your keypad PCB makes it tough to do this properly. You should be fine if you tie everything to one ground plane. This is what I did with the automotive product I designed which survived a strike from a welder (which I mentioned in another post sometime last week).

Note that all PCBs should have ground planes - you really should add them to the processor board at a minimum as well. Also, as someone else has mentioned, please improve the actuall ground connection between your keypad PCB and the rest of the circuitry.
Christophe



Joined: 10 May 2005
Posts: 323
Location: Belgium

View user's profile Send private message

PostPosted: Mon Feb 18, 2008 4:06 am     Reply with quote

Hi,

thanks for your advice. I will incorporate all tips given here and work out a new layout for the switch board. I'm on it right now.

One more question; you talk about using via's to connect top and bottom layer copper pours ("stitching"); how much via's do you need to stitch pours? Do you have to place 1 every cm² or how?

2 actually; what is best: connecting ESD ground to the chassis or to battery ground?
newguy



Joined: 24 Jun 2004
Posts: 1946

View user's profile Send private message

PostPosted: Mon Feb 18, 2008 12:53 pm     Reply with quote

The stitch vias don't have to be all that plentiful, but 1 every cm^2 sounds okay.

Ideally all of your grounds (battery, chassis, ESD) all connect at the same point, where your battery connection is.
Christophe



Joined: 10 May 2005
Posts: 323
Location: Belgium

View user's profile Send private message

PostPosted: Thu Feb 21, 2008 6:49 am     Reply with quote

I've redone the layout. Here's a small resumé:

-I've increased board area to pour more copper.
-On top and bottom are large copper pours connected to each other via via's. Also the housing of the switches and the cathode of the TVS's are connected to this pour. (used 0.4mm clearance)
- P1,P2 and P3 are pads that will connect the ESD ground to the chassis via a wire. So the ESD current will _not_ pass the PIC board.(is a series cap necessary? if so, why?)
- 5V2 ESD tvs's on all data-lines
- RC networks close the PIC

Your comments on my layout (see link below) are very wellcome!
Are there more things I can do to improve ESD immunity?

top, bottom, assembly top, soldermask top:

http://users.[spam].be/chs/Werk/CR_design/CR.htm
newguy



Joined: 24 Jun 2004
Posts: 1946

View user's profile Send private message

PostPosted: Fri Feb 22, 2008 1:11 pm     Reply with quote

The layout looks better. Not sure what you're talking about re: series cap. Your board should be more-or-less ESD immune now that you've incorporated a ground plane and RC networks.
Christophe



Joined: 10 May 2005
Posts: 323
Location: Belgium

View user's profile Send private message

PostPosted: Mon Feb 25, 2008 1:50 am     Reply with quote

Hi,

thanks for replying.

The series cap is about how I should couple this board to the chassis: AC (with capacitor in series) or DC (directly).

This board will be ready in about 2 months. I'm beginning the layout of the PIC board now.

regards
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2, 3
Page 3 of 3

 
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