¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: Offset adjust to compensate for pad spacing error in fine pitch components.


yajeed2000
 

Hi,
This is How I did it.

a/ I backed up and then opened the libcms.mod (file in which the
PQFP208 module is
described) file in a text editor, found the entry for this module,then
I selected copied and pasted this into a new text file.I saved this as
filetoparse.txt (this name was hard coded into the program I used).

b/I wrote a c++ program that auto generated the pad co-ordinates after
asking for pad spacing,starting co-ordinate, number of pads to
generate and a few other relevant questions.The co-ordinates where
written to a text file.I ran this program 4 times for each side of the
module (for a 208 pad total), saving to a different filename each time.

c/I then copied and pasted the text from the co-ordinates files above
into 1 text file (in pad order) and saved this as filetoread.txt
(again name hardcoded into written program).

d/ I then ran the program I'd written (with a little help) replace.exe.
This program took the filetoparse text file, and replaced each old
co-ordinate with the newly generated co-ordinate from the filetoread
text file.It then wrote the results to a file called parsedfile.txt.
I then renamed this file to PQFP208.MOD.

My hope is that an auto pad generation feature could be created in the
Kicad module editor for use with fine pitch,large pin count devices.
Too many errors are introduced through fatigue and user error when
placing the pads,especially if having to place 208 of them.

I do not know C++ well enough (still a newbie programmer) or how to
program in WxWidgets otherwise I'd write this myself.
Hope this explanation is of some use.

David.

--- In kicad-users@..., Harish Mistry <hmistry494@y...> wrote:

Hello,
I am a new user and i would like to know how you manage to create
the part with 19.7 mils pin to pin spacing.
I need to create a bunch of SMD parts with very fine pitch and i'm
having problem with the grid setting in mm. It seems to go off and
the error build up as you get to the last pin i'm off by about 1 pin.
Thanks in Advance
hmistry494

JPD Borgna <jpborgna@i...> wrote: yajeed2000
wrote:
Hello,
I have spent the last few days correcting the pin spacing on the
PQFP208 module, the pin spacing is now correct at 19.7 Mils.
If anyone is interested I will upload the modified module file.
I did the editing by changing the co-ordinates directly in the
libcms.mod text file.To do this I wrote a small c++ file to generate
the co-ordinates to a file.I then used another parsing program to
replace each incorrect line in the original module file with the
modified line.Finally I fired up the module editor and checked the
spacing.The package outline will need slight ajustment, but that is
easily done by moving/extending a few lines.The critical thing is that
the pads are now spaced correctly.
The only thing that remains is to print out and test it on the actual
device.
Please let me know if anyone would like to try this out also.


I want to try it out, is it at yahoo files? where?

Saludos, Juan Pablo.



Regards,

David.

--- In kicad-users@..., JPD Borgna <jpborgna@i...> wrote:


Hi all, I hope that with this we can leave te "case closed":

With the attached script and this parameters: ./pqgen.pl 52 2 pq208


197


0 1000 100
I created a "ruller" for compare with the kicad package.
According to a datasheet from Xilinx PK007 (v1.2) June 18, 2004 about
the PQFP (PQ208/PQG208) Package
the space betwen pads should be 19.68503937 in mills of inches, i used
197 (rounding) for this ruller.
When comparing on the screen this ruller with the package that comes
with kicad i can see that the pads are not
perfect, the differences varies from pad to pad, and some in the middle
ar ok.
So (lucky me!) i think the package will work with no problems.
From here to 2 to 3 weeks (:-P) im going to have a board designed with
this package. Then ill tell you the real
thing: if it works or im fired....
Ive also attached a board with two modules, the one in the component


has


the pads from the ruller, the one
in the solder side is the one wich comes with kicad.


Saludos, Juan Pablo.

--
Juan Pablo Daniel Borgna -- T¨¦cnico Electr¨®nico
INTI-Electr¨®nica e Inform¨¢tica
Direcci¨®n: Avenida General Paz 5445 entre Albarellos y Constituyentes
CC157 (CP B1650KNA) San Mart¨ªn, Bs. As., Argentina TE:+(5411)4724-6200





Archivo adjunto: pqgen.pl
Un archivo adjunto a este email ha sido removido
debido a que el nombre del archivo no est¨¢ permitido.

Archivo adjunto: tests.zip/tests.cache.lib
Un archivo adjunto a este email ha sido removido
debido a que el nombre del archivo no est¨¢ permitido.












--
Juan Pablo Daniel Borgna -- T¨¦cnico Electr¨®nico
INTI-Electr¨®nica e Inform¨¢tica
Direcci¨®n: Avenida General Paz 5445 entre Albarellos y Constituyentes
CC157 (CP B1650KNA) San Mart¨ªn, Bs. As., Argentina TE:+(5411)4724-6200



Please contribute your symbols and modules to the library folder
in the group files section.



---------------------------------
YAHOO! GROUPS LINKS


Visit your group "kicad-users" on the web.

To unsubscribe from this group, send an email to:
kicad-users-unsubscribe@...

Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.


---------------------------------






---------------------------------
Find your next car at Yahoo! Canada Autos

Join [email protected] to automatically receive all group messages.