Skip to the content
PCBKitNew board
CH559L on a board, in 3D

CH559L

WCH (Nanjing Qinheng Microelectronics)

10bit 3.3V~5V 45 51 Family 56MHz 63KB FLASH LQFP-48(7x7) Microcontrollers (MCU/MPU/SOC) ROHS

Extended
Category
Microcontrollers (MCU, MPU, SOC)
Package
LQFP-48(7x7)
Pins
48

Overview

The CH559L is a microcontroller made by WCH (Nanjing Qinheng Microelectronics) in a LQFP-48(7x7) package with 48 pins. 10bit 3.3V~5V 45 51 Family 56MHz 63KB FLASH LQFP-48(7x7) Microcontrollers (MCU/MPU/SOC) ROHS.

PCBKit's library has its KiCad symbol (EasyEDA_Cloud:CH559L, from EasyEDA) and its footprint (Package_QFP:LQFP-48_7x7mm_P0.5mm, from KiCad's library), ready for a KiCad board. 1,799 are in stock at JLCPCB (part C150548). 9 open-source boards in 7 repositories on GitHub use it.

Symbol

P1.6/AIN6/MISO1P1.7/AIN7/SCK2P5.7/RST3P3.0/RXD4P4.5/PWM2_/A55P4.4/LED3/TNOW_/TXD1_/A46P3.1/TXD7P3.2/LED0/INT08P3.3/LED1/!A15/INT19P3.4/LEDC/XCS0/T010P3.5/DA6/T111P3.6/WR12P3.7/RD13P4.3/PWM1_/A314P4.2/PWM3_/CAP3_/A215P4.6/XI/SCS_16P4.7/XO/SCK_17GND/VSS18P4.1/A119P4.0/LED2/A0/RXD1_20P2.0/A821P2.1/MOSI1/A922P2.2/MISO1/A1023P2.3/SCK1/A1124P2.4/PWM1/A1225P2.5/TNOW/PWM2/A13/T2EX_/CAP2_26P2.6/RXD1/A1427P2.7/TXD1/DA7/A1528P5.5/HP/!A15/XA29P5.4/HM/ALE/XB30P5.1/DP31P5.0/DM32P0.7/AD7/UDCD33P0.6/AD6/URI34P0.5/AD5/UDSR35P0.4/AD4/UCTS36P0.3/AD3/TXD_37P0.2/AD2/RXD_38P0.1/AD1/URTS39P0.0/AD0/UDTR40VIN541VDD3342P1.0/AIN0/T2/CAP143P1.1/AIN1/T2EX/CAP244P1.2/AIN2/PWM3/CAP345P1.3/AIN346P1.4/AIN4/SCS47P1.5/AIN5/MOSI48
EasyEDA_Cloud:CH559LFrom EasyEDA

Footprint

Package_QFP:LQFP-48_7x7mm_P0.5mmFrom KiCad's library

From the datasheet

11
Supply, least
2.85 V · VDD33, minimum operating voltage · p. 92
Supply, most
3.6 V · VDD33, maximum operating voltage · p. 92
Supply, least
3.6 V · VIN5, minimum with external capacitor on VDD33 · p. 92
Supply, most
5.5 V · VIN5, maximum with external capacitor on VDD33 · p. 92
Supply, absolute maximum
3.6 V · VDD33, absolute maximum · p. 91
Supply, absolute maximum
5.6 V · VIN5, absolute maximum · p. 91
Works from
-40 °C · Operating temperature, minimum · p. 91
Works up to
85 °C · Operating temperature, maximum · p. 91
Takes working
8 mA · Total operating current, typical at Fsys=12MHz · p. 92
Takes at most
50 mA · Total operating current, maximum · p. 92
Takes asleep
100 µA · Total sleep current, typical · p. 92

What it is and has

15
Core
Enhanced E8051, compatible with MCS51 instruction set · p. 1
System clock
Up to 56MHz · p. 1
Flash memory
64KB Flash-ROM; 100K writing cycles · p. 1
iRAM
256 bytes · p. 1
xRAM
6KB · p. 1
External SRAM expansion
Up to 32KB · p. 1
Timers/PWM
4 · p. 1
UART
2 · p. 1
SPI
2 · p. 1
USB
Dual port Root-HUB; USB-Host and USB-Device modes · p. 1
USB speeds
Full speed 12Mbps and low speed 1.5Mbps · p. 1
ADC channels
8 · p. 4
ADC resolution
Selectable 10 or 11 bits · p. 72
Interrupt sources
Up to 14 · p. 26
Package
LQFP-48, 7*7mm, 0.5mm lead pitch · p. 3

