mohan-bee/mini-mp3-player

Portable, battery-powered MP3 player hardware with USB charging, microSD storage, an MCU, VS10xx audio decoder, headphone output, status controls, and regulated power rails.

Version
1.2.0
License
unset
Stars
0

imports/CH32V203C8T6.tsx

import type { ChipProps } from "@tscircuit/props"

const pinLabels = {
  pin1: ["VBAT"],
  pin2: ["PC13","TAMPER_RTC"],
  pin3: ["PC14","OSC32IN"],
  pin4: ["PC15","OSC32OUT"],
  pin5: ["OSC_IN","PD0"],
  pin6: ["OSC_OUT","PD1"],
  pin7: ["NRST"],
  pin8: ["VSSA"],
  pin9: ["VDDA"],
  pin10: ["PA0","WKUP","ADC0"],
  pin11: ["PA1","ADC1"],
  pin12: ["PA2","ADC2"],
  pin13: ["PA3","ADC3"],
  pin14: ["PA4","ADC4","DAC0"],
  pin15: ["PA5","ADC5","DAC1"],
  pin16: ["PA6","ADC6"],
  pin17: ["PA7","ADC7"],
  pin18: ["PB0","ADC8"],
  pin19: ["PB1","ADC9"],
  pin20: ["PB2","BOOT1"],
  pin21: ["PB10"],
  pin22: ["PB11"],
  pin23: ["VSS_1"],
  pin24: ["VDD_VIO_1"],
  pin25: ["PB12"],
  pin26: ["PB13"],
  pin27: ["PB14"],
  pin28: ["PB15"],
  pin29: ["PA8"],
  pin30: ["PA9"],
  pin31: ["PA10"],
  pin32: ["PA11","USB1DM"],
  pin33: ["PA12","USB1DP"],
  pin34: ["PA13","SWDIO"],
  pin35: ["VSS_2"],
  pin36: ["VDD_2"],
  pin37: ["PA14","SWCLK"],
  pin38: ["PA15"],
  pin39: ["PB3"],
  pin40: ["PB4"],
  pin41: ["PB5"],
  pin42: ["PB6"],
  pin43: ["PB7"],
  pin44: ["BOOT0"],
  pin45: ["PB8"],
  pin46: ["PB9"],
  pin47: ["VSS_3"],
  pin48: ["VDD_VIO_3"]
} as const

const pinAttributes = {
  pin9: {requiresPower: true}
} as const

export const CH32V203C8T6 = (props: ChipProps<typeof pinLabels>) => {
  return (
    <chip
      pinLabels={pinLabels}
      pinAttributes={pinAttributes}
      supplierPartNumbers={{
  "jlcpcb": [
    "C3001172"
  ]
}}
      manufacturerPartNumber="CH32V203C8T6"
      footprint="qfn48_pillpads_h10.2mm_pw0.27mm_pl1.5mm_pin1location(bottomside,left)"
      cadModel={{
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C3001172.obj?uuid=a4b96ad857dc48c08dab3d0efdf20aec",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C3001172.step?uuid=a4b96ad857dc48c08dab3d0efdf20aec",
        pcbRotationOffset: 0,
        modelOriginPosition: { x: 0, y: 0, z: 0.000795 },
      }}
      {...props}
    />
  )
}