main
Ray
Publish 0.1.1
bff889d
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415
{
"slug": "stm8l151c6t6",
"version": "0.1.1",
"type": "component",
"description": "STMicroelectronics Microcontrollers (MCU/MPU/SOC), LQFP-48(7x7). Datasheet-verified pinout, KiCad symbol/footprint/3D.",
"tags": [
"component",
"mcu",
"stm8l151c6t6"
],
"dependencies": {},
"hero": {
"type": "image",
"path": "docs/hero.png"
},
"files": [
"page.json",
"README.md",
"stm8l151c6t6.kicad_sym",
"stm8l151c6t6.kicad_mod",
"stm8l151c6t6.glb",
"stm8l151c6t6.step",
"stm8l151c6t6.lbr",
"docs/hero.png",
"docs/stm8l151c6t6-datasheet.pdf",
"viewers/symbol.html",
"viewers/footprint.html",
"stm8l151c6t6-etched.glb",
"stm8l151c6t6-etched.step"
],
"visibility": "public",
"author": {
"name": "Ray"
},
"component": {
"mpn": "STM8L151C6T6",
"manufacturer": "STMicroelectronics",
"package": "LQFP-48(7x7)",
"pin_count": 48,
"category": "Microcontrollers (MCU/MPU/SOC)",
"datasheet": "https://www.st.com/resource/en/datasheet/stm8l151c6t6.pdf",
"parts": {
"symbol": "stm8l151c6t6.kicad_sym",
"footprint": "stm8l151c6t6.kicad_mod",
"model_3d": "stm8l151c6t6-etched.glb",
"model_3d_plain": "stm8l151c6t6.glb",
"model_3d_step": "stm8l151c6t6-etched.step",
"model_3d_step_plain": "stm8l151c6t6.step",
"lbr": "stm8l151c6t6.lbr"
},
"pins": [
{
"number": "1",
"name": "PA0/USART1_CK/SWIM/BEEP/IR_TIM",
"type": "bidirectional",
"description": "Port A0 GPIO. Alternate functions: SWIM debug/program I/O (default at reset), [USART1 synchronous clock] (remap), BEEP output, and Infrared timer output. High-sink LED driver capability. Pull-up during reset and after reset release."
},
{
"number": "2",
"name": "NRST/PA1",
"type": "bidirectional",
"description": "Active-low reset input with internal pull-up at power-up. May be reconfigured as general-purpose PA1 (output push-pull or open-drain only; cannot be used as general-purpose input). See RM0031 for reconfiguration procedure."
},
{
"number": "3",
"name": "PA2/OSC_IN/[USART1_TX]/[SPI1_MISO]",
"type": "bidirectional",
"description": "Port A2 GPIO / HSE crystal oscillator input (1-16 MHz). Remappable alternates: USART1 TX or SPI1 MISO."
},
{
"number": "4",
"name": "PA3/OSC_OUT/[USART1_RX]/[SPI1_MOSI]",
"type": "bidirectional",
"description": "Port A3 GPIO / HSE crystal oscillator output. Remappable alternates: USART1 RX or SPI1 MOSI."
},
{
"number": "5",
"name": "PA4/TIM2_BKIN/ADC1_IN2/COMP1_INP",
"type": "bidirectional",
"description": "Port A4 GPIO. Alternates: TIM2 break input, ADC1 channel 2 analog input, comparator 1 positive input. 3.6 V tolerant (TT) I/O (protection diode to VDD not implemented)."
},
{
"number": "6",
"name": "PA5/TIM3_BKIN/ADC1_IN1/COMP1_INP",
"type": "bidirectional",
"description": "Port A5 GPIO. Alternates: TIM3 break input, ADC1 channel 1 analog input, comparator 1 positive input. 3.6 V tolerant (TT) I/O."
},
{
"number": "7",
"name": "PA6/[ADC1_TRIG]/ADC1_IN0/COMP1_INP",
"type": "bidirectional",
"description": "Port A6 GPIO. Alternates: remappable ADC1 external trigger, ADC1 channel 0 analog input, comparator 1 positive input. 3.6 V tolerant (TT) I/O."
},
{
"number": "8",
"name": "PA7",
"type": "bidirectional",
"description": "Port A7 GPIO. Five-volt tolerant (FT) I/O."
},
{
"number": "9",
"name": "VSS1/VSSA/VREF-",
"type": "power_in",
"description": "Combined digital I/O ground, analog ground, and ADC1 negative voltage reference. Connect to 0 V system ground."
},
{
"number": "10",
"name": "VDD",
"type": "power_in",
"description": "Digital power supply. Operating range 1.8 V to 3.6 V (down to 1.65 V at power down). Decouple with 100 nF at pin."
},
{
"number": "11",
"name": "VDDA",
"type": "power_in",
"description": "Analog supply voltage for ADC, DAC, comparators, and internal reference. Tie to VDD via a small ferrite or star-connect at the LDO for best analog performance."
},
{
"number": "12",
"name": "VREF+",
"type": "power_in",
"description": "ADC1 and DAC positive voltage reference input. Tie to VDDA when not using an external reference; must be <= VDDA."
},
{
"number": "13",
"name": "Reserved",
"type": "unconnected",
"description": "Reserved on STM8L151xx (without LCD). Must be tied to VDD. On STM8L152xx this pin is VLCD (LCD booster external capacitor)."
},
{
"number": "14",
"name": "PE0",
"type": "bidirectional",
"description": "Port E0 GPIO. Five-volt tolerant (FT) I/O."
},
{
"number": "15",
"name": "PE1/TIM1_CH2N",
"type": "bidirectional",
"description": "Port E1 GPIO. Alternate: TIM1 inverted channel 2 output (complementary PWM). 3.6 V tolerant (TT) I/O."
},
{
"number": "16",
"name": "PE2/TIM1_CH3N",
"type": "bidirectional",
"description": "Port E2 GPIO. Alternate: TIM1 inverted channel 3 output (complementary PWM). 3.6 V tolerant (TT) I/O."
},
{
"number": "17",
"name": "PE3",
"type": "bidirectional",
"description": "Port E3 GPIO. 3.6 V tolerant (TT) I/O."
},
{
"number": "18",
"name": "PE4",
"type": "bidirectional",
"description": "Port E4 GPIO. 3.6 V tolerant (TT) I/O."
},
{
"number": "19",
"name": "PE5/ADC1_IN23/COMP2_INP/COMP1_INP",
"type": "bidirectional",
"description": "Port E5 GPIO. Alternates: ADC1 channel 23 analog input, comparator 2 positive input, comparator 1 positive input. 3.6 V tolerant (TT) I/O."
},
{
"number": "20",
"name": "PD0/TIM3_CH2/[ADC1_TRIG]/ADC1_IN22/COMP2_INP/COMP1_INP",
"type": "bidirectional",
"description": "Port D0 GPIO. Alternates: TIM3 channel 2, remappable ADC1 external trigger, ADC1 channel 22, comparator 2/1 positive input. 3.6 V tolerant (TT) I/O."
},
{
"number": "21",
"name": "PD1/TIM3_ETR/ADC1_IN21/COMP2_INP/COMP1_INP",
"type": "bidirectional",
"description": "Port D1 GPIO. Alternates: TIM3 external trigger, ADC1 channel 21, comparator 2/1 positive input. 3.6 V tolerant (TT) I/O."
},
{
"number": "22",
"name": "PD2/TIM1_CH1/ADC1_IN20/COMP1_INP",
"type": "bidirectional",
"description": "Port D2 GPIO. Alternates: TIM1 channel 1, ADC1 channel 20, comparator 1 positive input. 3.6 V tolerant (TT) I/O."
},
{
"number": "23",
"name": "PD3/TIM1_ETR/ADC1_IN19/COMP1_INP",
"type": "bidirectional",
"description": "Port D3 GPIO. Alternates: TIM1 external trigger, ADC1 channel 19, comparator 1 positive input. 3.6 V tolerant (TT) I/O."
},
{
"number": "24",
"name": "PB0/TIM2_CH1/ADC1_IN18/COMP1_INP",
"type": "bidirectional",
"description": "Port B0 GPIO. Alternates: TIM2 channel 1, ADC1 channel 18, comparator 1 positive input. 3.6 V tolerant (TT) I/O. Pull-up applied during reset phase; floats after reset release."
},
{
"number": "25",
"name": "PB1/TIM3_CH1/ADC1_IN17/COMP1_INP",
"type": "bidirectional",
"description": "Port B1 GPIO. Alternates: TIM3 channel 1, ADC1 channel 17, comparator 1 positive input. 3.6 V tolerant (TT) I/O."
},
{
"number": "26",
"name": "PB2/TIM2_CH2/ADC1_IN16/COMP1_INP",
"type": "bidirectional",
"description": "Port B2 GPIO. Alternates: TIM2 channel 2, ADC1 channel 16, comparator 1 positive input. 3.6 V tolerant (TT) I/O."
},
{
"number": "27",
"name": "PB3/TIM2_ETR/ADC1_IN15/COMP1_INP",
"type": "bidirectional",
"description": "Port B3 GPIO. Alternates: TIM2 external trigger, ADC1 channel 15, comparator 1 positive input. 3.6 V tolerant (TT) I/O."
},
{
"number": "28",
"name": "PB4/[SPI1_NSS]/ADC1_IN14/COMP1_INP",
"type": "bidirectional",
"description": "Port B4 GPIO. Alternates: remappable SPI1 slave-select (NSS), ADC1 channel 14, comparator 1 positive input. 3.6 V tolerant (TT) I/O. Pull-up during reset; floats after reset release."
},
{
"number": "29",
"name": "PB5/[SPI1_SCK]/ADC1_IN13/COMP1_INP",
"type": "bidirectional",
"description": "Port B5 GPIO. Alternates: remappable SPI1 clock, ADC1 channel 13, comparator 1 positive input. 3.6 V tolerant (TT) I/O."
},
{
"number": "30",
"name": "PB6/[SPI1_MOSI]/ADC1_IN12/COMP1_INP",
"type": "bidirectional",
"description": "Port B6 GPIO. Alternates: remappable SPI1 MOSI, ADC1 channel 12, comparator 1 positive input. 3.6 V tolerant (TT) I/O."
},
{
"number": "31",
"name": "PB7/[SPI1_MISO]/ADC1_IN11/COMP1_INP",
"type": "bidirectional",
"description": "Port B7 GPIO. Alternates: remappable SPI1 MISO, ADC1 channel 11, comparator 1 positive input. 3.6 V tolerant (TT) I/O."
},
{
"number": "32",
"name": "PF0/ADC1_IN24/DAC_OUT",
"type": "bidirectional",
"description": "Port F0 GPIO. Alternates: ADC1 channel 24 analog input, 12-bit DAC output (buffered). 3.6 V tolerant (TT) I/O."
},
{
"number": "33",
"name": "PD4/TIM1_CH2/ADC1_IN10/COMP1_INP",
"type": "bidirectional",
"description": "Port D4 GPIO. Alternates: TIM1 channel 2, ADC1 channel 10, comparator 1 positive input. 3.6 V tolerant (TT) I/O."
},
{
"number": "34",
"name": "PD5/TIM1_CH3/ADC1_IN9/COMP1_INP",
"type": "bidirectional",
"description": "Port D5 GPIO. Alternates: TIM1 channel 3, ADC1 channel 9, comparator 1 positive input. 3.6 V tolerant (TT) I/O."
},
{
"number": "35",
"name": "PD6/TIM1_BKIN/ADC1_IN8/RTC_CALIB/VREFINT/COMP1_INP",
"type": "bidirectional",
"description": "Port D6 GPIO. Alternates: TIM1 break input, ADC1 channel 8, RTC calibration output, internal voltage reference output (VREFINT), comparator 1 positive input. 3.6 V tolerant (TT) I/O."
},
{
"number": "36",
"name": "PD7/TIM1_CH1N/ADC1_IN7/RTC_ALARM/VREFINT/COMP1_INP",
"type": "bidirectional",
"description": "Port D7 GPIO. Alternates: TIM1 inverted channel 1, ADC1 channel 7, RTC alarm output, internal voltage reference output (VREFINT), comparator 1 positive input. 3.6 V tolerant (TT) I/O."
},
{
"number": "37",
"name": "PC0/I2C1_SDA",
"type": "bidirectional",
"description": "Port C0 GPIO. Alternate: I2C1 data (SDA), true open-drain output. Five-volt tolerant (FT) I/O."
},
{
"number": "38",
"name": "PC1/I2C1_SCL",
"type": "bidirectional",
"description": "Port C1 GPIO. Alternate: I2C1 clock (SCL), true open-drain output. Five-volt tolerant (FT) I/O."
},
{
"number": "39",
"name": "VDD2",
"type": "power_in",
"description": "Second I/O supply pin. Tie to VDD (1.8 V to 3.6 V). Provides supply to a subset of I/O drivers on the LQFP48 package."
},
{
"number": "40",
"name": "VSS2",
"type": "power_in",
"description": "Second I/O ground pin. Tie to system 0 V."
},
{
"number": "41",
"name": "PC2/USART1_RX/ADC1_IN6/COMP1_INP/VREFINT",
"type": "bidirectional",
"description": "Port C2 GPIO. Alternates: USART1 receive, ADC1 channel 6 analog input, comparator 1 positive input, internal voltage reference output. 3.6 V tolerant (TT) I/O."
},
{
"number": "42",
"name": "PC3/USART1_TX/ADC1_IN5/COMP1_INP/COMP2_INM",
"type": "bidirectional",
"description": "Port C3 GPIO. Alternates: USART1 transmit, ADC1 channel 5 analog input, comparator 1 positive input, comparator 2 negative input. 3.6 V tolerant (TT) I/O."
},
{
"number": "43",
"name": "PC4/USART1_CK/I2C1_SMB/CCO/ADC1_IN4/COMP2_INM/COMP1_INP",
"type": "bidirectional",
"description": "Port C4 GPIO. Alternates: USART1 synchronous clock, I2C1 SMBus alert, configurable clock output (CCO), ADC1 channel 4 analog input, comparator 2 negative input, comparator 1 positive input. 3.6 V tolerant (TT) I/O."
},
{
"number": "44",
"name": "PC5/OSC32_IN/[SPI1_NSS]/[USART1_TX]",
"type": "bidirectional",
"description": "Port C5 GPIO. Alternates: LSE 32 kHz crystal oscillator input, remappable SPI1 slave-select, remappable USART1 transmit."
},
{
"number": "45",
"name": "PC6/OSC32_OUT/[SPI1_SCK]/[USART1_RX]",
"type": "bidirectional",
"description": "Port C6 GPIO. Alternates: LSE 32 kHz crystal oscillator output, remappable SPI1 clock, remappable USART1 receive."
},
{
"number": "46",
"name": "PC7/ADC1_IN3/COMP2_INM/COMP1_INP",
"type": "bidirectional",
"description": "Port C7 GPIO. Alternates: ADC1 channel 3 analog input, comparator 2 negative input, comparator 1 positive input. 3.6 V tolerant (TT) I/O."
},
{
"number": "47",
"name": "PE6/PVD_IN",
"type": "bidirectional",
"description": "Port E6 GPIO. Alternate: programmable voltage detector (PVD) external input. 3.6 V tolerant (TT) I/O."
},
{
"number": "48",
"name": "PE7",
"type": "bidirectional",
"description": "Port E7 GPIO. 3.6 V tolerant (TT) I/O."
}
],
"provenance": {
"rebuilt": "component block rebuilt 2026-10-05 from this page's own README pinout table and .kicad_sym (pins cross-checked), no re-extraction",
"cad": "KiCad official (CC-BY-SA 4.0)",
"cad_basis": {
"from": [
"README CAD section (factory cad_wording)",
".kicad_mod model path agrees"
],
"missing": []
}
},
"viewers": {
"symbol": "viewers/symbol.html",
"footprint": "viewers/footprint.html"
},
"distributor_links": {
"lcsc": "C51330",
"digikey": "497-10516-ND",
"mouser": "511-STM8L151C6T6"
},
"distributor_check": {
"checked_at": "2026-10-05T19:18:55Z",
"source": "Component Ocean /api/assign-pns + lcsc_map",
"digikey": {
"pn": "497-10516-ND",
"status": "found"
},
"mouser": {
"pn": "511-STM8L151C6T6",
"status": "found"
}
},
"models_3d": [
{
"file": "stm8l151c6t6.step",
"role": "plain",
"up": "Z",
"units": "mm",
"origin": "footprint origin = pad-pattern centre",
"seat": "z = 0",
"extents_mm": [
9,
9,
1.5
],
"zmin_mm": 0,
"centre_offset_mm": 0,
"footprint_binding": "identity",
"sha256": "9dea352d93177c2904afd7d7b68ea8855ce1ab691f69f8b3e13655600514b6bf",
"checked": "2026-10-07",
"checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
},
{
"file": "stm8l151c6t6-etched.step",
"role": "eda",
"up": "Z",
"units": "mm",
"origin": "footprint origin = pad-pattern centre",
"seat": "z = 0",
"extents_mm": [
9,
9,
1.5
],
"zmin_mm": 0,
"centre_offset_mm": 0,
"footprint_binding": "identity",
"sha256": "e415fd06edf413c77c2f287e17a9ec9defbf2ee1ab5675fa263971768fe67e5a",
"checked": "2026-10-07",
"checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
}
]
},
"org": "adom"
}