(kicad_symbol_lib
	(version 20241209)
	(generator "kicad_symbol_editor")
	(generator_version "9.0")
	(symbol "STM8L151C8T"
		(exclude_from_sim no)
		(in_bom yes)
		(on_board yes)
		(property "Reference" "U"
			(at 7.62 13.97 0)
			(effects
				(font
					(size 1.27 1.27)
				)
				(justify left bottom)
			)
		)
		(property "Value" "STM8L151C8"
			(at 7.62 11.43 0)
			(effects
				(font
					(size 1.27 1.27)
				)
				(justify left bottom)
			)
		)
		(property "Footprint" "Package_QFP_AKL:LQFP-48_7x7mm_P0.5mm"
			(at 0 0 0)
			(effects
				(font
					(size 1.27 1.27)
				)
				(hide yes)
			)
		)
		(property "Datasheet" "https://www.st.com/resource/en/datasheet/stm8l151c8.pdf"
			(at 0 0 0)
			(effects
				(font
					(size 1.27 1.27)
				)
				(hide yes)
			)
		)
		(property "Description" "8-bit ultra-low-power MCU, up to 64-KB Flash, 2-KB data EEPROM, RTC, LCD, timers, USARTs, I2C, SPIs, ADC, DAC, comparators"
			(at 0 0 0)
			(effects
				(font
					(size 1.27 1.27)
				)
				(hide yes)
			)
		)
		(property "ki_locked" ""
			(at 0 0 0)
			(effects
				(font
					(size 1.27 1.27)
				)
			)
		)
		(property "ki_keywords" "MCU STM8 low power 64KB"
			(at 0 0 0)
			(effects
				(font
					(size 1.27 1.27)
				)
				(hide yes)
			)
		)
		(symbol "STM8L151C8T_1_0"
			(pin power_in line
				(at -2.54 13.97 270)
				(length 2.54)
				(name "V_{DDA}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "11"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
			)
			(pin power_in line
				(at 0 13.97 270)
				(length 2.54)
				(name "V_{DD}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "10"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
			)
			(pin unspecified line
				(at 0 13.97 270)
				(length 2.54)
				(hide yes)
				(name "Res."
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "13"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
			)
			(pin power_in line
				(at 0 13.97 270)
				(length 2.54)
				(hide yes)
				(name "V_{DD}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "39"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
			)
			(pin power_in line
				(at 0 -13.97 90)
				(length 2.54)
				(hide yes)
				(name "V_{SS}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "40"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
			)
			(pin power_in line
				(at 0 -13.97 90)
				(length 2.54)
				(name "V_{SS}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "9"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
			)
			(pin input line
				(at 2.54 13.97 270)
				(length 2.54)
				(name "V_{REF+}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "12"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
			)
		)
		(symbol "STM8L151C8T_1_1"
			(rectangle
				(start -6.35 11.43)
				(end 6.35 -11.43)
				(stroke
					(width 0)
					(type default)
				)
				(fill
					(type background)
				)
			)
			(text "V_{SSA}\n\nV_{REF-}"
				(at 0 -9.398 900)
				(effects
					(font
						(size 1.27 1.27)
						(color 0 100 100 1)
					)
					(justify left)
				)
			)
		)
		(symbol "STM8L151C8T_2_0"
			(pin bidirectional line
				(at 8.89 8.89 180)
				(length 2.54)
				(name "PA_{0}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "1"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "BEEP" output line)
				(alternate "IR_{TIM}" output line)
				(alternate "SWIM" bidirectional line)
				(alternate "[USART1_{CK}]" bidirectional line)
			)
			(pin input inverted
				(at 8.89 6.35 180)
				(length 2.54)
				(name "~{RST}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "2"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "PA_{1}" bidirectional line)
			)
			(pin bidirectional line
				(at 8.89 3.81 180)
				(length 2.54)
				(name "PA_{2}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "3"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "OSC_{IN}" input line)
				(alternate "[SPI1_{MISO}]" bidirectional line)
				(alternate "[USART1_{TX}]" output line)
			)
			(pin bidirectional line
				(at 8.89 1.27 180)
				(length 2.54)
				(name "PA_{3}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "4"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "OSC_{OUT}" output line)
				(alternate "[SPI1_{MOSI}]" bidirectional line)
				(alternate "[USART1_{RX}]" input line)
			)
			(pin bidirectional line
				(at 8.89 -1.27 180)
				(length 2.54)
				(name "PA_{4}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "5"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "ADC1_{IN22}" input line)
				(alternate "TIM2_{BKIN}" input line)
				(alternate "[COMP1_{INP}]" input line)
				(alternate "[TIM2_{ETR}]" input line)
			)
			(pin bidirectional line
				(at 8.89 -3.81 180)
				(length 2.54)
				(name "PA_{5}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "6"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "ADC1_{IN1}" input line)
				(alternate "TIM3_{BKIN}" input line)
				(alternate "[COMP1_{INP}]" input line)
				(alternate "[TIM3_{ETR}]" input line)
			)
			(pin bidirectional line
				(at 8.89 -6.35 180)
				(length 2.54)
				(name "PA_{6}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "7"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "ADC1_{IN0}" input line)
				(alternate "ADC1_{TRIG}" input line)
				(alternate "[COMP1_{INP}]" input line)
			)
			(pin bidirectional line
				(at 8.89 -8.89 180)
				(length 2.54)
				(name "PA_{7}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "8"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "TIM5_{CH1}" output line)
			)
		)
		(symbol "STM8L151C8T_2_1"
			(rectangle
				(start -6.35 11.43)
				(end 6.35 -11.43)
				(stroke
					(width 0)
					(type default)
				)
				(fill
					(type background)
				)
			)
		)
		(symbol "STM8L151C8T_3_0"
			(pin bidirectional line
				(at 8.89 8.89 180)
				(length 2.54)
				(name "PB_{0}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "24"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "ADC1_{IN18}" input line)
				(alternate "TIM2_{CH1}" output line)
				(alternate "[COMP1_{INP}]" input line)
			)
			(pin bidirectional line
				(at 8.89 6.35 180)
				(length 2.54)
				(name "PB_{1}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "25"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "ADC1_{IN17}" input line)
				(alternate "TIM3_{CH1}" output line)
				(alternate "[COMP1_{INP}]" input line)
			)
			(pin bidirectional line
				(at 8.89 3.81 180)
				(length 2.54)
				(name "PB_{2}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "26"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "ADC1_{IN16}" input line)
				(alternate "TIM2_{CH2}" output line)
				(alternate "[COMP1_{INP}]" input line)
			)
			(pin bidirectional line
				(at 8.89 1.27 180)
				(length 2.54)
				(name "PB_{3}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "27"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "ADC1_{IN15}" input line)
				(alternate "TIM2_{ETR}" input line)
				(alternate "[COMP1_{INP}]" input line)
			)
			(pin bidirectional line
				(at 8.89 -1.27 180)
				(length 2.54)
				(name "PB_{4}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "28"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "ADC1_{IN14}" input line)
				(alternate "DAC_{OUT2}" output line)
				(alternate "SPI1_{NSS}" bidirectional line)
				(alternate "[COMP1_{INP}]" input line)
			)
			(pin bidirectional line
				(at 8.89 -3.81 180)
				(length 2.54)
				(name "PB_{5}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "29"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "ADC1_{IN13}" input line)
				(alternate "DAC_{OUT2}" output line)
				(alternate "SPI1_{SCK}" bidirectional line)
				(alternate "[COMP1_{INP}]" input line)
			)
			(pin bidirectional line
				(at 8.89 -6.35 180)
				(length 2.54)
				(name "PB_{6}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "30"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "ADC1_{IN12}" input line)
				(alternate "DAC_{OUT2}" output line)
				(alternate "SPI1_{MOSI}" bidirectional line)
				(alternate "[COMP1_{INP}]" input line)
			)
			(pin bidirectional line
				(at 8.89 -8.89 180)
				(length 2.54)
				(name "PB_{7}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "31"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "ADC1_{IN11}" input line)
				(alternate "SPI1_{MISO}" bidirectional line)
				(alternate "[COMP1_{INP}]" input line)
			)
		)
		(symbol "STM8L151C8T_3_1"
			(rectangle
				(start -6.35 11.43)
				(end 6.35 -11.43)
				(stroke
					(width 0)
					(type default)
				)
				(fill
					(type background)
				)
			)
		)
		(symbol "STM8L151C8T_4_0"
			(pin bidirectional line
				(at 8.89 8.89 180)
				(length 2.54)
				(name "PC_{0}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "37"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "I2C1_{SDA}" bidirectional line)
			)
			(pin bidirectional line
				(at 8.89 6.35 180)
				(length 2.54)
				(name "PC_{1}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "38"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "I2C1_{SCL}" bidirectional line)
			)
			(pin bidirectional line
				(at 8.89 3.81 180)
				(length 2.54)
				(name "PC_{2}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "41"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "ADC1_{IN6}" input line)
				(alternate "USART1_{RX}" input line)
				(alternate "VREFINT" output line)
				(alternate "[COMP1_{INP}]" input line)
			)
			(pin bidirectional line
				(at 8.89 1.27 180)
				(length 2.54)
				(name "PC_{3}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "42"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "ADC1_{IN5}" input line)
				(alternate "USART1_{TX}" output line)
			)
			(pin bidirectional line
				(at 8.89 -1.27 180)
				(length 2.54)
				(name "PC_{4}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "43"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "ADC1_{IN4}" input line)
				(alternate "I2C1_{SMB}" bidirectional line)
				(alternate "USART1_{CK}" bidirectional line)
				(alternate "[CCO]" output line)
				(alternate "[COMP1_{INP}]" input line)
				(alternate "[COMP2_{INM}]" input line)
			)
			(pin bidirectional line
				(at 8.89 -3.81 180)
				(length 2.54)
				(name "PC_{5}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "44"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "OSC32_{IN}" input line)
				(alternate "[SPI1_{NSS}]" bidirectional line)
				(alternate "[USART1_{TX}]" output line)
			)
			(pin bidirectional line
				(at 8.89 -6.35 180)
				(length 2.54)
				(name "PC_{6}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "45"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "OSC32_{OUT}" output line)
				(alternate "[SPI1_{SCK}]" bidirectional line)
				(alternate "[USART1_{RX}]" input line)
			)
			(pin bidirectional line
				(at 8.89 -8.89 180)
				(length 2.54)
				(name "PC_{7}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "46"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "ADC1_{IN3}" input line)
				(alternate "USART3_{CK}" bidirectional line)
				(alternate "[COMP1_{INP}]" input line)
				(alternate "[COMP2_{INM}]" input line)
			)
		)
		(symbol "STM8L151C8T_4_1"
			(rectangle
				(start -6.35 11.43)
				(end 6.35 -11.43)
				(stroke
					(width 0)
					(type default)
				)
				(fill
					(type background)
				)
			)
		)
		(symbol "STM8L151C8T_5_0"
			(pin bidirectional line
				(at 8.89 8.89 180)
				(length 2.54)
				(name "PD_{0}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "20"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "ADC1_{IN22}" input line)
				(alternate "TIM3_{CH2}" output line)
				(alternate "[ADC1_{TRIG}]" input line)
				(alternate "[COMP2_{INP}]" input line)
			)
			(pin bidirectional line
				(at 8.89 6.35 180)
				(length 2.54)
				(name "PD_{1}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "21"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "ADC1_{IN21}" input line)
				(alternate "TIM3_{ETR}" input line)
				(alternate "[COMP1_{INP}]" input line)
				(alternate "[COMP2_{INP}]" input line)
			)
			(pin bidirectional line
				(at 8.89 3.81 180)
				(length 2.54)
				(name "PD_{2}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "22"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "ADC1_{IN20}" input line)
				(alternate "TIM1_{CH1}" output line)
				(alternate "[COMP1_{INP}]" input line)
			)
			(pin bidirectional line
				(at 8.89 1.27 180)
				(length 2.54)
				(name "PD_{3}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "23"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "ADC1_{IN19}" input line)
				(alternate "TIM1_{ETR}" input line)
				(alternate "[COMP1_{INP}]" input line)
			)
			(pin bidirectional line
				(at 8.89 -1.27 180)
				(length 2.54)
				(name "PD_{4}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "33"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "ADC1_{IN10}" input line)
				(alternate "SPI2_{MISO}" bidirectional line)
				(alternate "TIM1_{CH2}" output line)
				(alternate "[COMP1_{INP}]" input line)
			)
			(pin bidirectional line
				(at 8.89 -3.81 180)
				(length 2.54)
				(name "PD_{5}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "34"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "ADC1_{IN9}" input line)
				(alternate "SPI2_{MOSI}" bidirectional line)
				(alternate "TIM1_{CH3}" output line)
				(alternate "[COMP1_{INP}]" input line)
			)
			(pin bidirectional line
				(at 8.89 -6.35 180)
				(length 2.54)
				(name "PD_{6}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "35"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "ADC1_{IN8}" input line)
				(alternate "RTC_{CALIB}" output line)
				(alternate "SPI2_{SCK}" bidirectional line)
				(alternate "TIM1_{BKIN}" input line)
				(alternate "VREFINT" output line)
				(alternate "[COMP1_{INP}]" input line)
			)
			(pin bidirectional line
				(at 8.89 -8.89 180)
				(length 2.54)
				(name "PD_{7}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "36"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "ADC1_{IN7}" input line)
				(alternate "RTC_{ALARM}" output line)
				(alternate "SPI2_{NSS}" bidirectional line)
				(alternate "TIM1_{CH1N}" output line)
				(alternate "VREFINT" output line)
				(alternate "[COMP1_{INP}]" input line)
			)
		)
		(symbol "STM8L151C8T_5_1"
			(rectangle
				(start -6.35 11.43)
				(end 6.35 -11.43)
				(stroke
					(width 0)
					(type default)
				)
				(fill
					(type background)
				)
			)
		)
		(symbol "STM8L151C8T_6_0"
			(pin bidirectional line
				(at 8.89 8.89 180)
				(length 2.54)
				(name "PE_{0}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "14"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "TIM5_{CH2}" output line)
			)
			(pin bidirectional line
				(at 8.89 6.35 180)
				(length 2.54)
				(name "PE_{1}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "15"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "TIM1_{CH2N}" output line)
			)
			(pin bidirectional line
				(at 8.89 3.81 180)
				(length 2.54)
				(name "PE_{2}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "16"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "TIM1_{CH3N}" output line)
				(alternate "[CCO]" output line)
			)
			(pin bidirectional line
				(at 8.89 1.27 180)
				(length 2.54)
				(name "PE_{3}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "17"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "USART2_{RX}" input line)
			)
			(pin bidirectional line
				(at 8.89 -1.27 180)
				(length 2.54)
				(name "PE_{4}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "18"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "DAC2_{TRIG}" input line)
				(alternate "USART2_{TX}" output line)
			)
			(pin bidirectional line
				(at 8.89 -3.81 180)
				(length 2.54)
				(name "PE_{5}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "19"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "ADC1_{IN23}" input line)
				(alternate "USART2_{CK}" bidirectional line)
				(alternate "[COMP1_{INP}]" input line)
				(alternate "[COMP2_{INP}]" input line)
			)
			(pin bidirectional line
				(at 8.89 -6.35 180)
				(length 2.54)
				(name "PE_{6}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "47"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "PVD_{IN}" input line)
				(alternate "TIM5_{BKIN}" input line)
				(alternate "USART3_{TX}" output line)
			)
			(pin bidirectional line
				(at 8.89 -8.89 180)
				(length 2.54)
				(name "PE_{7}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "48"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "TIM5_{ETR}" input line)
				(alternate "USART3_{RX}" input line)
			)
			(pin bidirectional line
				(at 8.89 -13.97 180)
				(length 2.54)
				(name "PF_{0}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "32"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "ADC1_{IN24}" input line)
				(alternate "DAC1_{OUT}" output line)
			)
		)
		(symbol "STM8L151C8T_6_1"
			(rectangle
				(start -6.35 11.43)
				(end 6.35 -16.51)
				(stroke
					(width 0)
					(type default)
				)
				(fill
					(type background)
				)
			)
		)
		(embedded_fonts no)
	)
	(symbol "STM8L151F2Px"
		(exclude_from_sim no)
		(in_bom yes)
		(on_board yes)
		(property "Reference" "U"
			(at -10.16 22.225 0)
			(effects
				(font
					(size 1.27 1.27)
				)
				(justify right)
			)
		)
		(property "Value" "STM8L151F2Px"
			(at -10.16 20.32 0)
			(effects
				(font
					(size 1.27 1.27)
				)
				(justify right)
			)
		)
		(property "Footprint" "Package_SO:TSSOP-20_4.4x6.5mm_P0.65mm"
			(at -25.4 -1.016 0)
			(effects
				(font
					(size 1.27 1.27)
				)
				(justify left)
				(hide yes)
			)
		)
		(property "Datasheet" "https://www.st.com/resource/en/datasheet/stm8l151f2.pdf"
			(at 0.762 -0.508 0)
			(effects
				(font
					(size 1.27 1.27)
				)
				(hide yes)
			)
		)
		(property "Description" "8-bit ultra-low-power MCU, 4 KB Flash, 256 bytes data EEPROM, LQFP-48"
			(at 0 -1.524 0)
			(effects
				(font
					(size 1.27 1.27)
				)
				(hide yes)
			)
		)
		(property "ki_keywords" "STM8 ultra-low-power"
			(at 0 0 0)
			(effects
				(font
					(size 1.27 1.27)
				)
				(hide yes)
			)
		)
		(property "ki_fp_filters" "LQFP*7x7mm*P0.5mm*"
			(at 0 0 0)
			(effects
				(font
					(size 1.27 1.27)
				)
				(hide yes)
			)
		)
		(symbol "STM8L151F2Px_0_0"
			(pin bidirectional line
				(at -17.78 13.97 0)
				(length 2.54)
				(name "PA0"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "3"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "BEEP" output line)
				(alternate "IR_TIM" output line)
				(alternate "OSC_IN" input line)
				(alternate "SWIM" bidirectional line)
				(alternate "[USART_CK]" bidirectional line)
			)
			(pin bidirectional inverted
				(at -17.78 11.43 0)
				(length 2.54)
				(name "~{RESET}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "4"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "PA1" bidirectional line)
			)
			(pin bidirectional line
				(at -17.78 8.89 0)
				(length 2.54)
				(name "PA2"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "5"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "OSC_IN" input line)
				(alternate "[SPI_MISO]" bidirectional line)
				(alternate "[USART_TX]" output line)
			)
			(pin bidirectional line
				(at -17.78 6.35 0)
				(length 2.54)
				(name "PA3"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "6"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "OSC_OUT" output line)
				(alternate "[SPI_MOSI]" bidirectional line)
				(alternate "[USART_RX]" input line)
			)
			(pin bidirectional line
				(at -17.78 1.27 0)
				(length 2.54)
				(name "PB0"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "10"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "ADC1_IN18" input line)
				(alternate "COMP1_INP" input line)
				(alternate "TIM2_CH1" bidirectional line)
			)
			(pin bidirectional line
				(at -17.78 -1.27 0)
				(length 2.54)
				(name "PB1"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "11"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "ADC1_IN17" input line)
				(alternate "COMP1_INP" input line)
				(alternate "TIM3_CH1" bidirectional line)
			)
			(pin bidirectional line
				(at -17.78 -3.81 0)
				(length 2.54)
				(name "PB2"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "12"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "ADC1_IN16" input line)
				(alternate "COMP1_INP" input line)
				(alternate "TIM2_CH2" bidirectional line)
			)
			(pin bidirectional line
				(at -17.78 -6.35 0)
				(length 2.54)
				(name "PB3"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "13"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "ADC1_IN15" input line)
				(alternate "COMP1_INP" input line)
				(alternate "RTC_ALARM" output line)
				(alternate "TIM2_ETR" input line)
			)
			(pin bidirectional line
				(at -17.78 -8.89 0)
				(length 2.54)
				(name "PB4"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "14"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "ADC1_IN14" input line)
				(alternate "COMP1_INP" input line)
				(alternate "SPI1_NSS" bidirectional line)
			)
			(pin bidirectional line
				(at -17.78 -11.43 0)
				(length 2.54)
				(name "PB5"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "15"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "ADC1_IN13" input line)
				(alternate "COMP1_INP" input line)
				(alternate "SPI_SCK" bidirectional line)
			)
			(pin bidirectional line
				(at -17.78 -13.97 0)
				(length 2.54)
				(name "PB6"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "16"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "ADC1_IN12" input line)
				(alternate "COMP1_INP" input line)
				(alternate "SPI1_MOSI" bidirectional line)
			)
			(pin bidirectional line
				(at -17.78 -16.51 0)
				(length 2.54)
				(name "PB7"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "17"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "ADC1_IN11" input line)
				(alternate "COMP1_INP" input line)
				(alternate "SPI1_MISO" bidirectional line)
			)
			(pin power_in line
				(at 0 21.59 270)
				(length 2.54)
				(name "V_{DD}/V_{DDA}/V_{REF-}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "8"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
			)
			(pin power_in line
				(at 0 -21.59 90)
				(length 2.54)
				(name "V_{SS}/V_{SSA}/V_{REF-}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "7"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
			)
			(pin bidirectional line
				(at 17.78 11.43 180)
				(length 2.54)
				(name "PC0"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "18"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "I2C_SDA" bidirectional line)
			)
			(pin bidirectional line
				(at 17.78 8.89 180)
				(length 2.54)
				(name "PC1"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "19"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "I2C_SCL" bidirectional line)
			)
			(pin bidirectional line
				(at 17.78 6.35 180)
				(length 2.54)
				(name "PC4"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "20"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "ADC1_IN4" input line)
				(alternate "CCO" output line)
				(alternate "COMP1_INP" input line)
				(alternate "COMP2_INM" input line)
				(alternate "I2C1_SMB" bidirectional line)
				(alternate "USART_CK" output line)
			)
			(pin bidirectional line
				(at 17.78 3.81 180)
				(length 2.54)
				(name "PC5"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "1"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "OSC32_IN" input line)
				(alternate "TIM2_CH1" bidirectional line)
				(alternate "[SPI1_NSS]" bidirectional line)
				(alternate "[USART_TX]" output line)
			)
			(pin bidirectional line
				(at 17.78 1.27 180)
				(length 2.54)
				(name "PC6"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "2"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "OSC32_OUT" output line)
				(alternate "TIM2_CH1" bidirectional line)
				(alternate "[SPI_SCK]" bidirectional line)
				(alternate "[USART_RX]" input line)
			)
			(pin bidirectional line
				(at 17.78 -3.81 180)
				(length 2.54)
				(name "PD0"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "9"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "ADC1_IN22" input line)
				(alternate "COMP1_INP" input line)
				(alternate "COMP2_INP" input line)
				(alternate "TIM3_CH2" bidirectional line)
				(alternate "[ADC1_TRIG]" input line)
			)
		)
		(symbol "STM8L151F2Px_0_1"
			(rectangle
				(start -15.24 19.05)
				(end 15.24 -19.05)
				(stroke
					(width 0)
					(type default)
				)
				(fill
					(type background)
				)
			)
		)
		(embedded_fonts no)
	)
	(symbol "STM8L151F2Ux"
		(exclude_from_sim no)
		(in_bom yes)
		(on_board yes)
		(property "Reference" "U"
			(at -10.16 22.225 0)
			(effects
				(font
					(size 1.27 1.27)
				)
				(justify right)
			)
		)
		(property "Value" "STM8L151F2Ux"
			(at -10.16 20.32 0)
			(effects
				(font
					(size 1.27 1.27)
				)
				(justify right)
			)
		)
		(property "Footprint" "Seppl_Package_DFN_QFN:ST_UFQFPN-20_3x3mm_P0.5mm"
			(at -25.908 -0.508 0)
			(effects
				(font
					(size 1.27 1.27)
				)
				(justify left)
				(hide yes)
			)
		)
		(property "Datasheet" "https://www.st.com/resource/en/datasheet/stm8l151f2.pdf"
			(at -0.508 -0.254 0)
			(effects
				(font
					(size 1.27 1.27)
				)
				(hide yes)
			)
		)
		(property "Description" "8-bit ultra-low-power MCU, 4 KB Flash, 256 bytes data EEPROM, LQFP-48"
			(at -0.508 0.762 0)
			(effects
				(font
					(size 1.27 1.27)
				)
				(hide yes)
			)
		)
		(property "ki_keywords" "STM8 ultra-low-power"
			(at 0 0 0)
			(effects
				(font
					(size 1.27 1.27)
				)
				(hide yes)
			)
		)
		(property "ki_fp_filters" "LQFP*7x7mm*P0.5mm*"
			(at 0 0 0)
			(effects
				(font
					(size 1.27 1.27)
				)
				(hide yes)
			)
		)
		(symbol "STM8L151F2Ux_0_0"
			(pin bidirectional line
				(at -17.78 13.97 0)
				(length 2.54)
				(name "PA0"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "20"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "BEEP" output line)
				(alternate "IR_TIM" output line)
				(alternate "OSC_IN" input line)
				(alternate "SWIM" bidirectional line)
				(alternate "[USART_CK]" bidirectional line)
			)
			(pin bidirectional inverted
				(at -17.78 11.43 0)
				(length 2.54)
				(name "~{RESET}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "1"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "PA1" bidirectional line)
			)
			(pin bidirectional line
				(at -17.78 8.89 0)
				(length 2.54)
				(name "PA2"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "2"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "OSC_IN" input line)
				(alternate "[SPI_MISO]" bidirectional line)
				(alternate "[USART_TX]" output line)
			)
			(pin bidirectional line
				(at -17.78 6.35 0)
				(length 2.54)
				(name "PA3"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "3"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "OSC_OUT" output line)
				(alternate "[SPI_MOSI]" bidirectional line)
				(alternate "[USART_RX]" input line)
			)
			(pin bidirectional line
				(at -17.78 1.27 0)
				(length 2.54)
				(name "PB0"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "7"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "ADC1_IN18" input line)
				(alternate "COMP1_INP" input line)
				(alternate "TIM2_CH1" bidirectional line)
			)
			(pin bidirectional line
				(at -17.78 -1.27 0)
				(length 2.54)
				(name "PB1"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "8"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "ADC1_IN17" input line)
				(alternate "COMP1_INP" input line)
				(alternate "TIM3_CH1" bidirectional line)
			)
			(pin bidirectional line
				(at -17.78 -3.81 0)
				(length 2.54)
				(name "PB2"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "9"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "ADC1_IN16" input line)
				(alternate "COMP1_INP" input line)
				(alternate "TIM2_CH2" bidirectional line)
			)
			(pin bidirectional line
				(at -17.78 -6.35 0)
				(length 2.54)
				(name "PB3"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "10"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "ADC1_IN15" input line)
				(alternate "COMP1_INP" input line)
				(alternate "RTC_ALARM" output line)
				(alternate "TIM2_ETR" input line)
			)
			(pin bidirectional line
				(at -17.78 -8.89 0)
				(length 2.54)
				(name "PB4"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "11"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "ADC1_IN14" input line)
				(alternate "COMP1_INP" input line)
				(alternate "SPI1_NSS" bidirectional line)
			)
			(pin bidirectional line
				(at -17.78 -11.43 0)
				(length 2.54)
				(name "PB5"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "12"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "ADC1_IN13" input line)
				(alternate "COMP1_INP" input line)
				(alternate "SPI_SCK" bidirectional line)
			)
			(pin bidirectional line
				(at -17.78 -13.97 0)
				(length 2.54)
				(name "PB6"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "13"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "ADC1_IN12" input line)
				(alternate "COMP1_INP" input line)
				(alternate "SPI1_MOSI" bidirectional line)
			)
			(pin bidirectional line
				(at -17.78 -16.51 0)
				(length 2.54)
				(name "PB7"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "14"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "ADC1_IN11" input line)
				(alternate "COMP1_INP" input line)
				(alternate "SPI1_MISO" bidirectional line)
			)
			(pin power_in line
				(at 0 21.59 270)
				(length 2.54)
				(name "V_{DD}/V_{DDA}/V_{REF-}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "5"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
			)
			(pin power_in line
				(at 0 -21.59 90)
				(length 2.54)
				(name "V_{SS}/V_{SSA}/V_{REF-}"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "4"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
			)
			(pin bidirectional line
				(at 17.78 11.43 180)
				(length 2.54)
				(name "PC0"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "15"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "I2C_SDA" bidirectional line)
			)
			(pin bidirectional line
				(at 17.78 8.89 180)
				(length 2.54)
				(name "PC1"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "16"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "I2C_SCL" bidirectional line)
			)
			(pin bidirectional line
				(at 17.78 6.35 180)
				(length 2.54)
				(name "PC4"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "17"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "ADC1_IN4" input line)
				(alternate "CCO" output line)
				(alternate "COMP1_INP" input line)
				(alternate "COMP2_INM" input line)
				(alternate "I2C1_SMB" bidirectional line)
				(alternate "USART_CK" output line)
			)
			(pin bidirectional line
				(at 17.78 3.81 180)
				(length 2.54)
				(name "PC5"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "18"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "OSC32_IN" input line)
				(alternate "TIM2_CH1" bidirectional line)
				(alternate "[SPI1_NSS]" bidirectional line)
				(alternate "[USART_TX]" output line)
			)
			(pin bidirectional line
				(at 17.78 1.27 180)
				(length 2.54)
				(name "PC6"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "19"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "OSC32_OUT" output line)
				(alternate "TIM2_CH1" bidirectional line)
				(alternate "[SPI_SCK]" bidirectional line)
				(alternate "[USART_RX]" input line)
			)
			(pin bidirectional line
				(at 17.78 -3.81 180)
				(length 2.54)
				(name "PD0"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(number "6"
					(effects
						(font
							(size 1.27 1.27)
						)
					)
				)
				(alternate "ADC1_IN22" input line)
				(alternate "COMP1_INP" input line)
				(alternate "COMP2_INP" input line)
				(alternate "TIM3_CH2" bidirectional line)
				(alternate "[ADC1_TRIG]" input line)
			)
		)
		(symbol "STM8L151F2Ux_0_1"
			(rectangle
				(start -15.24 19.05)
				(end 15.24 -19.05)
				(stroke
					(width 0)
					(type default)
				)
				(fill
					(type background)
				)
			)
		)
		(embedded_fonts no)
	)
	(symbol "STM8L151C8U"
		(extends "STM8L151C8T")
		(property "Reference" "U"
			(at 7.62 13.97 0)
			(effects
				(font
					(size 1.27 1.27)
				)
				(justify left bottom)
			)
		)
		(property "Value" "STM8L151C8"
			(at 7.62 11.43 0)
			(effects
				(font
					(size 1.27 1.27)
				)
				(justify left bottom)
			)
		)
		(property "Footprint" "Package_DFN_QFN_AKL:QFN-48-1EP_7x7mm_P0.5mm_EP5.6x5.6mm_ThermalVias"
			(at 0 0 0)
			(effects
				(font
					(size 1.27 1.27)
				)
				(hide yes)
			)
		)
		(property "Datasheet" "https://www.st.com/resource/en/datasheet/stm8l151c8.pdf"
			(at 0 0 0)
			(effects
				(font
					(size 1.27 1.27)
				)
				(hide yes)
			)
		)
		(property "Description" "8-bit ultra-low-power MCU, up to 64-KB Flash, 2-KB data EEPROM, RTC, LCD, timers, USARTs, I2C, SPIs, ADC, DAC, comparators"
			(at 0 0 0)
			(effects
				(font
					(size 1.27 1.27)
				)
				(hide yes)
			)
		)
		(property "ki_keywords" "MCU STM8 low power 64KB"
			(at 0 0 0)
			(effects
				(font
					(size 1.27 1.27)
				)
				(hide yes)
			)
		)
	)
)
