 |
 |
| View previous topic :: View next topic |
| Author |
Message |
Ttelmah Guest
|
|
Posted: Tue Jan 15, 2008 3:43 pm |
|
|
Units using ISP, normally have 22K to 47K for the MCLR resistor, since most programmers can't drive a lower resistance than this, and also if the resistance is too low, the main power rail can start to be elevated when Vpp is applied.
390K, is 'excessive', but the comments suggest that the chip is being programmed in circuit, so something like 47K, will probably be a practical 'minimum'.
Best Wishes |
|
 |
Christophe
Joined: 10 May 2005 Posts: 323 Location: Belgium
|
|
Posted: Wed Jan 16, 2008 1:53 am |
|
|
Thanks, I've got some good tips here!
Newguy, do you protect ALL of your PIC inputs like that or only those that are susceptible to noise and ESD?
So basically, you pour your layers full of copper and connect it to the ground net. Why is this done? Is it usefull to do this on a 4 layer board with a ground plane?
Ttelmah, again about the ground of the ESD return current path. May it be connected with the PIC's ground plane or not?
What is the best place for the pull-up resistor?
How should an ESD return current path be designed?
| Quote: | Units using ISP, normally have 22K to 47K for the MCLR resistor, since most programmers can't drive a lower resistance than this, and also if the resistance is too low, the main power rail can start to be elevated when Vpp is applied.
390K, is 'excessive', but the comments suggest that the chip is being programmed in circuit, so something like 47K, will probably be a practical 'minimum'. |
The bootloader is programmed when I test the board. But when this is done, I normally never have to use the ICD-unit again. |
|
 |
Guest
|
|
Posted: Wed Jan 16, 2008 3:35 am |
|
|
sensotec.be/ASP/Catalog.asp?ID=SENSOTEC%20-%20Euroscope%20CE%2040&LC=1
braille notebook hehe
is it the prototype your are showing here |
|
 |
Christophe
Joined: 10 May 2005 Posts: 323 Location: Belgium
|
|
Posted: Wed Jan 16, 2008 4:14 am |
|
|
ssshhhhttt  |
|
 |
Ttelmah Guest
|
|
Posted: Wed Jan 16, 2008 4:36 am |
|
|
On 'where to connect' the ground paths, think 'branches'. Basically, there should be one master ground 'point', and all paths should run directly back to this, like branches on a tree, 'back' to the trunk, _not_ through intermediate boards. Now, if the lug on the PIC board, is the same lug it is grounded by, then there is no problem, but if the connection, is to one lug on the PIC board, which is then grounded somewhere else, the currents flowing in the ESD path, _will_induce voltages across the ground in the PIC board. This applies 'throughout', on ground design. You don't want (for instance), the power and ground connections for one board, feeding through another board, or connecting to a different point on the supply, to those used for another board. If you feed 'through' a board, the way to do it, is to run a separate path for this feed, going back to the single 'entry' connection on the intermediate board, so again the electrical path doesn't actually pass 'through' the ground or power rail of the intermediate board...
Also, beware of multiple ground paths. I you have the 'branch' analogy, and multiple 'twigs' at the end of the branches are cross connected, you can introduce problems where loads along the branch, introduce current flows round the loops that result. Think sngle ground path, by the most direct route possible, back to the main system 'ground' point.
Best Wishes |
|
 |
newguy
Joined: 24 Jun 2004 Posts: 1946
|
|
Posted: Wed Jan 16, 2008 2:17 pm |
|
|
| Christophe wrote: | Newguy, do you protect ALL of your PIC inputs like that or only those that are susceptible to noise and ESD?
So basically, you pour your layers full of copper and connect it to the ground net. Why is this done? Is it usefull to do this on a 4 layer board with a ground plane? |
I protect anything that enters/leaves the enclosure or connects to a button input. Button inputs, of course, do not require chokes.
The copper ground plane is added to form a very low impedance distributed path to ground. It can be added to the signal layers of a 4 layer board, but only if that board has a lot of high frequency signals on it. If not, I wouldn't bother. |
|
 |