Around it

2
cap 0.1uF
between VIN5 and GND; External decoupling capacitor. · p. 3
cap 3.3uF
between VDD33 and GND; External decoupling required when supply voltage is greater than 3.6V. · p. 3

Specifications

32
ParameterConditionsAs printedPage
Operating temperature TAmin -40 · max 85 ℃91
Storage temperature TSmin -55 · max 125 ℃91
Internal operating supply voltage (VCC33 is connected to power, GND is connected to ground) VDD33min -0.4 · max 3.6 V91
External input supply voltage (VIN5 is connected to power, GND is connected to ground) VIN5min -0.4 · max 5.6 V91
Voltage on the input or output pins support 5V VIO5min -0.4 · max 5.5 V91
Voltage on the input or output pins not support 5V VIO3min -0.4 V92
Internal power voltage VDD33TA=25℃, VIN5=5V or 3.3V, VDD33=3.3V, Fsys=12MHzmin 2.85 · typ 3.3 · max 3.6 V92
External input supply voltage VIN5External capacitor connected to VDD33 pin; TA=25℃, Fsys=12MHzmin 3.6 · typ 5 · max 5.5 V92
External input supply voltage VIN5VDD33 pin shorted to VIN5 pin; TA=25℃, Fsys=12MHzmin 2.85 · typ 3.3 · max 3.6 V92
Total operating current ICCTA=25℃, VIN5=5V or 3.3V, VDD33=3.3V, Fsys=12MHzmin 4 · typ 8 · max 50 mA92
Total sleep current ISLPTA=25℃, VIN5=5V or 3.3V, VDD33=3.3V, Fsys=12MHztyp 0.1 · max 0.2 mA92
Input low voltage VILTA=25℃, VIN5=5V or 3.3V, VDD33=3.3V, Fsys=12MHzmin -0.4 · max 0.8 V92
Input high voltage VIHTA=25℃, VIN5=5V or 3.3V, VDD33=3.3V, Fsys=12MHzmin 2 V92
Output low voltage VOLIIL = 4mA; TA=25℃, VIN5=5V or 3.3V, VDD33=3.3V, Fsys=12MHzmax 0.4 V92
The input current without pull-up resistor IINTA=25℃, VIN5=5V or 3.3V, VDD33=3.3V, Fsys=12MHzmin -5 · typ 0 · max 5 uA92
The input current with pull-up resistor IUPTA=25℃, VIN5=5V or 3.3V, VDD33=3.3V, Fsys=12MHz; pull-up to VDD33min 20 · typ 40 · max 80 uA92
The input current with pull-down resistor IDNTA=25℃, VIN5=5V or 3.3V, VDD33=3.3V, Fsys=12MHzmin -20 · typ -40 · max -80 uA92
The input current with pull-up resistor from low to high IUPXTA=25℃, VIN5=5V or 3.3V, VDD33=3.3V, Fsys=12MHz; pull-up to VDD33min 200 · typ 300 · max 500 uA92
Power on reset threshold VpotTA=25℃, VIN5=5V or 3.3V, VDD33=3.3V, Fsys=12MHzmin 2.4 · typ 2.55 · max 2.7 V92
External clock input frequency FxtTA=25℃, VIN5=5V or 3.3V, VDD33=3.3V, Fsys=12MHzmin 4 · typ 12 · max 20 MHz92
Internal clock frequency FoscTA=25℃, VIN5=5V or 3.3V, VDD33=3.3V, Fsys=12MHzmin 11.82 · typ 12 · max 12.18 MHz92
Frequency after PLL FpllTA=25℃, VIN5=5V or 3.3V, VDD33=3.3V, Fsys=12MHzmin 24 · typ 288 · max 350 MHz92
USB sampling clock frequency for the USB host Fusb4xTA=25℃, VIN5=5V or 3.3V, VDD33=3.3V, Fsys=12MHzmin 47.98 · typ 48 · max 48.02 MHz92
USB sampling clock frequency for the USB device Fusb4xTA=25℃, VIN5=5V or 3.3V, VDD33=3.3V, Fsys=12MHzmin 47.04 · typ 48 · max 48.96 MHz92
System frequency (VDD33>=3V) FsysVDD33>=3V; TA=25℃, VIN5=5V or 3.3Vmin 1 · typ 12 · max 56 MHz92
System frequency (VDD33<3V) FsysVDD33<3V; TA=25℃, VIN5=5V or 3.3Vmin 1 · typ 12 · max 50 MHz92
Power on reset delay TporTA=25℃, VIN5=5V or 3.3V, VDD33=3.3V, Fsys=12MHzmin 15 · typ 17 · max 20 mS92
External input valid reset signal width TrstTA=25℃, VIN5=5V or 3.3V, VDD33=3.3V, Fsys=12MHzmin 70 · typ 100 · max 200 nS92
Thermal reset delay TrdlTA=25℃, VIN5=5V or 3.3V, VDD33=3.3V, Fsys=12MHzmin 35 · typ 60 · max 100 uS92
Automatically hang up time in USB host mode TuspTA=25℃, VIN5=5V or 3.3V, VDD33=3.3V, Fsys=12MHzmin 2 · typ 3 · max 4 mS92
Automatically hang up time in USB device mode TuspTA=25℃, VIN5=5V or 3.3V, VDD33=3.3V, Fsys=12MHzmin 4 · typ 5 · max 6 mS92
Time to wake up from sleep mode TwakTA=25℃, VIN5=5V or 3.3V, VDD33=3.3V, Fsys=12MHzmin 1 · typ 40 · max 100 uS92

