Development-Boards icon indicating copy to clipboard operation
Development-Boards copied to clipboard

[no issue] CH32X035 : nano and pro micro replacement

Open trimarco232 opened this issue 3 months ago • 1 comments

Hi , I am planning to replace my existing nano and pro micro (AVR) with more capable MCUs , ie. the 29 pins device , in order to have enough pins ; I will design my own boards ; so I have few questions , about programming and USB :

  1. I don't need PD , so can I use CC1 and CC2 as IO pins , and still use USB for bootloader and CDC ?
  2. after uploading , can I put a reset button , instead of having to disconnected the board from the USB port and all voltage sources ? ( use UDP for BOOT button is good idea from WCH ) ( there is an interesting bootloader here : [https://github.com/maxgerhardt/ch32x035-arduino-usb-serial] )
  3. why two 5k1 resistors ? does it not work if one connect CC1 and CC2 together , and then only use one 5k1 resistor to connect both to 0v ? thanks for all !

trimarco232 avatar Mar 05 '24 22:03 trimarco232

  1. I think so.
  2. Yes, but a function must be implemented in the firmware that resets the MCU to BOOT mode when the reset button is pressed.
  3. Each CC line must have its own pulldown resistor! You may be able to omit the resistors if you are not using USB PD and you are not powering your board via a USB PD power adapter and a USB Type-C cable.

wagiminator avatar Mar 06 '24 15:03 wagiminator