Christophe
Joined: 10 May 2005 Posts: 323 Location: Belgium
|
|
Posted: Thu Jan 17, 2008 10:11 am |
|
|
| Ttelmah wrote: | On 'where to connect' the ground paths, think 'branches'. Basically, there should be one master ground 'point', and all paths should run directly back to this, like branches on a tree, 'back' to the trunk, _not_ through intermediate boards. Now, if the lug on the PIC board, is the same lug it is grounded by, then there is no problem, but if the connection, is to one lug on the PIC board, which is then grounded somewhere else, the currents flowing in the ESD path, _will_induce voltages across the ground in the PIC board. This applies 'throughout', on ground design. You don't want (for instance), the power and ground connections for one board, feeding through another board, or connecting to a different point on the supply, to those used for another board. If you feed 'through' a board, the way to do it, is to run a separate path for this feed, going back to the single 'entry' connection on the intermediate board, so again the electrical path doesn't actually pass 'through' the ground or power rail of the intermediate board...
Also, beware of multiple ground paths. I you have the 'branch' analogy, and multiple 'twigs' at the end of the branches are cross connected, you can introduce problems where loads along the branch, introduce current flows round the loops that result. Think sngle ground path, by the most direct route possible, back to the main system 'ground' point.
Best Wishes |
thanks, but what do you mean by 'lug'
I'm Flemish and can't see to find the translation of the word. |
|
 |
newguy
Joined: 24 Jun 2004 Posts: 1946
|
|
Posted: Thu Jan 17, 2008 11:34 am |
|
|
| Christophe wrote: | thanks, but what do you mean by 'lug'
I'm Flemish and can't see to find the translation of the word. |
Lug = bolt. More specifically, it also forms an electrical connection or connection point. It appears from one of your pictures that there is a bolt that connects all 3 PCBs. |
|
 |
Christophe
Joined: 10 May 2005 Posts: 323 Location: Belgium
|
|
Posted: Fri Jan 18, 2008 2:01 am |
|
|
well yes, the chassis, the carrierboard and the keyboardprint are all connected via those bolt's or washers or screws. They are metal spacers of 15mm.
I use several of them - 9 - to connected both ground planes to each other and to the chassis. |
|
 |
Christophe
Joined: 10 May 2005 Posts: 323 Location: Belgium
|
|
Posted: Thu Feb 14, 2008 6:36 am |
|
|
| Ttelmah wrote: | Some comments.
If your unit is 3.3v, then you should be using the PESD3V3S2UT devices, not the 5v units...
|
Hi,
I've replaced the 5V2 devices with 3V3 devices and now I'm noticing my matrix gives me bad results when I press 7 or 8 keys simultaneously. It seems like that when I press 8 buttons simultaneously, another key is being activated. When I leave one SCAN-line unprotected, the matrix seems OK. Also when I use all 5V2 TVS's the simultaneous keypresses are OK. What can be the problem here? (this looks like some kind of ghosting)
- 3V3 TVS's (replaced the 5V2's) on all lines on the Cursorrouting board:
- PIC schematic: D0-D7: inputs-pull-upped; SCAN0-SCAN8: outputs: every X µS one is put LOW and back FLOAT.
How can I solve this? Should I leave one line unprotected or use all 5V2 TVS's |
|
 |
newguy
Joined: 24 Jun 2004 Posts: 1946
|
|
Posted: Thu Feb 14, 2008 10:02 am |
|
|
| What does your keypad schematic look like? |
|
 |
Christophe
Joined: 10 May 2005 Posts: 323 Location: Belgium
|
|
Posted: Thu Feb 14, 2008 10:17 am |
|
|
It's a 8 X 9 matrix. Keys are on 3 PCB's.
The problem occurs when I close S1 to S8 ( left )
Schematic (only 16 keys are shown) looks like:
 |
|
 |
