Electronics > Microcontrollers

New low-end CH32V microcontrollers from WCH

(1/3) > >>

Seems there are new CH32V microcontroller models from WCH. English datasheets for them have recently been published. No English reference manuals yet, though. Although I hear they are producing a single combined reference manual for all CH32V00x MCUs.


No idea about availability. I looked at WCH's official AliExpress store, but something must be wrong or being changed, as at time of writing there are no MCU products listed there at all. ???

The '002 and '004 are pin-compatible with the existing '003, but differ in the following ways:

CH32V003CH32V002CH32V004CPU core:QingKe V2AQingKe V2CQingKe V2CInstruction set:RV32ECRV32EmCRV32EmCSRAM:2 kB4 kB6 kBFlash:16 kB16 kB32 kBBootloader:1920 B3328 B3328 BUser NV storage:64 B256 B256 BVDD range:3.3-5V2-5V2-5VADC:10-bit12-bit12-bitOther peripherals:Op-amp & comparator8-ch touch controller-
From what I understand, the 'm' in the V2C CPU core's oddly-named "RV32EmC" instruction set stands for 'multiplication', but is not full 'M' extension support. That is, it is supposedly Zmmul - multiplication without division support. I am wondering what compiler support is currently like for that - hopefully it is just a case of passing -march=rv32ec_zicsr_zmmul to GCC. I'm assuming, otherwise, existing code for '003 will just run as-is without re-compilation (presuming it's not trying to use missing or changed peripherals, that is).

The increased power supply voltage range is handy, as it'll be possible to run the new chips straight from a lithium-ion battery.

The '004 seems to essentially be a '003 but with more RAM and flash.

For the new ADC, it also says that it now has 3 internal channels versus the previous two (Vref and Vcal). I am intrigued about what the extra third channel is - perhaps Vdd, or maybe even a temperature sensor? The latter would be very useful. I could probably try and find out from the Chinese language reference manual (which I believe is currently available), but I can't be bothered to go to that effort right now. :P Edit: It says right in the datasheet: "the OPA internal output channel is connected to the IN9 input channel". Vref is IN8 and Vcal IN10. Yeah, very useful for a chip without op-amp... ::)

Haven't investigated the '006 in any detail yet; it has 62 kB flash and 8 kB RAM, same 12-bit ADC, no touch controller, but retains the op-amp/comparator of the '003.

Interesting family.
The 006 includes a 005 32k/6k variant, that comes down to QFN12 (2x2p0.4mm)
The 006 shows QFN32 but no TQFP32 ?

The 004 comes in only TSSOP20/QFN20 so is upgrade to 003.
The 002 (16k/4k) also comes in QFN12 and SO16N and SO8

Often dropped in the low end parts is a crystal oscillator, but I see these all have Xtal support, and even the QFN12 and SO8 pin out the crystal.
That opens up many logic replacement simple timing chain uses.

They appear to not have any 32.768kHz crystal support  ? 
Maybe they decide it is not a super low power usage part ?


RISC-V GCC has supported -march=rv32im -mno-div since at least 2018. But, yes, now there's an official extension for it.

It has always been legal to claim to support the M extension by, say, implementing mul in hardware but trap end emulate div/rem, but of course performance is better if the compiler calls the software div/rem routine explicitly.

As far as very cheap MCUs for small tasks, these are interesting. The new parts of the series have a bit more RAM and, most of all, an extended voltage range. I don't know if they have lower power consumption too.

As to hardware division, frankly for such small MCUs, that's rarely something that will be missing.

Arm C-M0+ also has multiply but not divide -- though Arm gives chipmakers an option of a 1-cycle (limiting clock speed) or 32-cycle (only 2x faster than an A32[1] software routine) multiplier.

[1] yes I'm aware Cortex-M doesn't implement A32


[0] Message Index

[#] Next page

There was an error while thanking
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod