Author Topic: ch32v003 programming issue  (Read 607 times)

0 Members and 1 Guest are viewing this topic.

Offline keikaiTopic starter

  • Contributor
  • Posts: 12
  • Country: lc
ch32v003 programming issue
« on: November 11, 2024, 12:18:45 am »
In arduino ide 2.3.3 with wch board library (1.0.4) the pins dont work as expected. When i put PC3 pin high all the other pins with the name "PC"go high. if i put PC3 high and PC4 low. both pins become a voltage divider so instead of giving 3.3v it gives 1.5v . There is no short on the adapter board. If  i try 1 Pin from PC series and one from PD series they work independently.

I know the PC pins are grouped by 1 register but turning on PC1 should not turn on all the PC2- PC7 pins.
 

Online brucehoult

  • Super Contributor
  • ***
  • Posts: 4689
  • Country: nz
Re: ch32v003 programming issue
« Reply #1 on: November 11, 2024, 02:41:14 am »
I don't see how that could happen.

Ok, so all pins on the same port going HI and LO together could be a bug in the Arduino library.

But a voltage divider effect????  That's just got to be a busted chip, Shirley? If it's not happening externally. Whether the chip was faulty when you received it is a different question.
 

Offline keikaiTopic starter

  • Contributor
  • Posts: 12
  • Country: lc
Re: ch32v003 programming issue
« Reply #2 on: November 11, 2024, 03:15:52 am »
only these pins work PC0, PD4, PD5, PD6, PD7 without the issue. I will try to see if i can get i2c working on PC1 and PC2 to see if wch just didnt bother updating the pin config for 16 pin version. PD7 had to be changed to io in wch utility to function normally
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf