Author Topic: 20 cent USB MCU in MSOP10 package  (Read 6334 times)

0 Members and 1 Guest are viewing this topic.

Offline blueskullTopic starter

  • Supporter
  • ****
  • !
  • Posts: 367
  • Country: cn
  • BA7LKP
20 cent USB MCU in MSOP10 package
« on: October 05, 2019, 11:27:47 pm »
So, today's hero is this little guy: https://hackaday.com/tag/ch552/

I'm working on my FPGA board, and part of the cost optimization is to get rid of any expensive parts (such as FT2232H), plus to get rid of parts that need pre-programming (implies DFU).

It looks like CH552E is a good option -- small package, $0.21, with HW UART/SPI, DFU bootloader, and up to 24MHz 1T 8051 core and 14kB of RAM (16kB if you nuke the bootloader).

Since it's stupidly cheap and LCSC doesn't carry it (LCSC has its TSSOP20 version, CH552T, which I don't have the PCB space for), I have to buy some from Taobao.

Due to the again, stupidly HIGH shipping cost to US (if the seller doesn't have an export license and a contract with China Post ePacket) and my bad patience, I decide to go with DHL or SF-Express.

Therefore, I'm looking at $30 on shipping for $0.21 parts, which brings the question: Is there anyone interested in this little chip? We can make a group buy. I need 100pcs.

Some English resources of this chip:
https://www.electrodragon.com/w/WCH#MCU_.2B_USB_CH55x_Series
https://github.com/Blinkinlabs/ch554_sdcc

Some Japanese resources of this chip:
https://github.com/hakura040/CH552_SampleCode
https://hakura03.hatenablog.com/entry/2019/03/30/115430

USB DFU downloader:
https://github.com/rgwan/librech551

*: CH551 is stripped down version of CH552 (no analog, less ROM/RAM, SOP16 only), which is stripped down from CH554 (removed USB host).
*: Blinkinlabs GitHub repo has a translated English document.
*: I will upload my journey with this thing on YouTube, so there will be plenty more English resource on this chip.
*: I will NOT have time to translate the whole DS to English unless WCH pays me to do so.

There was not an SDCC-version of CH552-specific header in the wild (though you can use CH554.h, just don't use registers that are not on chip), so I made my own.
Comments are stripped for the sake of formatting, I will add them back and translate them to proper English once I have spare time. Attached below.
 

Offline ebclr

  • Super Contributor
  • ***
  • Posts: 2331
  • Country: 00
Re: 20 cent USB MCU in MSOP10 package
« Reply #1 on: October 06, 2019, 12:42:22 am »
This may help you in the development stage

https://www.google.com/search?q=eletrodragon&rlz=1C1CHBD_pt-BRBR863BR863&oq=eletro&aqs=chrome.2.69i57j0j69i59j69i61l2j69i60.3356j0j7&sourceid=chrome&ie=UTF-8

You can use Keil for that very easy ( if you have any Silabs board can be free )

https://www.silabs.com/products/development-tools/software/8-bit-8051-microcontroller-software



A single header file with some specific register on WCH and you are done.

Sdcc also works  in Windows, Linux, and WLS

If time  inst' an issue you can have very cheap freight using the epacket, My last WCH chip order +- 100 Pcs, paid only 3 USD freight to the farthest possible country with China Origin

By the way, The EFM8 can be a better option in some circumstances, I would suggest taking a look is a little more expensive but have some advantages on speed and the product itself is more flexible.

https://www.silabs.com/products/mcu/8-bit/efm8-universal-bee

On the WCH site also have a lot of useful information  ( you can read  chinese I guess ? )

http://www.wch.cn/products/CH551.html

« Last Edit: October 06, 2019, 12:49:00 am by ebclr »
 

Offline oPossum

  • Super Contributor
  • ***
  • Posts: 1482
  • Country: us
  • Very dangerous - may attack at any time
Re: 20 cent USB MCU in MSOP10 package
« Reply #2 on: October 06, 2019, 05:38:40 am »
I have been using the CH55x family for a few months now. See the other thread for some projects I have done. I recently got a few CH552T from aliexpress because I wasn't ready for another LCSC order (got the 551G and 552G from them). Cheap shipping and got them in about 2 weeks.

Would definitely be interested in a group by of the CH552E.

https://www.aliexpress.com/item/32907096404.html?spm=a2g0s.9042311.0.0.6d8d4c4dWkLHpj

https://www.eevblog.com/forum/microcontrollers/lt30-cent-mcu-with-usb-controllers-capactive-touch-more-wchs-ch55x-series/msg2409603/#msg2409603

EAGLE files for BOB attached.
« Last Edit: October 06, 2019, 05:42:41 am by oPossum »
 
The following users thanked this post: blueskull

Offline oPossum

  • Super Contributor
  • ***
  • Posts: 1482
  • Country: us
  • Very dangerous - may attack at any time
Re: 20 cent USB MCU in MSOP10 package
« Reply #3 on: October 06, 2019, 05:59:53 am »
I'll take 32 of the CH552E.
 

Online PCB.Wiz

  • Super Contributor
  • ***
  • Posts: 2146
  • Country: au
Re: 20 cent USB MCU in MSOP10 package
« Reply #4 on: October 06, 2019, 10:13:26 am »
Would definitely be interested in a group by of the CH552E.

The current price on Taobao is between $0.2 to $0.3. The bigger brother CH554E on LCSC is $0.8, but with very limited availability.

If you want some and can live with up to $0.3 price, please leave a number how many would you like to have. I'll add them to my order.

LCSC has stock of the MSOP10 CH552E CH554E, but shows at  100+  $0.5242
The CH55x series is older, and the newer CH54x has  a faster core, but I think not in MSOP10.
EFM8UB3 may be worth looking at, that has a 48MHz Core, and has 3mm packages - depends what speed of MCU you need ?.
« Last Edit: October 06, 2019, 07:08:18 pm by PCB.Wiz »
 

Offline hugatry

  • Contributor
  • Posts: 17
  • Country: 00
Re: 20 cent USB MCU in MSOP10 package
« Reply #5 on: October 06, 2019, 10:26:33 am »

The current price on Taobao is between $0.2 to $0.3. The bigger brother CH554E on LCSC is $0.8, but with very limited availability.

If you want some and can live with up to $0.3 price, please leave a number how many would you like to have. I'll add them to my order.

LCSC has stock of the MSOP10 CH552E, but shows at  100+  $0.5242
That's the CH554E with limited stock, not CH552E.

Online PCB.Wiz

  • Super Contributor
  • ***
  • Posts: 2146
  • Country: au
Re: 20 cent USB MCU in MSOP10 package
« Reply #6 on: October 06, 2019, 07:08:53 pm »
That's the CH554E with limited stock, not CH552E.
Oops, corrected.
 

Offline westfw

  • Super Contributor
  • ***
  • Posts: 4361
  • Country: us
Re: 20 cent USB MCU in MSOP10 package
« Reply #7 on: October 06, 2019, 09:02:33 pm »
So... do you think that these are the same silicon that makes of the ubiquitous CH340x USB/Serial controllers? (the CH340E is an MSOP10 version.)If so, does that mean that the CH340 might be re-programmable?  hackable with BADUSB-like malware?
 

Offline oPossum

  • Super Contributor
  • ***
  • Posts: 1482
  • Country: us
  • Very dangerous - may attack at any time
Re: 20 cent USB MCU in MSOP10 package
« Reply #8 on: October 06, 2019, 09:13:24 pm »
Definitely not the same. There are a few significant differences in electrical characteristics.
 

Online PCB.Wiz

  • Super Contributor
  • ***
  • Posts: 2146
  • Country: au
Re: 20 cent USB MCU in MSOP10 package
« Reply #9 on: October 07, 2019, 02:33:57 am »
... Also, this is supposed to be a design challenge of a larger system (FPGA module w/ USB) using only Chinese parts rest of absolutely necessary imported parts.
..
Interesting brief.
Does that mean you need a SPI programmer, for the FPGA Flash / FPGA directly ?  I'd have thought a MSOP10 was too pin-limited for useful SPI ?
Using one of these little parts to do a Byte-Blaster type FPGA bridge could be interesting.
Maybe SO16 is better choice, as I see the CH54x series will come in SO16, and those have 12b ADCs
 

Offline ebclr

  • Super Contributor
  • ***
  • Posts: 2331
  • Country: 00
Re: 20 cent USB MCU in MSOP10 package
« Reply #10 on: October 07, 2019, 02:42:57 am »
This is the Taobao WCH store, have many things for people interested in this line

For your application on FPGA, development board I guess CH551T will fit better, check this one

https://item.taobao.com/item.htm?id=531909755701

I'm teased by that usb analyser  very cheap

https://item.taobao.com/item.htm?spm=a1z10.1-c.w5003-13505955048.5.5907215da3XLDx&id=4244192817&scene=taobao_shop
« Last Edit: October 07, 2019, 02:46:13 am by ebclr »
 

Online PCB.Wiz

  • Super Contributor
  • ***
  • Posts: 2146
  • Country: au
Re: 20 cent USB MCU in MSOP10 package
« Reply #11 on: October 07, 2019, 07:35:35 pm »
SO16 is way too large. My size constraint prohibits even TSSOP20. I'm squeezing 24 DIP pins, an 10mm*10mm FPGA and a 30P FFC connector among others on a 17mm*35mm PCB with only one side loading. That's more than challenging!
There is a lot offloaded from your 10 pin MCU choice, into the 20 pin SLG46580, maybe using a single 4x4 QFN28 part like CH547F (25IO) can give a smaller PCB ?
 

Offline krho

  • Regular Contributor
  • *
  • Posts: 223
  • Country: si
Re: 20 cent USB MCU in MSOP10 package
« Reply #12 on: October 07, 2019, 08:02:42 pm »
Also there is a Hirose connector, which is very cheap, so cheap that it would cost more to replace with Chinese parts.
Can you tell the part number :)
 

Offline krho

  • Regular Contributor
  • *
  • Posts: 223
  • Country: si
Re: 20 cent USB MCU in MSOP10 package
« Reply #13 on: October 08, 2019, 05:48:45 am »
Also there is a Hirose connector, which is very cheap, so cheap that it would cost more to replace with Chinese parts.
Can you tell the part number :)

FH34SRJ-30S-0-5SH
Thanks.. I don't find 1,13€/1000 cheap.. especialy if you need a 3-4 of them on each board. So that's 6-8 of them then. Not for price sensitive product :(
 

Offline ebclr

  • Super Contributor
  • ***
  • Posts: 2331
  • Country: 00
Re: 20 cent USB MCU in MSOP10 package
« Reply #14 on: October 08, 2019, 07:07:12 am »
I'm crazy enough, and I want to program WCH52 in Pascal, The blink and GPIO /timers things are already done, USB will take more time and effort


CH55Xt is a 20 Pin version

width   Pin spacing
4.40mm   173mil   0.65mm   25mil

QFN-16   3*3mm      0.50mm   19.7mil   Square leadless 16   CH552P
MSOP-10   3.0mm   118mil   0.50mm   19.7mil   Micro Small Outline 10   CH552E

« Last Edit: October 08, 2019, 07:16:46 am by ebclr »
 

Offline ebclr

  • Super Contributor
  • ***
  • Posts: 2331
  • Country: 00
Re: 20 cent USB MCU in MSOP10 package
« Reply #15 on: October 08, 2019, 09:09:01 am »
 

Offline thm_w

  • Super Contributor
  • ***
  • Posts: 7663
  • Country: ca
  • Non-expert
Re: 20 cent USB MCU in MSOP10 package
« Reply #16 on: October 08, 2019, 09:52:31 pm »
Due to the again, stupidly HIGH shipping cost to US (if the seller doesn't have an export license and a contract with China Post ePacket) and my bad patience, I decide to go with DHL or SF-Express.

For future orders, if you have a lot of patience you can get Superbuy/Cssbuy/Basetao (my favorite)/ytaopal/etc to ship epacket (EUB). Now that shipping rates have gone up it might make sense to purchase through there.
They also offer a cheap "DHL economic package 10-15 days" ~$7 but I've yet to try it, could be this: https://www.logistics.dhl/ca-en/home/our-divisions/ecommerce/shipping/international-shipping.html

But its a bit different for me as there is no way I could navigate taobao without their help.
Profile -> Modify profile -> Look and Layout ->  Don't show users' signatures
 
The following users thanked this post: I wanted a rude username

Offline ebclr

  • Super Contributor
  • ***
  • Posts: 2331
  • Country: 00
Re: 20 cent USB MCU in MSOP10 package
« Reply #17 on: October 09, 2019, 01:37:14 am »
 

Offline soFPG

  • Frequent Contributor
  • **
  • Posts: 283
  • Country: de
Re: 20 cent USB MCU in MSOP10 package
« Reply #18 on: November 16, 2019, 08:47:58 pm »
Interesting project - any updates?
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf