main
Ray stm8l151k4t6: symbol repaired (body fitted to the names) eec3ecd
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE eagle SYSTEM "eagle.dtd">
<eagle version="9.6.2">
<drawing>
<settings><setting alwaysvectorfont="no"/></settings>
<grid distance="0.1" unitdist="inch" unit="inch" style="lines" multiple="1" display="no" altdistance="0.01" altunitdist="inch" altunit="inch"/>
<layers>
<layer number="1" name="Top" color="4" fill="1" visible="yes" active="yes"/>
<layer number="16" name="Bottom" color="1" fill="1" visible="yes" active="yes"/>
<layer number="17" name="Pads" color="2" fill="1" visible="yes" active="yes"/>
<layer number="18" name="Vias" color="2" fill="1" visible="yes" active="yes"/>
<layer number="19" name="Unrouted" color="6" fill="1" visible="yes" active="yes"/>
<layer number="20" name="Dimension" color="15" fill="1" visible="yes" active="yes"/>
<layer number="21" name="tPlace" color="7" fill="1" visible="yes" active="yes"/>
<layer number="22" name="bPlace" color="7" fill="1" visible="yes" active="yes"/>
<layer number="23" name="tOrigins" color="15" fill="1" visible="yes" active="yes"/>
<layer number="24" name="bOrigins" color="15" fill="1" visible="yes" active="yes"/>
<layer number="25" name="tNames" color="7" fill="1" visible="yes" active="yes"/>
<layer number="26" name="bNames" color="7" fill="1" visible="yes" active="yes"/>
<layer number="27" name="tValues" color="7" fill="1" visible="yes" active="yes"/>
<layer number="28" name="bValues" color="7" fill="1" visible="yes" active="yes"/>
<layer number="29" name="tStop" color="7" fill="3" visible="no" active="yes"/>
<layer number="30" name="bStop" color="7" fill="6" visible="no" active="yes"/>
<layer number="31" name="tCream" color="7" fill="4" visible="no" active="yes"/>
<layer number="32" name="bCream" color="7" fill="5" visible="no" active="yes"/>
<layer number="33" name="tFinish" color="6" fill="3" visible="no" active="yes"/>
<layer number="34" name="bFinish" color="6" fill="6" visible="no" active="yes"/>
<layer number="35" name="tGlue" color="7" fill="4" visible="no" active="yes"/>
<layer number="36" name="bGlue" color="7" fill="5" visible="no" active="yes"/>
<layer number="37" name="tTest" color="7" fill="1" visible="no" active="yes"/>
<layer number="38" name="bTest" color="7" fill="1" visible="no" active="yes"/>
<layer number="39" name="tKeepout" color="4" fill="11" visible="no" active="yes"/>
<layer number="40" name="bKeepout" color="1" fill="11" visible="no" active="yes"/>
<layer number="41" name="tRestrict" color="4" fill="10" visible="no" active="yes"/>
<layer number="42" name="bRestrict" color="1" fill="10" visible="no" active="yes"/>
<layer number="43" name="vRestrict" color="2" fill="10" visible="no" active="yes"/>
<layer number="44" name="Drills" color="7" fill="1" visible="no" active="yes"/>
<layer number="45" name="Holes" color="7" fill="1" visible="no" active="yes"/>
<layer number="46" name="Milling" color="3" fill="1" visible="no" active="yes"/>
<layer number="47" name="Measures" color="7" fill="1" visible="no" active="yes"/>
<layer number="48" name="Document" color="7" fill="1" visible="yes" active="yes"/>
<layer number="49" name="Reference" color="7" fill="1" visible="yes" active="yes"/>
<layer number="91" name="Nets" color="2" fill="1" visible="yes" active="yes"/>
<layer number="92" name="Busses" color="1" fill="1" visible="yes" active="yes"/>
<layer number="93" name="Pins" color="2" fill="1" visible="no" active="yes"/>
<layer number="94" name="Symbols" color="4" fill="1" visible="yes" active="yes"/>
<layer number="95" name="Names" color="7" fill="1" visible="yes" active="yes"/>
<layer number="96" name="Values" color="7" fill="1" visible="yes" active="yes"/>
<layer number="97" name="Info" color="7" fill="1" visible="yes" active="yes"/>
<layer number="98" name="Guide" color="6" fill="1" visible="yes" active="yes"/>
</layers>
<library>
<description>STMicroelectronics Microcontrollers (MCU/MPU/SOC), LQFP-32(7x7). Pinout cross-checked by two models against the datasheet</description>
<packages>
<package name="LQFP-32_7x7mm_P0.8mm">
  <description>LQFP-32, 7 x 7 mm, 0.8 mm pitch</description>
  <smd name="1" x="-4.1750" y="2.8000" dx="1.5000" dy="0.5000" layer="1" roundness="50"/>
  <smd name="2" x="-4.1750" y="2.0000" dx="1.5000" dy="0.5000" layer="1" roundness="50"/>
  <smd name="3" x="-4.1750" y="1.2000" dx="1.5000" dy="0.5000" layer="1" roundness="50"/>
  <smd name="4" x="-4.1750" y="0.4000" dx="1.5000" dy="0.5000" layer="1" roundness="50"/>
  <smd name="5" x="-4.1750" y="-0.4000" dx="1.5000" dy="0.5000" layer="1" roundness="50"/>
  <smd name="6" x="-4.1750" y="-1.2000" dx="1.5000" dy="0.5000" layer="1" roundness="50"/>
  <smd name="7" x="-4.1750" y="-2.0000" dx="1.5000" dy="0.5000" layer="1" roundness="50"/>
  <smd name="8" x="-4.1750" y="-2.8000" dx="1.5000" dy="0.5000" layer="1" roundness="50"/>
  <smd name="9" x="-2.8000" y="-4.1750" dx="0.5000" dy="1.5000" layer="1" roundness="50"/>
  <smd name="10" x="-2.0000" y="-4.1750" dx="0.5000" dy="1.5000" layer="1" roundness="50"/>
  <smd name="11" x="-1.2000" y="-4.1750" dx="0.5000" dy="1.5000" layer="1" roundness="50"/>
  <smd name="12" x="-0.4000" y="-4.1750" dx="0.5000" dy="1.5000" layer="1" roundness="50"/>
  <smd name="13" x="0.4000" y="-4.1750" dx="0.5000" dy="1.5000" layer="1" roundness="50"/>
  <smd name="14" x="1.2000" y="-4.1750" dx="0.5000" dy="1.5000" layer="1" roundness="50"/>
  <smd name="15" x="2.0000" y="-4.1750" dx="0.5000" dy="1.5000" layer="1" roundness="50"/>
  <smd name="16" x="2.8000" y="-4.1750" dx="0.5000" dy="1.5000" layer="1" roundness="50"/>
  <smd name="17" x="4.1750" y="-2.8000" dx="1.5000" dy="0.5000" layer="1" roundness="50"/>
  <smd name="18" x="4.1750" y="-2.0000" dx="1.5000" dy="0.5000" layer="1" roundness="50"/>
  <smd name="19" x="4.1750" y="-1.2000" dx="1.5000" dy="0.5000" layer="1" roundness="50"/>
  <smd name="20" x="4.1750" y="-0.4000" dx="1.5000" dy="0.5000" layer="1" roundness="50"/>
  <smd name="21" x="4.1750" y="0.4000" dx="1.5000" dy="0.5000" layer="1" roundness="50"/>
  <smd name="22" x="4.1750" y="1.2000" dx="1.5000" dy="0.5000" layer="1" roundness="50"/>
  <smd name="23" x="4.1750" y="2.0000" dx="1.5000" dy="0.5000" layer="1" roundness="50"/>
  <smd name="24" x="4.1750" y="2.8000" dx="1.5000" dy="0.5000" layer="1" roundness="50"/>
  <smd name="25" x="2.8000" y="4.1750" dx="0.5000" dy="1.5000" layer="1" roundness="50"/>
  <smd name="26" x="2.0000" y="4.1750" dx="0.5000" dy="1.5000" layer="1" roundness="50"/>
  <smd name="27" x="1.2000" y="4.1750" dx="0.5000" dy="1.5000" layer="1" roundness="50"/>
  <smd name="28" x="0.4000" y="4.1750" dx="0.5000" dy="1.5000" layer="1" roundness="50"/>
  <smd name="29" x="-0.4000" y="4.1750" dx="0.5000" dy="1.5000" layer="1" roundness="50"/>
  <smd name="30" x="-1.2000" y="4.1750" dx="0.5000" dy="1.5000" layer="1" roundness="50"/>
  <smd name="31" x="-2.0000" y="4.1750" dx="0.5000" dy="1.5000" layer="1" roundness="50"/>
  <smd name="32" x="-2.8000" y="4.1750" dx="0.5000" dy="1.5000" layer="1" roundness="50"/>
  <polygon width="0.1200" layer="21">
    <vertex x="-4.2500" y="3.3200"/>
    <vertex x="-4.5900" y="3.7900"/>
    <vertex x="-3.9100" y="3.7900"/>
  </polygon>
  <polygon width="0.1000" layer="51">
    <vertex x="-2.5000" y="3.5000"/>
    <vertex x="3.5000" y="3.5000"/>
    <vertex x="3.5000" y="-3.5000"/>
    <vertex x="-3.5000" y="-3.5000"/>
    <vertex x="-3.5000" y="2.5000"/>
  </polygon>
  <wire x1="-3.6100" y1="3.6100" x2="-3.3100" y2="3.6100" width="0.1200" layer="21"/>
  <wire x1="-3.6100" y1="3.3100" x2="-3.6100" y2="3.6100" width="0.1200" layer="21"/>
  <wire x1="-3.6100" y1="-3.6100" x2="-3.6100" y2="-3.3100" width="0.1200" layer="21"/>
  <wire x1="-3.3100" y1="-3.6100" x2="-3.6100" y2="-3.6100" width="0.1200" layer="21"/>
  <wire x1="3.3100" y1="3.6100" x2="3.6100" y2="3.6100" width="0.1200" layer="21"/>
  <wire x1="3.6100" y1="3.6100" x2="3.6100" y2="3.3100" width="0.1200" layer="21"/>
  <wire x1="3.6100" y1="-3.3100" x2="3.6100" y2="-3.6100" width="0.1200" layer="21"/>
  <wire x1="3.6100" y1="-3.6100" x2="3.3100" y2="-3.6100" width="0.1200" layer="21"/>
  <text x="0" y="5.525" size="1.27" layer="25" align="bottom-center">&gt;NAME</text>
  <text x="0" y="-5.525" size="1.27" layer="27" align="top-center">&gt;VALUE</text>
