Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[no issue] CH32X035 : nano and pro micro replacement #3

Open
trimarco232 opened this issue Mar 5, 2024 · 1 comment
Open

[no issue] CH32X035 : nano and pro micro replacement #3

trimarco232 opened this issue Mar 5, 2024 · 1 comment

Comments

@trimarco232
Copy link

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 !
@wagiminator
Copy link
Owner

  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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants