YFC.fpd 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /* MACHINE-GENERATED ! */
  2. frame pad {
  3. __0: vec @(col*e-Px/2, row*-e-Py/2)
  4. __1: vec .(0mm, Py)
  5. __2: vec __0(Px, 0mm)
  6. rpad "$rname$cname" __1 .
  7. }
  8. frame pads {
  9. table
  10. { ?rnamerev, rname }
  11. { 0, "A" }
  12. { 1, "B" }
  13. { 2, "C" }
  14. { 3, "D" }
  15. set cname = Nc-col
  16. set rnamerev = Nr-row-1
  17. loop row = 0, Nr-1
  18. loop col = 0, Nc-1
  19. frame pad @
  20. }
  21. frame outline {
  22. __0: vec @(D1/2, -E1/2)
  23. __1: vec .(D/2, E/2)
  24. __2: vec __0(-D/2, -E/2)
  25. rect __1 . 5mil
  26. __3: vec @(0mm, (E-E1)/2)
  27. __4: vec @(-(D-D1)/2, 0mm)
  28. line __3 . 5mil
  29. }
  30. package "YFC-$pins"
  31. unit mm
  32. table
  33. { pins, Nr, Nc, Px, Py, e, D1, E1, D, E }
  34. { 12, 4, 3, 0.23mm, Px, 0.4mm, e*(Nc-1), e*(Nr-1), 1.17mm, 1.57mm }
  35. frame outline @
  36. frame pads @
  37. measy pad.__0 -> pad.__1 1mm
  38. measy pad.__0 -> pad.__0 1.5mm
  39. measx pad.__0 -> pad.__2 -1mm
  40. measx pad.__0 -> pad.__0 -1.5mm
  41. measy pad.__0 >> pad.__1 2.4mm
  42. measx pad.__0 >> pad.__2 -2.4mm
  43. measy outline.__2 >> outline.__1 2.5mm
  44. measx outline.__2 >> outline.__1 -2.5mm
  45. measx pad.__0 >> pad.__0 -1.8mm
  46. measy pad.__0 >> pad.__0 1.7mm