</package>
</packages>
<symbols>
<symbol name="STM8L151K4T6">
  <description>STMicroelectronics Microcontrollers (MCU/MPU/SOC), LQFP-32(7x7). Pinout cross-checked by two models against the datasheet</description>
  <wire x1="-76.2" y1="20.32" x2="76.2" y2="20.32" width="0.254" layer="94"/>
  <wire x1="76.2" y1="20.32" x2="76.2" y2="-22.86" width="0.254" layer="94"/>
  <wire x1="76.2" y1="-22.86" x2="-76.2" y2="-22.86" width="0.254" layer="94"/>
  <wire x1="-76.2" y1="-22.86" x2="-76.2" y2="20.32" width="0.254" layer="94"/>
  <text x="0.0000" y="22.8600" size="1.27" layer="95" align="center">&gt;NAME</text>
  <text x="0.0000" y="-25.4000" size="1.27" layer="96" align="center">&gt;VALUE</text>
  <pin name="NRST/PA1" x="-81.28" y="17.78" length="middle" direction="io"/>
  <pin name="PA2/OSC_IN/_USART1_TX_/_SPI1_MISO" x="-81.28" y="15.24" length="middle" direction="io"/>
  <pin name="PA3/OSC_OUT/_USART1_RX_/_SPI1_MOSI" x="-81.28" y="12.7" length="middle" direction="io"/>
  <pin name="PA4/TIM2_BKIN/_TIM2_TRIG_/LCD_COM0/ADC1_IN2/COMP1_INP" x="-81.28" y="10.16" length="middle" direction="io"/>
  <pin name="PA5/TIM3_BKIN/_TIM3_TRIG_/LCD_COM1/ADC1_IN1/COMP1_INP" x="-81.28" y="7.62" length="middle" direction="io"/>
  <pin name="PA6/_ADC1_TRIG_/LCD_COM2/ADC1_IN0/COMP1_INP" x="-81.28" y="5.08" length="middle" direction="io"/>
  <pin name="VSS/VSSA/VREF-" x="-81.28" y="2.54" length="middle" direction="pwr"/>
  <pin name="VDD/VDDA/VREF+" x="-81.28" y="0" length="middle" direction="pwr"/>
  <pin name="PD0/TIM3_CH2/_ADC1_TRIG_/ADC1_IN22/COMP2_INP/COMP1_INP" x="-81.28" y="-2.54" length="middle" direction="io"/>
  <pin name="PD1/TIM1_CH3N/_TIM3_TRIG_/LCD_COM3/ADC1_IN21/COMP2_INP/COMP1_INP" x="-81.28" y="-5.08" length="middle" direction="io"/>
  <pin name="PD2/TIM1_CH1/LCD_SEG8/ADC1_IN20/COMP1_INP" x="-81.28" y="-7.62" length="middle" direction="io"/>
  <pin name="PD3/TIM1_TRIG/LCD_SEG9/ADC1_IN19/COMP1_INP" x="-81.28" y="-10.16" length="middle" direction="io"/>
  <pin name="PB0/TIM2_CH1/LCD_SEG10/ADC1_IN18/COMP1_INP" x="-81.28" y="-12.7" length="middle" direction="io"/>
  <pin name="PB1/TIM3_CH1/LCD_SEG11/ADC1_IN17/COMP1_INP" x="-81.28" y="-15.24" length="middle" direction="io"/>
  <pin name="PB2/TIM2_CH2/LCD_SEG12/ADC1_IN16/COMP1_INP" x="-81.28" y="-17.78" length="middle" direction="io"/>
  <pin name="PB3/_TIM2_TRIG_/TIM1_CH2N/LCD_SEG13/ADC1_IN15/COMP1_INP" x="-81.28" y="-20.32" length="middle" direction="io"/>
  <pin name="PA0/_USART1_CK_/SWIM/BEEP/IR_TIM" x="81.28" y="17.78" length="middle" direction="io" rot="R180"/>
  <pin name="PC6/OSC32_OUT/_SPI1_SCK_/_USART1_RX" x="81.28" y="15.24" length="middle" direction="io" rot="R180"/>
  <pin name="PC5/OSC32_IN/_SPI1_NSS_/_USART1_TX" x="81.28" y="12.7" length="middle" direction="io" rot="R180"/>
  <pin name="PC4/_USART1_CK_/I2C1_SMB/CCO/LCD_SEG24/ADC1_IN4/COMP2_INM/COMP1_INP" x="81.28" y="10.16" length="middle" direction="io" rot="R180"/>
  <pin name="PC3/_USART1_TX_/LCD_SEG23/ADC1_IN5/COMP1_INP/COMP2_INM" x="81.28" y="7.62" length="middle" direction="io" rot="R180"/>
  <pin name="PC2/_USART1_RX_/LCD_SEG22/ADC1_IN6/COMP1_INP/VREF_OUT" x="81.28" y="5.08" length="middle" direction="io" rot="R180"/>
  <pin name="PC1/I2C1_SCL" x="81.28" y="2.54" length="middle" direction="io" rot="R180"/>
  <pin name="PC0/I2C1_SDA" x="81.28" y="0" length="middle" direction="io" rot="R180"/>
  <pin name="PD7/TIM1_CH1N/LCD_SEG21/ADC1_IN7/RTC_ALARM/VREF_OUT/COMP1_INP" x="81.28" y="-2.54" length="middle" direction="io" rot="R180"/>
  <pin name="PD6/TIM1_BKIN/LCD_SEG20/ADC1_IN8/RTC_CALIB/VREF_OUT/COMP1_INP" x="81.28" y="-5.08" length="middle" direction="io" rot="R180"/>
  <pin name="PD5/TIM1_CH3/LCD_SEG19/ADC1_IN9/COMP1_INP" x="81.28" y="-7.62" length="middle" direction="io" rot="R180"/>
  <pin name="PD4/TIM1_CH2/LCD_SEG18/ADC1_IN10/COMP1_INP" x="81.28" y="-10.16" length="middle" direction="io" rot="R180"/>
  <pin name="PB7/_SPI1_MISO_/LCD_SEG17/ADC1_IN11/COMP1_INP" x="81.28" y="-12.7" length="middle" direction="io" rot="R180"/>
  <pin name="PB6/_SPI1_MOSI_/LCD_SEG16/ADC1_IN12/COMP1_INP/DAC_OUT" x="81.28" y="-15.24" length="middle" direction="io" rot="R180"/>
  <pin name="PB5/_SPI1_SCK_/LCD_SEG15/ADC1_IN13/DAC_OUT/COMP1_INP" x="81.28" y="-17.78" length="middle" direction="io" rot="R180"/>
  <pin name="PB4/_SPI1_NSS_/LCD_SEG14/ADC1_IN14/DAC_OUT/COMP1_INP" x="81.28" y="-20.32" length="middle" direction="io" rot="R180"/>
