AgentSkillsCN

semiconductor

适用于与离散半导体元件——二极管、晶体管、MOSFET、IGBT——配合使用时。支持添加编码规则、解析 MPN、提取电压/电流额定值,以及封装代码。

SKILL.md
--- frontmatter
name: semiconductor
description: Use when working with discrete semiconductor components - diodes, transistors, MOSFETs, IGBTs. Includes adding patterns, parsing MPNs, extracting voltage/current ratings, and package codes.

Semiconductor Component Skill

Guidance for working with discrete semiconductor components (diodes, transistors, MOSFETs) in the lib-electronic-components library.

Diodes

Supported Manufacturers & Patterns

ManufacturerHandlerMPN PatternsExample
VishayVishayHandler1N4###, 1N5###, BAT#, BZX#1N4007, BAT54S
ON SemiOnSemiHandler1N47##, MUR###1N4742A
Diodes IncDiodesIncHandler1N#, BAV#, BAS#1N4148W
NexperiaNexteriaHandlerBZX#, BAT#, BAV#BZX84C5V1

ComponentTypes

java
ComponentType.DIODE
ComponentType.DIODE_VISHAY
ComponentType.DIODE_ON
ComponentType.DIODE_ROHM

Common Diode Series

SeriesTypeTypical Specs
1N400xRectifier1A, 50-1000V
1N5400Rectifier3A, 50-1000V
1N4148Signal100mA, 75V
1N47xxZenerVarious voltages
BAT54Schottky200mA, 30V
BZX84Zener SMDVarious voltages

Transistors

Supported Manufacturers & Patterns

ManufacturerHandlerMPN PatternsExample
VishayVishayHandler2N####, BC###2N2222A, BC547B
ON SemiOnSemiHandler2N####, BC###, MMBT#MMBT3904
NexperiaNexteriaHandlerPMBT#, PBSS#PMBT2222A

ComponentTypes

java
ComponentType.TRANSISTOR
ComponentType.TRANSISTOR_VISHAY
ComponentType.TRANSISTOR_NXP
ComponentType.BIPOLAR_TRANSISTOR_NEXPERIA

Common Transistor Series

SeriesTypeTypical Use
2N2222NPNGeneral purpose
2N3904NPNLow power
2N3906PNPLow power
BC547NPNGeneral purpose SMD
MMBT3904NPNSMD version of 2N3904

MOSFETs

Supported Manufacturers & Patterns

ManufacturerHandlerMPN PatternsExample
InfineonInfineonHandlerIRF#, IRL#, IRFP#, IRFB#IRF540N, IRL3803
VishayVishayHandlerSI#, SIS#, SIR#SI2302CDS
ON SemiOnSemiHandlerFQP#, NTD#FQP30N06L
STSTHandlerSTF#, STP#, STD#STP55NF06
NexperiaNexteriaHandlerPMV#, PSMN#PMV45EN
ToshibaToshibaHandlerTPC#, TPN#TPC8107
ROHMRohmHandlerRQ#, RGT#RQ5E050AJ

ComponentTypes

java
ComponentType.MOSFET
ComponentType.MOSFET_INFINEON
ComponentType.MOSFET_VISHAY
ComponentType.MOSFET_ONSEMI
ComponentType.MOSFET_ST
ComponentType.MOSFET_NEXPERIA
ComponentType.MOSFET_TOSHIBA
ComponentType.MOSFET_ROHM
ComponentType.MOSFET_NXP
ComponentType.MOSFET_DIODES

MPN Structure - Infineon IRF Series

code
IRF 540 N
│   │   │
│   │   └── Package (N=TO-220, S=D2PAK, L=TO-262)
│   └────── Part number (voltage/current encoding)
└────────── Series (IRF=Standard, IRL=Logic Level)

MOSFET Key Parameters

ParameterDescription
VdsDrain-Source Voltage
Rds(on)On-Resistance
IdContinuous Drain Current
QgTotal Gate Charge

IGBTs

ComponentTypes

java
ComponentType.IGBT_INFINEON
ComponentType.IGBT_ONSEMI
ComponentType.IGBT_TOSHIBA

Patterns

  • Infineon: IKP#, IKW#
  • Toshiba: GT#

Adding New Semiconductor Patterns

  1. In the manufacturer handler's initializePatterns():
java
registry.addPattern(ComponentType.MOSFET, "^NEWMOS[0-9].*");
registry.addPattern(ComponentType.MOSFET_MANUFACTURER, "^NEWMOS[0-9].*");
  1. Add to getSupportedTypes():
java
types.add(ComponentType.MOSFET);
types.add(ComponentType.MOSFET_MANUFACTURER);

Similarity Calculators

  • DiodeSimilarityCalculator - Compares voltage, current, type (rectifier/Schottky/Zener)
  • TransistorSimilarityCalculator - Compares hFE, Vce, Ic
  • MosfetSimilarityCalculator - Compares Vds, Rds(on), Id, package

Common Packages

PackageDescription
TO-220Through-hole power
TO-247High power
D2PAKSMD power
SOT-23Small SMD
SOT-223Medium SMD
DPAKSMD power

Learnings & Quirks

<!-- Record component-specific discoveries, edge cases, and quirks here -->