Pins, by the datasheet

48
41 VIN5
5V input of internal 5V-to-3.3V LDO; requires an external 0.1uF decoupling capacitor. · p. 3
42 VDD33
Internal regulator output and internal 3.3V supply input; connect to VIN5 for supply below 3.6V; requires 3.3uF decoupling for supply above 3.6V. · p. 3
18 GND
Ground; alternate name VSS. · p. 3
40 P0.0
P0 bidirectional port, open-drain by default with optional pull-up; AD0 external bus data/address or UDTR UART1 modem output. · p. 3
39 P0.1
P0 bidirectional port, open-drain by default with optional pull-up; AD1 external bus data/address or URTS UART1 modem output. · p. 3
38 P0.2
P0 bidirectional port, open-drain by default with optional pull-up; AD2 external bus data/address or mapped RXD. · p. 3
37 P0.3
P0 bidirectional port, open-drain by default with optional pull-up; AD3 external bus data/address or mapped TXD. · p. 3
36 P0.4
P0 bidirectional port, open-drain by default with optional pull-up; AD4 external bus data/address or UCTS UART1 modem input. · p. 3
35 P0.5
P0 bidirectional port, open-drain by default with optional pull-up; AD5 external bus data/address or UDSR UART1 modem input. · p. 3
34 P0.6
P0 bidirectional port, open-drain by default with optional pull-up; AD6 external bus data/address or URI UART1 modem input. · p. 3
33 P0.7
P0 bidirectional port, open-drain by default with optional pull-up; AD7 external bus data/address or UDCD UART1 modem input. · p. 3
43 P1.0
AIN0 ADC input; T2 timer/counter2 external count input or clock output; CAP1 capture input. · p. 4
44 P1.1
AIN1 ADC input; T2EX timer/counter2 reload/capture input; CAP2 capture input. · p. 4
45 P1.2
AIN2 ADC input; PWM3 timer/counter3 PWM output or CAP3 capture input. · p. 4
46 P1.3
AIN3 ADC analog signal input. · p. 4
47 P1.4
AIN4 ADC input or SCS SPI0 chip select input. · p. 4
48 P1.5
AIN5 ADC input or MOSI SPI0 master output/slave input. · p. 4
1 P1.6
AIN6 ADC input or MISO SPI0 master input/slave output. · p. 4
2 P1.7
AIN7 ADC input or SCK SPI0 serial clock. · p. 4
21 P2.0
A8 higher address output when accessing xbus. · p. 4
22 P2.1
MOSI1 SPI1 master output or A9 external bus address output. · p. 4
23 P2.2
MISO1 SPI1 master input or A10 external bus address output. · p. 4
24 P2.3
SCK1 SPI1 serial clock output or A11 external bus address output. · p. 4
25 P2.4
PWM1 output or A12 external bus address output. · p. 4
26 P2.5
TNOW UART1 transmitting indicator, PWM2 output, A13 address output, or mapped T2EX/CAP2. · p. 4
27 P2.6
RXD1 UART1 serial data input or A14 address output. · p. 4
28 P2.7
TXD1 UART1 serial data output, DA7 direct-address bus output or A15 address output. · p. 4
4 P3.0
RXD UART0 serial data input. · p. 4
7 P3.1
TXD UART0 serial data output. · p. 4
8 P3.2
LED0 data output or INT0 external interrupt input. · p. 4
9 P3.3
LED1 data output, inverted A15 bus address output for chip selection, or INT1 external interrupt input. · p. 4
10 P3.4
LEDC clock output, XCS0 external bus chip select for 4000h–7FFFh, or T0 timer input. · p. 4
11 P3.5
DA6 direct-address bus output or T1 timer input. · p. 4
12 P3.6
WR external bus write signal. · p. 4
13 P3.7
RD external bus read signal. · p. 4
20 P4.0
LED2 data output, A0 direct-address bus output or mapped RXD1. · p. 4
19 P4.1
A1 direct-address bus output. · p. 4
15 P4.2
Mapped PWM3 output/CAP3 input or A2 direct-address bus output. · p. 4
14 P4.3
Mapped PWM1 output or A3 direct-address bus output. · p. 4
6 P4.4
LED3 data output, mapped TNOW/TXD1, or A4 direct-address bus output. · p. 4
5 P4.5/PWM2_/A5
P4.5 with PWM2_ and A5 alternate functions shown in package diagram. · p. 3
16 P4.6/XI/SCS_
GPIO when external oscillator is disabled; XI oscillator connection or direct external clock input. · p. 3
17 P4.7/XO/SCK_
GPIO when external oscillator is disabled; XO oscillator connection; leave suspended for direct external clock input. · p. 3
3 P5.7/RST
P5.7 with RST alternate function shown in package diagram. · p. 3
32 P5.0/DM
P5.0 with USB DM alternate function. · p. 3
31 P5.1/DP
P5.1 with USB DP alternate function. · p. 3
30 P5.4/HM/ALE/XB
P5.4 with HM, ALE and XB alternate functions shown in package diagram. · p. 3
29 P5.5/HP/!A15/XA
P5.5 with HP, !A15 and XA alternate functions shown in package diagram. · p. 3