</symbol>
</symbols>
<devicesets>
<deviceset name="STM8L151K4T6" prefix="U">
  <description>STMicroelectronics Microcontrollers (MCU/MPU/SOC), LQFP-32(7x7). Pinout cross-checked by two models against the datasheet</description>
  <gates>
    <gate name="G$1" symbol="STM8L151K4T6" x="0" y="0"/>
  </gates>
  <devices>
    <device name="" package="LQFP-32_7x7mm_P0.8mm">
      <connects>
        <connect gate="G$1" pin="NRST/PA1" pad="1"/>
        <connect gate="G$1" pin="PA2/OSC_IN/_USART1_TX_/_SPI1_MISO" pad="2"/>
        <connect gate="G$1" pin="PA3/OSC_OUT/_USART1_RX_/_SPI1_MOSI" pad="3"/>
        <connect gate="G$1" pin="PA4/TIM2_BKIN/_TIM2_TRIG_/LCD_COM0/ADC1_IN2/COMP1_INP" pad="4"/>
        <connect gate="G$1" pin="PA5/TIM3_BKIN/_TIM3_TRIG_/LCD_COM1/ADC1_IN1/COMP1_INP" pad="5"/>
        <connect gate="G$1" pin="PA6/_ADC1_TRIG_/LCD_COM2/ADC1_IN0/COMP1_INP" pad="6"/>
        <connect gate="G$1" pin="VSS/VSSA/VREF-" pad="7"/>
        <connect gate="G$1" pin="VDD/VDDA/VREF+" pad="8"/>
        <connect gate="G$1" pin="PD0/TIM3_CH2/_ADC1_TRIG_/ADC1_IN22/COMP2_INP/COMP1_INP" pad="9"/>
        <connect gate="G$1" pin="PD1/TIM1_CH3N/_TIM3_TRIG_/LCD_COM3/ADC1_IN21/COMP2_INP/COMP1_INP" pad="10"/>
        <connect gate="G$1" pin="PD2/TIM1_CH1/LCD_SEG8/ADC1_IN20/COMP1_INP" pad="11"/>
        <connect gate="G$1" pin="PD3/TIM1_TRIG/LCD_SEG9/ADC1_IN19/COMP1_INP" pad="12"/>
        <connect gate="G$1" pin="PB0/TIM2_CH1/LCD_SEG10/ADC1_IN18/COMP1_INP" pad="13"/>
        <connect gate="G$1" pin="PB1/TIM3_CH1/LCD_SEG11/ADC1_IN17/COMP1_INP" pad="14"/>
        <connect gate="G$1" pin="PB2/TIM2_CH2/LCD_SEG12/ADC1_IN16/COMP1_INP" pad="15"/>
        <connect gate="G$1" pin="PB3/_TIM2_TRIG_/TIM1_CH2N/LCD_SEG13/ADC1_IN15/COMP1_INP" pad="16"/>
        <connect gate="G$1" pin="PA0/_USART1_CK_/SWIM/BEEP/IR_TIM" pad="32"/>
        <connect gate="G$1" pin="PC6/OSC32_OUT/_SPI1_SCK_/_USART1_RX" pad="31"/>
        <connect gate="G$1" pin="PC5/OSC32_IN/_SPI1_NSS_/_USART1_TX" pad="30"/>
        <connect gate="G$1" pin="PC4/_USART1_CK_/I2C1_SMB/CCO/LCD_SEG24/ADC1_IN4/COMP2_INM/COMP1_INP" pad="29"/>
        <connect gate="G$1" pin="PC3/_USART1_TX_/LCD_SEG23/ADC1_IN5/COMP1_INP/COMP2_INM" pad="28"/>
        <connect gate="G$1" pin="PC2/_USART1_RX_/LCD_SEG22/ADC1_IN6/COMP1_INP/VREF_OUT" pad="27"/>
        <connect gate="G$1" pin="PC1/I2C1_SCL" pad="26"/>
        <connect gate="G$1" pin="PC0/I2C1_SDA" pad="25"/>
        <connect gate="G$1" pin="PD7/TIM1_CH1N/LCD_SEG21/ADC1_IN7/RTC_ALARM/VREF_OUT/COMP1_INP" pad="24"/>
        <connect gate="G$1" pin="PD6/TIM1_BKIN/LCD_SEG20/ADC1_IN8/RTC_CALIB/VREF_OUT/COMP1_INP" pad="23"/>
        <connect gate="G$1" pin="PD5/TIM1_CH3/LCD_SEG19/ADC1_IN9/COMP1_INP" pad="22"/>
        <connect gate="G$1" pin="PD4/TIM1_CH2/LCD_SEG18/ADC1_IN10/COMP1_INP" pad="21"/>
        <connect gate="G$1" pin="PB7/_SPI1_MISO_/LCD_SEG17/ADC1_IN11/COMP1_INP" pad="20"/>
        <connect gate="G$1" pin="PB6/_SPI1_MOSI_/LCD_SEG16/ADC1_IN12/COMP1_INP/DAC_OUT" pad="19"/>
        <connect gate="G$1" pin="PB5/_SPI1_SCK_/LCD_SEG15/ADC1_IN13/DAC_OUT/COMP1_INP" pad="18"/>
        <connect gate="G$1" pin="PB4/_SPI1_NSS_/LCD_SEG14/ADC1_IN14/DAC_OUT/COMP1_INP" pad="17"/>
      </connects>
      <technologies>
        <technology name="">
          <attribute name="MPN" value="STM8L151K4T6" constant="no"/>
          <attribute name="MANUFACTURER" value="STMicroelectronics" constant="no"/>
          <attribute name="DATASHEET" value="https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8586173448548311040" constant="no"/>
          <attribute name="ADOM_WIKI" value="https://wiki.adom.inc/adom/stm8l151k4t6" constant="no"/>
          <attribute name="LCSC_PN" value="C18719" constant="no"/>
        </technology>
      </technologies>
    </device>
  </devices>
</deviceset>
</devicesets>
</library>
</drawing>
</eagle>