AgentSkillsCN

ic

在处理集成电路时——包括微控制器、运算放大器、稳压器、逻辑 IC——可选用此技能。本技能涵盖添加图案、解析 MPN、提取电压、封装与系列等规格信息。

SKILL.md
--- frontmatter
name: ic
description: Use when working with integrated circuits - microcontrollers, op-amps, voltage regulators, logic ICs. Includes adding patterns, parsing MPNs, extracting specifications like voltage, package, and series information.

Integrated Circuit Skill

Guidance for working with ICs (microcontrollers, op-amps, voltage regulators, logic) in the lib-electronic-components library.

Microcontrollers

Supported Manufacturers & Patterns

ManufacturerHandlerMPN PatternsExample
MicrochipMicrochipHandlerPIC#, dsPIC#, ATmega#, ATtiny#PIC16F877A, ATmega328P
STSTHandlerSTM32#, STM8#STM32F103C8T6
TITIHandlerMSP430#, CC####MSP430G2553
NXPNXPHandlerLPC#, MK#, IMX#, S32K#LPC1768
EspressifEspressifHandlerESP32#, ESP8266ESP32-WROOM-32
RenesasRenesasHandlerRX#, RA#, R5F#RX651
InfineonInfineonHandlerXMC#XMC4500
CypressCypressHandlerCY#, PSoC#CY8C5888

ComponentTypes

java
// Base types
ComponentType.MICROCONTROLLER
ComponentType.IC

// Manufacturer-specific
ComponentType.MICROCONTROLLER_MICROCHIP
ComponentType.MICROCONTROLLER_ST
ComponentType.MICROCONTROLLER_TI
ComponentType.MICROCONTROLLER_NXP
ComponentType.MICROCONTROLLER_ESPRESSIF
ComponentType.MICROCONTROLLER_RENESAS
ComponentType.MICROCONTROLLER_INFINEON
ComponentType.MICROCONTROLLER_ATMEL

// Architecture-specific
ComponentType.PIC_MCU
ComponentType.AVR_MCU
ComponentType.MSP430_MCU
ComponentType.ESP32_SOC
ComponentType.ESP8266_SOC
ComponentType.KINETIS_MCU
ComponentType.LPC_MCU

MPN Structure - STM32

code
STM32 F 103 C 8 T 6
│     │ │   │ │ │ │
│     │ │   │ │ │ └── Temperature (-40 to +85°C)
│     │ │   │ │ └──── Package (T=LQFP)
│     │ │   │ └────── Flash size (8=64KB)
│     │ │   └──────── Pin count (C=48 pins)
│     │ └──────────── Performance line (103)
│     └────────────── Family (F=Foundation)
└──────────────────── Series

Op-Amps

Supported Manufacturers & Patterns

ManufacturerHandlerMPN PatternsExample
TITIHandlerLM###, TL0##, OPA###LM358, TL072, OPA2134
Analog DevicesAnalogDevicesHandlerAD###, ADA###, OP##AD8605, OP07
STSTHandlerLM###, TS###TS912
ON SemiOnSemiHandlerLM###, MC####MC1458

ComponentTypes

java
ComponentType.OPAMP
ComponentType.OPAMP_TI
ComponentType.OPAMP_AD
ComponentType.OPAMP_ST
ComponentType.OPAMP_ON
ComponentType.OPAMP_INFINEON
ComponentType.OPAMP_NXP
ComponentType.OPAMP_ROHM

Common Op-Amp Series

SeriesTypeKey Specs
LM358DualLow power, single supply
LM324QuadLow power, single supply
TL072DualJFET input, low noise
OPA2134DualAudio, low distortion
AD8605SingleRail-to-rail, CMOS
NE5532DualAudio, low noise

Voltage Regulators

Supported Manufacturers & Patterns

ManufacturerHandlerMPN PatternsExample
TITIHandlerLM78##, LM79##, LM317, TPS###LM7805, LM317T, TPS65281
STSTHandlerL78##, LD1117L7805CV, LD1117V33
ON SemiOnSemiHandlerMC78##, NCP###MC7805CT
MaximMaximHandlerMAX###MAX1555
Analog DevicesAnalogDevicesHandlerADP###, LT####ADP3338, LT1086

ComponentTypes

java
ComponentType.VOLTAGE_REGULATOR
ComponentType.VOLTAGE_REGULATOR_LINEAR_TI
ComponentType.VOLTAGE_REGULATOR_SWITCHING_TI
ComponentType.VOLTAGE_REGULATOR_LINEAR_ST
ComponentType.VOLTAGE_REGULATOR_SWITCHING_ST
ComponentType.VOLTAGE_REGULATOR_LINEAR_INFINEON
ComponentType.VOLTAGE_REGULATOR_SWITCHING_INFINEON
ComponentType.VOLTAGE_REGULATOR_LINEAR_ON
ComponentType.VOLTAGE_REGULATOR_SWITCHING_ON
ComponentType.VOLTAGE_REGULATOR_MAXIM
ComponentType.VOLTAGE_REGULATOR_DIODES
ComponentType.VOLTAGE_REGULATOR_ROHM
ComponentType.VOLTAGE_REGULATOR_TOSHIBA

MPN Structure - LM78xx

code
LM 78 05 CT
│  │  │  │
│  │  │  └── Package (CT=TO-220)
│  │  └───── Output voltage (05=5V)
│  └──────── Series (78=positive, 79=negative)
└─────────── Family

Logic ICs

Handler

LogicICHandler handles the 74xx and CD4xxx series.

Patterns

PatternFamilyDescription
74LS###74LSLow-power Schottky
74HC###74HCHigh-speed CMOS
74HCT###74HCTCMOS with TTL levels
74AHC###74AHCAdvanced HC
74LVC###74LVCLow-voltage CMOS
CD4###CD4000CMOS 4000 series

ComponentTypes

java
ComponentType.LOGIC_IC
ComponentType.LOGIC_IC_NEXPERIA
ComponentType.LOGIC_IC_DIODES
ComponentType.DIGITAL_IC

Adding New IC Patterns

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

Similarity Calculators

  • MicrocontrollerSimilarityCalculator - Compares architecture, flash, RAM, peripherals
  • OpAmpSimilarityCalculator - Compares GBW, slew rate, supply voltage
  • VoltageRegulatorSimilarityCalculator - Compares output voltage, current, dropout
  • LogicICSimilarityCalculator - Compares function, family, voltage levels

Common Packages

PackagePinsDescription
DIP8-40Through-hole
SOIC8-28Surface mount
TSSOP8-56Thin small outline
QFP32-256Quad flat
LQFP32-256Low-profile QFP
QFN8-88Quad flat no-lead
BGAVariousBall grid array

Learnings & Quirks

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