← Commit history
stm8l152r8t6: factory component page (tier=mfr)
4 files changed
+151−148
README.md+65−65@@ -8,70 +8,70 @@ STM8L152R8T6 from STMicroelectronics, in a LQFP-64(10x10). Pinout and pin descri | Pin | Name | Type | Function | |---|---|---|---|-| 1 | PA0/[USART1_CK]/SWIM/BEEP/IR_TIM | bidirectional | Port A bit 0. Default = SWIM debug I/O with weak pull-up at reset. Alternate: USART1 synchronous clock, beep output, or infrared timer output. 5 V tolerant, high-sink capable. |-| 2 | NRST/PA1 | bidirectional | Active-low device reset input with internal pull-up at power-up. Can be re-configured via option byte as GPIO PA1 (push-pull output only). High-sink capable. |-| 3 | PA2/OSC_IN/[USART1_TX]/[SPI1_MISO] | bidirectional | Port A bit 2. Alternate functions: HSE crystal oscillator input, USART1 TX, SPI1 MISO. 5 V tolerant, high-sink capable. |-| 4 | PA3/OSC_OUT/[USART1_RX]/[SPI1_MOSI] | bidirectional | Port A bit 3. Alternate functions: HSE crystal oscillator output, USART1 RX, SPI1 MOSI. 5 V tolerant, high-sink capable. |-| 5 | PA4/TIM2_BKIN/[TIM2_ETR]/LCD_COM0/ADC1_IN2/[COMP1_INP] | bidirectional | Port A bit 4. Mux: TIM2 break input / trigger, LCD common 0, ADC1 channel 2, comparator 1 positive input. 5 V tolerant. |-| 6 | PA5/TIM3_BKIN/[TIM3_ETR]/LCD_COM1/ADC1_IN1/[COMP1_INP] | bidirectional | Port A bit 5. Mux: TIM3 break input / trigger, LCD common 1, ADC1 channel 1, comparator 1 positive input. |-| 7 | PA6/ADC1_TRIG/LCD_COM2/ADC1_IN0/[COMP1_INP] | bidirectional | Port A bit 6. Mux: ADC1 external trigger, LCD common 2, ADC1 channel 0, comparator 1 positive input. |-| 8 | PA7/LCD_SEG0/TIM5_CH1 | bidirectional | Port A bit 7. Mux: LCD segment 0, TIM5 channel 1. |-| 9 | VSSA/VREF- | power_in | Analog ground and ADC1 negative reference. Tie to system ground with low-impedance connection. |-| 10 | VSS1 | power_in | Digital I/O ground. Tie to system ground. |-| 11 | VDD1 | power_in | Digital I/O supply, 1.65-3.6 V (1.8-3.6 V with BOR). Decouple with 100 nF close to pin. |-| 12 | VDDA | power_in | Analog supply, 1.65-3.6 V. Should be equal to VDD; decouple with 100 nF + 1 uF. |-| 13 | VREF+ | power_in | ADC1 and DAC1/2 positive voltage reference input. Can be tied to VDDA or driven by external reference. |-| 14 | PG0/LCD_SEG28/USART3_RX/[TIM2_BKIN] | bidirectional | Port G bit 0. Mux: LCD segment 28, USART3 RX, TIM2 break input. |-| 15 | PG1/LCD_SEG29/USART3_TX/[TIM3_BKIN] | bidirectional | Port G bit 1. Mux: LCD segment 29, USART3 TX, TIM3 break input. |-| 16 | PG2/LCD_SEG30/USART3_CK | bidirectional | Port G bit 2. Mux: LCD segment 30, USART3 synchronous clock. |-| 17 | PG3/LCD_SEG31/[TIM3_ETR] | bidirectional | Port G bit 3. Mux: LCD segment 31, TIM3 external trigger. |-| 18 | VLCD | power_in | LCD booster external capacitor pin (STM8L152 with LCD). Connect the LCD booster reservoir capacitor here. |-| 19 | PE0/LCD_SEG1/TIM5_CH2 | bidirectional | Port E bit 0. Mux: LCD segment 1, TIM5 channel 2. |-| 20 | PE1/TIM1_CH2N/LCD_SEG2 | bidirectional | Port E bit 1. Mux: TIM1 inverted channel 2, LCD segment 2. |-| 21 | PE2/TIM1_CH3N/LCD_SEG3/[CCO] | bidirectional | Port E bit 2. Mux: TIM1 inverted channel 3, LCD segment 3, configurable clock output. |-| 22 | PE3/LCD_SEG4/USART2_RX | bidirectional | Port E bit 3. Mux: LCD segment 4, USART2 RX. |-| 23 | PE4/LCD_SEG5/DAC_TRIG2/USART2_TX | bidirectional | Port E bit 4. Mux: LCD segment 5, DAC channel 2 trigger, USART2 TX. |-| 24 | PE5/LCD_SEG6/ADC1_IN23/[COMP1_INP]/[COMP2_INP]/USART2_CK | bidirectional | Port E bit 5. Mux: LCD segment 6, ADC1 channel 23, comparator 1/2 positive input, USART2 synchronous clock. |-| 25 | PD0/TIM3_CH2/[ADC1_TRIG]/LCD_SEG7/ADC1_IN22/[COMP2_INP] | bidirectional | Port D bit 0. Mux: TIM3 channel 2, ADC1 external trigger, LCD segment 7, ADC1 channel 22, comparator 2 positive input. |-| 26 | PD1/TIM3_ETR/LCD_COM3/ADC1_IN21/[COMP1_INP]/[COMP2_INP] | bidirectional | Port D bit 1. Mux: TIM3 trigger, LCD common 3, ADC1 channel 21, comparator 1/2 positive input. |-| 27 | PD2/TIM1_CH1/LCD_SEG8/ADC1_IN20/[COMP1_INP] | bidirectional | Port D bit 2. Mux: TIM1 channel 1, LCD segment 8, ADC1 channel 20, comparator 1 positive input. |-| 28 | PD3/TIM1_ETR/LCD_SEG9/ADC1_IN19/[COMP1_INP] | bidirectional | Port D bit 3. Mux: TIM1 trigger, LCD segment 9, ADC1 channel 19, comparator 1 positive input. |-| 29 | VDD3 | power_in | I/O supply voltage. Tie to VDD; decouple locally. |-| 30 | VSS3 | power_in | I/O ground. Tie to system ground. |-| 31 | PB0/TIM2_CH1/LCD_SEG10/ADC1_IN18/[COMP1_INP] | bidirectional | Port B bit 0. Mux: TIM2 channel 1, LCD segment 10, ADC1 channel 18, comparator 1 positive input. Pull-up applied during reset phase. |-| 32 | PB1/TIM3_CH1/LCD_SEG11/ADC1_IN17/[COMP1_INP] | bidirectional | Port B bit 1. Mux: TIM3 channel 1, LCD segment 11, ADC1 channel 17, comparator 1 positive input. |-| 33 | PB2/TIM2_CH2/LCD_SEG12/ADC1_IN16/[COMP1_INP] | bidirectional | Port B bit 2. Mux: TIM2 channel 2, LCD segment 12, ADC1 channel 16, comparator 1 positive input. |-| 34 | PB3/TIM2_ETR/LCD_SEG13/ADC1_IN15/[COMP1_INP] | bidirectional | Port B bit 3. Mux: TIM2 trigger, LCD segment 13, ADC1 channel 15, comparator 1 positive input. |-| 35 | PB4/SPI1_NSS/LCD_SEG14/ADC1_IN14/[COMP1_INP] | bidirectional | Port B bit 4. Mux: SPI1 master/slave select (NSS), LCD segment 14, ADC1 channel 14, comparator 1 positive input. Pull-up applied during reset phase. |-| 36 | PB5/SPI1_SCK/LCD_SEG15/ADC1_IN13/[COMP1_INP] | bidirectional | Port B bit 5. Mux: SPI1 clock, LCD segment 15, ADC1 channel 13, comparator 1 positive input. |-| 37 | PB6/SPI1_MOSI/LCD_SEG16/ADC1_IN12/[COMP1_INP] | bidirectional | Port B bit 6. Mux: SPI1 MOSI, LCD segment 16, ADC1 channel 12, comparator 1 positive input. |-| 38 | PB7/SPI1_MISO/LCD_SEG17/ADC1_IN11/[COMP1_INP] | bidirectional | Port B bit 7. Mux: SPI1 MISO, LCD segment 17, ADC1 channel 11, comparator 1 positive input. |-| 39 | PF0/ADC1_IN24/DAC_OUT1/[USART3_TX] | bidirectional | Port F bit 0. Mux: ADC1 channel 24, DAC channel 1 output, USART3 TX. |-| 40 | PF1/ADC1_IN25/DAC_OUT2/[USART3_RX] | bidirectional | Port F bit 1. Mux: ADC1 channel 25, DAC channel 2 output, USART3 RX. |-| 41 | PF4/LCD_SEG36/[LCD_COM4] | bidirectional | Port F bit 4. Mux: LCD segment 36 or LCD common 4. |-| 42 | PF5/LCD_SEG37/[LCD_COM5] | bidirectional | Port F bit 5. Mux: LCD segment 37 or LCD common 5. |-| 43 | PF6/LCD_SEG38/[LCD_COM6] | bidirectional | Port F bit 6. Mux: LCD segment 38 or LCD common 6. |-| 44 | PF7/LCD_SEG39/[LCD_COM7] | bidirectional | Port F bit 7. Mux: LCD segment 39 or LCD common 7. |-| 45 | PD4/TIM1_CH2/LCD_SEG18/ADC1_IN10/[COMP1_INP] | bidirectional | Port D bit 4. Mux: TIM1 channel 2, LCD segment 18, ADC1 channel 10, comparator 1 positive input. |-| 46 | PD5/TIM1_CH3/LCD_SEG19/ADC1_IN9/[COMP1_INP] | bidirectional | Port D bit 5. Mux: TIM1 channel 3, LCD segment 19, ADC1 channel 9, comparator 1 positive input. |-| 47 | PD6/TIM1_BKIN/LCD_SEG20/ADC1_IN8/RTC_CALIB/[COMP1_INP]/VREFINT | bidirectional | Port D bit 6. Mux: TIM1 break input, LCD segment 20, ADC1 channel 8, RTC calibration output, comparator 1 positive input, internal reference voltage output. |-| 48 | PD7/TIM1_CH1N/LCD_SEG21/ADC1_IN7/RTC_ALARM/[COMP1_INP]/VREFINT | bidirectional | Port D bit 7. Mux: TIM1 inverted channel 1, LCD segment 21, ADC1 channel 7, RTC alarm output, comparator 1 positive input, internal reference voltage output. |-| 49 | PG4/LCD_SEG32/SPI2_NSS | bidirectional | Port G bit 4. Mux: LCD segment 32, SPI2 master/slave select. |-| 50 | PG5/LCD_SEG33/SPI2_SCK | bidirectional | Port G bit 5. Mux: LCD segment 33, SPI2 clock. |-| 51 | PG6/LCD_SEG34/SPI2_MOSI | bidirectional | Port G bit 6. Mux: LCD segment 34, SPI2 MOSI. |-| 52 | PG7/LCD_SEG35/SPI2_MISO | bidirectional | Port G bit 7. Mux: LCD segment 35, SPI2 MISO. |-| 53 | PC0/I2C1_SDA | bidirectional | Port C bit 0. Mux: I2C1 data (true open-drain, no pull-up or protection diode to VDD). Requires external pull-up. Fast-mode 400 kHz. |-| 54 | PC1/I2C1_SCL | bidirectional | Port C bit 1. Mux: I2C1 clock (true open-drain, no pull-up or protection diode to VDD). Requires external pull-up. |-| 55 | VDD2 | power_in | I/O supply voltage. Tie to VDD; decouple locally. |-| 56 | VSS2 | power_in | I/O ground. Tie to system ground. |-| 57 | PC2/USART1_RX/LCD_SEG22/ADC1_IN6/[COMP1_INP]/VREFINT | bidirectional | Port C bit 2. Mux: USART1 RX, LCD segment 22, ADC1 channel 6, comparator 1 positive input, internal reference voltage output. |-| 58 | PC3/USART1_TX/LCD_SEG23/ADC1_IN5/[COMP2_INM]/[COMP1_INP] | bidirectional | Port C bit 3. Mux: USART1 TX, LCD segment 23, ADC1 channel 5, comparator 2 negative input, comparator 1 positive input. |-| 59 | PC4/USART1_CK/I2C1_SMB/[CCO]/LCD_SEG24/ADC1_IN4/[COMP2_INM]/[COMP1_INP] | bidirectional | Port C bit 4. Mux: USART1 synchronous clock, I2C1 SMBus alert, configurable clock output, LCD segment 24, ADC1 channel 4, comparator 2 negative input, comparator 1 positive input. |-| 60 | PC5/OSC32_IN/[SPI1_NSS]/[USART1_TX] | bidirectional | Port C bit 5. Mux: LSE 32 kHz oscillator input, SPI1 NSS, USART1 TX. |-| 61 | PC6/OSC32_OUT/[SPI1_SCK]/[USART1_RX] | bidirectional | Port C bit 6. Mux: LSE 32 kHz oscillator output, SPI1 clock, USART1 RX. |-| 62 | PC7/LCD_SEG25/ADC1_IN3/[COMP2_INM]/[COMP1_INP] | bidirectional | Port C bit 7. Mux: LCD segment 25, ADC1 channel 3, comparator 2 negative input, comparator 1 positive input. |-| 63 | PE6/LCD_SEG26/PVD_IN/TIM5_BKIN | bidirectional | Port E bit 6. Mux: LCD segment 26, programmable voltage detector input, TIM5 break input. |-| 64 | PE7/LED_SEG27/TIM5_ETR | bidirectional | Port E bit 7. Mux: LCD segment 27, TIM5 external trigger. |+| 1 | PA0/USART1_CK/SWIM/BEEP/IR_TIM | bidirectional | 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. |+| 2 | NRST/PA1 | bidirectional | Device reset input, active low, with internal pull-up. May be reconfigured as general purpose output PA1 (push-pull only) via option byte. |+| 3 | PA2/OSC_IN/[USART1_TX]/[SPI1_MISO] | bidirectional | Port A2, high-sink FT I/O. Alternate: HSE crystal oscillator input; optional remap to USART1_TX or SPI1_MISO. |+| 4 | PA3/OSC_OUT/[USART1_RX]/[SPI1_MOSI] | bidirectional | Port A3, high-sink FT I/O. Alternate: HSE crystal oscillator output; optional remap to USART1_RX or SPI1_MOSI. |+| 5 | PA4/TIM2_BKIN/[TIM2_ETR]/LCD_COM0/ADC1_IN2/[COMP1_INP] | bidirectional | 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. |+| 6 | PA5/TIM3_BKIN/[TIM3_ETR]/LCD_COM1/ADC1_IN1/[COMP1_INP] | bidirectional | 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. |+| 7 | PA6/ADC1_TRIG/LCD_COM2/ADC1_IN0/[COMP1_INP] | bidirectional | Port A6, high-sink FT I/O. ADC1 external trigger, LCD COM2, ADC1 input 0; optional comparator 1 positive input. |+| 8 | PA7/LCD_SEG0/TIM5_CH1 | bidirectional | Port A7, high-sink FT I/O. LCD segment 0, Timer 5 channel 1. |+| 9 | VSSA/VREF- | power_in | Analog ground reference and ADC1 negative voltage reference. Tie to system ground. |+| 10 | VSS1 | power_in | Digital I/O ground return. |+| 11 | VDD1 | power_in | Digital power supply, 1.65 V to 3.6 V (1.8 V to 3.6 V with BOR enabled). |+| 12 | VDDA | power_in | Analog supply voltage for ADC/DAC/comparators. Nominally tied to VDD via filter. |+| 13 | VREF+/VREF+_DAC | power_in | ADC1 and DAC1/2 positive voltage reference input. Must be between 2.4 V and VDDA. |+| 14 | PG0/LCD_SEG28/USART3_RX/[TIM2_BKIN] | bidirectional | Port G0, high-sink FT I/O. LCD segment 28, USART3 receive; optional TIM2 break input. |+| 15 | PG1/LCD_SEG29/USART3_TX/[TIM3_BKIN] | bidirectional | Port G1, high-sink FT I/O. LCD segment 29, USART3 transmit; optional TIM3 break input. |+| 16 | PG2/LCD_SEG30/USART3_CK | bidirectional | Port G2, high-sink FT I/O. LCD segment 30, USART3 synchronous clock. |+| 17 | PG3/LCD_SEG31/[TIM3_ETR] | bidirectional | Port G3, high-sink FT I/O. LCD segment 31; optional TIM3 external trigger. |+| 18 | Res. | power_in | Reserved pin. Must be tied to VDD. |+| 19 | PE0/LCD_SEG1/TIM5_CH2 | bidirectional | Port E0, high-sink FT I/O. LCD segment 1, Timer 5 channel 2. |+| 20 | PE1/TIM1_CH2N/LCD_SEG2 | bidirectional | Port E1, high-sink FT I/O. Timer 1 inverted channel 2, LCD segment 2. |+| 21 | PE2/TIM1_CH3N/LCD_SEG3/[CCO] | bidirectional | Port E2, high-sink FT I/O. Timer 1 inverted channel 3, LCD segment 3; optional configurable clock output. |+| 22 | PE3/LCD_SEG4/USART2_RX | bidirectional | Port E3, high-sink FT I/O. LCD segment 4, USART2 receive. |+| 23 | PE4/LCD_SEG5/DAC_TRIG2/USART2_TX | bidirectional | Port E4, high-sink FT I/O. LCD segment 5, DAC2 trigger, USART2 transmit. |+| 24 | PE5/LCD_SEG6/ADC1_IN23/[COMP1_INP]/[COMP2_INP]/USART2_CK | bidirectional | Port E5, high-sink FT I/O. LCD segment 6, ADC1 input 23, USART2 synchronous clock; optional comparator 1/2 positive input. |+| 25 | PD0/TIM3_CH2/[ADC1_TRIG]/LCD_SEG7/ADC1_IN22/[COMP2_INP] | bidirectional | 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. |+| 26 | PD1/TIM3_ETR/LCD_COM3/ADC1_IN21/[COMP1_INP]/[COMP2_INP] | bidirectional | Port D1, high-sink FT I/O. Timer 3 external trigger, LCD COM3, ADC1 input 21; optional comparator 1/2 positive input. |+| 27 | PD2/TIM1_CH1/LCD_SEG8/ADC1_IN20/[COMP1_INP] | bidirectional | Port D2, high-sink FT I/O. Timer 1 channel 1, LCD segment 8, ADC1 input 20; optional comparator 1 positive input. |+| 28 | PD3/TIM1_ETR/LCD_SEG9/ADC1_IN19/[COMP1_INP] | bidirectional | Port D3, high-sink FT I/O. Timer 1 external trigger, LCD segment 9, ADC1 input 19; optional comparator 1 positive input. |+| 29 | VDD3 | power_in | I/O supply voltage, 1.65 V to 3.6 V. |+| 30 | VSS3 | power_in | I/O ground return. |+| 31 | PB0/TIM2_CH1/LCD_SEG10/ADC1_IN18/[COMP1_INP] | bidirectional | Port B0, high-sink FT I/O. Timer 2 channel 1, LCD segment 10, ADC1 input 18; optional comparator 1 positive input. |+| 32 | PB1/TIM3_CH1/LCD_SEG11/ADC1_IN17/[COMP1_INP] | bidirectional | Port B1, high-sink FT I/O. Timer 3 channel 1, LCD segment 11, ADC1 input 17; optional comparator 1 positive input. |+| 33 | PB2/TIM2_CH2/LCD_SEG12/ADC1_IN16/[COMP1_INP] | bidirectional | Port B2, high-sink FT I/O. Timer 2 channel 2, LCD segment 12, ADC1 input 16; optional comparator 1 positive input. |+| 34 | PB3/TIM2_ETR/LCD_SEG13/ADC1_IN15/[COMP1_INP] | bidirectional | Port B3, high-sink FT I/O. Timer 2 external trigger, LCD segment 13, ADC1 input 15; optional comparator 1 positive input. |+| 35 | PB4/SPI1_NSS/LCD_SEG14/ADC1_IN14/[COMP1_INP] | bidirectional | Port B4, high-sink FT I/O. SPI1 master/slave select, LCD segment 14, ADC1 input 14; optional comparator 1 positive input. |+| 36 | PB5/SPI1_SCK/LCD_SEG15/ADC1_IN13/[COMP1_INP] | bidirectional | Port B5, high-sink FT I/O. SPI1 clock, LCD segment 15, ADC1 input 13; optional comparator 1 positive input. |+| 37 | PB6/SPI1_MOSI/LCD_SEG16/ADC1_IN12/[COMP1_INP] | bidirectional | Port B6, high-sink FT I/O. SPI1 master out / slave in, LCD segment 16, ADC1 input 12; optional comparator 1 positive input. |+| 38 | PB7/SPI1_MISO/LCD_SEG17/ADC1_IN11/[COMP1_INP] | bidirectional | Port B7, high-sink FT I/O. SPI1 master in / slave out, LCD segment 17, ADC1 input 11; optional comparator 1 positive input. |+| 39 | PF0/ADC1_IN24/DAC_OUT1/[USART3_TX] | bidirectional | Port F0, high-sink FT I/O. ADC1 input 24, DAC channel 1 output; optional USART3 transmit remap. |+| 40 | PF1/ADC1_IN25/DAC_OUT2/[USART3_RX] | bidirectional | Port F1, high-sink FT I/O. ADC1 input 25, DAC channel 2 output; optional USART3 receive remap. |+| 41 | PF4/LCD_SEG36/[LCD_COM4] | bidirectional | Port F4, high-sink FT I/O. LCD segment 36; optional LCD COM4. |+| 42 | PF5/LCD_SEG37/[LCD_COM5] | bidirectional | Port F5, high-sink FT I/O. LCD segment 37; optional LCD COM5. |+| 43 | PF6/LCD_SEG38/[LCD_COM6] | bidirectional | Port F6, high-sink FT I/O. LCD segment 38; optional LCD COM6. |+| 44 | PF7/LCD_SEG39/[LCD_COM7] | bidirectional | Port F7, high-sink FT I/O. LCD segment 39; optional LCD COM7. |+| 45 | PD4/TIM1_CH2/LCD_SEG18/ADC1_IN10/[COMP1_INP] | bidirectional | Port D4, high-sink FT I/O. Timer 1 channel 2, LCD segment 18, ADC1 input 10; optional comparator 1 positive input. |+| 46 | PD5/TIM1_CH3/LCD_SEG19/ADC1_IN9/[COMP1_INP] | bidirectional | Port D5, high-sink FT I/O. Timer 1 channel 3, LCD segment 19, ADC1 input 9; optional comparator 1 positive input. |+| 47 | PD6/TIM1_BKIN/LCD_SEG20/ADC1_IN8/RTC_CALIB/[COMP1_INP]/VREFINT | bidirectional | 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. |+| 48 | PD7/TIM1_CH1N/LCD_SEG21/ADC1_IN7/RTC_ALARM/[COMP1_INP]/VREFINT | bidirectional | 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. |+| 49 | PG4/LCD_SEG32/SPI2_NSS | bidirectional | Port G4, high-sink FT I/O. LCD segment 32, SPI2 master/slave select. |+| 50 | PG5/LCD_SEG33/SPI2_SCK | bidirectional | Port G5, high-sink FT I/O. LCD segment 33, SPI2 clock. |+| 51 | PG6/LCD_SEG34/SPI2_MOSI | bidirectional | Port G6, high-sink FT I/O. LCD segment 34, SPI2 master out / slave in. |+| 52 | PG7/LCD_SEG35/SPI2_MISO | bidirectional | Port G7, high-sink FT I/O. LCD segment 35, SPI2 master in / slave out. |+| 53 | PC0/I2C1_SDA | bidirectional | Port C0, true open-drain FT I/O. I2C1 data line. |+| 54 | PC1/I2C1_SCL | bidirectional | Port C1, true open-drain FT I/O. I2C1 clock line. |+| 55 | VDD2 | power_in | I/O supply voltage, 1.65 V to 3.6 V. |+| 56 | VSS2 | power_in | I/O ground return. |+| 57 | PC2/USART1_RX/LCD_SEG22/ADC1_IN6/[COMP1_INP]/VREFINT | bidirectional | Port C2, high-sink FT I/O. USART1 receive, LCD segment 22, ADC1 input 6, internal reference voltage output; optional comparator 1 positive input. |+| 58 | PC3/USART1_TX/LCD_SEG23/ADC1_IN5/[COMP2_INM]/[COMP1_INP] | bidirectional | 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. |+| 59 | PC4/USART1_CK/I2C1_SMB/[CCO]/LCD_SEG24/ADC1_IN4/[COMP2_INM]/[COMP1_INP] | bidirectional | 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. |+| 60 | PC5/OSC32_IN/[SPI1_NSS]/[USART1_TX] | bidirectional | Port C5, high-sink FT I/O. LSE oscillator input; optional SPI1 master/slave select or USART1 transmit remap. |+| 61 | PC6/OSC32_OUT/[SPI1_SCK]/[USART1_RX] | bidirectional | Port C6, high-sink FT I/O. LSE oscillator output; optional SPI1 clock or USART1 receive remap. |+| 62 | PC7/LCD_SEG25/ADC1_IN3/[COMP2_INM]/[COMP1_INP] | bidirectional | Port C7, high-sink FT I/O. LCD segment 25, ADC1 input 3; optional comparator 2 negative or comparator 1 positive input. |+| 63 | PE6/LCD_SEG26/PVD_IN/TIM5_BKIN | bidirectional | Port E6, high-sink FT I/O. LCD segment 26, Programmable Voltage Detector input, Timer 5 break input. |+| 64 | PE7/LED_SEG27/TIM5_ETR | bidirectional | Port E7, high-sink FT I/O. LCD segment 27, Timer 5 external trigger. | ## Key specifications @@ -84,8 +84,8 @@ STM8L152R8T6 from STMicroelectronics, in a LQFP-64(10x10). Pinout and pin descri ## Ordering variants -- `STM8L152R8T6R8T6` - `STM8L152R8T6R6T6`+- `STM8L152R8T6R8T6` - `STM8L152R8T6M8T6` - `STM8L152R8T6C8T6` - `STM8L152R8T6C8U6`
page.json+68−71@@ -30,387 +30,387 @@ "pins": [ { "number": "1",- "name": "PA0/[USART1_CK]/SWIM/BEEP/IR_TIM",+ "name": "PA0/USART1_CK/SWIM/BEEP/IR_TIM", "type": "bidirectional",- "description": "Port A bit 0. Default = SWIM debug I/O with weak pull-up at reset. Alternate: USART1 synchronous clock, beep output, or infrared timer output. 5 V tolerant, high-sink capable."+ "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": "Active-low device reset input with internal pull-up at power-up. Can be re-configured via option byte as GPIO PA1 (push-pull output only). High-sink capable."+ "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 A bit 2. Alternate functions: HSE crystal oscillator input, USART1 TX, SPI1 MISO. 5 V tolerant, high-sink capable."+ "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 A bit 3. Alternate functions: HSE crystal oscillator output, USART1 RX, SPI1 MOSI. 5 V tolerant, high-sink capable."+ "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 A bit 4. Mux: TIM2 break input / trigger, LCD common 0, ADC1 channel 2, comparator 1 positive input. 5 V tolerant."+ "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 A bit 5. Mux: TIM3 break input / trigger, LCD common 1, ADC1 channel 1, comparator 1 positive input."+ "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 A bit 6. Mux: ADC1 external trigger, LCD common 2, ADC1 channel 0, comparator 1 positive input."+ "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 A bit 7. Mux: LCD segment 0, TIM5 channel 1."+ "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 and ADC1 negative reference. Tie to system ground with low-impedance connection."+ "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. Tie to system ground."+ "description": "Digital I/O ground return." }, { "number": "11", "name": "VDD1", "type": "power_in",- "description": "Digital I/O supply, 1.65-3.6 V (1.8-3.6 V with BOR). Decouple with 100 nF close to pin."+ "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, 1.65-3.6 V. Should be equal to VDD; decouple with 100 nF + 1 uF."+ "description": "Analog supply voltage for ADC/DAC/comparators. Nominally tied to VDD via filter." }, { "number": "13",- "name": "VREF+",+ "name": "VREF+/VREF+_DAC", "type": "power_in",- "description": "ADC1 and DAC1/2 positive voltage reference input. Can be tied to VDDA or driven by external reference."+ "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 G bit 0. Mux: LCD segment 28, USART3 RX, TIM2 break input."+ "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 G bit 1. Mux: LCD segment 29, USART3 TX, TIM3 break input."+ "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 G bit 2. Mux: LCD segment 30, USART3 synchronous clock."+ "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 G bit 3. Mux: LCD segment 31, TIM3 external trigger."+ "description": "Port G3, high-sink FT I/O. LCD segment 31; optional TIM3 external trigger." }, { "number": "18",- "name": "VLCD",+ "name": "Res.", "type": "power_in",- "description": "LCD booster external capacitor pin (STM8L152 with LCD). Connect the LCD booster reservoir capacitor here."+ "description": "Reserved pin. Must be tied to VDD." }, { "number": "19", "name": "PE0/LCD_SEG1/TIM5_CH2", "type": "bidirectional",- "description": "Port E bit 0. Mux: LCD segment 1, TIM5 channel 2."+ "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 E bit 1. Mux: TIM1 inverted channel 2, LCD segment 2."+ "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 E bit 2. Mux: TIM1 inverted channel 3, LCD segment 3, configurable clock output."+ "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 E bit 3. Mux: LCD segment 4, USART2 RX."+ "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 E bit 4. Mux: LCD segment 5, DAC channel 2 trigger, USART2 TX."+ "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 E bit 5. Mux: LCD segment 6, ADC1 channel 23, comparator 1/2 positive input, USART2 synchronous clock."+ "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 D bit 0. Mux: TIM3 channel 2, ADC1 external trigger, LCD segment 7, ADC1 channel 22, comparator 2 positive input."+ "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 D bit 1. Mux: TIM3 trigger, LCD common 3, ADC1 channel 21, comparator 1/2 positive input."+ "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 D bit 2. Mux: TIM1 channel 1, LCD segment 8, ADC1 channel 20, comparator 1 positive input."+ "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 D bit 3. Mux: TIM1 trigger, LCD segment 9, ADC1 channel 19, comparator 1 positive input."+ "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. Tie to VDD; decouple locally."+ "description": "I/O supply voltage, 1.65 V to 3.6 V." }, { "number": "30", "name": "VSS3", "type": "power_in",- "description": "I/O ground. Tie to system ground."+ "description": "I/O ground return." }, { "number": "31", "name": "PB0/TIM2_CH1/LCD_SEG10/ADC1_IN18/[COMP1_INP]", "type": "bidirectional",- "description": "Port B bit 0. Mux: TIM2 channel 1, LCD segment 10, ADC1 channel 18, comparator 1 positive input. Pull-up applied during reset phase."+ "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 B bit 1. Mux: TIM3 channel 1, LCD segment 11, ADC1 channel 17, comparator 1 positive input."+ "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 B bit 2. Mux: TIM2 channel 2, LCD segment 12, ADC1 channel 16, comparator 1 positive input."+ "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 B bit 3. Mux: TIM2 trigger, LCD segment 13, ADC1 channel 15, comparator 1 positive input."+ "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 B bit 4. Mux: SPI1 master/slave select (NSS), LCD segment 14, ADC1 channel 14, comparator 1 positive input. Pull-up applied during reset phase."+ "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 B bit 5. Mux: SPI1 clock, LCD segment 15, ADC1 channel 13, comparator 1 positive input."+ "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 B bit 6. Mux: SPI1 MOSI, LCD segment 16, ADC1 channel 12, comparator 1 positive input."+ "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 B bit 7. Mux: SPI1 MISO, LCD segment 17, ADC1 channel 11, comparator 1 positive input."+ "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 F bit 0. Mux: ADC1 channel 24, DAC channel 1 output, USART3 TX."+ "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 F bit 1. Mux: ADC1 channel 25, DAC channel 2 output, USART3 RX."+ "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 F bit 4. Mux: LCD segment 36 or LCD common 4."+ "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 F bit 5. Mux: LCD segment 37 or LCD common 5."+ "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 F bit 6. Mux: LCD segment 38 or LCD common 6."+ "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 F bit 7. Mux: LCD segment 39 or LCD common 7."+ "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 D bit 4. Mux: TIM1 channel 2, LCD segment 18, ADC1 channel 10, comparator 1 positive input."+ "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 D bit 5. Mux: TIM1 channel 3, LCD segment 19, ADC1 channel 9, comparator 1 positive input."+ "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 D bit 6. Mux: TIM1 break input, LCD segment 20, ADC1 channel 8, RTC calibration output, comparator 1 positive input, internal reference voltage output."+ "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 D bit 7. Mux: TIM1 inverted channel 1, LCD segment 21, ADC1 channel 7, RTC alarm output, comparator 1 positive input, internal reference voltage output."+ "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 G bit 4. Mux: LCD segment 32, SPI2 master/slave select."+ "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 G bit 5. Mux: LCD segment 33, SPI2 clock."+ "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 G bit 6. Mux: LCD segment 34, SPI2 MOSI."+ "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 G bit 7. Mux: LCD segment 35, SPI2 MISO."+ "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 C bit 0. Mux: I2C1 data (true open-drain, no pull-up or protection diode to VDD). Requires external pull-up. Fast-mode 400 kHz."+ "description": "Port C0, true open-drain FT I/O. I2C1 data line." }, { "number": "54", "name": "PC1/I2C1_SCL", "type": "bidirectional",- "description": "Port C bit 1. Mux: I2C1 clock (true open-drain, no pull-up or protection diode to VDD). Requires external pull-up."+ "description": "Port C1, true open-drain FT I/O. I2C1 clock line." }, { "number": "55", "name": "VDD2", "type": "power_in",- "description": "I/O supply voltage. Tie to VDD; decouple locally."+ "description": "I/O supply voltage, 1.65 V to 3.6 V." }, { "number": "56", "name": "VSS2", "type": "power_in",- "description": "I/O ground. Tie to system ground."+ "description": "I/O ground return." }, { "number": "57", "name": "PC2/USART1_RX/LCD_SEG22/ADC1_IN6/[COMP1_INP]/VREFINT", "type": "bidirectional",- "description": "Port C bit 2. Mux: USART1 RX, LCD segment 22, ADC1 channel 6, comparator 1 positive input, internal reference voltage output."+ "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 C bit 3. Mux: USART1 TX, LCD segment 23, ADC1 channel 5, comparator 2 negative input, comparator 1 positive input."+ "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 C bit 4. Mux: USART1 synchronous clock, I2C1 SMBus alert, configurable clock output, LCD segment 24, ADC1 channel 4, comparator 2 negative input, comparator 1 positive input."+ "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 C bit 5. Mux: LSE 32 kHz oscillator input, SPI1 NSS, USART1 TX."+ "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 C bit 6. Mux: LSE 32 kHz oscillator output, SPI1 clock, USART1 RX."+ "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 C bit 7. Mux: LCD segment 25, ADC1 channel 3, comparator 2 negative input, comparator 1 positive input."+ "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 E bit 6. Mux: LCD segment 26, programmable voltage detector input, TIM5 break input."+ "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 E bit 7. Mux: LCD segment 27, TIM5 external trigger."+ "description": "Port E7, high-sink FT I/O. LCD segment 27, Timer 5 external trigger." } ], "provenance": {@@ -474,8 +474,5 @@ "docs/stm8l152r8t6-datasheet.pdf", "viewers/symbol.html", "viewers/footprint.html"- ],- "visibility": {- "public": true- }+ ] }
stm8l152r8t6.kicad_sym+3−3@@ -9,7 +9,7 @@ ) (symbol "STM8L152R8T6_1_1" (pin bidirectional line (at -17.78 38.10 0) (length 5.08)- (name "PA0/[USART1_CK]/SWIM/BEEP/IR_TIM" (effects (font (size 1.27 1.27))))+ (name "PA0/USART1_CK/SWIM/BEEP/IR_TIM" (effects (font (size 1.27 1.27)))) (number "1" (effects (font (size 1.27 1.27)))) ) (pin bidirectional line (at -17.78 35.56 0) (length 5.08)@@ -57,7 +57,7 @@ (number "12" (effects (font (size 1.27 1.27)))) ) (pin power_in line (at -17.78 7.62 0) (length 5.08)- (name "VREF+" (effects (font (size 1.27 1.27))))+ (name "VREF+/VREF+_DAC" (effects (font (size 1.27 1.27)))) (number "13" (effects (font (size 1.27 1.27)))) ) (pin bidirectional line (at -17.78 5.08 0) (length 5.08)@@ -77,7 +77,7 @@ (number "17" (effects (font (size 1.27 1.27)))) ) (pin power_in line (at -17.78 -5.08 0) (length 5.08)- (name "VLCD" (effects (font (size 1.27 1.27))))+ (name "Res." (effects (font (size 1.27 1.27)))) (number "18" (effects (font (size 1.27 1.27)))) ) (pin bidirectional line (at -17.78 -7.62 0) (length 5.08)
stm8l152r8t6.lbr+15−9@@ -50,7 +50,7 @@ <layer number="98" name="Guide" color="6" fill="1" visible="yes" active="yes"/> </layers> <library>-<description></description>+<description>STMicroelectronics Microcontrollers (MCU/MPU/SOC), LQFP-64(10x10)</description> <packages> <package name="LQFP-64_10x10mm_P0.5mm"> <description>LQFP-64, 10 x 10 mm, 0.5 mm pitch</description>@@ -144,13 +144,14 @@ </packages> <symbols> <symbol name="STM8L152R8T6">+ <description>STMicroelectronics Microcontrollers (MCU/MPU/SOC), LQFP-64(10x10)</description> <wire x1="-12.7" y1="40.64" x2="12.7" y2="40.64" width="0.254" layer="94"/> <wire x1="12.7" y1="40.64" x2="12.7" y2="-43.18" width="0.254" layer="94"/> <wire x1="12.7" y1="-43.18" x2="-12.7" y2="-43.18" width="0.254" layer="94"/> <wire x1="-12.7" y1="-43.18" x2="-12.7" y2="40.64" width="0.254" layer="94"/> <text x="0.0000" y="43.1800" size="1.27" layer="95" align="center">>NAME</text> <text x="0.0000" y="-45.7200" size="1.27" layer="96" align="center">>VALUE</text>- <pin name="PA0/_USART1_CK_/SWIM/BEEP/IR_TIM" x="-17.78" y="38.1" length="middle" direction="io"/>+ <pin name="PA0/USART1_CK/SWIM/BEEP/IR_TIM" x="-17.78" y="38.1" length="middle" direction="io"/> <pin name="NRST/PA1" x="-17.78" y="35.56" length="middle" direction="io"/> <pin name="PA2/OSC_IN/_USART1_TX_/_SPI1_MISO" x="-17.78" y="33.02" length="middle" direction="io"/> <pin name="PA3/OSC_OUT/_USART1_RX_/_SPI1_MOSI" x="-17.78" y="30.48" length="middle" direction="io"/>@@ -162,12 +163,12 @@ <pin name="VSS1" x="-17.78" y="15.24" length="middle" direction="pwr"/> <pin name="VDD1" x="-17.78" y="12.7" length="middle" direction="pwr"/> <pin name="VDDA" x="-17.78" y="10.16" length="middle" direction="pwr"/>- <pin name="VREF+" x="-17.78" y="7.62" length="middle" direction="pwr"/>+ <pin name="VREF+/VREF+_DAC" x="-17.78" y="7.62" length="middle" direction="pwr"/> <pin name="PG0/LCD_SEG28/USART3_RX/_TIM2_BKIN" x="-17.78" y="5.08" length="middle" direction="io"/> <pin name="PG1/LCD_SEG29/USART3_TX/_TIM3_BKIN" x="-17.78" y="2.54" length="middle" direction="io"/> <pin name="PG2/LCD_SEG30/USART3_CK" x="-17.78" y="0" length="middle" direction="io"/> <pin name="PG3/LCD_SEG31/_TIM3_ETR" x="-17.78" y="-2.54" length="middle" direction="io"/>- <pin name="VLCD" x="-17.78" y="-5.08" length="middle" direction="pwr"/>+ <pin name="Res." x="-17.78" y="-5.08" length="middle" direction="pwr"/> <pin name="PE0/LCD_SEG1/TIM5_CH2" x="-17.78" y="-7.62" length="middle" direction="io"/> <pin name="PE1/TIM1_CH2N/LCD_SEG2" x="-17.78" y="-10.16" length="middle" direction="io"/> <pin name="PE2/TIM1_CH3N/LCD_SEG3/_CCO" x="-17.78" y="-12.7" length="middle" direction="io"/>@@ -218,14 +219,14 @@ </symbols> <devicesets> <deviceset name="STM8L152R8T6" prefix="U">- <description></description>+ <description>STMicroelectronics Microcontrollers (MCU/MPU/SOC), LQFP-64(10x10)</description> <gates> <gate name="G$1" symbol="STM8L152R8T6" x="0" y="0"/> </gates> <devices> <device name="" package="LQFP-64_10x10mm_P0.5mm"> <connects>- <connect gate="G$1" pin="PA0/_USART1_CK_/SWIM/BEEP/IR_TIM" pad="1"/>+ <connect gate="G$1" pin="PA0/USART1_CK/SWIM/BEEP/IR_TIM" pad="1"/> <connect gate="G$1" pin="NRST/PA1" pad="2"/> <connect gate="G$1" pin="PA2/OSC_IN/_USART1_TX_/_SPI1_MISO" pad="3"/> <connect gate="G$1" pin="PA3/OSC_OUT/_USART1_RX_/_SPI1_MOSI" pad="4"/>@@ -237,12 +238,12 @@ <connect gate="G$1" pin="VSS1" pad="10"/> <connect gate="G$1" pin="VDD1" pad="11"/> <connect gate="G$1" pin="VDDA" pad="12"/>- <connect gate="G$1" pin="VREF+" pad="13"/>+ <connect gate="G$1" pin="VREF+/VREF+_DAC" pad="13"/> <connect gate="G$1" pin="PG0/LCD_SEG28/USART3_RX/_TIM2_BKIN" pad="14"/> <connect gate="G$1" pin="PG1/LCD_SEG29/USART3_TX/_TIM3_BKIN" pad="15"/> <connect gate="G$1" pin="PG2/LCD_SEG30/USART3_CK" pad="16"/> <connect gate="G$1" pin="PG3/LCD_SEG31/_TIM3_ETR" pad="17"/>- <connect gate="G$1" pin="VLCD" pad="18"/>+ <connect gate="G$1" pin="Res." pad="18"/> <connect gate="G$1" pin="PE0/LCD_SEG1/TIM5_CH2" pad="19"/> <connect gate="G$1" pin="PE1/TIM1_CH2N/LCD_SEG2" pad="20"/> <connect gate="G$1" pin="PE2/TIM1_CH3N/LCD_SEG3/_CCO" pad="21"/>@@ -290,7 +291,12 @@ <connect gate="G$1" pin="PB3/TIM2_ETR/LCD_SEG13/ADC1_IN15/_COMP1_INP" pad="34"/> <connect gate="G$1" pin="PB2/TIM2_CH2/LCD_SEG12/ADC1_IN16/_COMP1_INP" pad="33"/> </connects>- <technologies><technology name=""/></technologies>+ <technologies>+ <technology name="">+ <attribute name="MPN" value="STM8L152R8T6" constant="no"/>+ <attribute name="MANUFACTURER" value="STMicroelectronics" constant="no"/>+ </technology>+ </technologies> </device> </devices> </deviceset>