astra/pd-power-supply

USB-PD Power Supply with RP2040 controller

Version
1.1.6
License
unset
Stars
0

imports/CH224Q.tsx

import type { ChipProps } from '@tscircuit/props'
// WCH CH224DS1 v2.1: DFN10 2x2, 0.4 mm pitch; pin 11 is exposed pad (datasheet pin 0).
// Authored land pattern; verify solder-mask/paste with assembler before fabrication.
const pinLabels = {pin1:'VHV',pin2:'SCL',pin3:'SDA',pin4:'DP',pin5:'DM',pin6:'CC2',pin7:'CC1',pin8:'VBUS',pin9:'CFG1',pin10:'PG',pin11:'GND'} as const
export const CH224Q = (props:ChipProps<typeof pinLabels>) => <chip
  manufacturerPartNumber="CH224Q" pinLabels={pinLabels}
  footprint={<footprint>
    {[1,2,3,4,5].map((p,i)=><smtpad portHints={[`pin${p}`]} pcbX={-0.95} pcbY={0.8-i*0.4} width={0.6} height={0.23} shape="rect"/>)}
    {[10,9,8,7,6].map((p,i)=><smtpad portHints={[`pin${p}`]} pcbX={0.95} pcbY={0.8-i*0.4} width={0.6} height={0.23} shape="rect"/>)}
    <smtpad portHints={['pin11']} width={0.7} height={1.6} shape="rect" />
    <silkscreenrect width={2} height={2.3} filled={false}/>
    <silkscreencircle pcbX={-1.35} pcbY={1} radius={0.13}/>
    <courtyardrect width={2.9} height={2.9}/>
  </footprint>}
  {...props}/>