newguy
Joined: 24 Jun 2004 Posts: 1946
|
|
Posted: Thu Feb 14, 2008 11:36 am |
|
|
The only thing that springs to mind is that one or more of your 3.3V TVSs is actually starting to conduct (short to ground). Can you get TVS devices rated for 3.5-4.0V? I use TVS all the time, but I'm careful to oversize them slightly. For instance, I use 5.5V devices to protect 5V lines. I use 18V devices to protect 12V power lines. The reason is that I really don't want the devices to interfere with anything else. All you need is one device to start conducting at or slightly below its rated voltage (which is definitely possible), and it will start to interfere with normal operation.
To be honest, the 5.2V devices you originally had should be fine (and obviously the keypad worked with them installed). I'd suggest that a PCB redesign is probably in order. Off the top of my head I'd say that each PIC pin on ports B, C (the two SCAN lines on port C) and D should have a small capacitor (10nF/50V) to ground. Ensure that the pullups on port D are directly connected to the PIC.
Also add a small series resistor to each keypad line (perhaps 100 ohms). These resistors should go at the far right point on your schematic where the "D0 - D7" and all the scan lines: "SCAN0 - SCAN8". Then comes the TVS devices.
PIC port D - 100k pullup - cap to ground - series R - TVS - switch matrix
PIC port B/C (scan lines) - cap to ground - series R - TVS - switch matrix
The reasoning is as follows. You get an ESD strike on, say, one of the port D lines. This can only happen at the switch matrix, where a person is actually touching your device. A few kV suddenly gets 'dumped' onto a line. 1st line of protection is a TVS, which tries to clamp this voltage to a reasonable level. But, since you're using parallel TVS's to ground, a wire still directly connects your switch matrix directly to a PIC pin. If the voltage across the TVS is 100V (for a microsecond), that PIC pin still gets 100V too. That's why you need a series resistor. That's your second line of defence. That is followed by a small capacitor. The capacitor is there to 'catch' any excess charge that makes it past the TVS and through the resistor. Finally you have the PIC with its internal diodes. By the time that the initial ESD strike makes it to the PIC, it has been greatly attenuated to the point of being harmless.
Also ensure that you have a large ground plane on the PCB. Ground lines are to be avoided - a ground plane is necessary. The only thing to look out for when doing a PCB this way is to leave the area around the crystal and the crystal's capacitors free of a top layer ground plane. The added parasitic capacitance can be high enough to inhibit the PIC's oscillator from operating. |
|
 |
Christophe
Joined: 10 May 2005 Posts: 323 Location: Belgium
|
|
Posted: Fri Feb 15, 2008 1:59 am |
|
|
Hi,
thanks for getting back at this.
- I guess also to that one TVS starts conducting when I press 7 buttons simultaneously; but why is that? Those devices only conduct at a voltage of 5,6V. Vpic is only 3V, how can this be?
- So the 5V2 devices should be fine? Earlier in this post, someone else stated earlier in this post that the 5V2 clamp is way too high for a 3V PIC and that they start working too late.
- Why is it important to place the port D pull-up resistors close to the PIC and not after the RC network? I think the layout would be easier that way. In general, what is the best place on the PCB to place pull-up resistors for a PIC processor?
- How close should the caps and the series R be to the PIC? As close as possible?
- Should I have seperate grounds for the ESD?
- The actual goal is not only protection but also prevent the PIC from resetting.
- Can you give some comments on the layout of the switch board?
* The switches footprints are also grounded with a 5th pin; but I 'm still not sure I can find such a switch as they are very close to each other.
* The red thick track is the ESD ground.
* J1 connects the scan (SCAN0-SCAN8) and data lines (D4-D7) to the PIC board.
 |
|
 |
Ttelmah Guest
|
|
Posted: Fri Feb 15, 2008 3:25 am |
|
|
There are two 'sorts' of ESD protection involved here.
'Survival' protection. Here the target is to ensure that the electronics is not damaged, and recovers in a 'sane' way. Normally using perhaps a watchdog restart, and with protection devices chosen to ensure that voltages do not reach 'danger' levels to the chip. For this, 5v2 devices, would be fine.
The second though, is 'operational' protection. Here you are trying to ensure that no signal arriving at the chip goes out of it's normal 'operational' range, and the chip keeps running.For this, 3v3 devices wold be needed.
The board shown, is a 2 layer board?.
You don't show a ground 'plane' at all, just a strip along the bottom of the board. Where is this grounded?. Newguy's comments about a ground plane, are spot on.
Think about what was said earlier, about ground paths.
Best Wishes |
|
 |
|
|
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
|