Author Topic: WCH $0.10 USD RISC-V MCU  (Read 46558 times)

tim_ and 1 Guest are viewing this topic.

Online tim_

  • Regular Contributor
  • *
  • Posts: 240
  • Country: de
Re: WCH $0.10 USD RISC-V MCU
« Reply #150 on: January 15, 2023, 08:37:15 am »

Problem is the STM8S is a wider vcc part, so the STM32C has no hope to kill any 5V uses !!


Do you still see that many use cases for 5V outside automotive? Anything powered by a battery will be 3.3V or lower. There is also not much else that would be only available in 5V, but not in 3.3V. Ok, if you directly want to drive white LEDs, 3.3V is maybe somewhat close.

What I find more annoying is that the lower limit is 2V, which degrades low power performance. (Ok, we have STM32L for that...)
 

Offline josuah

  • Regular Contributor
  • *
  • Posts: 119
  • Country: fr
    • josuah.net
Re: WCH $0.10 USD RISC-V MCU
« Reply #151 on: January 15, 2023, 10:19:27 am »
Do you still see that many use cases for 5V outside automotive? Anything powered by a battery will be 3.3V or lower. There is also not much else that would be only available in 5V, but not in 3.3V. Ok, if you directly want to drive white LEDs, 3.3V is maybe somewhat close.

USB powered devices? Even if they lack USB data connection, I sometimes see a Type-C connector as power plug for all sort of devices that are not computer peripheral.
 

Offline GromBeestje

  • Frequent Contributor
  • **
  • Posts: 282
  • Country: nl
Re: WCH $0.10 USD RISC-V MCU
« Reply #152 on: January 15, 2023, 07:06:29 pm »
USB powered devices? Even if they lack USB data connection, I sometimes see a Type-C connector as power plug for all sort of devices that are not computer peripheral.

I'd say *only* if they lack a USB data connection, as USB's I/O voltage is at 3.3 Volt.
 

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 14892
  • Country: fr
Re: WCH $0.10 USD RISC-V MCU
« Reply #153 on: January 15, 2023, 07:41:04 pm »
Do you still see that many use cases for 5V outside automotive? Anything powered by a battery will be 3.3V or lower. There is also not much else that would be only available in 5V, but not in 3.3V. Ok, if you directly want to drive white LEDs, 3.3V is maybe somewhat close.

USB powered devices? Even if they lack USB data connection, I sometimes see a Type-C connector as power plug for all sort of devices that are not computer peripheral.

So because USB provides a 5V supply you need to use 5V logic?

According to https://en.wikipedia.org/wiki/USB#Power (and backed by experience), VBUS may be as low as 4.4V in some situations (and that's not counting cables), so many strictly 5V parts may actually not function properly if directly powered by VBUS. One exception would be those ATMEGA MCUs, which, while many people take them as "5V devices", actually operate on a pretty wide range of 2.7V to 5.5V (at least if you restrict the clock to 8MHz), so VBUS should not be a problem as long as you don't use any other part that would require a tighter tolerance for the 5V, and as long as you don't use VBUS as any kind of reference voltage either.

 

Offline DavidAlfa

  • Super Contributor
  • ***
  • Posts: 6081
  • Country: es
Re: WCH $0.10 USD RISC-V MCU
« Reply #154 on: January 15, 2023, 07:46:05 pm »
Hell, let's get back to 15V logic then!
From my point of view, the 5V argument seems a bit silly.
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Online PCB.Wiz

  • Super Contributor
  • ***
  • Posts: 1670
  • Country: au
Re: WCH $0.10 USD RISC-V MCU
« Reply #155 on: January 15, 2023, 09:31:05 pm »
Problem is the STM8S is a wider vcc part, so the STM32C has no hope to kill any 5V uses !!

Do you still see that many use cases for 5V outside automotive?
It is not me making all those new wide Vcc parts, it is the semiconductor suppliers, and they must know the targets.
Also note that CMOS LOGIC highest volume parts, are the wide Vcc 1.8~5.5V 74AHCxxx etc
Like CMOS logic, small MCUs are now commodity parts, and buyers and distributors want flexibility.

Atmel tried releasing a 3v3 only AVR and that is now relegated to a niche part, (ie it flopped) and their latest AVR's released are wide Vcc ones.

Anything powered by a battery will be 3.3V or lower.
? There are many 3.7~4.2V lithium battery packs

