Hi All,
my gerber files just got sent back again with a complaint that two LPC2106 pads had a clearance of less that 8 mils.
Since I had checked the design both with Protel’s DRC (to 8mil clearances) and with Sparky’s online checker before submitting them, I decided to take a closer look at what is happening.
Why only those two pads?
According to Protel, all pads on that IC have a clearance of 8.2 mils. Hmmm.
Protel does the DRC on the PCB design itself, before generating the gerbers and truncating the precision of coordinates in the process.
Here’s what I found - I think the rounding of coordinate values is the culprit.
In fact, depending on the values of the pad coordinates and the method of rounding used, the clearance between pads can magically become less than 8 mils.
Here’s an example of two fictuous pads (for clarity only X coordinates are used). The first case has the two pads at coordinates 100.3 and 118.1 respectively. Regardless of rounding method used, the resulting clearance is always 8.4 mils.
The second case has the same pads with the same pitch and width, but their nominal location is now 100.6 and 118.4 respectively, i.e. 0.3mils right of the first case.
When these coordinate values are rounded to the nearest mil, the clearance between the two pads now becomes just 7.4 mils → Miserably FAIL Sparky’s rigid internal DRC! :evil:
Case 1: Owing to their values, coordinates of both pads are rounded in the same direction
nominal rnd-up rnd-down rnd-nrst
pad a center x coord 100.3 101 100 100
pad b center x coord 118.1 119 118 118
pad x width 9.6 9.6 9.6 9.6
pad center-to-center pitch 17.8 18 18 18
pad-to-pad clearance 8.2 8.4 8.4 8.4
Case 2: with “round-to-nearest”, Pad a coord gets rounded up, Pad b coord gets rounded down.
nominal rnd-up rnd-down rnd-nrst
pad a center x coord 100.6 101 100 101
pad b center x coord 118.4 119 118 118
pad x width 9.6 9.6 9.6 9.6
pad center-to-center pitch 17.8 18 18 17
pad-to-pad clearance 8.2 8.4 8.4 7.4
So much for the theory - I may be totally wrong but I’d like Sparky to confirm that this is what actually happens.
Anyway, here are two suggestions:
a) as was previously suggested in another post, design your board with 10mil width/clearance constraints to allow for roundoff errors in the process.
b) use a higher precision format in the gerber and drill files: 2.4 in inches, or 3.2 in millimeters.
I would much prefer b), because with a) all the nice the 0.5mm pitch ICs would be effectively outlawed. Also, it seems to me a pity not
to be able to take advantage of Gold Phoenix’ full capabilities.