avr-chat
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-chat] re:usbasp


From: Hanns-Konrad Unger
Subject: [avr-chat] re:usbasp
Date: Wed, 22 Mar 2006 13:02:23 +0100

>
>I am planning on building one myself. Is there any chance of getting 
>your layout as a more standard format (such as PS)? I am having trouble 
>to extract the files from the .deb (using gentoo).
>

Debian archives are easy to unpack. All you need are ar and tar.
The program is packed into one file, named pcb.
cp it to /usr/local/bin.
The script installs itsself by the first call from root.
It has its own pcb.help, pcb.man and pcb.info (german).

>
>Best regards,
>Simon
>
>
>I second that. A normal PS file would be nice!
>
>Regards,
>--Royce.
>

I dont like long mails, but better than the same text in html:
============================== SOF usbasp.list ===============================
1:board 43mm x 71mm   :BEL 160x100-1  
6:bridge              :               
1:isolated bridge     :               
1:10k resistor        :1/4W 10k       
1:1k5 resistor        :1/4W 1k5       
1:270 resistor        :1/4W 270       
2:2k2 resistor        :1/4W 2k2       
2: 68 resistor        :1/4W  68       
2: 22pF capacitor     :Kerko 22p      
1:100nF capacitor     :Z5U-2,5 100n   
1: 10uF capacitor     :AX 10/35       
1: 10uF capacitor     :RAD 10/35      
1:12Mhz quartz        :12-HC49U-S     
1: red  led 2mA       :LED 3mm 2MA rt 
1:green led 2mA       :LED 3mm 2MA gr 
1:BAT43 schottky diode:BAT 43         
1:ATmega8-16PI        :ATMEGA8-16 PDIP
1:jumper SCK          :LU 2,5 MS2     
1:plug                :WSL 10W        
1:USB-B-plug          :USB BW         
============================== EOF usbasp.list ===============================
============================== SOF usbasp.kit ================================
( ) PCB:board 43mm x 71mm   :saw                  
( ) B1 :bridge              :solder (h15) (i14)
( ) B2 :bridge              :solder (a22) (e22)
( ) B3 :bridge              :solder (d13) (d11)
( ) B4 :bridge              :solder (k19) (k22)
( ) B5 :bridge              :solder (h19) (h22)
( ) B6 :bridge              :solder (j7) (l7)
( ) B7 :isolated bridge     :solder if needed (h8) (i21)
( ) R1 :10k resistor        :solder (b8) (f8)
( ) R2 :1k5 resistor        :solder (a6) (e6)
( ) R3 :270 resistor        :solder (b10) (f10)
( ) R4 :2k2 resistor        :solder (l6) (l10)
( ) R5 :2k2 resistor        :solder (n6) (n10)
( ) R6 : 68 resistor        :solder (a4) (e4)
( ) R7 : 68 resistor        :solder (l4) (p4)
( ) C1 : 22pF capacitor     :solder (d15) (e15)
( ) C2 : 22pF capacitor     :solder (d21) (e21)
( ) C3 :100nF capacitor     :solder (f14) (f15)
( ) C4 : 10uF capacitor     :solder + in (n20) (n14) (n20)
( ) C4a: 10uF capacitor     :alternatively (n15) (n16)
( ) Q1 :12Mhz quartz        :solder (e17) (e19)
( ) D1 : red  led 2mA       :solder anode in (l11) (l11) (l12)
( ) D2 :green led 2mA       :solder anode in (n11) (n11) (n12)
( ) D3 :BAT43 schottky diode:solder anode in (n21) (n21) (n24)
( ) IC1:ATmega8-16PI        :solder Pin 1 in (g8)                  
( ) J3 :jumper SCK          :solder (k8) (k9)
( ) K1 :plug                :solder                  
( ) K4 :USB-B-plug          :solder                  
============================== EOF usbasp.kit ================================
============================== SOF usbasp.ps =================================
%!PS-Adobe-1.0
%% Title:   usbasp.ps
%% Creator: pcb.layout from www.hanns-konrad.de
%% Date:    2006Mar22
%%EndComments