There is also not much else that would be only available in 5V, but not in 3.3V.
Ok, if you directly want to drive white LEDs, 3.3V is maybe somewhat close.
Exactly, a 3v3 part simply lacks the headroom to drive White/Blue high threshold LEDs, as well as the common Serial RGB leds.
It relegates them to a niche use, they are not general purpose use parts.

For larger MCU's, > 48 pins and >> 100MHz and  > 500k Flash, then 3v3 (and multiple power voltages) are more common, and makes sense thermally.
- but low pin count, bottom end, commodity MCUs - nah.

What I find more annoying is that the lower limit is 2V, which degrades low power performance. (Ok, we have STM32L for that...)
Yup, see how you now have to pick from many families....
« Last Edit: January 15, 2023, 09:40:10 pm by PCB.Wiz »
 
The following users thanked this post: willmore

Offline ralphd

  • Frequent Contributor
  • **
  • Posts: 445
  • Country: ca
    • Nerd Ralph
Re: WCH $0.10 USD RISC-V MCU
« Reply #156 on: January 15, 2023, 11:32:25 pm »
STM just released their new low-cost STM32C MCU series. For reference, it seems that the die size of the STM32C011D4 is 2.4mm². You can read this directly from the size of the WLCSP package. The device has 32kb of flash, so I assume that the 16kb STM32C011J4 device could be around 2.xmm², very comparable to the CH32V003. We have to take into account that they most likely use slightly different technologies. The STM32C is in 90nm, I beliebve the CH32V003 to be 130nm. Nevertheless, they seem to be quite comparable in area and hence cost.

A few months ago Digitimes had an article about TSMC wafer prices, and pegged 90nm at $2000.  Not sure if that was 200 or 300mm, but I'll assume the worst and say 200.  Smaller manufacturers will be cheaper, probably around $1600 now.  That puts the cost of a 2mm^2 chip at around 10-11c.  I'd guess 130nm wafers are around $1000-1200, putting the cost of a 2mm^2 chip at about 7c.
Unthinking respect for authority is the greatest enemy of truth. Einstein
 

Offline josuah

  • Regular Contributor
  • *
  • Posts: 119
  • Country: fr
    • josuah.net
Re: WCH $0.10 USD RISC-V MCU
« Reply #157 on: January 16, 2023, 12:56:08 am »
I'd say *only* if they lack a USB data connection, as USB's I/O voltage is at 3.3 Volt.

So because USB provides a 5V supply you need to use 5V logic?

I figured my mistake too late, I misunderstood (or maybe it was implicit) that it was referring to the I/O.
It looks like, implicitly, "it does 5V" refers to I/O whereas "it can live off 5V" revers to power supply, and "it can get 5V" might mean 5V-tolerant I/O or something like that.
I'll get used to it. :)
 
The following users thanked this post: PCB.Wiz

Offline JPortici

  • Super Contributor
  • ***
  • Posts: 3483
  • Country: it
Re: WCH $0.10 USD RISC-V MCU
« Reply #158 on: January 16, 2023, 06:45:46 am »
There is also not much else that would be only available in 5V, but not in 3.3V.
Ok, if you directly want to drive white LEDs, 3.3V is maybe somewhat close.
Exactly, a 3v3 part simply lacks the headroom to drive White/Blue high threshold LEDs, as well as the common Serial RGB leds.
It relegates them to a niche use, they are not general purpose use parts.

Also direct drive of higher voltage mosfets! once you pick VDS > 100V it's really difficult do find mosfets that wil switch reliably with 3V3 at the gate. I wanted to migrate a project to a newer "better" (bigger, more pins) mcu but i had no board space nor BOM margin for all the then required mosfet drivers
 
The following users thanked this post: PCB.Wiz

Online tim_

  • Regular Contributor
  • *
  • Posts: 240
  • Country: de
Re: WCH $0.10 USD RISC-V MCU
« Reply #159 on: January 16, 2023, 08:47:13 am »
A few months ago Digitimes had an article about TSMC wafer prices, and pegged 90nm at $2000.  Not sure if that was 200 or 300mm, but I'll assume the worst and say 200.  Smaller manufacturers will be cheaper, probably around $1600 now.  That puts the cost of a 2mm^2 chip at around 10-11c.  I'd guess 130nm wafers are around $1000-1200, putting the cost of a 2mm^2 chip at about 7c.