Ordering codes, by the datasheet

2
CH559L
LQFP-48 · Standard LQFP 48-pin patch; 7*7mm body; 0.5mm lead pitch · p. 3
CH559T
SSOP-20 · Shrink small outline 20-pin package; 5.30mm body; 0.65mm lead pitch · p. 3

Parameters

14
ADC (Bit)
10bit
CPU Core
51 Series
CPU Maximum Speed
56MHz
Core Size
8 Bit
Current - Supply
8mA
Current - Supply(Max)
50mA
Number of I/O
45
Operating Temperature
-40℃~+85℃
Oscillator Type
Built-in+External
Program Memory Type
FLASH
Program Storage Size
63KB
Standby Current
100uA
Voltage - Supply
2.85V~5.5V
Voltage - Supply(Absolute Max)
3.6V

Order codes

1

Pinout

48
The pins of the CH559L
PinNameType
1P1.6/AIN6/MISOUnspecified
2P1.7/AIN7/SCKUnspecified
3P5.7/RSTUnspecified
4P3.0/RXDUnspecified
5P4.5/PWM2_/A5Unspecified
6P4.4/LED3/TNOW_/TXD1_/A4Unspecified
7P3.1/TXDUnspecified
8P3.2/LED0/INT0Unspecified
9P3.3/LED1/!A15/INT1Unspecified
10P3.4/LEDC/XCS0/T0Unspecified
11P3.5/DA6/T1Unspecified
12P3.6/WRUnspecified
13P3.7/RDUnspecified
14P4.3/PWM1_/A3Unspecified
15P4.2/PWM3_/CAP3_/A2Unspecified
16P4.6/XI/SCS_Unspecified
17P4.7/XO/SCK_Unspecified
18GND/VSSUnspecified
19P4.1/A1Unspecified
20P4.0/LED2/A0/RXD1_Unspecified
21P2.0/A8Unspecified
22P2.1/MOSI1/A9Unspecified
23P2.2/MISO1/A10Unspecified
24P2.3/SCK1/A11Unspecified
25P2.4/PWM1/A12Unspecified
26P2.5/TNOW/PWM2/A13/T2EX_/CAP2_Unspecified
27P2.6/RXD1/A14Unspecified
28P2.7/TXD1/DA7/A15Unspecified
29P5.5/HP/!A15/XAUnspecified
30P5.4/HM/ALE/XBUnspecified
31P5.1/DPUnspecified
32P5.0/DMUnspecified
33P0.7/AD7/UDCDUnspecified
34P0.6/AD6/URIUnspecified
35P0.5/AD5/UDSRUnspecified
36P0.4/AD4/UCTSUnspecified
37P0.3/AD3/TXD_Unspecified
38P0.2/AD2/RXD_Unspecified
39P0.1/AD1/URTSUnspecified
40P0.0/AD0/UDTRUnspecified
41VIN5Unspecified
42VDD33Unspecified
43P1.0/AIN0/T2/CAP1Unspecified
44P1.1/AIN1/T2EX/CAP2Unspecified
45P1.2/AIN2/PWM3/CAP3Unspecified
46P1.3/AIN3Unspecified
47P1.4/AIN4/SCSUnspecified
48P1.5/AIN5/MOSIUnspecified

