Loading files…
This is a fascinating, enhanced, and well-equipped 8-bit microcontroller, available at an incredibly low cost (around $1), designed and manufactured in China by Jiangsu Heng Qin Ltd. (WCH). For now, we will focus on the CH552G, which is based on the E8051 architecture. One of the most appealing features of this MCU is its USB port and a 24MHz internal oscillator, among other functionalities. Programming it requires a strong foundation in MCS-51/80C51. The manufacturer provides a package with a wide variety of source codes. There are different package options and versions of the MCU, such as the CH551, CH552, CH554, and CH559. The USB port, with its multiple functions, allows for easy program uploads, posing no risk as it is a native feature. In my personal opinion, this microcontroller is ideal for hobbyists working on simple projects or for those with a curious mindset.
A major difference of this microcontroller compared to other microcontrollers is that it does not require an additional device for programming; the USB port is sufficient. I believe that using a push button to access the bootloader for programming adds an extra level of security.
You can purchase the MCUs from the official store on AliExpress or at LCSC.
For example, an MCU from the AT89LP51 family offers fewer features and costs three times more compared to the CH55X family. Of course, the support community for Microchip is much larger and more established compared to WCH’s, which is just starting to grow. However, the key is having good official documentation and a solid architecture. With patience and perseverance, great things can be achieved.
Here are the most relevant specifications of the MCU. For more details, refer to the official documentation.
The pinout we are showing is basic, just to give you an idea. There are more functionalities available on the ports. Please refer to the datasheet for more detailed information.
[!IMPORTANT]
- The internal 24MHz clock is not precise but in the most cases is good, you can adjust it by software using a logic analyze, otherwise you will have to use an external one.
- The Code Flash (ROM) uses an iFlash™ process and is rated by the datasheet for about 200 reprogramming cycles at 5V — much less than typical flash MCUs. The 128-byte Data Flash is a separate region rated for about 10,000 erase/program cycles, with balanced wear recommended.
Use the following components to build the minimum circuit:
On the breadboard, it should look like this:
This repository contains a collection of example source codes written in C to get started. All the listed examples have been thoroughly tested to ensure they function correctly.
This is basic documentation to help you compile and upload firmware to the MCU, including the datasheet, relevant links, and much more.
No comments yet. Be the first to ask about this board.