
Raven
agranlund/raven
Homemade MC68060 + DSP56303 Atari-compatible computer. Hardware, firmware, and software stack

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.
| Parameter | Conditions | As printed | Page |
|---|---|---|---|
| Operating temperature TA | min -40 · max 85 ℃ | 91 | |
| Storage temperature TS | min -55 · max 125 ℃ | 91 | |
| Internal operating supply voltage (VCC33 is connected to power, GND is connected to ground) VDD33 | min -0.4 · max 3.6 V | 91 | |
| External input supply voltage (VIN5 is connected to power, GND is connected to ground) VIN5 | min -0.4 · max 5.6 V | 91 | |
| Voltage on the input or output pins support 5V VIO5 | min -0.4 · max 5.5 V | 91 | |
| Voltage on the input or output pins not support 5V VIO3 | min -0.4 V | 92 | |
| Internal power voltage VDD33 | TA=25℃, VIN5=5V or 3.3V, VDD33=3.3V, Fsys=12MHz | min 2.85 · typ 3.3 · max 3.6 V | 92 |
| External input supply voltage VIN5 | External capacitor connected to VDD33 pin; TA=25℃, Fsys=12MHz | min 3.6 · typ 5 · max 5.5 V | 92 |
| External input supply voltage VIN5 | VDD33 pin shorted to VIN5 pin; TA=25℃, Fsys=12MHz | min 2.85 · typ 3.3 · max 3.6 V | 92 |
| Total operating current ICC | TA=25℃, VIN5=5V or 3.3V, VDD33=3.3V, Fsys=12MHz | min 4 · typ 8 · max 50 mA | 92 |
| Total sleep current ISLP | TA=25℃, VIN5=5V or 3.3V, VDD33=3.3V, Fsys=12MHz | typ 0.1 · max 0.2 mA | 92 |
| Input low voltage VIL | TA=25℃, VIN5=5V or 3.3V, VDD33=3.3V, Fsys=12MHz | min -0.4 · max 0.8 V | 92 |
| Input high voltage VIH | TA=25℃, VIN5=5V or 3.3V, VDD33=3.3V, Fsys=12MHz | min 2 V | 92 |
| Output low voltage VOL | IIL = 4mA; TA=25℃, VIN5=5V or 3.3V, VDD33=3.3V, Fsys=12MHz | max 0.4 V | 92 |
| The input current without pull-up resistor IIN | TA=25℃, VIN5=5V or 3.3V, VDD33=3.3V, Fsys=12MHz | min -5 · typ 0 · max 5 uA | 92 |
| The input current with pull-up resistor IUP | TA=25℃, VIN5=5V or 3.3V, VDD33=3.3V, Fsys=12MHz; pull-up to VDD33 | min 20 · typ 40 · max 80 uA | 92 |
| The input current with pull-down resistor IDN | TA=25℃, VIN5=5V or 3.3V, VDD33=3.3V, Fsys=12MHz | min -20 · typ -40 · max -80 uA | 92 |
| The input current with pull-up resistor from low to high IUPX | TA=25℃, VIN5=5V or 3.3V, VDD33=3.3V, Fsys=12MHz; pull-up to VDD33 | min 200 · typ 300 · max 500 uA | 92 |
| Power on reset threshold Vpot | TA=25℃, VIN5=5V or 3.3V, VDD33=3.3V, Fsys=12MHz | min 2.4 · typ 2.55 · max 2.7 V | 92 |
| External clock input frequency Fxt | TA=25℃, VIN5=5V or 3.3V, VDD33=3.3V, Fsys=12MHz | min 4 · typ 12 · max 20 MHz | 92 |
| Internal clock frequency Fosc | TA=25℃, VIN5=5V or 3.3V, VDD33=3.3V, Fsys=12MHz | min 11.82 · typ 12 · max 12.18 MHz | 92 |
| Frequency after PLL Fpll | TA=25℃, VIN5=5V or 3.3V, VDD33=3.3V, Fsys=12MHz | min 24 · typ 288 · max 350 MHz | 92 |
| USB sampling clock frequency for the USB host Fusb4x | TA=25℃, VIN5=5V or 3.3V, VDD33=3.3V, Fsys=12MHz | min 47.98 · typ 48 · max 48.02 MHz | 92 |
| USB sampling clock frequency for the USB device Fusb4x | TA=25℃, VIN5=5V or 3.3V, VDD33=3.3V, Fsys=12MHz | min 47.04 · typ 48 · max 48.96 MHz | 92 |
| System frequency (VDD33>=3V) Fsys | VDD33>=3V; TA=25℃, VIN5=5V or 3.3V | min 1 · typ 12 · max 56 MHz | 92 |
| System frequency (VDD33<3V) Fsys | VDD33<3V; TA=25℃, VIN5=5V or 3.3V | min 1 · typ 12 · max 50 MHz | 92 |
| Power on reset delay Tpor | TA=25℃, VIN5=5V or 3.3V, VDD33=3.3V, Fsys=12MHz | min 15 · typ 17 · max 20 mS | 92 |
| External input valid reset signal width Trst | TA=25℃, VIN5=5V or 3.3V, VDD33=3.3V, Fsys=12MHz | min 70 · typ 100 · max 200 nS | 92 |
| Thermal reset delay Trdl | TA=25℃, VIN5=5V or 3.3V, VDD33=3.3V, Fsys=12MHz | min 35 · typ 60 · max 100 uS | 92 |
| Automatically hang up time in USB host mode Tusp | TA=25℃, VIN5=5V or 3.3V, VDD33=3.3V, Fsys=12MHz | min 2 · typ 3 · max 4 mS | 92 |
| Automatically hang up time in USB device mode Tusp | TA=25℃, VIN5=5V or 3.3V, VDD33=3.3V, Fsys=12MHz | min 4 · typ 5 · max 6 mS | 92 |
| Time to wake up from sleep mode Twak | TA=25℃, VIN5=5V or 3.3V, VDD33=3.3V, Fsys=12MHz | min 1 · typ 40 · max 100 uS | 92 |
| Pin | Name | Type |
|---|---|---|
| 1 | P1.6/AIN6/MISO | Unspecified |
| 2 | P1.7/AIN7/SCK | Unspecified |
| 3 | P5.7/RST | Unspecified |
| 4 | P3.0/RXD | Unspecified |
| 5 | P4.5/PWM2_/A5 | Unspecified |
| 6 | P4.4/LED3/TNOW_/TXD1_/A4 | Unspecified |
| 7 | P3.1/TXD | Unspecified |
| 8 | P3.2/LED0/INT0 | Unspecified |
| 9 | P3.3/LED1/!A15/INT1 | Unspecified |
| 10 | P3.4/LEDC/XCS0/T0 | Unspecified |
| 11 | P3.5/DA6/T1 | Unspecified |
| 12 | P3.6/WR | Unspecified |
| 13 | P3.7/RD | Unspecified |
| 14 | P4.3/PWM1_/A3 | Unspecified |
| 15 | P4.2/PWM3_/CAP3_/A2 | Unspecified |
| 16 | P4.6/XI/SCS_ | Unspecified |
| 17 | P4.7/XO/SCK_ | Unspecified |
| 18 | GND/VSS | Unspecified |
| 19 | P4.1/A1 | Unspecified |
| 20 | P4.0/LED2/A0/RXD1_ | Unspecified |
| 21 | P2.0/A8 | Unspecified |
| 22 | P2.1/MOSI1/A9 | Unspecified |
| 23 | P2.2/MISO1/A10 | Unspecified |
| 24 | P2.3/SCK1/A11 | Unspecified |
| 25 | P2.4/PWM1/A12 | Unspecified |
| 26 | P2.5/TNOW/PWM2/A13/T2EX_/CAP2_ | Unspecified |
| 27 | P2.6/RXD1/A14 | Unspecified |
| 28 | P2.7/TXD1/DA7/A15 | Unspecified |
| 29 | P5.5/HP/!A15/XA | Unspecified |
| 30 | P5.4/HM/ALE/XB | Unspecified |
| 31 | P5.1/DP | Unspecified |
| 32 | P5.0/DM | Unspecified |
| 33 | P0.7/AD7/UDCD | Unspecified |
| 34 | P0.6/AD6/URI | Unspecified |
| 35 | P0.5/AD5/UDSR | Unspecified |
| 36 | P0.4/AD4/UCTS | Unspecified |
| 37 | P0.3/AD3/TXD_ | Unspecified |
| 38 | P0.2/AD2/RXD_ | Unspecified |
| 39 | P0.1/AD1/URTS | Unspecified |
| 40 | P0.0/AD0/UDTR | Unspecified |
| 41 | VIN5 | Unspecified |
| 42 | VDD33 | Unspecified |
| 43 | P1.0/AIN0/T2/CAP1 | Unspecified |
| 44 | P1.1/AIN1/T2EX/CAP2 | Unspecified |
| 45 | P1.2/AIN2/PWM3/CAP3 | Unspecified |
| 46 | P1.3/AIN3 | Unspecified |
| 47 | P1.4/AIN4/SCS | Unspecified |
| 48 | P1.5/AIN5/MOSI | Unspecified |

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

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.




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


<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><img src="https://pcbkit.io/embed/parts/wch/CH559L.jpg" alt="CH559L" width="1200" height="900">[](https://pcbkit.io/parts/wch/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.
LQFP-48(7x7), with 48 pins. Its footprint is drawn on this page.
WCH (Nanjing Qinheng Microelectronics) publishes it: the Datasheet link on this page opens it.
JLCPCB lists it as part C150548, with 1,799 in stock; the sellers' links on this page open their listings.
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.
9 boards in 7 repositories on GitHub; the most starred are listed on this page, with their KiCad files.