[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: pcb doesn't find my pins



Peter Clifton wrote:
On Wed, 2010-03-03 at 07:27 -0500, Jim wrote:
Peter Clifton wrote:
This is the only part of the file (board.pcb) that mentions the footprint and/or the pins.

Element(0x0 "Wiz812mj.fp" "U102" "unknown" 10 10 3 100  0x0)
(
    Pin(310 -450 60 28 "J1-1" 0x101)
    Pin(310 350 60 28 "J2-1" 0x101)
    Pin(310 -350 60 28 "J1-2" 0x01)
    Pin(310 450 60 28 "J2-2" 0x01)
    Pin(210 -450 60 28 "J1-3" 0x01)
    Pin(210 350 60 28 "J2-3" 0x01)
    Pin(210 -350 60 28 "J1-4" 0x01)
    Pin(210 450 60 28 "J2-4" 0x01)
    Pin(110 -450 60 28 "J1-5" 0x01)
    Pin(110 350 60 28 "J2-5" 0x01)
    Pin(110 -350 60 28 "J1-6" 0x01)
    Pin(110 450 60 28 "J2-6" 0x01)
    Pin(10 -450 60 28 "J1-7" 0x01)
    Pin(10 350 60 28 "J2-7" 0x01)

That looks wrong - and is in some ancient syntax too.. it might have
come directly from the footprint, but I'd have expected PCB to save in
the newer format when such changes were made.

An example from one of my designs, which has pin labels and pin names
different:

Element["" "DIP14" "U38" "74HCT14" 840000 520000 -8000 -5000 3 100 ""]
(
	Pin[0 0 6000 2002 6600 3000 "A" "1" "square"]
	Pin[0 10000 6000 2002 6600 3000 "Y" "2" ""]
	Pin[0 20000 6000 2002 6600 3000 "A" "3" ""]
	Pin[0 30000 6000 2002 6600 3000 "Y" "4" ""]
	Pin[0 40000 6000 2002 6600 3000 "A" "5" ""]
	Pin[0 50000 6000 2002 6600 3000 "Y" "6" ""]
	Pin[0 60000 6000 2002 6600 3000 "GND" "7" "thermal(0t,1X)"]
	Pin[30000 60000 6000 2002 6600 3000 "Y" "8" ""]
	Pin[30000 50000 6000 2002 6600 3000 "A" "9" ""]
	Pin[30000 40000 6000 2002 6600 3000 "Y" "10" ""]
	Pin[30000 30000 6000 2002 6600 3000 "A" "11" ""]
	Pin[30000 20000 6000 2002 6600 3000 "Y" "12" ""]
	Pin[30000 10000 6000 2002 6600 3000 "A" "13" ""]
	Pin[30000 0 6000 2002 6600 3000 "Vcc" "14" ""]
[SNIP]
	)

Does anyone know the history of this?

One might rationally assume the action "ChangePinName" does indeed
change the pin name, not its label. (Yet "n" on an object changes the
label).

I was reading the Land Patterns pdf which I thought was the design document. I was also looking at other footprints and must have confused the two. However the Land Patterns doc does say the last parameter is a hex value and that's not working.

So I changed it to:
   Pin(310 -450 60 20 66 30 "MOSI" "J1-1" "square")

And it's giving me a syntax error on line 76 which is that line.
70         ElementLine(400 0 700 0 10)
71         ElementArc(350 0 50 50 0 180 10)
72         Mark(50 50)
73 )
74 Element(0x0 "Wiz812mj.fp" "U102" "unknown" 10 10 3 100 0 100  0x0)
75 (
76     Pin(310 -450 60 20 66 30 "MOSI" "J1-1" "square")
77     Pin(310 350 60 20 66 30 "3V3D" "J2-1" "square")
78     Pin(310 -350 60 20 66 30 "MISO" "J1-2" "")
79     Pin(310 450 60 20 66 30 "_RESET" "J2-2" "")
80     Pin(210 -450 60 20 66 30 "D7" "J1-3" "")
81     Pin(210 350 60 20 66 30 "SCLK" "J2-3" "")

So I thought maybe the Element line wasn't right since it looks different from yours, so I changed it to

Element("" "Wiz812mj.fp" "U102" "unknown" 10 10 3 100 0 100  "")

And now it fails on line 74.
I'm getting more confused by the minute.

Thanks,
Jim.



_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user