WCH CH592

WCH Logo

WCH CH592 Series RISC-V MCU Instruction Manual

Models: CH592X, CH592F, CH591D

1. Acabatview

The CH592 is a sophisticated 32-bit RISC microcontroller designed for a wide range of embedded applications. It features integrated Bluetooth® Low Energy (BLE) 5.4 communication, a full-speed USB host and device controller, and a segment LCD driver module. This MCU also includes essential peripherals such as SPI, four UARTs, twelve ADCs, and a touch-key detection module, providing rich resources for diverse projects.

CH592 Microcontroller Overview
Acabatview of the CH592 series, highlighting 32-bit RISC-V Core, BLE 5.4, and Segment LCD capabilities.

2. Característiques

  • Processador: Qingke RISC-V4C 32-bit RISC processor.
  • Conjunt d’instruccions: Supports RV32IMAC instruction set and self-expanding instructions.
  • Interrupcions: Fast programmable interrupt controller with hardware interrupt stack.
  • Comunicació sense fils: Integrated 2.4GHz RF transceiver, baseband, and link control.
  • Bluetooth: Complies with Bluetooth Low Energy 5.4 specifications, supporting 2Mbps and 1Mbps data rates.
  • Rendiment de RF: Receiving sensitivity of -95dBm, programmable +4.5dBm transmission power.
  • Programari: Optimized protocol stack and application layer API provided.
  • Sensors: Sensor de temperatura integrat.
  • Rellotge en temps real: Built-in RTC, supporting timing and trigger modes.
  • USB: Integrated USB 2.0 full-speed transceiver, supporting full/low speed host and device modes.
  • Convertidor d'analògic a digital (ADC): 12 external analog signal channels and 2 internal signal channels.
  • Controlador de pantalla: Segment LCD driver supporting 80 dots (20*4) LCD panels.
  • Perifèrics: 4 sets of UART, 12 sets of PWM, 1 SPI, and 1 IIC.
  • GPIOs: 24 General Purpose Input/Output pins, with 4 supporting 5V signal input.
  • Font d'alimentació: Supports a minimum of 1.7V power supply.
  • Seguretat: AES-128 encryption and decryption, unique chip ID.

3. Especificacions

3.1 Valoracions màximes absolutes

Absolute Maximum Ratings Table
Table: Absolute Maximum Ratings for CH592 series microcontrollers.

3.2 Característiques elèctriques

Taula de característiques elèctriques
Table: Detailed Electrical Characteristics for CH592 series microcontrollers.

3.3 Informació del paquet

The CH592 series is available in various Quad Flat No-lead (QFN) packages, each with specific dimensions and pin counts.

Package Information Overview
paquetMida corporalLead pitchDescripcióInformació de comanda
QFN324*4 mm0.4 mmQuad no-lead 32-pinCH592X
QFN284*4 mm0.4 mmQuad no-lead 28-pinCH592F
QFN203*3 mm0.4 mmQuad no-lead 20-pinCH591D

CH592X (QFN32) Package Dimensions

QFN32 Package Dimensions
Diagram: Top, Bottom, and Side views with dimensions for the QFN32 package (CH592X).

CH592F (QFN28) Package Dimensions

QFN28 Package Dimensions
Diagram: Top, Bottom, and Side views with dimensions for the QFN28 package (CH592F).

CH591D (QFN20) Package Dimensions

QFN20 Package Dimensions
Diagram: Top, Bottom, and Side views with dimensions for the QFN20 package (CH591D).

3.4 Pinout Diagrams

CH592X Pinout

CH592X Pinout Diagram
Diagram: Pin assignments for the CH592X microcontroller.

CH592F Pinout

CH592F Pinout Diagram
Diagram: Pin assignments for the CH592F microcontroller.

CH591D Pinout

CH591D Pinout Diagram
Diagram: Pin assignments for the CH591D microcontroller.

3.5 Functional Comparison

The table below provides a comparison of key features across the CH592 series models.

Functional Comparison Table
Table: Comparison of CodeFlash, RAM, RTC, Timers, Peripherals (PWM, UART, SPI, I2C, BLE, ADC, Touch-key, USB), and Segment LCD capabilities for CH592X, CH592F, and CH591D.

