name: MAX3485
# DIP, SO, DIP, SO
variations: CPA, CSA, EPA, ESA
description: transceiver, RS-485/RS-422, 3.3V powered
datasheet: https://www.analog.com/en/products/max3485.html

pinout:
  RO: 1
  ~RE: 2
  DE: 3
  DI: 4
  GND: 5
  A: 6
  B: 7
  VCC: 8

properties:
  bidir: A,B
  in: DI,~RE,DE
  out: RO
  power: VCC
  ground: GND
  inverted: ~RE

schematic:
  symbol: ic
  left: RO,~RE,DE,DI
  right: A,B
  top: VCC
  bottom: GND

# DIP https://www.analog.com/media/en/package-pcb-resources/package/pkg_pdf/pdip/21-0043.pdf
housing@P: &P
  pattern: DIP
  leadCount: 8
  pitch: 2.54 # e
  bodyWidth: 6.10-7.87 # E1
  bodyLength: 8.84-9.91 # D
  height: 3.18-4.45 # A2
  leadWidth: 0.2-0.355 # c
  leadLength: 0.381-0.56 # b
  leadHeight: 2.921-3.81 # L
  leadSpan: 7.62-8.26 # E

housing@CPA:
  suffix: CPA
  <<: *P

housing@EPA:
  suffix: EPA
  <<: *P

# CSA https://www.analog.com/media/en/package-pcb-resources/package/pkg_pdf/soicn/21-0041.pdf
housing@S: &S
  pattern: SOP
  height: 1.35-1.75 # A
  leadCount: 8
  pitch: 1.27 # e
  bodyWidth: 3.8-4.0 # E
  bodyLength: 4.8-5.0 # D
  leadLength: 0.4-1.27 # L
  leadWidth: 0.35-0.49 # b
  leadSpan: 5.8-6.2 # H

housing@CSA:
  suffix: CSA
  <<: *S

housing@ESA:
  suffix: ESA
  <<: *S
