(kicad_pcb (version 20221018) (generator pcbnew)
  (general
    (thickness 1.2)
  )
  (paper "USLetter")
  (title_block
    (title "WP-2_IC-Card")
    (date "2023-10-13")
    (rev "RAM_016")
    (company "Brian K. White - b.kenyon.w@gmail.com")
    (comment 1 "CC-BY-SA")
    (comment 2 "github.com/bkw777/WP-2_IC_Card")
  )
  (layers
    (0 "F.Cu" signal)
    (31 "B.Cu" signal)
    (32 "B.Adhes" user "B.Adhesive")
    (33 "F.Adhes" user "F.Adhesive")
    (34 "B.Paste" user)
    (35 "F.Paste" user)
    (36 "B.SilkS" user "B.Silkscreen")
    (37 "F.SilkS" user "F.Silkscreen")
    (38 "B.Mask" user)
    (39 "F.Mask" user)
    (40 "Dwgs.User" user "User.Drawings")
    (41 "Cmts.User" user "User.Comments")
    (42 "Eco1.User" user "User.Eco1")
    (43 "Eco2.User" user "User.Eco2")
    (44 "Edge.Cuts" user)
    (45 "Margin" user)
    (46 "B.CrtYd" user "B.Courtyard")
    (47 "F.CrtYd" user "F.Courtyard")
    (48 "B.Fab" user)
    (49 "F.Fab" user)
  )
  (setup
    (stackup
      (layer "F.SilkS" (type "Top Silk Screen") (color "White"))
      (layer "F.Paste" (type "Top Solder Paste"))
      (layer "F.Mask" (type "Top Solder Mask") (color "Blue") (thickness 0.01))
      (layer "F.Cu" (type "copper") (thickness 0.035))
      (layer "dielectric 1" (type "core") (thickness 1.11) (material "FR4") (epsilon_r 4.5) (loss_tangent 0.02))
      (layer "B.Cu" (type "copper") (thickness 0.035))
      (layer "B.Mask" (type "Bottom Solder Mask") (color "Blue") (thickness 0.01))
      (layer "B.Paste" (type "Bottom Solder Paste"))
      (layer "B.SilkS" (type "Bottom Silk Screen") (color "White"))
      (copper_finish "ENIG")
      (dielectric_constraints no)
    )
    (pad_to_mask_clearance 0)
    (solder_mask_min_width 0.2)
    (grid_origin 135.95 95.245)
    (pcbplotparams
      (layerselection 0x00010fc_ffffffff)
      (plot_on_all_layers_selection 0x0000000_00000000)
      (disableapertmacros false)
      (usegerberextensions true)
      (usegerberattributes false)
      (usegerberadvancedattributes false)
      (creategerberjobfile false)
      (dashed_line_dash_ratio 12.000000)
      (dashed_line_gap_ratio 3.000000)
      (svgprecision 6)
      (plotframeref false)
      (viasonmask false)
      (mode 1)
      (useauxorigin false)
      (hpglpennumber 1)
      (hpglpenspeed 20)
      (hpglpendiameter 15.000000)
      (dxfpolygonmode true)
      (dxfimperialunits true)
      (dxfusepcbnewfont true)
      (psnegative false)
      (psa4output false)
      (plotreference true)
      (plotvalue true)
      (plotinvisibletext false)
      (sketchpadsonfab false)
      (subtractmaskfromsilk true)
      (outputformat 1)
      (mirror false)
      (drillshape 0)
      (scaleselection 1)
      (outputdirectory "GERBER_${TITLE}_${REVISION}")
    )
  )
  (net 0 "")
  (net 1 "GND")
  (net 2 "/~{CE1}")
  (net 3 "/~{OE}")
  (net 4 "/D0")
  (net 5 "/D1")
  (net 6 "/D2")
  (net 7 "/D3")
  (net 8 "/D4")
  (net 9 "/D5")
  (net 10 "/D6")
  (net 11 "/D7")
  (net 12 "/A16")
  (net 13 "/A15")
  (net 14 "/A14")
  (net 15 "/A13")
  (net 16 "/A12")
  (net 17 "/A11")
  (net 18 "/A10")
  (net 19 "/A9")
  (net 20 "/A8")
  (net 21 "/A7")
  (net 22 "/A6")
  (net 23 "/A5")
  (net 24 "/A4")
  (net 25 "/A3")
  (net 26 "/A2")
  (net 27 "/A1")
  (net 28 "/A0")
  (net 29 "/CE2")
  (net 30 "VMEM")
  (net 31 "/VBUS")
  (net 32 "/VBAT")
  (net 33 "/~{WE}")
  (net 34 "unconnected-(J1-Pin_15-Pad15)")
  (net 35 "unconnected-(J1-Pin_16-Pad16)")
  (net 36 "unconnected-(J1-Pin_17-Pad17)")
  (net 37 "unconnected-(J1-Pin_36-Pad36)")
  (footprint "0_LOCAL:SMS-138-01-x-x_edge" (layer "F.Cu")
    (at 135.95 113.72 -90)
    (descr "Through hole straight socket strip, 1x38, 1.27mm pitch, single row")
    (tags "Through hole socket strip THT 1x38 1.27mm single row")
    (property "Sheetfile" "WP-2_IC-Card_RAM.kicad_sch")
    (property "Sheetname" "")
    (property "ki_description" "Generic connector, single row, 01x38, script generated (kicad-library-utils/schlib/autogen/connector/)")
    (property "ki_keywords" "connector")
    (attr smd)
    (fp_text reference "J1" (at -2.286 -24.892 -90) (layer "F.SilkS") hide)
    (fp_text value "Conn_01x38_Female" (at -4.491 -0.381 -180) (layer "F.Fab"))
    (fp_text user "max insertion 6.3mm" (at 1.21 -23.495 unlocked) (layer "Dwgs.User"))
    (fp_text user "8.51mm" (at 4.14 -24.79 -90 unlocked) (layer "Dwgs.User"))
    (fp_text user "${REFERENCE}" (at -2.286 -24.892 -90) (layer "F.Fab"))
    (pad "1" smd roundrect (at -1.4 -23.495 270) (size 2.8 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 1 "GND") (pinfunction "Pin_1") (pintype "passive"))
    (pad "2" smd roundrect (at -1.4 -22.225 270) (size 2.8 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 1 "GND") (pinfunction "Pin_2") (pintype "passive"))
    (pad "3" smd roundrect (at -1.4 -20.955 270) (size 2.8 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 29 "/CE2") (pinfunction "Pin_3") (pintype "passive"))
    (pad "4" smd roundrect (at -1.4 -19.685 270) (size 2.8 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 2 "/~{CE1}") (pinfunction "Pin_4") (pintype "passive"))
    (pad "5" smd roundrect (at -1.4 -18.415 270) (size 2.8 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 3 "/~{OE}") (pinfunction "Pin_5") (pintype "passive"))
    (pad "6" smd roundrect (at -1.4 -17.145 270) (size 2.8 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 4 "/D0") (pinfunction "Pin_6") (pintype "passive"))
    (pad "7" smd roundrect (at -1.4 -15.875 270) (size 2.8 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 5 "/D1") (pinfunction "Pin_7") (pintype "passive"))
    (pad "8" smd roundrect (at -1.4 -14.605 270) (size 2.8 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 6 "/D2") (pinfunction "Pin_8") (pintype "passive"))
    (pad "9" smd roundrect (at -1.4 -13.335 270) (size 2.8 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 7 "/D3") (pinfunction "Pin_9") (pintype "passive"))
    (pad "10" smd roundrect (at -1.4 -12.065 270) (size 2.8 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 8 "/D4") (pinfunction "Pin_10") (pintype "passive"))
    (pad "11" smd roundrect (at -1.4 -10.795 270) (size 2.8 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 9 "/D5") (pinfunction "Pin_11") (pintype "passive"))
    (pad "12" smd roundrect (at -1.4 -9.525 270) (size 2.8 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 10 "/D6") (pinfunction "Pin_12") (pintype "passive"))
    (pad "13" smd roundrect (at -1.4 -8.255 270) (size 2.8 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 11 "/D7") (pinfunction "Pin_13") (pintype "passive"))
    (pad "14" smd roundrect (at -1.4 -6.985 270) (size 2.8 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 1 "GND") (pinfunction "Pin_14") (pintype "passive"))
    (pad "15" smd roundrect (at -1.4 -5.715 270) (size 2.8 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 34 "unconnected-(J1-Pin_15-Pad15)") (pinfunction "Pin_15") (pintype "passive+no_connect"))
    (pad "16" smd roundrect (at -1.4 -4.445 270) (size 2.8 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 35 "unconnected-(J1-Pin_16-Pad16)") (pinfunction "Pin_16") (pintype "passive+no_connect"))
    (pad "17" smd roundrect (at -1.4 -3.175 270) (size 2.8 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 36 "unconnected-(J1-Pin_17-Pad17)") (pinfunction "Pin_17") (pintype "passive+no_connect"))
    (pad "18" smd roundrect (at -1.4 -1.905 270) (size 2.8 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 12 "/A16") (pinfunction "Pin_18") (pintype "passive"))
    (pad "19" smd roundrect (at -1.4 -0.635 270) (size 2.8 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 13 "/A15") (pinfunction "Pin_19") (pintype "passive"))
    (pad "20" smd roundrect (at -1.4 0.635 270) (size 2.8 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 14 "/A14") (pinfunction "Pin_20") (pintype "passive"))
    (pad "21" smd roundrect (at -1.4 1.905 270) (size 2.8 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 15 "/A13") (pinfunction "Pin_21") (pintype "passive"))
    (pad "22" smd roundrect (at -1.4 3.175 270) (size 2.8 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 16 "/A12") (pinfunction "Pin_22") (pintype "passive"))
    (pad "23" smd roundrect (at -1.4 4.445 270) (size 2.8 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 17 "/A11") (pinfunction "Pin_23") (pintype "passive"))
    (pad "24" smd roundrect (at -1.4 5.715 270) (size 2.8 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 18 "/A10") (pinfunction "Pin_24") (pintype "passive"))
    (pad "25" smd roundrect (at -1.4 6.985 270) (size 2.8 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 19 "/A9") (pinfunction "Pin_25") (pintype "passive"))
    (pad "26" smd roundrect (at -1.4 8.255 270) (size 2.8 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 20 "/A8") (pinfunction "Pin_26") (pintype "passive"))
    (pad "27" smd roundrect (at -1.4 9.525 270) (size 2.8 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 21 "/A7") (pinfunction "Pin_27") (pintype "passive"))
    (pad "28" smd roundrect (at -1.4 10.795 270) (size 2.8 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 22 "/A6") (pinfunction "Pin_28") (pintype "passive"))
    (pad "29" smd roundrect (at -1.4 12.065 270) (size 2.8 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 23 "/A5") (pinfunction "Pin_29") (pintype "passive"))
    (pad "30" smd roundrect (at -1.4 13.335 270) (size 2.8 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 24 "/A4") (pinfunction "Pin_30") (pintype "passive"))
    (pad "31" smd roundrect (at -1.4 14.605 270) (size 2.8 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 25 "/A3") (pinfunction "Pin_31") (pintype "passive"))
    (pad "32" smd roundrect (at -1.4 15.875 270) (size 2.8 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 26 "/A2") (pinfunction "Pin_32") (pintype "passive"))
    (pad "33" smd roundrect (at -1.4 17.145 270) (size 2.8 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 27 "/A1") (pinfunction "Pin_33") (pintype "passive"))
    (pad "34" smd roundrect (at -1.4 18.415 270) (size 2.8 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 28 "/A0") (pinfunction "Pin_34") (pintype "passive"))
    (pad "35" smd roundrect (at -1.4 19.685 270) (size 2.8 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 33 "/~{WE}") (pinfunction "Pin_35") (pintype "passive"))
    (pad "36" smd roundrect (at -1.4 20.955 270) (size 2.8 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 37 "unconnected-(J1-Pin_36-Pad36)") (pinfunction "Pin_36") (pintype "passive+no_connect"))
    (pad "37" smd roundrect (at -1.4 22.225 270) (size 2.8 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 32 "/VBAT") (pinfunction "Pin_37") (pintype "passive"))
    (pad "38" smd roundrect (at -1.4 23.495 270) (size 2.8 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 31 "/VBUS") (pinfunction "Pin_38") (pintype "passive"))
    (model "${KIPRJMOD}/3d/SMS-138-01-x-x.step"
      (offset (xyz 0 0 0.204))
      (scale (xyz 1 1 1))
      (rotate (xyz 0 0 90))
    )
  )
  (footprint "0_LOCAL:R_0805" (layer "F.Cu")
    (at 149.55 101.045 -90)
    (descr "Resistor SMD 0805, reflow soldering, Vishay (see dcrcw.pdf)")
    (tags "resistor 0805")
    (property "Sheetfile" "WP-2_IC-Card_RAM.kicad_sch")
    (property "Sheetname" "")
    (property "ki_description" "Resistor")
    (property "ki_keywords" "R res resistor")
    (attr smd)
    (fp_text reference "R1" (at 1.55 -0.5 -90 unlocked) (layer "F.SilkS"))
    (fp_text value "100K" (at 1.55 0.6 -90 unlocked) (layer "F.SilkS"))
    (fp_text user "${REFERENCE}" (at 0 0 90) (layer "F.Fab"))
    (pad "1" smd roundrect (at -0.95 0 270) (size 0.7 1.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.1)
      (net 30 "VMEM") (pintype "passive"))
    (pad "2" smd roundrect (at 0.95 0 270) (size 0.7 1.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.1)
      (net 2 "/~{CE1}") (pintype "passive"))
    (model "${KIPRJMOD}/3d/R_0805_2012Metric.step"
      (offset (xyz 0 0 0))
      (scale (xyz 1 1 1))
      (rotate (xyz 0 0 0))
    )
  )
  (footprint "0_LOCAL:TSOP32-dual" (layer "F.Cu")
    (at 135.95 103.745)
    (descr "Module CMS TSOP 32 pins")
    (tags "CMS TSOP")
    (property "Sheetfile" "WP-2_IC-Card_RAM.kicad_sch")
    (property "Sheetname" "")
    (property "ki_description" "256Kx8 STATIC RAM")
    (property "ki_keywords" "SRAM MEMORY")
    (attr smd)
    (fp_text reference "U1" (at -7.6 -1.25 unlocked) (layer "F.SilkS"))
    (fp_text value "628128_TSOP" (at -3 1.5 unlocked) (layer "F.SilkS") hide)
    (pad "1" smd roundrect (at -9.85 -3.75 270) (size 0.3 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 17 "/A11") (pinfunction "A11") (pintype "input"))
    (pad "2" smd roundrect (at -9.85 -3.25 270) (size 0.3 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 19 "/A9") (pinfunction "A9") (pintype "input"))
    (pad "3" smd roundrect (at -9.85 -2.75 270) (size 0.3 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 20 "/A8") (pinfunction "A8") (pintype "input"))
    (pad "4" smd roundrect (at -9.85 -2.25 270) (size 0.3 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 15 "/A13") (pinfunction "A13") (pintype "input"))
    (pad "5" smd roundrect (at -9.85 -1.75 270) (size 0.3 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 33 "/~{WE}") (pinfunction "~{WE}") (pintype "input"))
    (pad "6" smd roundrect (at -9.85 -1.25 270) (size 0.3 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 29 "/CE2") (pinfunction "CE2") (pintype "input"))
    (pad "7" smd roundrect (at -9.85 -0.75 270) (size 0.3 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 13 "/A15") (pinfunction "A15") (pintype "input"))
    (pad "8" smd roundrect (at -9.85 -0.25 270) (size 0.3 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 30 "VMEM") (pinfunction "VDD") (pintype "power_in"))
    (pad "9" smd roundrect (at -9.85 0.25 270) (size 0.3 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 1 "GND") (pintype "passive"))
    (pad "10" smd roundrect (at -9.85 0.75 270) (size 0.3 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 12 "/A16") (pinfunction "A16") (pintype "input"))
    (pad "11" smd roundrect (at -9.85 1.25 270) (size 0.3 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 14 "/A14") (pinfunction "A14") (pintype "input"))
    (pad "12" smd roundrect (at -9.85 1.75 270) (size 0.3 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 16 "/A12") (pinfunction "A12") (pintype "input"))
    (pad "13" smd roundrect (at -9.85 2.25 270) (size 0.3 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 21 "/A7") (pinfunction "A7") (pintype "input"))
    (pad "14" smd roundrect (at -9.85 2.75 270) (size 0.3 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 22 "/A6") (pinfunction "A6") (pintype "input"))
    (pad "15" smd roundrect (at -9.85 3.25 270) (size 0.3 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 23 "/A5") (pinfunction "A5") (pintype "input"))
    (pad "16" smd roundrect (at -9.85 3.75 270) (size 0.3 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 24 "/A4") (pinfunction "A4") (pintype "input"))
    (pad "17" smd roundrect (at 3.85 3.75 270) (size 0.3 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 25 "/A3") (pinfunction "A3") (pintype "input"))
    (pad "17" smd roundrect (at 9.85 3.75 270) (size 0.3 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 25 "/A3") (pinfunction "A3") (pintype "input"))
    (pad "18" smd roundrect (at 3.85 3.25 270) (size 0.3 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 26 "/A2") (pinfunction "A2") (pintype "input"))
    (pad "18" smd roundrect (at 9.85 3.25 270) (size 0.3 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 26 "/A2") (pinfunction "A2") (pintype "input"))
    (pad "19" smd roundrect (at 3.85 2.75 270) (size 0.3 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 27 "/A1") (pinfunction "A1") (pintype "input"))
    (pad "19" smd roundrect (at 9.85 2.75 270) (size 0.3 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 27 "/A1") (pinfunction "A1") (pintype "input"))
    (pad "20" smd roundrect (at 3.85 2.25 270) (size 0.3 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 28 "/A0") (pinfunction "A0") (pintype "input"))
    (pad "20" smd roundrect (at 9.85 2.25 270) (size 0.3 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 28 "/A0") (pinfunction "A0") (pintype "input"))
    (pad "21" smd roundrect (at 3.85 1.75 270) (size 0.3 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 4 "/D0") (pinfunction "I/O0") (pintype "bidirectional"))
    (pad "21" smd roundrect (at 9.85 1.75 270) (size 0.3 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 4 "/D0") (pinfunction "I/O0") (pintype "bidirectional"))
    (pad "22" smd roundrect (at 3.85 1.25 270) (size 0.3 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 5 "/D1") (pinfunction "I/O1") (pintype "bidirectional"))
    (pad "22" smd roundrect (at 9.85 1.25 270) (size 0.3 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 5 "/D1") (pinfunction "I/O1") (pintype "bidirectional"))
    (pad "23" smd roundrect (at 3.85 0.75 270) (size 0.3 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 6 "/D2") (pinfunction "I/O2") (pintype "bidirectional"))
    (pad "23" smd roundrect (at 9.85 0.75 270) (size 0.3 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 6 "/D2") (pinfunction "I/O2") (pintype "bidirectional"))
    (pad "24" smd roundrect (at 3.85 0.25 270) (size 0.3 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 1 "GND") (pinfunction "GND") (pintype "power_in"))
    (pad "24" smd roundrect (at 9.85 0.25 270) (size 0.3 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 1 "GND") (pinfunction "GND") (pintype "power_in"))
    (pad "25" smd roundrect (at 3.85 -0.25 270) (size 0.3 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 7 "/D3") (pinfunction "I/O3") (pintype "bidirectional"))
    (pad "25" smd roundrect (at 9.85 -0.25 270) (size 0.3 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 7 "/D3") (pinfunction "I/O3") (pintype "bidirectional"))
    (pad "26" smd roundrect (at 3.85 -0.75 270) (size 0.3 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 8 "/D4") (pinfunction "I/O4") (pintype "bidirectional"))
    (pad "26" smd roundrect (at 9.85 -0.75 270) (size 0.3 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 8 "/D4") (pinfunction "I/O4") (pintype "bidirectional"))
    (pad "27" smd roundrect (at 3.85 -1.25 270) (size 0.3 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 9 "/D5") (pinfunction "I/O5") (pintype "bidirectional"))
    (pad "27" smd roundrect (at 9.85 -1.25 270) (size 0.3 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 9 "/D5") (pinfunction "I/O5") (pintype "bidirectional"))
    (pad "28" smd roundrect (at 3.85 -1.75 270) (size 0.3 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 10 "/D6") (pinfunction "I/O6") (pintype "bidirectional"))
    (pad "28" smd roundrect (at 9.85 -1.75 270) (size 0.3 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 10 "/D6") (pinfunction "I/O6") (pintype "bidirectional"))
    (pad "29" smd roundrect (at 3.85 -2.25 270) (size 0.3 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 11 "/D7") (pinfunction "I/O7") (pintype "bidirectional"))
    (pad "29" smd roundrect (at 9.85 -2.25 270) (size 0.3 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 11 "/D7") (pinfunction "I/O7") (pintype "bidirectional"))
    (pad "30" smd roundrect (at 3.85 -2.75 270) (size 0.3 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 2 "/~{CE1}") (pinfunction "~{CE1}") (pintype "input"))
    (pad "30" smd roundrect (at 9.85 -2.75 270) (size 0.3 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 2 "/~{CE1}") (pinfunction "~{CE1}") (pintype "input"))
    (pad "31" smd roundrect (at 3.85 -3.25 270) (size 0.3 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 18 "/A10") (pinfunction "A10") (pintype "input"))
    (pad "31" smd roundrect (at 9.85 -3.25 270) (size 0.3 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 18 "/A10") (pinfunction "A10") (pintype "input"))
    (pad "32" smd roundrect (at 3.85 -3.75 270) (size 0.3 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 3 "/~{OE}") (pinfunction "~{OE}") (pintype "input"))
    (pad "32" smd roundrect (at 9.85 -3.75 270) (size 0.3 0.9) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 3 "/~{OE}") (pinfunction "~{OE}") (pintype "input"))
    (model "${KIPRJMOD}/3d/TSOP32_8x14.step" hide
      (offset (xyz -3 0 0))
      (scale (xyz 1 1 1))
      (rotate (xyz 0 0 0))
    )
    (model "${KIPRJMOD}/3d/TSOP32_8X20.step"
      (offset (xyz 0 0 0))
      (scale (xyz 1 1 1))
      (rotate (xyz 0 0 0))
    )
  )
  (footprint "0_LOCAL:2016_battery_holder_smt" (layer "F.Cu")
    (at 135.95 83.745)
    (descr "https://www.tme.eu/it/Document/a823211ec201a9e209042d155fe22d2b/KEYS2996.pdf")
    (tags "BR2016 CR2016 DL2016 BR2020 CL2020 BR2025 CR2025 DL2025 DR2032 CR2032 DL2032")
    (property "Sheetfile" "WP-2_IC-Card_RAM.kicad_sch")
    (property "Sheetname" "")
    (property "ki_description" "Single-cell battery")
    (property "ki_keywords" "battery cell")
    (attr smd)
    (fp_text reference "BT1" (at -9.15 9.7) (layer "F.SilkS") hide)
    (fp_text value "CR2016 3v" (at 0 -11) (layer "F.Fab"))
    (fp_text user "${REFERENCE}" (at -9.15 9.7) (layer "F.Fab"))
    (pad "1" smd roundrect (at -13 0) (size 5.5 5.5) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.1)
      (net 32 "/VBAT") (pinfunction "+") (pintype "passive"))
    (pad "1" smd roundrect (at 13 0) (size 5.5 5.5) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.1)
      (net 32 "/VBAT") (pinfunction "+") (pintype "passive"))
    (pad "2" smd circle (at 0 0) (size 17.8 17.8) (layers "F.Cu" "F.Mask")
      (net 1 "GND") (pinfunction "-") (pintype "passive"))
    (model "${KIPRJMOD}/3d/keystone-PN3026.STEP"
      (offset (xyz 0 -10.07 1.9))
      (scale (xyz 1 1 1))
      (rotate (xyz -90 0 0))
    )
    (model "${KIPRJMOD}/3d/BATT_CR2016.step"
      (offset (xyz 0 0 1.6))
      (scale (xyz 1 1 1))
      (rotate (xyz 90 0 0))
    )
  )
  (footprint "0_LOCAL:SOT-23" (layer "F.Cu")
    (at 121.2 101.345 -90)
    (descr "SOT-23, Standard")
    (tags "SOT-23")
    (property "Sheetfile" "WP-2_IC-Card_RAM.kicad_sch")
    (property "Sheetname" "")
    (property "ki_description" "Dual 85V 125mA low reverse leakage diodes, common cathode, SOT-23")
    (property "ki_keywords" "diode")
    (attr smd)
    (fp_text reference "DA1" (at -1.7 -0.6 -90 unlocked) (layer "F.SilkS"))
    (fp_text value "BAV170" (at -1.7 0.65 -90 unlocked) (layer "F.SilkS"))
    (fp_text user "${REFERENCE}" (at 0 0) (layer "F.Fab"))
    (pad "1" smd roundrect (at -1 -0.95 270) (size 0.9 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.1)
      (net 32 "/VBAT") (pinfunction "A") (pintype "passive"))
    (pad "2" smd roundrect (at -1 0.95 270) (size 0.9 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.1)
      (net 31 "/VBUS") (pinfunction "A") (pintype "passive"))
    (pad "3" smd roundrect (at 1 0 270) (size 0.9 0.8) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.1)
      (net 30 "VMEM") (pinfunction "K") (pintype "passive"))
    (model "${KIPRJMOD}/3d/SOT-23.step"
      (offset (xyz 0 0 0))
      (scale (xyz 1 1 1))
      (rotate (xyz 0 0 0))
    )
  )
  (footprint "0_LOCAL:npth_0.6mm" (layer "F.Cu")
    (at 159.95 114.02)
    (attr through_hole)
    (fp_text reference "REF**" (at 0 4.445) (layer "F.SilkS") hide)
    (fp_text value "npth_0.6mm" (at 0 -1) (layer "F.Fab"))
    (pad "" np_thru_hole circle (at 0 0) (size 0.6 0.6) (drill 0.6) (layers "F&B.Cu")
      (zone_connect 0))
  )
  (footprint "0_LOCAL:C_0805_1mm" (layer "F.Cu")
    (at 122 104.695 -90)
    (descr "Capacitor SMD 0805, reflow soldering, AVX (see smccp.pdf)")
    (tags "capacitor 0805")
    (property "Sheetfile" "WP-2_IC-Card_RAM.kicad_sch")
    (property "Sheetname" "")
    (property "ki_description" "Unpolarized capacitor, small symbol")
    (property "ki_keywords" "capacitor cap")
    (attr smd)
    (fp_text reference "C3" (at 1.778 -0.508 -90 unlocked) (layer "F.SilkS"))
    (fp_text value "22u" (at 1.778 0.508 -90 unlocked) (layer "F.SilkS"))
    (fp_text user "${REFERENCE}" (at 0 -1.5 90) (layer "F.Fab"))
    (pad "1" smd roundrect (at -1 0 270) (size 1 1.25) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.15)
      (net 30 "VMEM") (pintype "passive"))
    (pad "2" smd roundrect (at 1 0 270) (size 1 1.25) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.15)
      (net 1 "GND") (pintype "passive"))
    (model "${KIPRJMOD}/3d/C_0805_1mm.step"
      (offset (xyz 0 0 0))
      (scale (xyz 1 1 1))
      (rotate (xyz 0 0 0))
    )
  )
  (footprint "0_LOCAL:WP-2_IC_Card_Cover_RAM" (layer "F.Cu")
    (at 135.95 95.245)
    (attr board_only exclude_from_pos_files exclude_from_bom)
    (fp_text reference "REF**" (at 0 -0.5 unlocked) (layer "F.Fab") hide)
    (fp_text value "WP-2_IC_Card_Cover_RAM" (at 0 0 unlocked) (layer "Dwgs.User"))
    (model "${KIPRJMOD}/3d/WP-2_IC-Card_Cover_RAM.step"
      (offset (xyz 0 0 1.8))
      (scale (xyz 1 1 1))
      (rotate (xyz 180 0 180))
    )
  )
  (footprint "0_LOCAL:R_0805" (layer "F.Cu")
    (at 123.95 101.295 -90)
    (descr "Resistor SMD 0805, reflow soldering, Vishay (see dcrcw.pdf)")
    (tags "resistor 0805")
    (property "Sheetfile" "WP-2_IC-Card_RAM.kicad_sch")
    (property "Sheetname" "")
    (property "ki_description" "Resistor")
    (property "ki_keywords" "R res resistor")
    (attr smd)
    (fp_text reference "R2" (at -1.55 -0.5 -90 unlocked) (layer "F.SilkS"))
    (fp_text value "100K" (at -1.55 0.55 -90 unlocked) (layer "F.SilkS"))
    (fp_text user "${REFERENCE}" (at 0 0 90) (layer "F.Fab"))
    (pad "1" smd roundrect (at -0.95 0 270) (size 0.7 1.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.1)
      (net 1 "GND") (pintype "passive"))
    (pad "2" smd roundrect (at 0.95 0 270) (size 0.7 1.3) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.1)
      (net 29 "/CE2") (pintype "passive"))
    (model "${KIPRJMOD}/3d/R_0805_2012Metric.step"
      (offset (xyz 0 0 0))
      (scale (xyz 1 1 1))
      (rotate (xyz 0 0 0))
    )
  )
  (footprint "0_LOCAL:C_0805_1mm" (layer "F.Cu")
    (at 123.9 104.695 -90)
    (descr "Capacitor SMD 0805, reflow soldering, AVX (see smccp.pdf)")
    (tags "capacitor 0805")
    (property "Sheetfile" "WP-2_IC-Card_RAM.kicad_sch")
    (property "Sheetname" "")
    (property "ki_description" "Unpolarized capacitor, small symbol")
    (property "ki_keywords" "capacitor cap")
    (attr smd)
    (fp_text reference "C2" (at 1.75 -0.65 -90 unlocked) (layer "F.SilkS"))
    (fp_text value "22u" (at 1.75 0.35 -90 unlocked) (layer "F.SilkS"))
    (fp_text user "${REFERENCE}" (at 0 -1.5 -90) (layer "F.Fab"))
    (pad "1" smd roundrect (at -1 0 270) (size 1 1.25) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.15)
      (net 30 "VMEM") (pintype "passive"))
    (pad "2" smd roundrect (at 1 0 270) (size 1 1.25) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.15)
      (net 1 "GND") (pintype "passive"))
    (model "${KIPRJMOD}/3d/C_0805_1mm.step"
      (offset (xyz 0 0 0))
      (scale (xyz 1 1 1))
      (rotate (xyz 0 0 0))
    )
  )
  (footprint "0_LOCAL:C_0805_1mm" (layer "F.Cu")
    (at 120.1 104.695 -90)
    (descr "Capacitor SMD 0805, reflow soldering, AVX (see smccp.pdf)")
    (tags "capacitor 0805")
    (property "Sheetfile" "WP-2_IC-Card_RAM.kicad_sch")
    (property "Sheetname" "")
    (property "ki_description" "Unpolarized capacitor, small symbol")
    (property "ki_keywords" "capacitor cap")
    (attr smd)
    (fp_text reference "C4" (at 1.75 -0.4 -90 unlocked) (layer "F.SilkS"))
    (fp_text value "22u" (at 1.75 0.6 -90 unlocked) (layer "F.SilkS"))
    (fp_text user "${REFERENCE}" (at 0 -1.5 90) (layer "F.Fab"))
    (pad "1" smd roundrect (at -1 0 270) (size 1 1.25) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.15)
      (net 30 "VMEM") (pintype "passive"))
    (pad "2" smd roundrect (at 1 0 270) (size 1 1.25) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.15)
      (net 1 "GND") (pintype "passive"))
    (model "${KIPRJMOD}/3d/C_0805_1mm.step"
      (offset (xyz 0 0 0))
      (scale (xyz 1 1 1))
      (rotate (xyz 0 0 0))
    )
  )
  (footprint "0_LOCAL:npth_0.6mm" (layer "F.Cu")
    (at 111.95 114.02)
    (attr through_hole)
    (fp_text reference "REF**" (at 0 4.445) (layer "F.SilkS") hide)
    (fp_text value "npth_0.6mm" (at 0 -1) (layer "F.Fab"))
    (pad "" np_thru_hole circle (at 0 0) (size 0.6 0.6) (drill 0.6) (layers "F&B.Cu")
      (zone_connect 0))
  )
  (gr_line (start 108.949999 88.245) (end 108.95 112.245)
    (layer "Edge.Cuts"))
  (gr_line (start 160.95 68.245) (end 110.95 68.245)
    (layer "Edge.Cuts"))
  (gr_line (start 111.65 113.72) (end 160.25 113.72)
    (layer "Edge.Cuts"))
  (gr_line (start 160.25 122.245) (end 160.25 113.72)
    (layer "Edge.Cuts"))
  (gr_line (start 111.65 122.245) (end 111.65 113.72)
    (layer "Edge.Cuts"))
  (gr_line (start 110.45 122.245) (end 111.65 122.245)
    (layer "Edge.Cuts"))
  (gr_line (start 160.95 122.245) (end 160.25 122.245)
    (layer "Edge.Cuts"))
  (gr_line (start 162.95 120.245) (end 162.95 88.245)
    (layer "Edge.Cuts"))
  (gr_line (start 109.95 113.245) (end 109.95 121.745)
    (layer "Edge.Cuts"))
  (gr_arc (start 109.535787 71.659214) (mid 109.969333 72.308061) (end 110.121574 73.073428)
    (layer "Edge.Cuts"))
  (gr_arc (start 162.364213 86.830786) (mid 162.797759 87.479633) (end 162.95 88.245)
    (layer "Edge.Cuts"))
  (gr_arc (start 162.95 120.245) (mid 162.364214 121.659214) (end 160.95 122.245)
    (layer "Edge.Cuts"))
  (gr_arc (start 109.45 112.745) (mid 109.803553 112.891447) (end 109.95 113.245)
    (layer "Edge.Cuts"))
  (gr_arc (start 108.95 70.245) (mid 109.535786 68.830786) (end 110.95 68.245)
    (layer "Edge.Cuts"))
  (gr_arc (start 160.95 68.245) (mid 162.364214 68.830786) (end 162.95 70.245)
    (layer "Edge.Cuts"))
  (gr_arc (start 110.45 122.245) (mid 110.096447 122.098553) (end 109.95 121.745)
    (layer "Edge.Cuts"))
  (gr_arc (start 162.95 70.245) (mid 162.797759 71.010367) (end 162.364213 71.659214)
    (layer "Edge.Cuts"))
  (gr_arc (start 110.121573 85.416572) (mid 109.969339 86.181944) (end 109.535786 86.830786)
    (layer "Edge.Cuts"))
  (gr_line (start 161.778426 73.073428) (end 161.778426 85.416572)
    (layer "Edge.Cuts"))
  (gr_arc (start 162.364213 86.830786) (mid 161.930671 86.181939) (end 161.778426 85.416572)
    (layer "Edge.Cuts"))
  (gr_arc (start 108.949999 88.245) (mid 109.10224 87.479633) (end 109.535786 86.830786)
    (layer "Edge.Cuts"))
  (gr_arc (start 161.778426 73.073428) (mid 161.930667 72.308061) (end 162.364213 71.659214)
    (layer "Edge.Cuts"))
  (gr_arc (start 109.535787 71.659214) (mid 109.102241 71.010367) (end 108.95 70.245)
    (layer "Edge.Cuts"))
  (gr_line (start 110.121574 73.073428) (end 110.121573 85.416572)
    (layer "Edge.Cuts"))
  (gr_arc (start 109.45 112.745) (mid 109.096447 112.598553) (end 108.95 112.245)
    (layer "Edge.Cuts"))
  (gr_text "${TITLE} ${REVISION}\n${COMMENT2}" (at 135.95 109.64) (layer "B.SilkS"))
  (gr_text "THIS SIDE DOWN" (at 135.95 96.745) (layer "B.SilkS"))
  (gr_text "Battery: CR2016" (at 135.95 79.495) (layer "B.SilkS"))
  (gr_text "1" (at 159.445 110.485 -90) (layer "F.SilkS"))
  (gr_text "38" (at 112.455 110.485 -90) (layer "F.SilkS"))
  (gr_text "TANDY\nWP-2" (at 117.45 74.245) (layer "F.SilkS"))
  (gr_text "128K\nRAM" (at 154.45 74.245) (layer "F.SilkS"))
  (gr_text "628128\nAS6C1008\nIS62C1024\nCY62128\nR1LP0108E\nTC551001" (at 135.35 103.795) (layer "F.SilkS"))
  (gr_text "WP-2\nbody" (at 105.95 92.245) (layer "Dwgs.User"))
  (gr_text "WP-2" (at 135.95 91.495) (layer "Dwgs.User"))
  (gr_text "pins 6.0mm" (at 159.445 123.185) (layer "Dwgs.User"))
  (gr_text "WP-2\nbody" (at 165.95 92.245) (layer "Dwgs.User"))
  (gr_text "We want plated holes for mechanical strength instead of relying solely\non the epoxy under the pads to hold the battery.\nBut we do not want vcc exposed on the bottom surface\nas it's a shorting risk. The soldermask scratches easily\nand there is nothing else protecting the pcb.\nSo these vias are customized with no anular ring on the bottom,\nand no hole in the solder mask on the bottom." (at 136 59.245) (layer "Dwgs.User"))
  (gr_text "1.2mm or less PCB thickness.\nENIG for gold battery contact." (at 135.95 128.265) (layer "Dwgs.User"))
  (gr_text "drill to sharpen the inside corner" (at 112.5 114.72) (layer "Dwgs.User"))
  (zone (net 1) (net_name "GND") (layer "F.Cu") (hatch edge 0.508)
    (connect_pads yes (clearance 0.2))
    (min_thickness 0.2) (filled_areas_thickness no)
    (fill yes (thermal_gap 0.2) (thermal_bridge_width 0.4) (smoothing fillet) (radius 0.1))
    (polygon
      (pts
        (xy 108.95 122.245)
        (xy 108.95 68.245)
        (xy 162.95 68.245)
        (xy 162.95 122.245)
      )
    )
  )
  (zone (net 1) (net_name "GND") (layer "B.Cu") (hatch edge 0.508)
    (connect_pads yes (clearance 0.2))
    (min_thickness 0.2) (filled_areas_thickness no)
    (fill yes (thermal_gap 0.2) (thermal_bridge_width 0.4) (smoothing fillet) (radius 0.1))
    (polygon
      (pts
        (xy 108.95 122.245)
        (xy 108.95 68.245)
        (xy 162.95 68.245)
        (xy 162.95 122.245)
      )
    )
  )
)