4. Aplicacions

The CH592 series microcontrollers are versatile and can be integrated into various electronic designs. Below are example application circuits for the CH592X and CH592F models, illustrating typical connections for power, USB, display, and other peripherals.

4.1 CH592X Application Circuit

CH592X Application Circuit Diagram
Diagram: Example application circuit for CH592X, showing power supply, USB Type-C, touch key, LCD, UART1, and SWD connections.

4.2 CH592F Application Circuit

CH592F Application Circuit Diagram
Diagram: Example application circuit for CH592F, detailing power supply, USB Type-C, and header connections.

5. Configuració

Setting up the CH592 series MCU involves hardware integration and software development. This section provides general guidelines.

5.1 Integració de maquinari

  1. Font d'alimentació: Connect the VDD33 pin to a stable power source within the specified voltage range (1.7V to 4.2V). Ensure proper decoupling capacitors are used near the power pins.
  2. Posada a terra: Connect all GND pins to a common ground plane to minimize noise.
  3. Font del rellotge: The MCU typically requires an external crystal oscillator for stable operation. Refer to the datasheet for recommended crystal values and connection diagrams.
  4. Interfície de programació: Connect the appropriate pins (e.g., SWD, UART) to a compatible programmer/debugger for flashing firmware.
  5. Perifèrics: Connect external components (e.g., sensors, LCD, USB devices) to the respective GPIOs and peripheral interfaces as per your application design and the pinout diagrams.
  6. Antena de RF: For BLE functionality, ensure a properly designed 2.4GHz antenna is connected to the ANT pin.

5.2 Software Development Environment

WCH provides development tools and resources for programming the CH592 series. It is recommended to use the official SDK and IDE for optimal compatibility and performance.

  • Download and install the WCH-provided development environment (e.g., MounRiver Studio).
  • Obtain the CH592 series SDK and example projects from the official WCH weblloc.
  • Familiarize yourself with the provided API and documentation for BLE, USB, LCD, and other peripherals.

6. Instruccions de funcionament

Operating the CH592 MCU primarily involves programming it with your custom firmware. Once programmed, the MCU will execute the embedded application.

  1. Desenvolupament de firmware: Write your application code using the WCH SDK and C/C++ programming language. This includes configuring peripherals, implementing communication protocols (BLE, USB, UART, SPI, I2C), and defining application logic.
  2. Compilation: Compile your source code into an executable binary file (e.g., .hex, .bin) using the provided toolchain within the development environment.
  3. Parpellejant: Use a compatible programmer/debugger (e.g., WCH-Link) to flash the compiled firmware onto the CH592 MCU via the programming interface (e.g., SWD).
  4. Encès: After successful flashing, power on the MCU. The embedded application will start executing automatically.
  5. Interacció: Interact with the MCU through its configured interfaces, such as sending/receiving data via BLE, USB, or UART, or observing output on the Segment LCD.

7. Manteniment

Microcontrollers generally require minimal physical maintenance once integrated into a system. However, software and environmental considerations are important.

  • Condicions ambientals: Ensure the MCU operates within its specified ambient temperature range (-40°C to 85°C) and avoid excessive humidity or corrosive environments.
  • Estabilitat de potència: Provide a clean and stable power supply to prevent unexpected behavior or damage.
  • Actualitzacions de firmware: Regularly check the WCH official website for firmware updates, bug fixes, or new features for the CH592 series.
  • Protecció ESD: Handle the MCU with proper Electrostatic Discharge (ESD) precautions to prevent damage to sensitive internal components.
  • Inspecció física: Periodically inspect the PCB and connections for any signs of damage, corrosion, or loose contacts, especially in harsh environments.

8. Solució De Problemes

