component
STM8L151F2P6
Public Made by Adomby adom
STMicroelectronics Microcontrollers (MCU/MPU/SOC), TSSOP-20. Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.
main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
{
"slug": "stm8l151f2p6",
"version": "0.1.0",
"type": "component",
"description": "STMicroelectronics Microcontrollers (MCU/MPU/SOC), TSSOP-20. Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",
"tags": [
"component",
"embedded processors & controllers",
"stm8l151f2p6",
"factory-2.0.0",
"extractor-text"
],
"dependencies": {},
"hero": {
"type": "image",
"path": "docs/hero.png"
},
"files": [
"page.json",
"README.md",
"stm8l151f2p6.kicad_sym",
"stm8l151f2p6.kicad_mod",
"stm8l151f2p6.glb",
"stm8l151f2p6.step",
"stm8l151f2p6.lbr",
"docs/hero.png",
"docs/stm8l151f2p6-datasheet.pdf",
"viewers/symbol.html",
"viewers/footprint.html",
"stm8l151f2p6-hero.glb",
"stm8l151f2p6-hero.overlay.json",
"stm8l151f2p6-etched.glb"
],
"component": {
"mpn": "STM8L151F2P6",
"manufacturer": "STMicroelectronics",
"package": "TSSOP-20",
"pin_count": 20,
"category": "Embedded Processors & Controllers",
"subcategory": "Microcontrollers (MCU/MPU/SOC)",
"datasheet": "https://www.st.com/resource/en/datasheet/stm8l151f2p6.pdf",
"parts": {
"symbol": "stm8l151f2p6.kicad_sym",
"footprint": "stm8l151f2p6.kicad_mod",
"model_3d": "stm8l151f2p6-hero.glb",
"model_3d_plain": "stm8l151f2p6-etched.glb",
"model_3d_step": "stm8l151f2p6-etched.step",
"model_3d_step_plain": "stm8l151f2p6.step",
"lbr": "stm8l151f2p6.lbr"
},
"distributor_links": {
"lcsc": "C1339053",
"digikey": "497-19223-ND",
"mouser": "511-STM8L151F2P6"
},
"distributor_check": {
"checked_at": "2026-11-05T23:40:48Z",
"source": "Component Ocean /api/assign-pns",
"digikey": {
"pn": "497-19223-ND",
"status": "found"
},
"mouser": {
"pn": "511-STM8L151F2P6",
"status": "found"
}
},
"pins": [
{
"number": "1",
"name": "PC5/OSC32_IN",
"type": "bidirectional",
"description": "Port C5 is a high-sink I/O that also serves as the LSE oscillator input, with alternates SPI1_NSS, USART_TX and TIM2_CH1 (20-pin packages only)."
},
{
"number": "2",
"name": "PC6/OSC32_OUT",
"type": "bidirectional",
"description": "Port C6 is a high-sink I/O that also serves as the LSE oscillator output, with alternates SPI_SCK, USART_RX and TIM2_CH2 (20-pin packages only)."
},
{
"number": "3",
"name": "PA0",
"type": "bidirectional",
"description": "Port A0 is the high-sink LED driver capable pin, input pull-up during reset and after reset release, with alternates USART_CK, SWIM input/output, BEEP output and infrared timer output."
},
{
"number": "4",
"name": "NRST/PA1",
"type": "bidirectional",
"description": "This pin is the reset input with pull-up at power-up (NRST), with an RPU of 30 to 60 kΩ and an input low level VIL(NRST) max of 0.8 V; as PA1 it can only be configured as output open-drain or push-pull."
},
{
"number": "5",
"name": "PA2",
"type": "bidirectional",
"description": "Port A2 is a high-sink I/O that also serves as the HSE oscillator input, with alternates USART_TX and SPI_MISO."
},
{
"number": "6",
"name": "PA3",
"type": "bidirectional",
"description": "Port A3 is a high-sink I/O that also serves as the HSE oscillator output, with alternates USART_RX and SPI_MOSI."
},
{
"number": "7",
"name": "VSS",
"type": "power_in",
"description": "Ground voltage, also used as ADC1 negative voltage reference and analog ground (VSS / VREF- / VSSA)."
},
{
"number": "8",
"name": "VDD",
"type": "power_in",
"description": "Digital supply voltage, also used as ADC1 positive voltage reference (VDD / VDDA / VREF+), with a 1.65 to 3.6 V operating supply range."
},
{
"number": "9",
"name": "PD0",
"type": "bidirectional",
"description": "Port D0 is a high-sink I/O that also provides Timer 3 channel 2, ADC1_TRIG, ADC1 input 22 and comparator positive inputs."
},
{
"number": "10",
"name": "PB0",
"type": "bidirectional",
"description": "Port B0 is a high-sink I/O with a pull-up applied during reset, which is then input floating after reset release, and provides Timer 2 channel 1 and ADC1 input 18."
},
{
"number": "11",
"name": "PB1",
"type": "bidirectional",
"description": "Port B1 is a high-sink I/O that also provides Timer 3 channel 1, ADC1 input 17 and comparator 1 positive input."
},
{
"number": "12",
"name": "PB2",
"type": "bidirectional",
"description": "Port B2 is a high-sink I/O that also provides Timer 2 channel 2, ADC1 input 16 and comparator 1 positive input."
},
{
"number": "13",
"name": "PB3",
"type": "bidirectional",
"description": "Port B3 is a high-sink I/O that also provides Timer 2 external trigger, ADC1 input 15, RTC alarm and comparator 1 positive input."
},
{
"number": "14",
"name": "PB4",
"type": "bidirectional",
"description": "Port B4 is a high-sink I/O with a pull-up applied during reset, which is then input floating after reset release, and provides SPI1 master/slave select, ADC1 input 14 and comparator 1 positive input."
},
{
"number": "15",
"name": "PB5",
"type": "bidirectional",
"description": "Port B5 is a high-sink I/O that also provides SPI clock, ADC1 input 13 and comparator 1 positive input."
},
{
"number": "16",
"name": "PB6",
"type": "bidirectional",
"description": "Port B6 is a high-sink I/O that also provides SPI1 master out/slave in, ADC1 input 12 and comparator 1 positive input."
},
{
"number": "17",
"name": "PB7",
"type": "bidirectional",
"description": "Port B7 is a high-sink I/O that also provides SPI1 master in/slave out, ADC1 input 11 and comparator 1 positive input."
},
{
"number": "18",
"name": "PC0",
"type": "bidirectional",
"description": "Port C0 is a 5 V tolerant (FT) I/O with true open-drain capability that also serves as the I2C data line (I2C_SDA)."
},
{
"number": "19",
"name": "PC1",
"type": "bidirectional",
"description": "Port C1 is a 5 V tolerant (FT) I/O with true open-drain capability that also serves as the I2C clock line (I2C_SCL)."
},
{
"number": "20",
"name": "PC4",
"type": "bidirectional",
"description": "Port C4 is a high-sink I/O that also provides USART synchronous clock, I2C1_SMB, configurable clock output (CCO), ADC1 input 4 and comparator inputs."
}
],
"provenance": {
"extractor": "extract_pins 0.3",
"factory_chain": {
"factory": "2.0.0",
"extractor": "extract_pins 0.3",
"primary_model": "claude-haiku-5-5",
"primary_mode": "text",
"consensus_model": "claude-sonnet-5-5",
"consensus": "agreed",
"guards": "pin_guards 0.1: passed",
"guard_notes": [
"extractor flagged: Pin-to-number assignments were read from the TSSOP20 column of Table 4 in a text extraction where th"
],
"pages_sent": 45,
"cost_usd": 0.0558,
"at": "2026-11-05T23:40:39"
},
"datasheet": {
"url": "https://www.st.com/resource/en/datasheet/stm8l151f2p6.pdf",
"pages": 123,
"sha256": "56a41f554888e763",
"source_tier": "mfr"
},
"cad": "KiCad official (CC-BY-SA 4.0)",
"pins": {
"total": 20,
"described": 20,
"cites_pages": true,
"refuses_to_fabricate": true
}
},
"viewers": {
"symbol": "viewers/symbol.html",
"footprint": "viewers/footprint.html"
},
"models_3d": [
{
"file": "stm8l151f2p6.step",
"role": "plain",
"up": "Z",
"units": "mm",
"origin": "footprint origin = pad-pattern centre",
"seat": "z = 0",
"extents_mm": [
6.4,
6.5,
1.2
],
"zmin_mm": -0.0,
"centre_offset_mm": 0.0,
"footprint_binding": "identity",
"sha256": "97339947f3a7196470ec2f1d9f9b92bb2fc2ab66ad53be0cf105192585ef3c9a",
"checked": "2026-11-05",
"checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
},
{
"file": "stm8l151f2p6-etched.step",
"role": "eda",
"up": "Z",
"units": "mm",
"origin": "footprint origin = pad-pattern centre",
"seat": "z = 0",
"extents_mm": [
6.4,
6.5,
1.2
],
"zmin_mm": -0.0,
"centre_offset_mm": 0.0,
"footprint_binding": "identity",
"sha256": "29207890042ca956b162f16cbd0b84fabe44d02661a6c48582305d721833e448",
"checked": "2026-11-05",
"checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
}
]
}
}