main
Ray
stm8l152r8t6: component.models_3d pose record per STEP (Z-up, seated z=0, pad-centre origin, identity binding)
2a312f9
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545
{
"schema_version": 1,
"type": "component",
"slug": "stm8l152r8t6",
"title": "STM8L152R8T6",
"brief": "STMicroelectronics Microcontrollers (MCU/MPU/SOC), LQFP-64(10x10). Pinout extracted from the datasheet, KiCad symbol/footprint/3D.",
"version": "0.1.0",
"license": "CC-BY-SA-4.0",
"tags": [
"component",
"mcu",
"stm8l152r8t6"
],
"component": {
"mpn": "STM8L152R8T6",
"manufacturer": "STMicroelectronics",
"package": "LQFP-64(10x10)",
"pin_count": 64,
"category": "MCU",
"subcategory": "Microcontrollers (MCU/MPU/SOC)",
"datasheet": "https://www.st.com/resource/en/datasheet/stm8l152r8t6.pdf",
"parts": {
"symbol": "stm8l152r8t6.kicad_sym",
"footprint": "stm8l152r8t6.kicad_mod",
"model_3d": "stm8l152r8t6-etched.glb",
"model_3d_plain": "stm8l152r8t6.glb",
"model_3d_step": "stm8l152r8t6-etched.step",
"model_3d_step_plain": "stm8l152r8t6.step",
"lbr": "stm8l152r8t6.lbr"
},
"distributor_links": {},
"pins": [
{
"number": "1",
"name": "PA0/USART1_CK/SWIM/BEEP/IR_TIM",
"type": "bidirectional",
"description": "Port A0. Default main function after reset is SWIM (Single Wire Interface Module) input/output plus Beep output and Infra-red Timer output; alternate functions include USART1 synchronous clock. High-sink capable I/O."
},
{
"number": "2",
"name": "NRST/PA1",
"type": "bidirectional",
"description": "Device reset input, active low, with internal pull-up. May be reconfigured as general purpose output PA1 (push-pull only) via option byte."
},
{
"number": "3",
"name": "PA2/OSC_IN/[USART1_TX]/[SPI1_MISO]",
"type": "bidirectional",
"description": "Port A2, high-sink FT I/O. Alternate: HSE crystal oscillator input; optional remap to USART1_TX or SPI1_MISO."
},
{
"number": "4",
"name": "PA3/OSC_OUT/[USART1_RX]/[SPI1_MOSI]",
"type": "bidirectional",
"description": "Port A3, high-sink FT I/O. Alternate: HSE crystal oscillator output; optional remap to USART1_RX or SPI1_MOSI."
},
{
"number": "5",
"name": "PA4/TIM2_BKIN/[TIM2_ETR]/LCD_COM0/ADC1_IN2/[COMP1_INP]",
"type": "bidirectional",
"description": "Port A4, high-sink FT I/O. Default alternates: Timer 2 break input, LCD COM0, ADC1 input 2; optional TIM2 external trigger and comparator 1 positive input."
},
{
"number": "6",
"name": "PA5/TIM3_BKIN/[TIM3_ETR]/LCD_COM1/ADC1_IN1/[COMP1_INP]",
"type": "bidirectional",
"description": "Port A5, high-sink FT I/O. Default alternates: Timer 3 break input, LCD COM1, ADC1 input 1; optional TIM3 external trigger and comparator 1 positive input."
},
{
"number": "7",
"name": "PA6/ADC1_TRIG/LCD_COM2/ADC1_IN0/[COMP1_INP]",
"type": "bidirectional",
"description": "Port A6, high-sink FT I/O. ADC1 external trigger, LCD COM2, ADC1 input 0; optional comparator 1 positive input."
},
{
"number": "8",
"name": "PA7/LCD_SEG0/TIM5_CH1",
"type": "bidirectional",
"description": "Port A7, high-sink FT I/O. LCD segment 0, Timer 5 channel 1."
},
{
"number": "9",
"name": "VSSA/VREF-",
"type": "power_in",
"description": "Analog ground reference and ADC1 negative voltage reference. Tie to system ground."
},
{
"number": "10",
"name": "VSS1",
"type": "power_in",
"description": "Digital I/O ground return."
},
{
"number": "11",
"name": "VDD1",
"type": "power_in",
"description": "Digital power supply, 1.65 V to 3.6 V (1.8 V to 3.6 V with BOR enabled)."
},
{
"number": "12",
"name": "VDDA",
"type": "power_in",
"description": "Analog supply voltage for ADC/DAC/comparators. Nominally tied to VDD via filter."
},
{
"number": "13",
"name": "VREF+/VREF+_DAC",
"type": "power_in",
"description": "ADC1 and DAC1/2 positive voltage reference input. Must be between 2.4 V and VDDA."
},
{
"number": "14",
"name": "PG0/LCD_SEG28/USART3_RX/[TIM2_BKIN]",
"type": "bidirectional",
"description": "Port G0, high-sink FT I/O. LCD segment 28, USART3 receive; optional TIM2 break input."
},
{
"number": "15",
"name": "PG1/LCD_SEG29/USART3_TX/[TIM3_BKIN]",
"type": "bidirectional",
"description": "Port G1, high-sink FT I/O. LCD segment 29, USART3 transmit; optional TIM3 break input."
},
{
"number": "16",
"name": "PG2/LCD_SEG30/USART3_CK",
"type": "bidirectional",
"description": "Port G2, high-sink FT I/O. LCD segment 30, USART3 synchronous clock."
},
{
"number": "17",
"name": "PG3/LCD_SEG31/[TIM3_ETR]",
"type": "bidirectional",
"description": "Port G3, high-sink FT I/O. LCD segment 31; optional TIM3 external trigger."
},
{
"number": "18",
"name": "Res.",
"type": "power_in",
"description": "Reserved pin. Must be tied to VDD."
},
{
"number": "19",
"name": "PE0/LCD_SEG1/TIM5_CH2",
"type": "bidirectional",
"description": "Port E0, high-sink FT I/O. LCD segment 1, Timer 5 channel 2."
},
{
"number": "20",
"name": "PE1/TIM1_CH2N/LCD_SEG2",
"type": "bidirectional",
"description": "Port E1, high-sink FT I/O. Timer 1 inverted channel 2, LCD segment 2."
},
{
"number": "21",
"name": "PE2/TIM1_CH3N/LCD_SEG3/[CCO]",
"type": "bidirectional",
"description": "Port E2, high-sink FT I/O. Timer 1 inverted channel 3, LCD segment 3; optional configurable clock output."
},
{
"number": "22",
"name": "PE3/LCD_SEG4/USART2_RX",
"type": "bidirectional",
"description": "Port E3, high-sink FT I/O. LCD segment 4, USART2 receive."
},
{
"number": "23",
"name": "PE4/LCD_SEG5/DAC_TRIG2/USART2_TX",
"type": "bidirectional",
"description": "Port E4, high-sink FT I/O. LCD segment 5, DAC2 trigger, USART2 transmit."
},
{
"number": "24",
"name": "PE5/LCD_SEG6/ADC1_IN23/[COMP1_INP]/[COMP2_INP]/USART2_CK",
"type": "bidirectional",
"description": "Port E5, high-sink FT I/O. LCD segment 6, ADC1 input 23, USART2 synchronous clock; optional comparator 1/2 positive input."
},
{
"number": "25",
"name": "PD0/TIM3_CH2/[ADC1_TRIG]/LCD_SEG7/ADC1_IN22/[COMP2_INP]",
"type": "bidirectional",
"description": "Port D0, high-sink FT I/O. Timer 3 channel 2, LCD segment 7, ADC1 input 22; optional ADC1 trigger and comparator 2 positive input."
},
{
"number": "26",
"name": "PD1/TIM3_ETR/LCD_COM3/ADC1_IN21/[COMP1_INP]/[COMP2_INP]",
"type": "bidirectional",
"description": "Port D1, high-sink FT I/O. Timer 3 external trigger, LCD COM3, ADC1 input 21; optional comparator 1/2 positive input."
},
{
"number": "27",
"name": "PD2/TIM1_CH1/LCD_SEG8/ADC1_IN20/[COMP1_INP]",
"type": "bidirectional",
"description": "Port D2, high-sink FT I/O. Timer 1 channel 1, LCD segment 8, ADC1 input 20; optional comparator 1 positive input."
},
{
"number": "28",
"name": "PD3/TIM1_ETR/LCD_SEG9/ADC1_IN19/[COMP1_INP]",
"type": "bidirectional",
"description": "Port D3, high-sink FT I/O. Timer 1 external trigger, LCD segment 9, ADC1 input 19; optional comparator 1 positive input."
},
{
"number": "29",
"name": "VDD3",
"type": "power_in",
"description": "I/O supply voltage, 1.65 V to 3.6 V."
},
{
"number": "30",
"name": "VSS3",
"type": "power_in",
"description": "I/O ground return."
},
{
"number": "31",
"name": "PB0/TIM2_CH1/LCD_SEG10/ADC1_IN18/[COMP1_INP]",
"type": "bidirectional",
"description": "Port B0, high-sink FT I/O. Timer 2 channel 1, LCD segment 10, ADC1 input 18; optional comparator 1 positive input."
},
{
"number": "32",
"name": "PB1/TIM3_CH1/LCD_SEG11/ADC1_IN17/[COMP1_INP]",
"type": "bidirectional",
"description": "Port B1, high-sink FT I/O. Timer 3 channel 1, LCD segment 11, ADC1 input 17; optional comparator 1 positive input."
},
{
"number": "33",
"name": "PB2/TIM2_CH2/LCD_SEG12/ADC1_IN16/[COMP1_INP]",
"type": "bidirectional",
"description": "Port B2, high-sink FT I/O. Timer 2 channel 2, LCD segment 12, ADC1 input 16; optional comparator 1 positive input."
},
{
"number": "34",
"name": "PB3/TIM2_ETR/LCD_SEG13/ADC1_IN15/[COMP1_INP]",
"type": "bidirectional",
"description": "Port B3, high-sink FT I/O. Timer 2 external trigger, LCD segment 13, ADC1 input 15; optional comparator 1 positive input."
},
{
"number": "35",
"name": "PB4/SPI1_NSS/LCD_SEG14/ADC1_IN14/[COMP1_INP]",
"type": "bidirectional",
"description": "Port B4, high-sink FT I/O. SPI1 master/slave select, LCD segment 14, ADC1 input 14; optional comparator 1 positive input."
},
{
"number": "36",
"name": "PB5/SPI1_SCK/LCD_SEG15/ADC1_IN13/[COMP1_INP]",
"type": "bidirectional",
"description": "Port B5, high-sink FT I/O. SPI1 clock, LCD segment 15, ADC1 input 13; optional comparator 1 positive input."
},
{
"number": "37",
"name": "PB6/SPI1_MOSI/LCD_SEG16/ADC1_IN12/[COMP1_INP]",
"type": "bidirectional",
"description": "Port B6, high-sink FT I/O. SPI1 master out / slave in, LCD segment 16, ADC1 input 12; optional comparator 1 positive input."
},
{
"number": "38",
"name": "PB7/SPI1_MISO/LCD_SEG17/ADC1_IN11/[COMP1_INP]",
"type": "bidirectional",
"description": "Port B7, high-sink FT I/O. SPI1 master in / slave out, LCD segment 17, ADC1 input 11; optional comparator 1 positive input."
},
{
"number": "39",
"name": "PF0/ADC1_IN24/DAC_OUT1/[USART3_TX]",
"type": "bidirectional",
"description": "Port F0, high-sink FT I/O. ADC1 input 24, DAC channel 1 output; optional USART3 transmit remap."
},
{
"number": "40",
"name": "PF1/ADC1_IN25/DAC_OUT2/[USART3_RX]",
"type": "bidirectional",
"description": "Port F1, high-sink FT I/O. ADC1 input 25, DAC channel 2 output; optional USART3 receive remap."
},
{
"number": "41",
"name": "PF4/LCD_SEG36/[LCD_COM4]",
"type": "bidirectional",
"description": "Port F4, high-sink FT I/O. LCD segment 36; optional LCD COM4."
},
{
"number": "42",
"name": "PF5/LCD_SEG37/[LCD_COM5]",
"type": "bidirectional",
"description": "Port F5, high-sink FT I/O. LCD segment 37; optional LCD COM5."
},
{
"number": "43",
"name": "PF6/LCD_SEG38/[LCD_COM6]",
"type": "bidirectional",
"description": "Port F6, high-sink FT I/O. LCD segment 38; optional LCD COM6."
},
{
"number": "44",
"name": "PF7/LCD_SEG39/[LCD_COM7]",
"type": "bidirectional",
"description": "Port F7, high-sink FT I/O. LCD segment 39; optional LCD COM7."
},
{
"number": "45",
"name": "PD4/TIM1_CH2/LCD_SEG18/ADC1_IN10/[COMP1_INP]",
"type": "bidirectional",
"description": "Port D4, high-sink FT I/O. Timer 1 channel 2, LCD segment 18, ADC1 input 10; optional comparator 1 positive input."
},
{
"number": "46",
"name": "PD5/TIM1_CH3/LCD_SEG19/ADC1_IN9/[COMP1_INP]",
"type": "bidirectional",
"description": "Port D5, high-sink FT I/O. Timer 1 channel 3, LCD segment 19, ADC1 input 9; optional comparator 1 positive input."
},
{
"number": "47",
"name": "PD6/TIM1_BKIN/LCD_SEG20/ADC1_IN8/RTC_CALIB/[COMP1_INP]/VREFINT",
"type": "bidirectional",
"description": "Port D6, high-sink FT I/O. Timer 1 break input, LCD segment 20, ADC1 input 8, RTC calibration output, internal reference voltage output; optional comparator 1 positive input."
},
{
"number": "48",
"name": "PD7/TIM1_CH1N/LCD_SEG21/ADC1_IN7/RTC_ALARM/[COMP1_INP]/VREFINT",
"type": "bidirectional",
"description": "Port D7, high-sink FT I/O. Timer 1 inverted channel 1, LCD segment 21, ADC1 input 7, RTC alarm output, internal reference voltage output; optional comparator 1 positive input."
},
{
"number": "49",
"name": "PG4/LCD_SEG32/SPI2_NSS",
"type": "bidirectional",
"description": "Port G4, high-sink FT I/O. LCD segment 32, SPI2 master/slave select."
},
{
"number": "50",
"name": "PG5/LCD_SEG33/SPI2_SCK",
"type": "bidirectional",
"description": "Port G5, high-sink FT I/O. LCD segment 33, SPI2 clock."
},
{
"number": "51",
"name": "PG6/LCD_SEG34/SPI2_MOSI",
"type": "bidirectional",
"description": "Port G6, high-sink FT I/O. LCD segment 34, SPI2 master out / slave in."
},
{
"number": "52",
"name": "PG7/LCD_SEG35/SPI2_MISO",
"type": "bidirectional",
"description": "Port G7, high-sink FT I/O. LCD segment 35, SPI2 master in / slave out."
},
{
"number": "53",
"name": "PC0/I2C1_SDA",
"type": "bidirectional",
"description": "Port C0, true open-drain FT I/O. I2C1 data line."
},
{
"number": "54",
"name": "PC1/I2C1_SCL",
"type": "bidirectional",
"description": "Port C1, true open-drain FT I/O. I2C1 clock line."
},
{
"number": "55",
"name": "VDD2",
"type": "power_in",
"description": "I/O supply voltage, 1.65 V to 3.6 V."
},
{
"number": "56",
"name": "VSS2",
"type": "power_in",
"description": "I/O ground return."
},
{
"number": "57",
"name": "PC2/USART1_RX/LCD_SEG22/ADC1_IN6/[COMP1_INP]/VREFINT",
"type": "bidirectional",
"description": "Port C2, high-sink FT I/O. USART1 receive, LCD segment 22, ADC1 input 6, internal reference voltage output; optional comparator 1 positive input."
},
{
"number": "58",
"name": "PC3/USART1_TX/LCD_SEG23/ADC1_IN5/[COMP2_INM]/[COMP1_INP]",
"type": "bidirectional",
"description": "Port C3, high-sink FT I/O. USART1 transmit, LCD segment 23, ADC1 input 5; optional comparator 2 negative input or comparator 1 positive input."
},
{
"number": "59",
"name": "PC4/USART1_CK/I2C1_SMB/[CCO]/LCD_SEG24/ADC1_IN4/[COMP2_INM]/[COMP1_INP]",
"type": "bidirectional",
"description": "Port C4, high-sink FT I/O. USART1 synchronous clock, I2C1 SMBus alert, LCD segment 24, ADC1 input 4; optional CCO, comparator 2 negative or comparator 1 positive input."
},
{
"number": "60",
"name": "PC5/OSC32_IN/[SPI1_NSS]/[USART1_TX]",
"type": "bidirectional",
"description": "Port C5, high-sink FT I/O. LSE oscillator input; optional SPI1 master/slave select or USART1 transmit remap."
},
{
"number": "61",
"name": "PC6/OSC32_OUT/[SPI1_SCK]/[USART1_RX]",
"type": "bidirectional",
"description": "Port C6, high-sink FT I/O. LSE oscillator output; optional SPI1 clock or USART1 receive remap."
},
{
"number": "62",
"name": "PC7/LCD_SEG25/ADC1_IN3/[COMP2_INM]/[COMP1_INP]",
"type": "bidirectional",
"description": "Port C7, high-sink FT I/O. LCD segment 25, ADC1 input 3; optional comparator 2 negative or comparator 1 positive input."
},
{
"number": "63",
"name": "PE6/LCD_SEG26/PVD_IN/TIM5_BKIN",
"type": "bidirectional",
"description": "Port E6, high-sink FT I/O. LCD segment 26, Programmable Voltage Detector input, Timer 5 break input."
},
{
"number": "64",
"name": "PE7/LED_SEG27/TIM5_ETR",
"type": "bidirectional",
"description": "Port E7, high-sink FT I/O. LCD segment 27, Timer 5 external trigger."
}
],
"provenance": {
"extractor": "ds2sf",
"datasheet": {
"url": "https://www.st.com/resource/en/datasheet/stm8l152r8t6.pdf",
"pages": 134,
"sha256": "6ec62e0638c0bbbb",
"source_tier": "mfr"
},
"cad": "KiCad official (CC-BY-SA 4.0)",
"pins": {
"total": 64,
"described": 64,
"cites_pages": true,
"refuses_to_fabricate": true
}
},
"viewers": {
"symbol": "viewers/symbol.html",
"footprint": "viewers/footprint.html"
},
"models_3d": [
{
"file": "stm8l152r8t6.step",
"role": "plain",
"up": "Z",
"units": "mm",
"origin": "footprint origin = pad-pattern centre",
"seat": "z = 0",
"extents_mm": [
12,
12,
1.5
],
"zmin_mm": 0,
"centre_offset_mm": 0,
"footprint_binding": "identity",
"sha256": "b0c827bc5c05552175d28affe44a5bd2ab45c9c36efff6ff07a74cc449b13db4",
"checked": "2026-10-07",
"checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
},
{
"file": "stm8l152r8t6-etched.step",
"role": "eda",
"up": "Z",
"units": "mm",
"origin": "footprint origin = pad-pattern centre",
"seat": "z = 0",
"extents_mm": [
12,
12,
1.5
],
"zmin_mm": 0,
"centre_offset_mm": 0,
"footprint_binding": "identity",
"sha256": "ce98ad4be7f1ae289879ec275335840bdfd9ecbf35bcb2251abfed573ba92ca3",
"checked": "2026-10-07",
"checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
}
]
},
"metadata": {
"specs": {
"Manufacturer": "STMicroelectronics",
"Package": "LQFP-64(10x10)",
"Category": "MCU",
"Pins": "64"
}
},
"sections": [
"hero",
"viewers",
"readme",
"breadcrumbs",
"info"
],
"discovery_triggers": [
"stm8l152r8t6"
],
"discovery_pitch": "STM8L152R8T6 (STMicroelectronics) component page with datasheet-verified CAD.",
"author": {
"name": "Ray"
},
"dependencies": {},
"hero": {
"type": "image",
"path": "docs/hero.png"
},
"files": [
"page.json",
"README.md",
"stm8l152r8t6.kicad_sym",
"stm8l152r8t6.kicad_mod",
"stm8l152r8t6.glb",
"stm8l152r8t6.step",
"stm8l152r8t6.lbr",
"docs/hero.png",
"docs/stm8l152r8t6-datasheet.pdf",
"viewers/symbol.html",
"viewers/footprint.html"
],
"visibility": {
"public": true
},
"variants": [
{
"mpn": "STM8L152R8T6R6T6",
"kind": "packaging"
},
{
"mpn": "STM8L152R8T6",
"kind": "packaging"
},
{
"mpn": "STM8L152R8T6M8T6",
"kind": "packaging"
},
{
"mpn": "STM8L152R8T6C8T6",
"kind": "packaging"
},
{
"mpn": "STM8L152R8T6C8U6",
"kind": "packaging"
}
],
"updated_at": "2026-09-25T09:00:22.603Z"
}