These numbers are off. 90nm is 300mm only, 130nm is almost always 300mm.

You also need to take into account that the actual wafer cost depends on the number of process features being used in a specific product. To reduce product cost, it is often possible to use simplified processes with reduced mask coutn to reduce wafer cost. For example, small digital designs may need less interconnection layers. Design without demanding analog or power do not need as many different front end devices.
« Last Edit: January 16, 2023, 09:11:47 am by tim_ »
 
The following users thanked this post: PCB.Wiz

Offline brucehoult

  • Super Contributor
  • ***
  • Posts: 4218
  • Country: nz
Re: WCH $0.10 USD RISC-V MCU
« Reply #160 on: January 16, 2023, 10:16:55 pm »
Plus, at these die sizes costs are being dominated by cutting up the wafer, packaging, and testing.

The area is also getting dominated by the I/O pads, so even though the active circuit will be smaller (and cheaper) at 90 nm than at 130 nm, the total area may not change much if at all -- this is the main reason it can be just as cheap to make a 32 bit microcontroller as an 8 bit one.
 
The following users thanked this post: willmore

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 14892
  • Country: fr
Re: WCH $0.10 USD RISC-V MCU
« Reply #161 on: January 16, 2023, 11:08:00 pm »
Plus, at these die sizes costs are being dominated by cutting up the wafer, packaging, and testing.

The area is also getting dominated by the I/O pads, so even though the active circuit will be smaller (and cheaper) at 90 nm than at 130 nm, the total area may not change much if at all -- this is the main reason it can be just as cheap to make a 32 bit microcontroller as an 8 bit one.

Yes, something we have pointed out quite often. Apart from MCUs which natively (meaning, on the die itself, and not just as a package variant with most GPIOs unconnected) have a very small number of GPIOs, they are usually pad-limited. The exception will come from the amount of internal flash/RAM rather than the core itself, but small, low-cost MCUs usually have a very small amount of internal memory, so that's not a factor either.
 

Offline brucehoult

  • Super Contributor
  • ***
  • Posts: 4218
  • Country: nz
Re: WCH $0.10 USD RISC-V MCU
« Reply #162 on: January 17, 2023, 12:39:07 am »
 

Online tim_

  • Regular Contributor
  • *
  • Posts: 240
  • Country: de
Re: WCH $0.10 USD RISC-V MCU
« Reply #163 on: January 17, 2023, 07:33:40 am »
Plus, at these die sizes costs are being dominated by cutting up the wafer, packaging, and testing.

The area is also getting dominated by the I/O pads, so even though the active circuit will be smaller (and cheaper) at 90 nm than at 130 nm, the total area may not change much if at all -- this is the main reason it can be just as cheap to make a 32 bit microcontroller as an 8 bit one.

The dicing, packaging (bond wires!) and test cost usually also scales with area of a die through various direct and indirect scaling relationships. So, comparing die sizes is quite a good first order indicator. Of course there are outliers.

I/O limitation is less of an issue when you use circuit-under-pad. We have seen that with the Padauk MCUs, and possibly this is also used by WCH. I have seen some stray test pads on the die.
 

Offline Adi

  • Newbie
  • Posts: 2
  • Country: ba
  • https://github.com/AdiHamulic
Re: WCH $0.10 USD RISC-V MCU
« Reply #164 on: January 29, 2023, 09:22:24 pm »
Sorry if this is a little off topic ... But just to show that 0.10$ chip can perform decently :)

"CH32V003 controlling ILI9341 over SPI with DMA at 24 MHz"


 
The following users thanked this post: thm_w, Muxr, BlakeSeven

Offline josuah

  • Regular Contributor
  • *
  • Posts: 119
  • Country: fr
    • josuah.net
Re: WCH $0.10 USD RISC-V MCU
« Reply #165 on: January 30, 2023, 08:51:27 am »
I have seen more expensive controllers failing where this one did succeed!

Did it have enough memory for a full framebuffer for drawing?
On another MCU, we had to generate the output line by line (buffer of 400 rows * 640 pixel * 2 bytes per pixel (YUV422) => 500 kB of RAM needed, only 512 kB on the MCU).
 

Offline brucehoult

  • Super Contributor
  • ***
  • Posts: 4218
  • Country: nz