If you encounter issues with your CH592 MCU, consider the following troubleshooting steps:

  • No Power/Boot-up Failure:
    • Comproveu la font d'alimentació voltage i corrent.
    • Check all power and ground connections for continuity.
    • Ensure the crystal oscillator is correctly connected and functioning.
  • Programming/Flashing Issues:
    • Confirm the programmer/debugger is correctly connected to the MCU's programming interface.
    • Check driver installation for the programmer/debugger.
    • Ensure the correct MCU model is selected in the development environment.
    • Try a different USB port or cable for the programmer.
  • Mal funcionament perifèric:
    • Double-check wiring and connections to the peripheral.
    • Review your code for correct peripheral initialization and configuration.
    • Consult the datasheet for specific peripheral register settings and timing requirements.
  • BLE Connectivity Problems:
    • Ensure the antenna is properly connected and matched.
    • Comproveu si hi ha interferències d'altres dispositius de 2.4 GHz.
    • Verify BLE stack initialization and advertising parameters in your firmware.
  • Unexpected Behavior/Crashes:
    • Use a debugger to step through your code and identify the point of failure.
    • Check for stack overflows or memory access violations.
    • Ensure all interrupts are handled correctly.

9. Consells d'usuari

To maximize your experience with the CH592 series microcontrollers, consider the following tips:

  • Comença amb Ex.amples: Begin by exploring the demo projects provided in the WCH SDK. These examples demonstrate basic peripheral usage and can serve as a foundation for your own applications.
  • Refer to Datasheet: The official datasheet is your primary resource for detailed technical specifications, register descriptions, and electrical characteristics. Always consult it for precise information.
  • Suport comunitari: Engage with online forums or communities dedicated to RISC-V or WCH microcontrollers. Other developers may have encountered similar issues and can offer solutions or insights.
  • Modular Code: Develop your firmware in a modular fashion, separating different functionalities into distinct files or modules. This improves readability, maintainability, and reusability.
  • Version Control: Use a version control system (e.g., Git) to manage your code. This allows you to track changes, revert to previous versions, and collaborate effectively.

10. Documentation & Support

For the most up-to-date and detailed information, please refer to the official WCH resources:

Documents relacionats - CH592

Preview Manual d'usuari de WCH-Link: Guia completa de les eines de depuració de WCH
Aquest manual d'usuari proporciona instruccions i especificacions detallades per a la sèrie d'eines de depuració i descàrrega WCH-Link, incloent-hi WCH-Link, WCH-LinkE i WCH-DAPLink. Cobreix la introducció del mòdul, el canvi de mode, les configuracions del port sèrie, les comparacions de funcions, les connexions de pins, els procediments de descàrrega i depuració mitjançant Keil i MounRiver Studio, els mètodes d'actualització del firmware i la instal·lació del controlador.
Preview QingKe V2 Microprocessor Manual
Technical manual detailing the QingKe V2 series 32-bit RISC-V MCU microprocessor, covering its architecture, features, instruction set, interrupt handling, low-power modes, and debugging capabilities.
Preview WCH QingKe V3 Microprocessor Manual: RISC-V Architecture and Features
Detailed technical manual for the WCH QingKe V3 series microprocessors (V3A, V3B, V3C). Explores the RISC-V architecture, instruction set extensions (RV32IMAC, RV32IMCB, XW), features like HPE and VTF, exception handling, memory protection, and debug capabilities.
Preview WCH Product Selection Manual: Communication Interface ICs and MCUs
Explore the comprehensive product selection manual from WCH (WinChipHead), detailing a wide range of Communication Interface ICs and Microcontrollers (MCUs) including RISC-V and E8051 core-based solutions. Discover products for USB, Bluetooth, and Ethernet applications.
Preview Fitxa tècnica del xip CH342 USB a ports sèrie duals
Fitxa tècnica completa del WCH CH342, un xip convertidor USB a UART dual versàtil. Aquest document detalla les seves característiques, configuracions de pins, característiques elèctriques, gestió d'energia i diversos circuits d'aplicació per a la comunicació sèrie TTL, RS232 i RS485.
Preview WCH Product Selection Manual: Communication Interface ICs and MCUs
Comprehensive product selection manual from WCH (WinChipHead) detailing their range of communication interface ICs and microcontrollers (MCUs), featuring RISC-V and Cortex-M cores, USB, Bluetooth, Ethernet, and PD/Type-C solutions.