/mm { 25.4 div 72 mul } def
/inch { 72 mul } def
/pt { 1 mul } def
/white    [ 1.0 1.0 1.0 ] def
/black    [ 0.0 0.0 0.0 ] def
/setcolor { aload pop setrgbcolor } def
/leftmargin 25.4 mm def
/topmargin  10   mm def
/pageheight 297 mm def    /pagewidth 210 mm def      % a4

%%EndProlog

  /boardscale 1 def  % 1 is normal scale, 2 is wide scale
  /psize 7.2 def  % diameter of one pad (0.1 inch)
% /xpos  0   def  % xresult of cvpad
% /ypos  0   def  % yresult of cvpad
  /multpcb false def  % Platine nur einfach ausgeben
  /multx 1   def  % Kopien in x-Richtung
  /multy 1   def  % Kopien in y-Richtung
% /dx    0   def  % x-size
% /dy    0   def  % y-size

1 setlinejoin

/cvpad  %  (a15) cvpad => xpos=1  ypos=15 ; works from (a1)..(z1),(A1)..(Z1)
        %                                           to (Z113)
  {
   dup 0 get
   dup 64 le % A-1
     { pop 0 }
     { dup 90 le % Z
       { 64 sub 26 add }
       { dup 96 le % a-1
         { pop 0 }
         { dup 122 le % z
           { 96 sub }
           { pop 0
           } ifelse
         } ifelse
       } ifelse
     } ifelse
   /xpos exch def
   dup length 1 sub 1 exch getinterval cvi /ypos exch def
  } def

/mboard { /multy exch def /multx exch def /multpcb true def } def

/board2 { /boardscale 2 def /psize psize 2 div def board } def

/board        % (n15) board
  {
   cvpad /dy ypos 1 add def /dx xpos 1 add def
   /st ( ) def
   [ 1 0 0 -1 0 0 ] concat
   multpcb
    {
     leftmargin
       pageheight topmargin sub -1 mul
         translate
     psize psize scale
     0 setlinewidth
     1 1 multy
      {
       /y exch def
       1 1 multx
        {
         1 sub dx mul y 1 sub dy mul moveto
         dx 0 rlineto 0 dy rlineto dx -1 mul 0 rlineto closepath stroke
        } for
      } for
    }
    {
     pagewidth leftmargin sub dx psize mul sub 2 div leftmargin add
       pageheight dy psize mul add -2 div 
         translate
     psize psize scale
     0 setlinewidth
     0 0 moveto dx 0 lineto dx dy lineto 0 dy lineto closepath stroke

     /Courier findfont .8 scalefont setfont
     1 1 dx 1 sub
       {
        dup -1 moveto
        dup 26 gt
          { 64 add 26 sub }  % A..Z
          { 96 add } ifelse  % a..z
        st exch 0 exch put st
        [ 1 0 0 -1 0 0 ] concat -.4  0 rmoveto show [ 1 0 0 -1 0 0 ] concat
       } for
     1 1 dy 1 sub
       {
        dup -1 exch moveto 10 (999) cvrs
        [ 1 0 0 -1 0 0 ] concat -1 -.4 rmoveto show [ 1 0 0 -1 0 0 ] concat
       } for
    } ifelse
  } def

/iwire  % (a1) (c3) iwire
  {
   exch
   cvpad
   /xlen xpos def /ylen ypos def
   cvpad
   /xlen xlen xpos sub def /ylen ylen ypos sub def
     0 1 multy 1 sub
      {
       dy mul ypos add /y exch def
       0 1 multx 1 sub
        {
         dx mul xpos add y moveto xlen ylen rlineto closepath stroke
        } for
      } for
  } def

/wire  % (a1) (c3) wire
  {
   0.2 setlinewidth
   iwire
  } def

/wire2  % (a1) (c3) wire2
  {
   0.8 setlinewidth
   iwire
  } def

/ipad
  {
   0 setlinewidth
   0 1 multy 1 sub
    {
     dy mul ypos add /argy exch def
     0 1 multx 1 sub
      {
       dx mul xpos add   /argx exch def
       argx argy 0.3 boardscale mul 0 360 arc fill
       white setcolor argx argy 0.1 boardscale mul 0 360 arc fill black setcolor
      } for
    } for
  } def

/pad   % (a1) pad
  { cvpad ipad } def