Re: WCH $0.10 USD RISC-V MCU
« Reply #166 on: January 30, 2023, 09:23:04 am »
Did it have enough memory for a full framebuffer for drawing?

Not even close.

The VDC has 172800 bytes. The RISC-V chip has 2 KB.
« Last Edit: January 30, 2023, 11:19:11 am by brucehoult »
 

Offline brucehoult

  • Super Contributor
  • ***
  • Posts: 4218
  • Country: nz
Re: WCH $0.10 USD RISC-V MCU
« Reply #167 on: January 30, 2023, 11:19:37 am »
Good catch. Braino.
 

Offline Adi

  • Newbie
  • Posts: 2
  • Country: ba
  • https://github.com/AdiHamulic
Re: WCH $0.10 USD RISC-V MCU
« Reply #168 on: January 30, 2023, 05:51:30 pm »
I have seen more expensive controllers failing where this one did succeed!

Did it have enough memory for a full framebuffer for drawing?
On another MCU, we had to generate the output line by line (buffer of 400 rows * 640 pixel * 2 bytes per pixel (YUV422) => 500 kB of RAM needed, only 512 kB on the MCU).
Only small buffer(512B)is used for single character to send it
with DMA.
« Last Edit: January 30, 2023, 05:55:41 pm by Adi »
 

Offline betocool

  • Regular Contributor
  • *
  • Posts: 106
  • Country: au
Re: WCH $0.10 USD RISC-V MCU
« Reply #169 on: January 31, 2023, 01:30:11 am »
I watched Dave's video with the 10c chip yesterday. It reminded me heavily of STM32IDE. Seems like a low learning curve if you've done STM32's the last 10 years. I was also pleasantly surprised to see they have a Linux edition.

I'm wondering though, that USB - Serial converter he uses, is it just USB - Serial or USB - Serial + Some debug interface?

I'm also a bit wary of having that thing running on my main machine... but perhaps on a VM or a secondary PC? And since it's all GNU-Risc-GCC, perhaps even just have a Makefile and see how that goes.

Cheers,

Alberto
 

Offline thm_w

  • Super Contributor
  • ***
  • Posts: 6701
  • Country: ca
  • Non-expert
Re: WCH $0.10 USD RISC-V MCU
« Reply #170 on: January 31, 2023, 10:43:20 pm »
I watched Dave's video with the 10c chip yesterday. It reminded me heavily of STM32IDE. Seems like a low learning curve if you've done STM32's the last 10 years. I was also pleasantly surprised to see they have a Linux edition.

I'm wondering though, that USB - Serial converter he uses, is it just USB - Serial or USB - Serial + Some debug interface?

I'm also a bit wary of having that thing running on my main machine... but perhaps on a VM or a secondary PC? And since it's all GNU-Risc-GCC, perhaps even just have a Makefile and see how that goes.

Cheers,

Alberto

Its discussed in the thread: https://www.eevblog.com/forum/blog/eevblog-1524-the-10-cent-risc-v-processor-ch32v003/
Profile -> Modify profile -> Look and Layout ->  Don't show users' signatures
 

Offline MT

  • Super Contributor
  • ***
  • Posts: 1652
  • Country: aq
Re: WCH $0.10 USD RISC-V MCU
« Reply #171 on: February 01, 2023, 02:03:58 am »
Risc V is fodder for horses and has horse like speed and strength, says WCH Patrick. :scared: :-// :)

 
The following users thanked this post: thm_w, ledtester, BlakeSeven

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 14892
  • Country: fr
Re: WCH $0.10 USD RISC-V MCU
« Reply #172 on: February 01, 2023, 02:35:39 am »
 :-DD
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11474
  • Country: us
    • Personal site
Re: WCH $0.10 USD RISC-V MCU
« Reply #173 on: February 01, 2023, 02:39:16 am »
They must have some westerner on staff. They should really let them proofread stuff before publishing gems like this.
Alex
 

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 14892
  • Country: fr
Re: WCH $0.10 USD RISC-V MCU
« Reply #174 on: February 01, 2023, 02:51:52 am »
Chinese marketing is different. That's funny to us but it's just a different culture. It doesn't translate very well, but not sure they even care. I don't think they are running after western clients for their MCUs. So we take them because they're dirt cheap and we basically shut up. ;D
 
The following users thanked this post: BlakeSeven


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf