Timer 1 channel 1 on PA8
Select PA8 with the default TIM1_CH1 assignment. Check the chosen pin mapping before enabling the channel.
A four-voice tone generator on STM32F103 uses independent timer channels for the outputs and SysTick for note timing.
Set the boot shunts before reset. BOOT0 low selects main Flash regardless of BOOT1. With BOOT0 high, BOOT1 low selects system memory and BOOT1 high selects SRAM.
P1-4 connects to PB2/BOOT1 through R4 (100 kΩ). Fit a shunt to P1-2 for high or P1-6 for low. With the shunt removed, PB2 has no board-level bias and is sampled as BOOT1 at reset.
| Pin | Signal | Direction | Function |
|---|---|---|---|
| H1-1 | VB Power | Power | Connects to VBAT. Use the specified board power connection. |
| H1-2 | C13 Configurable I/O | Configurable I/O | PC13 sinks current through R5 (510 Ω) and the onboard D2 LED from 3.3 V. Driving PC13 low turns the LED on. |
| H1-3 | C14 Configurable I/O | Configurable I/O | PC14 is OSC32_IN for the onboard 32.768 kHz LSE crystal Y3. It has a 20 pF load capacitor C9 to ground. |
| H1-4 | C15 Configurable I/O | Configurable I/O | PC15 is OSC32_OUT for the onboard 32.768 kHz LSE crystal Y3. It has a 20 pF load capacitor C12 to ground. |
| H1-5 | A0 Configurable I/O | Configurable I/O | Routes to MCU PA0. Choose the applicable GPIO or peripheral function in the MCU documentation. |
| H1-6 | A1 Configurable I/O | Configurable I/O | Routes to MCU PA1. Choose the applicable GPIO or peripheral function in the MCU documentation. |
| H1-7 | A2 Configurable I/O | Configurable I/O | Routes to MCU PA2. Choose the applicable GPIO or peripheral function in the MCU documentation. |
| H1-8 | A3 Configurable I/O | Configurable I/O | Routes to MCU PA3. Choose the applicable GPIO or peripheral function in the MCU documentation. |
| H1-9 | A4 Configurable I/O | Configurable I/O | Routes to MCU PA4. Choose the applicable GPIO or peripheral function in the MCU documentation. |
| H1-10 | A5 Configurable I/O | Configurable I/O | Routes to MCU PA5. Choose the applicable GPIO or peripheral function in the MCU documentation. |
| H1-11 | A6 Configurable I/O | Configurable I/O | Routes to MCU PA6. Choose the applicable GPIO or peripheral function in the MCU documentation. |
| H1-12 | A7 Configurable I/O | Configurable I/O | Routes to MCU PA7. Choose the applicable GPIO or peripheral function in the MCU documentation. |
| H1-13 | B0 Configurable I/O | Configurable I/O | Routes to MCU PB0. Choose the applicable GPIO or peripheral function in the MCU documentation. |
| H1-14 | B1 Configurable I/O | Configurable I/O | Routes to MCU PB1. Choose the applicable GPIO or peripheral function in the MCU documentation. |
| H1-15 | B10 Configurable I/O | Configurable I/O | Routes to MCU PB10. Choose the applicable GPIO or peripheral function in the MCU documentation. |
| H1-16 | B11 Configurable I/O | Configurable I/O | Routes to MCU PB11. Choose the applicable GPIO or peripheral function in the MCU documentation. |
| H1-17 | R Active-low reset | Active-low reset | Connects to MCU NRST. Use a compatible open-drain reset signal. |
| H1-18 | 3.3 Power | Power | Connects to 3V3. Use the specified board power connection. |
| H1-19 | G Return | Return | Connects to the board’s ground plane. |
| H1-20 | G Return | Return | Connects to the board’s ground plane. |
| H2-1 | 3.3 Power | Power | Connects to 3V3. Use the specified board power connection. |
| H2-2 | G Return | Return | Connects to the board’s ground plane. |
| H2-3 | 5V Power | Power | Shares USB VBUS directly and feeds the RT9193-33 regulator input. Unplug USB before supplying external 5 V here. |
| H2-4 | B9 Configurable I/O | Configurable I/O | Routes to MCU PB9. Choose the applicable GPIO or peripheral function in the MCU documentation. |
| H2-5 | B8 Configurable I/O | Configurable I/O | Routes to MCU PB8. Choose the applicable GPIO or peripheral function in the MCU documentation. |
| H2-6 | B7 Configurable I/O | Configurable I/O | Routes to MCU PB7. Choose the applicable GPIO or peripheral function in the MCU documentation. |
| H2-7 | B6 Configurable I/O | Configurable I/O | Routes to MCU PB6. Choose the applicable GPIO or peripheral function in the MCU documentation. |
| H2-8 | B5 Configurable I/O | Configurable I/O | Routes to MCU PB5. Choose the applicable GPIO or peripheral function in the MCU documentation. |
| H2-9 | B4 Configurable I/O | Configurable I/O | Routes to MCU PB4. Choose the applicable GPIO or peripheral function in the MCU documentation. |
| H2-10 | B3 Configurable I/O | Configurable I/O | Routes to MCU PB3. Choose the applicable GPIO or peripheral function in the MCU documentation. |
| H2-11 | A15 Configurable I/O | Configurable I/O | Routes to MCU PA15. Choose the applicable GPIO or peripheral function in the MCU documentation. |
| H2-12 | A12 Configurable I/O | Configurable I/O | PA12 shares the MCU side of USB D+ through R11 (20 Ω). R10 (4.7 kΩ) pulls this node up to the 5 V rail. |
| H2-13 | A11 Configurable I/O | Configurable I/O | PA11 also connects to USB D− through R9 (20 Ω). |
| H2-14 | A10 Configurable I/O | Configurable I/O | Routes to MCU PA10. Choose the applicable GPIO or peripheral function in the MCU documentation. |
| H2-15 | A9 Configurable I/O | Configurable I/O | Routes to MCU PA9. Choose the applicable GPIO or peripheral function in the MCU documentation. |
| H2-16 | A8 Configurable I/O | Configurable I/O | Routes to MCU PA8. Choose the applicable GPIO or peripheral function in the MCU documentation. |
| H2-17 | B15 Configurable I/O | Configurable I/O | Routes to MCU PB15. Choose the applicable GPIO or peripheral function in the MCU documentation. |
| H2-18 | B14 Configurable I/O | Configurable I/O | Routes to MCU PB14. Choose the applicable GPIO or peripheral function in the MCU documentation. |
| H2-19 | B13 Configurable I/O | Configurable I/O | Routes to MCU PB13. Choose the applicable GPIO or peripheral function in the MCU documentation. |
| H2-20 | B12 Configurable I/O | Configurable I/O | Routes to MCU PB12. Choose the applicable GPIO or peripheral function in the MCU documentation. |
| H3-1 | 3V3 Power | Power | Connects to 3V3. Use the specified board power connection. |
| H3-2 | DIO Configurable I/O | Configurable I/O | Routes to MCU PA13. Choose the applicable GPIO or peripheral function in the MCU documentation. |
| H3-3 | CLK Configurable I/O | Configurable I/O | Routes to MCU PA14. Choose the applicable GPIO or peripheral function in the MCU documentation. |
| H3-4 | GND Return | Return | Connects to the board’s ground plane. |
| H4-1 | VBUS Power | Power | VBUS connects directly to H2-3 and feeds the RT9193-33 regulator. External 5 V on H2-3 can backfeed a connected USB host. |
| H4-2 | D- Bidirectional | Bidirectional | USB D− reaches PA11 through R9 (20 Ω). |
| H4-3 | D+ Bidirectional | Bidirectional | USB D+ reaches PA12 through R11 (20 Ω). On the PA12 side, R10 (4.7 kΩ) pulls the line up to 5 V. |
| H4-4 | ID Return | Return | Micro-USB ID is wired directly to pin 5 (GND) and board ground. |
| H4-5 | GND Return | Return | Connects to the board’s ground plane. |
| P1-1 | 3V3 Power | Power | Connects to 3V3. Use the specified board power connection. |
| P1-2 | 3V3 Power | Power | Connects to 3V3. Use the specified board power connection. |
| P1-3 | BOOT0 Boot strap input | Boot strap input | P1-3 connects to BOOT0 through R3 (100 kΩ). Fit a shunt to P1-1 for high or P1-5 for low. With the shunt removed, BOOT0 has no defined board-level bias. |
| P1-4 | BOOT1 Boot strap input / GPIO | Boot strap input / GPIO | P1-4 connects to PB2/BOOT1 through R4 (100 kΩ). Fit a shunt to P1-2 for high or P1-6 for low. With the shunt removed, PB2 has no board-level bias and is sampled as BOOT1 at reset. |
| P1-5 | GND Return | Return | Connects to the board’s ground plane. |
| P1-6 | GND Return | Return | Connects to the board’s ground plane. |
Select PA8 with the default TIM1_CH1 assignment. Check the chosen pin mapping before enabling the channel.
| Parameter | Limit | Conditions and source |
|---|---|---|
| Logic swing0–3.3 V nominal | 0–3.3 V nominal | Probe with a high-impedance instrument before connecting an audio input. Blue Pill board schematic |
| Voice count4 | 4 | One voice per timer in the original firmware. Check for timer conflicts with PWM or other libraries. STM32-TimerTone project |
The bench circuit measures one configured voice on PA8 (TIM1_CH1). The original project allows you to choose a channel on each timer. For acoustic output use a high-impedance amplifier input or an appropriate driver.