CH32V307
32-bit RISC-V MicrocontrollerThe CH32V307 is a 32-bit risc-v microcontroller from WCH. View the full CH32V307 datasheet below including pinout, electrical characteristics, absolute maximum ratings.
Manufacturer
WCH
Category
32-bit RISC-V Microcontroller
Package
TSSOP20
Overview
Part: CH32V303/305/307/317 Series — WCH (WCH-IC.com)
Type: 32-bit RISC-V Microcontroller
Description: Industrial-grade general-purpose microcontroller based on QingKe RISC-V4F core, operating at up to 144 MHz with single-precision FPU, up to 480 KB CodeFlash, up to 128 KB SRAM, and rich peripherals including USB2.0 HS PHY, Gigabit Ethernet MAC, and dual ADCs/DACs.
Operating Conditions:
- Supply voltage: 3.3V
- Operating temperature: -40 to 85 °C
- CPU main frequency: Max 144 MHz
Absolute Maximum Ratings:
Key Specs:
- Core: QingKe 32-bit RISC-V4F with FPU
- System main frequency: 144 MHz (zero wait)
- CodeFlash: Up to 480 KB (zero-wait application area + non-zero-wait data area)
- SRAM: Up to 128 KB
- ADC: 2 units, 12-bit, 16 external channels + 2 internal signals
- DAC: 2 units, 12-bit
- USB: USB2.0 full-speed host/device, USB2.0 high-speed host/device (built-in 480Mbps PHY)
- Ethernet: Gigabit Ethernet MAC controller, 10M PHY transceiver (CH32V307), 10/100M PHY transceiver (CH32V317)
- GPIO: Up to 80 I/O ports
Features:
- Fast programmable interrupt controller + hardware interrupt stack
- Single cycle multiplication, hardware division, hardware FPU
- Built-in factory-trimmed 8MHz RC oscillator and 40 kHz RC oscillator
- Multiple timers: 4 advanced, 4 general-purpose, 2 basic, 2 watchdog, 64-bit SysTick
- 8 USART interfaces (including 5 UARTs)
- 2 I2C interfaces (support SMBus/PMBus)
- 3 SPI interfaces (SPI2, SPI3 for I2S2, I2S3)
- 2 CAN interfaces (2.0B active)
- SDIO host interface (MMC, SD/SDIO, CE-ATA)
- Digital video port (DVP)
- CRC unit, 96-bit unique ID
- 2-wire serial debug interface (SDI)
Applications:
- Industrial-grade general-purpose applications
Package:
- LQFP
- QFN
- TSSOP
Pin Configuration
CH32V307 Pinout
Package: LQFP100 (CH32V307VCT6) / BGA100 (CH32V307WCU6)
LQFP100 (CH32V307VCT6)
| Pin # | Pin Name | Type | Description |
|---|---|---|---|
| 1 | PE2 | I/O | GPIO Port E, Pin 2 |
| 2 | PE3 | I/O | GPIO Port E, Pin 3 |
| 3 | PE4 | I/O | GPIO Port E, Pin 4 |
| 4 | PE5 | I/O | GPIO Port E, Pin 5 |
| 5 | PE6 | I/O | GPIO Port E, Pin 6 |
| 6 | VBAT | P | Battery Power Supply |
| 7 | PC13/TAMPER-RTC | I/O | GPIO Port C, Pin 13 / RTC Tamper |
| 8 | PC14/OSC32IN | I/O | GPIO Port C, Pin 14 / 32kHz Oscillator Input |
| 9 | PC15/OSC32OUT | I/O | GPIO Port C, Pin 15 / 32kHz Oscillator Output |
| 10 | VSS | P | Ground |
| 11 | VDD_3 | P | 3.3V Power Supply |
| 12 | OSC_IN | I | Main Oscillator Input |
| 13 | OSC_OUT | O | Main Oscillator Output |
| 14 | NRST | I | Reset (Active Low) |
| 15 | PC0/ADC10 | I/O | GPIO Port C, Pin 0 / ADC Channel 10 |
| 16 | PC0/ADC10 | I/O | GPIO Port C, Pin 0 / ADC Channel 10 |
| 17 | PC1/ADC11 | I/O | GPIO Port C, Pin 1 / ADC Channel 11 |
| 18 | PC2/ADC12 | I/O | GPIO Port C, Pin 2 / ADC Channel 12 |
| 19 | PC3/ADC13 | I/O | GPIO Port C, Pin 3 / ADC Channel 13 |
| 20 | VSS | P | Ground |
| 21 | VREF- | P | ADC Reference Negative |
| 22 | VREF+ | P | ADC Reference Positive |
| 23 | VDDA | P | ADC Power Supply |
| 24 | PA0/WKUP/ADC0 | I/O | GPIO Port A, Pin 0 / Wakeup / ADC Channel 0 |
| 25 | PA1/ADC1 | I/O | GPIO Port A, Pin 1 / ADC Channel 1 |
| 26 | PA2/ADC2 | I/O | GPIO Port A, Pin 2 / ADC Channel 2 |
| 27 | PA3 | I/O | GPIO Port A, Pin 3 |
| 28 | PA4 | I/O | GPIO Port A, Pin 4 |
| 29 | PA5 | I/O | GPIO Port A, Pin 5 |
| 30 | PA6 | I/O | GPIO Port A, Pin 6 |
| 31 | PA7 | I/O | GPIO Port A, Pin 7 |
| 32 | PC4 | I/O | GPIO Port C, Pin 4 |
| 33 | PC5/TXP | I/O | GPIO Port C, Pin 5 / Ethernet TX+ |
| 34 | PC6/RXP | I/O | GPIO Port C, Pin 6 / Ethernet RX+ |
| 35 | PD15 | I/O | GPIO Port D, Pin 15 |
| 36 | PD14 | I/O | GPIO Port D, Pin 14 |
| 37 | PD13 | I/O | GPIO Port D, Pin 13 |
| 38 | PD12 | I/O | GPIO Port D, Pin 12 |
| 39 | PD11 | I/O | GPIO Port D, Pin 11 |
| 40 | PD10 | I/O | GPIO Port D, Pin 10 |
| 41 | PD9 | I/O | GPIO Port D, Pin 9 |
| 42 | PD8 | I/O | GPIO Port D, Pin 8 |
| 43 | PB15 | I/O | GPIO Port B, Pin 15 |
| 44 | PB14 | I/O | GPIO Port B, Pin 14 |
| 45 | PB13 | I/O | GPIO Port B, Pin 13 |
| 46 | PB12 | I/O | GPIO Port B, Pin 12 |
| 47 | VSS | P | Ground |
| 48 | VDD_2 | P | 3.3V Power Supply |
| 49 | PA13/SWDIO | I/O | GPIO Port A, Pin 13 / SWD Data I/O |
| 50 | PA12/USBHDP | I/O | GPIO Port A, Pin 12 / USB High-Speed D+ |
| 51 | PA11/USBHDM | I/O | GPIO Port A, Pin 11 / USB High-Speed D- |
| 52 | PA10 | I/O | GPIO Port A, Pin 10 |
| 53 | PA9 | I/O | GPIO Port A, Pin 9 |
| 54 | PA8 | I/O | GPIO Port A, Pin 8 |
| 55 | PC8/TXP | I/O | GPIO Port C, Pin 8 / Ethernet TX+ |
| 56 | PC7/RXN | I/O | GPIO Port C, Pin 7 / Ethernet RX- |
| 57 | PC6/RXP | I/O | GPIO Port C, Pin 6 / Ethernet RX+ |
| 58 | PB15 | I/O | GPIO Port B, Pin 15 |
| 59 | PB14 | I/O | GPIO Port B, Pin 14 |
| 60 | PB13 | I/O | GPIO Port B, Pin 13 |
| 61 | PB12 | I/O | GPIO Port B, Pin 12 |
| 62 | VSS | P | Ground |
| 63 | VDD_1 | P | 3.3V Power Supply |
| 64 | PB11 | I/O | GPIO Port B, Pin 11 |
| 65 | PB10 | I/O | GPIO Port B, Pin 10 |
| 66 | PB9 | I/O | GPIO Port B, Pin 9 |
| 67 | PB8 | I/O | GPIO Port B, Pin 8 |
| 68 | PB7 | I/O | GPIO Port B, Pin 7 |
| 69 | PB6 | I/O | GPIO Port B, Pin 6 |
| 70 | PB5 | I/O | GPIO Port B, Pin 5 |
| 71 | PB4 | I/O | GPIO Port B, Pin 4 |
| 72 | PB3 | I/O | GPIO Port B, Pin 3 |
| 73 | PA15 | I/O | GPIO Port A, Pin 15 |
| 74 | PA14 | I/O | GPIO Port A, Pin 14 |
| 75 | VSS | P | Ground |
| 76 | VDD_2 | P | 3.3V Power Supply |
| 77 | PA13/SWDIO | I/O | GPIO Port A, Pin 13 / SWD Data I/O |
| 78 | PA12/USBHDP | I/O | GPIO Port A, Pin 12 / USB High-Speed D+ |
| 79 | PA11/USBHDM | I/O | GPIO Port A, Pin 11 / USB High-Speed D- |
| 80 | PA10 | I/O | GPIO Port A, Pin 10 |
| 81 | PA9 | I/O | GPIO Port A, Pin 9 |
| 82 | PA8 | I/O | GPIO Port A, Pin 8 |
| 83 | PC8/TXP | I/O | GPIO Port C, Pin 8 / Ethernet TX+ |
| 84 | PC7/RXN | I/O | GPIO Port C, Pin 7 / Ethernet RX- |
| 85 | PC6/RXP | I/O | GPIO Port C, Pin 6 / Ethernet RX+ |
| 86 | PB15 | I/O | GPIO Port B, Pin 15 |
| 87 | PB14 | I/O | GPIO Port B, Pin 14 |
| 88 | PB13 | I/O | GPIO Port B, Pin 13 |
| 89 | PB12 | I/O | GPIO Port B, Pin 12 |
| 90 | VSS | P | Ground |
| 91 | VDD_1 | P | 3.3V Power Supply |
| 92 | PB11 | I/O | GPIO Port B, Pin 11 |
| 93 | PB10 | I/O | GPIO Port B, Pin 10 |
| 94 | PB9 | I/O | GPIO Port B, Pin 9 |
| 95 | PB8 | I/O | GPIO Port B, Pin 8 |
| 96 | PB7 | I/O | GPIO Port B, Pin 7 |
| 97 | PB6 | I/O | GPIO Port B, Pin 6 |
| 98 | PB5 | I/O | GPIO Port B, Pin 5 |
| 99 | PB4 | I/O | GPIO Port B, Pin 4 |
| 100 | PB3 | I/O | GPIO Port B, Pin 3 |
BGA100 (CH32V307WCU6)
| Pin # | Pin Name | Type | Description |
|---|---|---|---|
| 0 | VSS | P | Ground |
| 1 | VIBAT | I/O | Battery Power Supply |
| 2 | PC13/TAMPER-RTC | I/O | GPIO Port C, Pin 13 / RTC Tamper |
| 3 | PC14/OSC32IN | I/O | GPIO Port C, Pin 14 / 32kHz Oscillator Input |
| 4 | PC15/OSC32OUT | I/O | GPIO Port C, Pin 15 / 32kHz Oscillator Output |
| 5 | OSC_IN/PD0 | I | Main Oscillator Input / GPIO Port D, Pin 0 |
| 6 | OSC_OUT/PD1 | O | Main Oscillator Output / GPIO Port D, Pin 1 |
| 7 | NRST | I | Reset (Active Low) |
| 8 | PC0/ADC10 | I/O | GPIO Port C, Pin 0 / ADC Channel 10 |
| 9 | PC1/ADC11 | I/O | GPIO Port C, Pin 1 / ADC Channel 11 |
| 10 | PC2/ADC12 | I/O | GPIO Port C, Pin 2 / ADC Channel 12 |
| 11 | PC3/ADC13 | I/O | GPIO Port C, Pin 3 / ADC Channel 13 |
| 12 | VSS | P | Ground |
| 13 | VDDA | P | ADC Power Supply |
| 14 | VDDA/WKUP/ADC0 | I/O | GPIO Port A, Pin 0 / Wakeup / ADC Channel 0 |
| 15 | PA1/ADC1 | I/O | GPIO Port A, Pin 1 / ADC Channel 1 |
| 16 | PA2/ADC2 | I/O | GPIO Port A, Pin 2 / ADC Channel 2 |
| 17 | VIO_4 | P | I/O Power Supply |
| 18 | ? | ? | ? |
| 19 | ? | ? | ? |
| 20 | ? | ? | ? |
| 21 | ? | ? | ? |
| 22 | ? | ? | ? |
| 23 | ? | ? | ? |
| 24 | ? | ? | ? |
| 25 | ? | ? | ? |
| 26 | ? | ? | ? |
| 27 | ? | ? | ? |
| 28 | ? | ? | ? |
| 29 | ? | ? | ? |
| 30 | ? | ? | ? |
| 31 | ? | ? | ? |
| 32 | ? | ? | ? |
| 33 | ? | ? | ? |
| 34 | ? | ? | ? |
| 35 | PB12 | I/O | GPIO Port B, Pin 12 |
| 36 | PB13 | I/O | GPIO Port B, Pin 13 |
| 37 | PB14 | I/O | GPIO Port B, Pin 14 |
| 38 | PB15 | I/O | GPIO Port B, Pin 15 |
| 39 | PC6/RXP | I/O | GPIO Port C, Pin 6 / Ethernet RX+ |
| 40 | PC7/RXN | I/O | GPIO Port C, Pin 7 / Ethernet RX- |
| 41 | PC8/TXP | I/O | GPIO Port C, Pin 8 / Ethernet TX+ |
| 42 | PA8 | I/O | GPIO Port A, Pin 8 |
| 43 | PA9 | I/O | GPIO Port A, Pin 9 |
| 44 | PA10 | I/O | GPIO Port A, Pin 10 |
| 45 | PA11/USBHDM | I/O | GPIO Port A, Pin 11 / USB High-Speed D- |
| 46 | PA12/USBHDP | I/O | GPIO Port A, Pin 12 / USB High-Speed D+ |
| 47 | PA13/SWDIO | I/O | GPIO Port A, Pin 13 / SWD Data I/O |
| 48 | VDD_2 | P | 3.3V Power Supply |
| 49 | VSS_2 | P | Ground |
| 50 | VIO_2 | P | I/O Power Supply |
| 51 | VIO_2 | P | I/O Power Supply |
| 52 | ? | ? | ? |
| 53 | ? | ? | ? |
| 54 | ? | ? | ? |
| 55 | ? | ? | ? |
| 56 | ? | ? | ? |
| 57 | ? | ? | ? |
| 58 | ? | ? | ? |
| 59 | ? | ? | ? |
| 60 | ? | ? | ? |
| 61 | ? | ? | ? |
| 62 | ? | ? | ? |
| 63 | ? | ? | ? |
| 64 | ? | ? | ? |
| 65 | ? | ? | ? |
| 66 | ? | ? | ? |
| 67 | ? | ? | ? |
| 68 | ? | ? | ? |
| 69 | ? | ? | ? |
| 70 | ? | ? | ? |
| 71 | ? | ? | ? |
| 72 | ? | ? | ? |
| 73 | ? | ? | ? |
| 74 | VSS_2 | P | Ground |
| 75 | VDD_2 | P | 3.3V Power Supply |
Notes
- The LQFP100 pinout (CH32V307VCT6) is extracted from the left diagram in the source image.
- The BGA100 pinout (CH32V307WCU6) is extracted from the right diagram; many BGA positions (18–34, 52–73) could not be clearly read from the provided image and are marked as "?".
- Power pins are color-coded in the diagram: red = VDD, black = VIO, blue = VDD & VBAT.
- Pins with alternate functions (e.g., PA12/USBHDP) support multiple peripheral modes; the primary GPIO designation is listed first.
- VBAT (Pin 6, LQFP) and VIBAT (Pin 1, BGA) are battery backup power supplies.
- NRST is active-low; external pull-up and filtering capacitor recommended.
Electrical Characteristics
Table 4-41 ADC characteristics
| Symbol | Parameter | Condition | Min. | Typ. | Max. | Unit |
|---|---|---|---|---|---|---|
| V DDA | Supply voltage | 2.4 | 3.6 | V | ||
| V REF+ | Positive reference voltage | V REF+ cannot be more thanV DDA | 2.4 | V DDA | V | |
| I VREF | Reference current | 160 | 220 | μA | ||
| I DDA | Supply current | 480 | 530 | μA | ||
| f ADC | ADC clock frequency | 14 | MHz | |||
| f S | Sampling rate | 0.05 | 1 | MHz | ||
| f TRIG | External trigger frequency | 16 | 1/f ADC | |||
| V AIN | Conversion voltage range | 0 | V REF+ | V | ||
| R AIN | External input impedance | 50 | kΩ | |||
| R ADC | Sampling switch resistance | 0.6 | 1 | kΩ | ||
| C ADC | Internal sample and hold capacitor | 8 | pF |
Table 4-41 ADC characteristics
V3.5 79
| t CAL | Calibration time | 1/f ADC | ||
|---|---|---|---|---|
| t Iat | Injected trigger conversion latency | 2 | 1/f ADC | |
| t Iatr | Regular trigger conversion latency | 2 | 1/f ADC | |
| t s | Sampling time | 1.5 | 239.5 | 1/f ADC |
| t STAB | Power-on time | 1 | us | |
| t CONV | Total conversion time (including sampling time) | 14 | 252 | 1/f ADC |
Note: Above parameters are guaranteed by design.
Formula: Maximum RAIN
The above formula is used to determine the maximum external impedance so that the error can be less than 1/4 LSB. Where N=12 (representing 12-bit resolution).
Table 4-42 Maximum RAIN when fADC = 14MHz
- T S (cycle) t S (us) Maximum R AIN (kΩ)
- 1.5 0.11 0.4
- 7.5 0.54 5.9
- 13.5 0.96 11.4
- 28.5 2.04 25.2
- 41.5 2.96 37.2
- 55.5 3.96 50
- 71.5 5.11 Invalid
- 239.5 17.1 Invalid
Table 4-43 ADC error
| Symbol | Parameter | Condition | Min. | Typ. | Max. | Unit |
|---|---|---|---|---|---|---|
| EO | Offset error | f PCLK2 = 56MHz, | ±4 | LSB | ||
| ED | Differential nonlinearity error | f ADC = 14MHz, | ±0.5 | ±3 | LSB | |
| EL | Integral nonlinearity error | R AIN < 10kΩ,V DDA = 3.3V | ±1 | ±4 | LSB |
Cp represents the parasitic capacitance on the PCB and the pad (about 5pF), which may be related to the quality of the pad and PCB layout. A larger Cp value will reduce the conversion accuracy, the solution is to reduce the f ADC value.
V3.5 80
Figure 4-29 ADC typical connection diagram
Figure 4-30 Analog power supply and decoupling circuit reference
Absolute Maximum Ratings
Stresses at or above the absolute maximum ratings listed in the table below may cause permanent damage to the device.
Table 4-1 Absolute maximum ratings
| Symbol | Description | Description | Min. | Max. | Unit |
|---|---|---|---|---|---|
| T A | Ambient temperature during operation | Ambient temperature during operation | -40 | 85 | °C |
| T S | Ambient temperature during storage | Ambient temperature during storage | -40 | 125 | °C |
| V DD -V SS | External main supply voltage (includingV DDA and V DD ) | External main supply voltage (includingV DDA and V DD ) | -0.3 | 4.0 | V |
| V I/O -V SS | I/O supply voltage | I/O supply voltage | -0.3 | 4.0 | V |
| V DD_ETH -V SS | Internal 10/100M Ethernet PHY supply voltage | CH32V317 | -0.3 | 4.0 | V |
| V DDK | Voltage at decoupling end of internal power supply LDO | CH32V317 | -0.2 | 1.5 | V |
| V IN | Input voltage on the FT (5V tolerance) pin | Input voltage on the FT (5V tolerance) pin | V SS -0.3 | 5.5 | V |
| V IN | 10/100M Ethernet PHY differential pin | V SS -0.3 | V DD_ETH +0.3 | V | V |
| V IN | Input voltage onPHY pin of USB and 10M Ethernet | Input voltage onPHY pin of USB and 10M Ethernet | V SS -0.3 | V DD +0.3 | V |
| V IN | Input voltage on other pins | Input voltage on other pins | V SS -0.3 | V IO +0.3 | V |
| \ | △ V DD_x \ | Variations between different main power supply pins | Variations between different main power supply pins | ||
| \ | △ V I/O_x \ | Variations between different I/O power supply pins | Variations between different I/O power supply pins | ||
| \ | △ V SS_x \ | Variations between different ground pins | Variations between different ground pins | ||
| V ESD(HBM) | Electrostatic discharge voltage (HBM, non-contact) | Electrostatic discharge voltage (HBM, non-contact) | 4K | 4K | V |
| V ESD(HBM) | USB pins (PA11, PA12) | USB pins (PA11, PA12) | 3K | 3K | V |
Table 4-1 Absolute maximum ratings
V3.5 52
| I VDD | Total current intoV DD /V DDA /V IO power lines (source) | 150 | mA |
|---|---|---|---|
| I Vss | Total current out ofV SS ground lines (sink) | 150 | mA |
| I I/O | Sink current on any I/O and control pin | 25 | mA |
| I I/O | Source current on any I/O and control pin | -25 | mA |
| I INJ(PIN) | Injected current on NRST pin | +/-5 | mA |
| I INJ(PIN) | Injected current on HSE's OSC_IN pin and LSE's OSC_IN pin | +/-5 | mA |
| I INJ(PIN) | Injected current on other pins | +/-5 | mA |
| ∑I INJ(PIN) | Total injected current on all I/Os and control pins | +/-25 | mA |
Ordering Information
No ordering information (MPN, package, temperature range, packing) was found in the provided datasheet section. Only a package type (TSSOP20) was mentioned.
Related Variants
The following components are covered by the same datasheet.
Get structured datasheet data via API
Get started free