WCH CH32V002 is an industrial-grade general-purpose 32-bit RISC-V microcontroller that is pin-to-pin compatible with the popular CH32V003 MCU with 4KB SRAM instead of 2KB, a wider input voltage range from 2V to 5V, and other improvements.
Earlier this month we wrote about the WCH CH32V006 RISC-V microcontroller that offers an upgrade to the CH32V003 with more I/Os, memory, and storage, requiring a new PCB layout. But now, the Chinese company has unveiled a pin-compatible alternative with the CH32V002 that adds more SRAM, uses the new V2C core with RV32EmC instruction set (also used in the CH32V006), offers a larger bootloader and configuration memories, upgrades the ADC to 12-bit, and adds support for 8-channel touch-key channel detection.
WCH CH32V002 specifications (highlights in bold show differences against the CH32V003):
- CPU – 32-bit “RISC-V2C” core up to 48 MHz using RV32EmC instruction set
- Memory – 4KB SRAM
- Storage – 16KB flash, 3328 Bytes bootloader, 256 Bytes non-volatile system configuration memory, 256 Bytes user-defined memory
- Peripherals
- Up to 18x GPIO with interrupt support
- 1x USART interface
- 1x I2C
- 1x SPI
- 12-bit ADC up to 8 channels
- 8-channel touch-key channel detection
- 1-Wire debug interface
- General purpose 7-channel DMA controller
- Timers
- 16-bit advanced timer
- 16-bit general-purpose timer
- 2x watchdog timers
- 32-bit system timer
- Misc
- 64-bit chip unique ID
- Built-in system clock monitoring (SCM) module
- Power on Reset (POR), programmable voltage detector
- Supply voltage – 2 to 5V
- Low power modes – Sleep, standby
- Packages – TSSOP20, QFN20, SOP16, SOP8, QFN12 (new)
The CH32V002 is offered in five packages including four which are pin-to-pin compatible with the CH32V003, and a new QFN12 package with eleven GPIOs. WCH has yet to publish a product page, but the datasheet is already available in English. Software tools such as MounRiver or GCC will be compatible, but the “M” standard extension for integer multiplication and division “m” (Zmmul) multiplication subset of the M extension may need an updated toolchain.
I was unable to find a CH32V002 development board, but it’s just a question of time before those become available along sub one-dollar CH32V003 boards. There’s also a new CH32V004 whose specifications are about the same as the CH32V002 but with 6KB and 32KB of flash instead. Only 20-pin packages are available for that model.
Thanks to David for the tip.
Jean-Luc started CNX Software in 2010 as a part-time endeavor, before quitting his job as a software engineering manager, and starting to write daily news, and reviews full time later in 2011.
Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress
Sorry to be pedantic but the new version of the RISC-V core is “RV32EmC” (lower case ‘m’, which is the ‘zmmul’ extension) – there is now hardware-multiply (with instructions for both low and high 32-bit results), but not hardware division.
Thanks for that. I thought it was a typo in the specs, so I changed “m” to “M”, as I did not know zmmul was shortened to “m” until now.
Cudos to you if you can understand the RISC-V spec. I tried to see what ‘m’ adds to the instruction set and slogged through a ton of very dense, poorly written documentation.
If you can provide links to specific information, that would be *wonderful*!
The English PDF datasheet for the new RISC-V core used is at:
https://www.wch-ic.com/downloads/QingKeV2_Processor_Manual_PDF.html
Section 1.1 talks about the instruction set having multiply-only (Zmmul).
I guess this is to be similar to the popular ARM Cortex-M0+ minimal core used in e.g. RP2040 chip. Hardware division must take up a relatively large amount of silicon so worthwhile skipping it and only offer hardware multiply.
There is also a CH32V007, as you can see in the CH32V00X Reference Manual:
https://www.wch.cn/downloads/CH32V00XRM_PDF.html
The datasheet for the 007/M007 had been available in Chinese, but it went missing.
https://www.cnx-software.com/2024/05/09/wch-ch32v006-risc-v-microcontroller-adds-more-i-os-memory-and-storage-compared-to-ch32v003/#comment-617482
This was confusing in the article, but the 006 is the only member with the TouchKey peripherial. The rest of the manuals are confusing on this point.
The English data sheets are out for the 002/4/5/6. But the RM is missing in English. The Chinese versions of all the datasheets and RM are available. Interestingly, the 007/M007 has gone entirely missing from the WCH site.
The new chips haven’t shown up on the family web page, either. No word from WCH on why.
Not sure where you got the specs from but the CH32V002 series has only 2Kb of RAM
From the datasheet.