Generated by kicad-footprint-generator · KiCad file format 20260206
HC32L166JCTA-LQ48
XHSC · Microcontrollers (MCU/MPU/SOC) · LQFP-48(7x7)
HC32L166JCTA-LQ48 from XHSC, in a LQFP-48(7x7). Pinout and pin descriptions extracted from the manufacturer datasheet (extract_pins, cross-checked by a second model); symbol, footprint, and 3D from KiCad-official CAD.
Pinout
| Pin | Name | Type | Function |
|---|---|---|---|
| 1 | VCAP | power_out | LDO core power supply output for internal circuit use only, requiring an external voltage stabilizing capacitor (4.7µF + 100nF in the typical application circuit). |
| 2 | PC13 | bidirectional | General-purpose bidirectional port PC13 with analog function LVD0 and digital alternates RTC_1HZ (PSEL 2) and TIM3_CH1B (PSEL 3). |
| 3 | PC14 | input | XTL oscillator input XTLI, shared with GPIO PC14, which has no digital alternate functions listed in the port reuse table. |
| 4 | PC15 | output | XTL oscillator output XTLO, shared with GPIO PC15, which has no digital alternate functions listed in the port reuse table. |
| 5 | PF00 | input | XTH oscillator input XTHI, shared with GPIO PF00, whose alternates are I2C0_SDA, CTRIM_ETRTOG and UART1_TXD. |
| 6 | PF01 | output | XTH oscillator output XTHO, shared with GPIO PF01, whose alternates are I2C0_SCL, TIM4_CHB and UART1_RXD. |
| 7 | RESETB | input | Reset pin RESETB, which the typical application circuit drives through a 10kΩ resistor with a 100nF capacitor. |
| 8 | AVSS | power_in | Analog ground pin for the analog circuits. |
| 9 | AVCC | power_in | Analog power supply, which must be the same voltage as DVCC within the 1.8-5.5V operating range. |
| 10 | PA00 | bidirectional | Bidirectional port PA00 with analog inputs AIN0, VC0_INP4, VC0_INN0, VC1_INP0, VC1_INN4 and SEG23, and digital alternates UART1_CTS, LPUART1_TXD, TIM0_ETR, VC0_OUT, TIM1_CHA, TIM3_ETR and TIM0_CHA. |
| 11 | PA01 | bidirectional | Bidirectional port PA01 with analog inputs AIN1, VC0_INP5, VC0_INN1, VC1_INP1, VC1_INN5 and SEG22, and digital alternates UART1_RTS, LPUART1_RXD, TIM0_CHB, TIM1_ETR, TIM1_CHB, HCLK_OUT and SPI1_MOSI. |
| 12 | PA02 | bidirectional | Bidirectional port PA02 with analog inputs AIN2, VC0_INP6, VC0_INN2, VC1_INP2 and SEG21, and digital alternates UART1_TXD, TIM0_CHA, VC1_OUT, TIM1_CHA, TIM2_CHA, PCLK_OUT and SPI1_MISO. |
| 13 | PA03 | bidirectional | Bidirectional port PA03 with analog inputs AIN3, VC0_INP7, VC0_INN3, VC1_INP3 and SEG20, and digital alternates UART1_RXD, TIM0_GATE, TIM1_CHB, TIM2_CHB, SPI1_CS, TIM3_CH1A and TIM5_CHA. |
| 14 | PA04 | bidirectional | Bidirectional port PA04 with analog inputs AIN4, VC0_INP8, VC0_INN4, VC1_INP4, DAC_OUT, OPA_OUT0 and SEG19, and digital alternates SPI0_CS, UART1_TXD, PCA_CH4, TIM2_ETR, TIM5_CHA, LVD_OUT and TIM3_CH2B. |
| 15 | PA05 | bidirectional | Bidirectional port PA05 with analog inputs AIN5, VC0_INP9, VC0_INN5, VC1_INP5, VC2_INP0, VC2_INN0, OPA_OUT1 and SEG18, and digital alternates SPI0_SCK, TIM0_ETR, PCA_ECI, TIM0_CHA, TIM5_CHB, XTL_OUT and XTH_OUT. |
| 16 | PA06 | bidirectional | Bidirectional port PA06 with analog inputs AIN6, VC0_INP10, VC0_INN6, OPA_OUT2 and SEG17, and digital alternates SPI0_MISO, PCA_CH0, TIM3_BK, TIM1_CHA, VC0_OUT, TIM3_GATE and LPUART0_CTS. |
| 17 | PA07 | bidirectional | Bidirectional port PA07 with analog inputs AIN7, VC0_INP11, VC0_INN7, OPA_OUT3 and SEG16, and digital alternates SPI0_MOSI, PCA_CH1, HCLK_OUT, TIM3_CH0B, TIM2_CHA, VC1_OUT and TIM4_CHB. |
| 18 | PB00 | bidirectional | Bidirectional port PB00 with analog inputs AIN8, VC1_INN6, OPA_INP and SEG13, and digital alternates PCA_CH2, TIM3_CH1B, LPUART0_TXD, TIM5_CHB, RCH_OUT, RCL_OUT and PLL_OUT. |
| 19 | PB01 | bidirectional | Bidirectional port PB01 with analog inputs AIN9/EXVREF, VC1_INP6, VC1_INN7, VC2_INP1, VC2_INN1 and SEG12, and digital alternates PCA_CH3, PCLK_OUT, TIM3_CH2B, TIM6_CHB, LPUART0_RTS, VC2_OUT and TCLK_OUT. |
| 20 | PB02 | bidirectional | Bidirectional port PB02 with analog inputs AIN16, VC1_INP7, VC1_INN8 and SEG11, and digital alternates LPTIM0_TOG, PCA_ECI, LPUART1_TXD, TIM4_CHA, TIM1_BK, TIM0_BK and TIM2_BK. |
| 21 | PB10 | bidirectional | Bidirectional port PB10 with analog inputs AIN17, VC1_INP8 and SEG10, and digital alternates I2C1_SCL, SPI1_SCK, TIM1_CHA, LPUART0_TXD, TIM3_CH1A, LPUART1_RTS and UART1_RTS. |
| 22 | PB11 | bidirectional | Bidirectional port PB11 with analog inputs AIN18, VC2_INP8, VC2_INN4 and SEG9, and digital alternates I2C1_SDA, TIM1_CHB, LPUART0_RXD, TIM2_GATE, TIM6_CHA, LPUART1_CTS and UART1_CTS. |
| 23 | DVSS | power_in | Digital ground pin for the digital circuits. |
| 24 | DVCC | power_in | Digital power supply, which must be the same voltage as AVCC within the 1.8-5.5V operating range, with a decoupling capacitor placed close to the pin. |
| 25 | PB12 | bidirectional | Bidirectional port PB12 with analog input AIN19, VC1_INP9 and SEG8, and digital alternates SPI1_CS, TIM3_BK, LPUART0_TXD, TIM0_BK, LPUART0_RTS and TIM6_CHA. |
| 26 | PB13 | bidirectional | Bidirectional port PB13 with analog input AIN20, VC1_INP10 and SEG7, and digital alternates SPI1_SCK, I2C1_SCL, TIM3_CH0B, LPUART0_CTS, TIM1_CHA, TIM1_GATE and TIM6_CHB. |
| 27 | PB14 | bidirectional | Bidirectional port PB14 with analog inputs AIN21, VC1_INP11, VC2_INP9, VC2_INN5 and SEG6, and digital alternates SPI1_MISO, I2C1_SDA, TIM3_CH1B, TIM0_CHA, RTC_1HZ, LPUART0_RTS and TIM1_BK. |
| 28 | PB15 | bidirectional | Bidirectional port PB15 with analog input AIN22 and SEG5, and digital alternates SPI1_MOSI, TIM3_CH2B, TIM0_CHB, TIM0_GATE and LPUART1_RXD. |
| 29 | PA08 | bidirectional | Bidirectional port PA08 with LCD segment SEG0, and digital alternates UART0_TXD, TIM3_CH0A, CTRIM_ETRTOG, TIM1_GATE, TIM4_CHA and TIM3_BK. |
| 30 | PA09 | bidirectional | Bidirectional port PA09 with LCD common output COM0, and digital alternates UART0_TXD, TIM3_CH1A, TIM0_BK, I2C0_SCL, HCLK_OUT and TIM5_CHA. |
| 31 | PA10 | bidirectional | Bidirectional port PA10 with LCD common output COM1, and digital alternates UART0_RXD, TIM3_CH2A, TIM2_BK, I2C0_SDA, TIM2_GATE, PCLK_OUT and TIM6_CHA. |
| 32 | PA11 | bidirectional | Bidirectional port PA11 with LCD common output COM2, and digital alternates UART0_CTS, TIM3_GATE, I2C1_SCL, VC0_OUT, SPI0_MISO and TIM4_CHB. |
| 33 | PA12 | bidirectional | Bidirectional port PA12 with LCD common output COM3, and digital alternates UART0_RTS, TIM3_ETR, I2C1_SDA, VC1_OUT, SPI0_MOSI and PCNT_S0. |
| 34 | PA13/SWDIO | bidirectional | Port PA13 that carries the SWD debug data signal SWDIO, with digital alternates IR_OUT, UART0_RXD, LVD_OUT, TIM3_ETR, RTC_1HZ, PCNT_S1 and VC2_OUT. |
| 35 | PF06 | bidirectional | Bidirectional port PF06 with digital alternates I2C1_SCL, LPUART1_CTS and UART0_CTS. |
| 36 | PF07 | bidirectional | Bidirectional port PF07 with digital alternates I2C1_SDA, LPUART1_RTS and UART0_RTS. |
| 37 | PA14/SWCLK | bidirectional | Port PA14 that carries the SWD debug clock signal SWCLK, with digital alternates UART1_TXD, UART0_TXD, TIM3_CH2A, LVD_OUT, RCH_OUT, RCL_OUT and PLL_OUT. |
| 38 | PA15 | bidirectional | Bidirectional port PA15 with digital alternates SPI0_CS, UART1_RXD, LPUART1_RTS, TIM0_ETR, TIM0_CHA and TIM3_CH1A. |
| 39 | PB03 | bidirectional | Bidirectional port PB03 with analog input VC1_INN9, LCD segment SEG35 and LCD voltage pin VLCDH, and digital alternates SPI0_SCK, TIM0_CHB, TIM1_GATE, TIM3_CH0A, LPTIM0_GATE, XTL_OUT and XTH_OUT. |
| 40 | PB04 | bidirectional | Bidirectional port PB04 with analog inputs VC0_INP12 and VC1_INP12, LCD segment SEG34 and LCD voltage pin VLCD3, and digital alternates SPI0_MISO, PCA_CH0, TIM2_BK, UART0_CTS, TIM2_GATE, TIM3_CH0B and LPTIM0_ETR. |
| 41 | PB05 | bidirectional | Bidirectional port PB05 with analog input VC0_INP13, LCD segment SEG33 and LCD voltage pin VLCD2, and digital alternates SPI0_MOSI, TIM1_BK, PCA_CH1, LPTIM0_GATE, PCNT_S0 and UART0_RTS. |
| 42 | PB06 | bidirectional | Bidirectional port PB06 with analog inputs VC0_INP14 and VC1_INP14, LCD segment SEG32 and LCD voltage pin VLCD1, and digital alternates I2C0_SCL, UART0_TXD, TIM1_CHB, TIM0_CHA, LPTIM0_ETR, TIM3_CH0A and LPTIM0_TOG. |
| 43 | PB07 | bidirectional | Bidirectional port PB07 with analog input VC1_INP15, LVD2 and LCD segment SEG31, and digital alternates I2C0_SDA, UART0_RXD, TIM2_CHB, LPUART1_CTS, TIM0_CHB, LPTIM0_TOGN and PCNT_S1. |
| 44 | BOOT0/PF11 | input | Boot mode pin BOOT0 (PF11): when high at reset the chip enters ISP programming mode, and when low at reset it runs user code from Flash with SWD programming, and it also carries LCD segment SEG30. |
| 45 | PB08 | bidirectional | Bidirectional port PB08 with LVD1 input and LCD segment SEG29, and digital alternates I2C0_SCL, TIM1_CHA, TIM2_CHA, TIM0_GATE, TIM3_CH2A and UART0_TXD. |
| 46 | PB09 | bidirectional | Bidirectional port PB09 with LCD segment SEG28, and digital alternates I2C0_SDA, IR_OUT, SPI1_CS, TIM2_CHA, TIM2_CHB and UART0_RXD. |
| 47 | DVSS | power_in | Digital ground pin for the digital circuits. |
| 48 | DVCC | power_in | Digital power supply, which must be the same voltage as AVCC within the 1.8-5.5V operating range. |
Key specifications
| Parameter | Value |
|---|---|
| Manufacturer | XHSC |
| Package | LQFP-48(7x7) |
| Category | Embedded Processors & Controllers |
| Pins | 48 |
Electrical characteristics
Limits as printed in the datasheet (page.json metadata.characteristics carries them as data).
| Parameter | Symbol | Min | Typ | Max | Unit | Conditions | Page |
|---|---|---|---|---|---|---|---|
| External main supply voltage (VCC-VSS, includes AVCC and DVCC) | VCC-VSS | -0.3 | 6 | V | 37 | ||
| Voltage difference between different power supply pins | /ΔVCCx/ | 50 | mV | 37 | |||
| Voltage difference between different ground pins | /VSSx-VSS/ | 50 | mV | 37 | |||
| Total supply current through DVCC/AVCC power cord | IVCC | 100 | mA | 38 | |||
| Total current through VSS ground wire | IVSS | 100 | mA | 38 | |||
| Output sink current on any I/O and control pin | IIO | 25 | mA | 38 | |||
| Output current on any I/O and control pin | IIO | -25 | mA | 38 | |||
| Injection current of RESETB pin | IINJ(PIN) | -5 | 5 | mA | 38 | ||
| Injection current of XTHI pin of XTH and XTLI pin of XTL | IINJ(PIN) | -5 | 5 | mA | 38 | ||
| Injection current of other pins | IINJ(PIN) | -5 | 5 | mA | 38 | ||
| Total injection current on all I/O and control pins | ΣIINJ(PIN) | -25 | 25 | mA | 38 | ||
| Storage temperature range | TSTG | -65 | 150 | ℃ | 38 | ||
| Maximum junction temperature | TJ | 105 | °C | 38 | |||
| Internal AHB clock frequency | fHCLK | 0 | 48 | MHz | 38 | ||
| Internal APB0 clock frequency | fPCLK0 | 0 | 48 | MHz | 38 | ||
| Internal APB1 clock frequency | fPCLK1 | 0 | 48 | MHz | 39 | ||
| Working voltage of digital part | DVCC | 1.8 | 5.5 | V | 39 | ||
| Analog part working voltage | AVCC | 1.8 | 5.5 | V | Must be the same as DVCC(2) | 39 | |
| Ambient temperature | TA | -40 | 85 | °C | Maximum power consumption | 39 | |
| Ambient temperature | TA | -40 | 105 | °C | Low power consumption(4) | 39 | |
| Junction temperature range | TJ | -40 | 105 | °C | 39 | ||
| External capacitor value (VCAP) | CEXT | 2.2 | 10 | μF | 39 | ||
| ESR of external capacitance (VCAP) | ESR | 100 | mΩ | 39 | |||
| VCC rising rate | tVcc_r | 0 | 5 | V/μs | 40 | ||
| VCC falling rate | tVcc_f | 0 | 5 | V/μs | 40 | ||
| POR release voltage (power-on process) | VPOR | 1.49 | 1.65 | 1.75 | V | 40 | |
| BOR detection voltage (power-down process) | VBOR | 1.45 | 1.5 | 1.55 | V | 40 | |
| Internal 2.5V reference voltage | VREF25 | 2.475 | 2.5 | 2.525 | V | Room temperature 25°C 3.3V | 42 |
| Internal 2.5V reference voltage | VREF25 | 2.455 | 2.5 | 2.545 | V | -40 |
42 |
| Internal 1.5V reference voltage | VREF15 | 1.485 | 1.5 | 1.515 | V | Room temperature 25°C 3.3V | 42 |
| Internal 1.5V reference voltage | VREF15 | 1.473 | 1.5 | 1.527 | V | -40 |
42 |
| Internal 2.5V/1.5V reference temperature coefficient | TCoeff | 120 | ppm/°C | -40~85℃ | 42 | ||
| LVD detection threshold | Vlevel | 1.7 | 1.8 | 1.9 | V | LVD_CR.VTDS=0b0000 | 41 |
| LVD detection threshold | Vlevel | 1.8 | 1.9 | 2 | V | LVD_CR.VTDS=0b0001 | 41 |
| LVD detection threshold | Vlevel | 1.9 | 2 | 2.1 | V | LVD_CR.VTDS=0b0010 | 41 |
| LVD detection threshold | Vlevel | 2 | 2.1 | 2.2 | V | LVD_CR.VTDS=0b0011 | 41 |
| LVD detection threshold | Vlevel | 2.1 | 2.2 | 2.3 | V | LVD_CR.VTDS=0b0100 | 41 |
| LVD detection threshold | Vlevel | 2.2 | 2.3 | 2.4 | V | LVD_CR.VTDS=0b0101 | 41 |
| LVD detection threshold | Vlevel | 2.3 | 2.4 | 2.55 | V | LVD_CR.VTDS=0b0110 | 41 |
| LVD detection threshold | Vlevel | 2.35 | 2.5 | 2.65 | V | LVD_CR.VTDS=0b0111 | 41 |
| LVD detection threshold | Vlevel | 2.45 | 2.6 | 2.75 | V | LVD_CR.VTDS=0b1000 | 41 |
| LVD detection threshold | Vlevel | 2.55 | 2.7 | 2.85 | V | LVD_CR.VTDS=0b1001 | 41 |
| LVD detection threshold | Vlevel | 2.65 | 2.8 | 2.95 | V | LVD_CR.VTDS=0b1010 | 41 |
| LVD detection threshold | Vlevel | 2.75 | 2.9 | 3.05 | V | LVD_CR.VTDS=0b1011 | 41 |
| LVD detection threshold | Vlevel | 2.85 | 3 | 3.15 | V | LVD_CR.VTDS=0b1100 | 41 |
| LVD detection threshold | Vlevel | 2.95 | 3.1 | 3.25 | V | LVD_CR.VTDS=0b1101 | 41 |
| LVD detection threshold | Vlevel | 3.05 | 3.2 | 3.35 | V | LVD_CR.VTDS=0b1110 | 41 |
| LVD detection threshold | Vlevel | 3.15 | 3.3 | 3.45 | V | LVD_CR.VTDS=0b1111 | 41 |
| RC48M oscillator accuracy | Dev48 | -2 | 2 | % | VCC=1.8 |
52 | |
| RC48M oscillator accuracy | Dev48 | -1.5 | 1.5 | % | VCC=1.8 |
52 | |
| RCH oscillator accuracy | Dev | -4.5 | 3 | % | VCC=1.8 |
53 | |
| RCL oscillator accuracy | Dev | -5 | 3 | % | VCC=1.8 |
53 | |
| RC10K oscillator accuracy | Dev | -50 | 50 | % | VCC=1.8 |
54 | |
| External XTH crystal oscillation frequency | FCLK | 8 | 32 | MHz | 48 | ||
| Differential non-linearity (ADC) | DNL | -1 | 1.8 | LSB | VREF+=AVCC=3.3V, TA=25℃, fS=500ksps | 59 | |
| Integral non-linearity (ADC) | INL | -3.3 | 3.3 | LSB | 59 | ||
| IDD (DeepSleep), NO CLK | IDD (DeepSleep) | 0.8 | 10.8 | μA | NO CLK, all peripherals clock OFF, VCAP=1.5V, VCC=1.8~5.5V, TA=-40-85℃ | 45 | |
| IDD (Run mode), RC48M 48M Flash Wait=1 | IDD (Run mode) | 6022.2 | 7450 | μA | All peripherals clock ON, Run while(1) in Flash, VCAP=1.5V, VCC=1.8~5.5V, TA=-40-85℃, RC48M clock source, 48M Flash Wait=1 | 44 | |
| Thermal resistance junction-ambient theta-JA, LQFP48 7mm x 7mm / 0.5mm pitch (tolerance) | θJA | -10 | 10 | % | 85 | ||
| Thermal resistance junction-ambient theta-JA, LQFP48 7mm x 7mm / 0.5mm pitch | θJA | 75 | ℃/W | 85 |
CAD (KiCad official)
- Symbol:
HC32L166JCTA-LQ48 - Footprint:
Package_QFP:LQFP-48_7x7mm_P0.5mm - 3D model: LQFP-48(7x7) (KiCad packages3D, STEP)
- 3D model files:
hc32l166jcta-lq48-etched.step/hc32l166jcta-lq48-etched.glbcarry the MPN laser-etched on the die in a toggleableAdom.LaserEtchgroup (Fusion-ready);hc32l166jcta-lq48.step/hc32l166jcta-lq48.glbare the bare package body.
Provenance
Data extracted from the manufacturer datasheet, not a distributor listing:
- Datasheet: XHSC datasheet (87 pp, sha256
d67758bfcc5bc229, retrieved 2026-11-05, tier: lcsc) - Extractor: parts-factory
2.0.0/extract_pins 0.3, primaryclaude-haiku-5-5(text), consensusclaude-sonnet-5-5(agreed), guards: pin_guards 0.1: passed. Pins are checked against the footprint pad set and their cited datasheet pages before publish. - CAD: KiCad official libraries (CC-BY-SA 4.0).