Open-source boards using it

All 9
  • 6 layers243.8 × 243.8 mmRaven, the printed circuit board in 3D

    Raven

    agranlund/raven

    Homemade MC68060 + DSP56303 Atari-compatible computer. Hardware, firmware, and software stack

    331 parts87
  • 2 layers28.3 × 17.8 mmHIDman mini, the printed circuit board in 3D

    HIDman mini

    serisman/HIDman-mini

    USB keyboard/mouse for PS/2 (or AT, Serial) computers. This is the miniature hardware version compatible with the https://github.com/rasteri/HIDman firmware.

    26 parts32GPL-3.0
  • 2 layers283 × 100 mm0xLM, the printed circuit board in 3D

    0xLM

    llmerlos/0xLM

    PICCTRL 0xLM - 6x3+3 Split Keyboard with onboard CH559

    100 parts17CERN-OHL-P-2.0
  • 2 layers50 × 79 mmUSBHostRS232, the printed circuit board in 3D

    USBHostRS232

    romi2002/RS232USBHost

    54 parts
  • 2 layers30.5 × 31.8 mmMoonphase, the printed circuit board in 3D

    Moonphase

    toyoshim/Moonphase

    10 parts
  • 4 layers35.6 × 39.4 mmCkbd, the printed circuit board in 3D

    Ckbd

    agranlund/raven

    Homemade MC68060 + DSP56303 Atari-compatible computer. Hardware, firmware, and software stack

    19 parts87
  • 4 layers59.9 × 19.9 mmCH559-MASS, the printed circuit board in 3D

    CH559-MASS

    zOnlyKroks/pcb-consortium

    29 partsCC0-1.0

Show this part on your page

A live frame, for any web page
<iframe src="https://pcbkit.io/embed/parts/wch/CH559L" title="CH559L in PCBKit" width="100%" height="480" style="border:0;border-radius:12px" allow="fullscreen" loading="lazy"></iframe>
A picture
<img src="https://pcbkit.io/embed/parts/wch/CH559L.jpg" alt="CH559L" width="1200" height="900">
A picture that opens the part, for a README
[![CH559L](https://pcbkit.io/embed/parts/wch/CH559L.jpg?size=s)](https://pcbkit.io/parts/wch/CH559L)

Questions

Is there a KiCad symbol and footprint for the CH559L?

Yes. The symbol is EasyEDA_Cloud:CH559L and the footprint Package_QFP:LQFP-48_7x7mm_P0.5mm, both drawn on this page. PCBKit places them on a board for you when you design with it.

What package is the CH559L?

LQFP-48(7x7), with 48 pins. Its footprint is drawn on this page.

Where is the CH559L datasheet?

WCH (Nanjing Qinheng Microelectronics) publishes it: the Datasheet link on this page opens it.

Where can I order the CH559L?

JLCPCB lists it as part C150548, with 1,799 in stock; the sellers' links on this page open their listings.

What can replace the CH559L?

Parts like it in the library: the STM32F103C8T6 by STMicroelectronics, the STM32G070CBT6 by STMicroelectronics, the STM32G030C8T6 by STMicroelectronics and the GD32F303CCT6 by GigaDevice. Check their datasheets: a part that fits the footprint may still differ in its ratings.

Which open-source boards use the CH559L?

9 boards in 7 repositories on GitHub; the most starred are listed on this page, with their KiCad files.

Parts like it

8