/smd
  {
   cvpad
   0 setlinewidth
   0 1 multy 1 sub
    {
     dy mul ypos add /argy exch def
     0 1 multx 1 sub
      {
       dx mul xpos add .25 sub argy .25 sub moveto
       .5 0 rlineto 0 .5 rlineto -.5 0 rlineto closepath fill
      } for
    } for
  } def

/xpad % (a1) 3 xpad => (a1) pad (b1) pad (c1) pad
  { 1 sub boardscale mul exch cvpad xpos exch boardscale exch xpos add
    { /xpos exch def ipad } for
  } def

/ypad % (a1) 3 ypad => (a1) pad (a2) pad (a3) pad
  { 1 sub boardscale mul exch cvpad ypos exch boardscale exch ypos add
    { /ypos exch def ipad } for
  } def

/mirror { pagewidth 0 translate -1 1 scale } def

(p27)board
(n14)(n15)wire
(h5)(h2)wire (h2)(m2)wire (m2)(m4)wire (m4)(k6)wire (k6)(k8)wire
(k9)(k11)wire (k11)(j11)wire
(k8)(o8)wire (o8)(o14)wire (o14)(i14)wire
(h15)(f15)wire (f15)(e14)wire (e14)(d14)wire (d14)(d24)wire (d24)(h24)wire
(l6)(n6)wire (n6)(n1)wire (n1)(d1)wire (d1)(d11)wire (d13)(e13)wire
(e13)(f14)wire
(f14)(h14)wire (h14)(i15)wire (i15)(j15)wire (j15)(j16)wire
(j16)(n16)wire (n16)(n21)wire (n24)(k24)wire
(a4)(d4)wire (g1)(g6)wire (g6)(h6)wire
(g16)(e16)wire (e15)(e17)wire
(g17)(f17)wire (f17)(f19)wire (f19)(e19)wire (e19)(e21)wire
(j12)(l12)wire (l11)(l10)wire
(j13)(n13)wire (n13)(n12)wire (n11)(n10)wire
(h8)(f8)wire (b8)(d8)wire
(e4)(e7)wire (e7)(h7)wire (h7)(i6)wire
(a6)(a22)wire (e22)(f22)wire (f22)(g21)wire
(i5)(k5)wire (k5)(l4)wire
(p4)(p22)wire (p22)(m22)wire (m22)(m21)wire (m21)(j21)wire
(g11)(i11)wire (i11)(i7)wire (i7)(j7)wire (l7)(p7)wire
(i24)(i25)wire (i25)(c25)wire (c25)(c12)wire (c12)(e12)wire
(e12)(e9)wire (e9)(g9)wire
(g10)(f10)wire (b10)(b26)wire (b26)(j26)wire (j26)(j24)wire
(j19)(k19)wire (k22)(k23)wire
(j17)(h19)wire (h22)(h23)wire
(j18)(h20)wire (h20)(h21)wire (h21)(g22)wire (g22)(g23)wire
(j20)(i21)wire (i21)(i23)wire
                 
(h15)pad (i14)pad
(a22)pad (e22)pad
(d13)pad (d11)pad
(k19)pad (k22)pad
(h19)pad (h22)pad
(j7) pad (l7) pad
(h8) smd (i21)smd
(b8)pad (f8)pad  
(a6)pad (e6)pad  
(b10)pad (f10)pad
(l6)pad (l10)pad 
(n6)pad (n10)pad 
(a4)pad (e4)pad  
(l4)pad (p4)pad  
(d15)pad (e15)pad
(d21)pad (e21)pad
(f14)pad (f15)pad
(n14)pad (n20)pad
(n15)pad (n16)pad
(e17)pad (e19)pad
(l11)pad (l12)pad
(n11)pad (n12)pad
(n21)pad (n24)pad
(g8) 14 ypad (j8) 14 ypad
                 
(k8)pad (k9)pad  
(g23) 5 xpad (g24) 5 xpad
                 
(f3)(f4)wire2 (k3)(k4)wire2
(h5)pad (i5)pad (h6)pad (i6)pad (f4)pad (k4)pad
                 
showpage
============================== SOF usbasp.ps =================================
Good luck!
Hanns-Konrad




reply via email to

[Prev in Thread] Current Thread [Next in Thread]