stqfn20.fpd 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /* MACHINE-GENERATED ! */
  2. frame pads {
  3. table
  4. { n, long, rx, ry, py }
  5. { 1, 1, -1, 3, pys }
  6. { 2, 1, -1, 2, pys }
  7. { 3, 1, -1, 1, pyl }
  8. { 4, 1, -1, 0, pym }
  9. { 5, 1, -1, -1, pym }
  10. { 6, 1, -1, -2, pys }
  11. { 7, 1, -1, -3, pys }
  12. { 8, 0, -1, -1, pym }
  13. { 9, 0, 0, -1, pym }
  14. { 10, 0, 1, -1, pym }
  15. { 11, 1, 1, -3, pys }
  16. { 12, 1, 1, -2, pys }
  17. { 13, 1, 1, -1, pym }
  18. { 14, 1, 1, 0, pym }
  19. { 15, 1, 1, 1, pym }
  20. { 16, 1, 1, 2, pys }
  21. { 17, 1, 1, 3, pys }
  22. { 18, 0, 1, 1, pym }
  23. { 19, 0, 0, 1, pym }
  24. { 20, 0, -1, 1, pym }
  25. table
  26. { ?long, dx, dy }
  27. { 0, 0, -ry }
  28. { 1, -rx, 0 }
  29. table
  30. { ?long, x, y }
  31. { 0, e*rx-dy*px/2, (cy/2+b)*ry }
  32. { 1, (cx/2+b)*rx, e*ry-dx*px/2 }
  33. set vx = dx*py+dy*px
  34. set vy = dx*px+dy*py
  35. __0: vec @(x, y)
  36. __1: vec .(vx, vy)
  37. pad "$n" __0 .
  38. }
  39. frame outline {
  40. set w = 0.1mm
  41. table
  42. { x, y, dx }
  43. { -cx/2, cy/2, 1 }
  44. { cx/2, cy/2, -1 }
  45. { -cx/2, -cy/2, 1 }
  46. { cx/2, -cy/2, -1 }
  47. __0: vec @(x, y)
  48. __1: vec .(dx*(0.325mm-w/2), 0mm)
  49. line __0 . w
  50. }
  51. package "STQFN-20"
  52. unit mm
  53. table
  54. { e, px, pys, pym, pyl, pxo }
  55. { 0.4mm, 0.23mm, 0.485mm, 0.775mm, 0.975mm, 0.15mm }
  56. table
  57. { cx, cy }
  58. { 2mm, 3mm }
  59. set b = (3.3mm-cy)/2
  60. frame pads @
  61. frame outline @
  62. measy pads.__1 >> pads.__1 2.5mm
  63. measx outline.__0 -> outline.__0 -1mm
  64. measy pads.__1 -> pads.__0 -1mm
  65. measx pads.__0 -> pads.__1 0.5mm