PY32F002BF15U6TU
Microcontroller (MCU)The PY32F002BF15U6TU is a microcontroller (mcu) from Shanghai. View the full PY32F002BF15U6TU datasheet below including pinout, electrical characteristics, absolute maximum ratings.
Manufacturer
Shanghai
Category
Microcontroller (MCU)
Overview
Part: PY32F002B — Puya Semiconductor (Shanghai) Co., Ltd
Type: 32-bit ARM Cortex-M0+ MCU
Description: 32-bit ARM Cortex-M0+ MCU with 24 Kbytes Flash, 3 Kbytes SRAM, up to 24 MHz CPU frequency, 1.7–5.5 V operating voltage, and -40 to 85 °C operating temperature.
Operating Conditions:
- Supply voltage: 1.7 V ~ 5.5 V
- Operating temperature: -40 to 85 °C
- Max CPU frequency: Up to 24 MHz
Features:
- 32-bit ARM Cortex-M0+ core, up to 24 MHz
- 24 Kbytes Flash memory
- 3 Kbytes SRAM
- Internal 24 MHz RC Oscillator (HSI)
- Internal 32.768 KHz RC Oscillator (LSI)
- 32.768 KHz low speed crystal oscillator (LSE)
- Low power modes: Sleep/Stop
- Power-on/Power-down reset (POR/PDR)
- Brownout Detect Reset (BOR)
- Up to 18 I/Os, all available as external interrupts
- 1x 12-bit ADC, supports up to 8 external input channels and 2 internal channels
- Four ADC reference sources: Built-in 1.5 V/2.048 V/2.5 V, supply voltage VCC
- A 16-bit advanced control timer (TIM1)
- A general purpose 16-bit timer (TIM14)
- A low-power timer (LPTIM), supports wakeup from stop mode
- An Independent Watching Timer (IWDG)
- A SysTick timer
- A Serial Peripheral Interface (SPI)
- A Universal Synchronous/Asynchronous Transceiver (USART)
- A I2C interface, supports standard mode (100 KHz), fast mode (400 KHz), 7-bit addressing mode
- Hardware CRC-32 module
- Two compar
Features
- Core
- -32 bits ARM ® Cortex ® - M0+
- -Up to 24 MHz as a maximum frequency
- Memories
- -24 Kbytes Flash memory
- -3 Kbytes SRAM
- Clock system
- -Internal 24 MHz RC Oscillator (HSI)
- -Internal 32.768 KHz RC Oscillator (LSI)
- -32.768 KHz low speed crystal oscillator (LSE)
- -External clock input
- Power management and reset
- -Operating voltage : 1.7 V ~ 5.5 V
- -Low power modes: Sleep/Stop
- -Power-on/Power-down reset (POR/PDR)
- -Brownout Detect Reset (BOR)
- General purpose input and output (I/O)
- -Up to 18 I/Os , all available as external interrupts
- 1 x 12 bits ADC
- -Support up to 8 external input channels and 2 internal channels
- -Four reference sources:
Built-in 1.5 V/2.048 V/2.5 V reference voltage, supply voltage VCC
- Timer
- -A 16 bits advanced control timer (TIM1)
- -A general purpose 16-bit timer (TIM14)
- -A low-power timer (LPTIM) , supports wakeup form stop mode
- -An Independent Watching Timer (IWDG)
- -A SysTick timer
- Communication interface
- -A Serial Peripheral Interface (SPI)
- -A Universal Synchronous/Asynchronous Transceiver (USART) with automatic
- -A I 2 C interface , supports standard mode (100 KHz) 、 fast mode (400 KHz) , support 7 bits addressing mode
- Hardware CRC-32 module
- Two comparators
- Unique UID
- Serial wire debug (SWD)
- Working temp. : -40 ~ 85 ° C, -40 ~ 105 ° C
- Package: QFN20, TSSOP20, QFN16 , SOP16, SOP14 , SOP8
Pin Configuration
PY32F002BF15U6TU — QFN20 Pinout
| Pin Number | Pin Name | Type | Port Structure | Description / Multiplexing Functions | Additional Features |
|---|---|---|---|---|---|
| 1 | PC0-NRST | I/O | RST | TIM1_CH1N, EVENTOUT | NRST, ADC_IN5 |
| 2 | PC1-OSCIN | I/O | COM | SPI_MISO | OSCIN |
| 3 | PB7-OSCOUT | I/O | COM | SPI_MOSI, TIM14_CH1 | OSCOUT |
| 4 | VSS | S | — | Ground | — |
| 5 | PB6(SWDIO) | I/O | COM | SPI_MISO, USART_TX, I²C_SDA | ADC_IN6 |
| 6 | VCC | S | — | Digital power supply | — |
| 7 | PB5 | I/O | COM | SPI_NSS, USART_RX | — |
| 8 | PB4 | I/O | COM | USART_TX, I²C_SDA, TIM1_BKIN | — |
| 9 | PB3 | I/O | COM | USART_CK, I²C_SCL, TIM1_ETR, CMP1_OUT | — |
| 10 | PB2 | I/O | COM | SPI_SCK, USART_CTS, TIM1_CH1N | — |
| 11 | PB1 | I/O | COM | TIM1_CH3, USART_RTS, TIM1_CH2N, TIM1_CH4, MCO | ADC_IN0, CMP1_INP, CMP1_INM |
| 12 | PB0 | I/O | COM | SPI_SCK, USART_CK, TIM1_CH2 | ADC_IN7, CMP1_INM |
| 13 | PA0 | I/O | COM | SPI_MOSI, TIM1_CH1 | — |
| 14 | PA1 | I/O | COM | TIM1_CH2 | — |
| 15 | PA2(SWCLK) | I/O | COM | USART_RX, I²C_SCL, TIM1_CH4, CMP2_OUT | — |
| 16 | PA3 | I/O | COM | USART_TX, TIM1_CH2 | ADC_IN1, CMP2_INP, CMP2_INM |
| 17 | PA4 | I/O | COM | USART_RX, TIM1_CH3, TIM14_CH1 | ADC_IN2, CMP2_INM |
| 18 | PA5 | I/O | COM | USART_CK, TIM1_CH1, TIM14_CH1 | — |
| 19 | PA6 | I/O | COM | SPI_NSS, USART_TX, EVENTOUT | ADC_IN3, External_clock_in |
| 20 | PA7 | I/O | COM | SPI_MOSI, USART_TX, USART_RX, TIM1_CH4, MCO, SWDIO | ADC_IN4 |
Notes
- PC0-NRST (Pin 1): Configurable as either PC0 or NRST/SWDIO via option bytes. When configured as NRST, it serves as the reset pin with internal pull-up.
- PB6-SWDIO (Pin 5) and PA2-SWCLK (Pin 15): After reset, these pins are configured as SWDIO and SWCLK alternate functions (with internal pull-up and pull-down resistors respectively) depending on option byte configuration.
- PA7 (Pin 20): Includes MCO and SWDIO multiplexing options.
- All I/O ports are 5V-tolerant (COM type).
- Pin numbers extracted from QFN20 package diagram (top view).
Electrical Characteristics
Table 5-22 ADC characteristics
| Symbol | Parameter | Condition | Minimum | Typical | Maximum | Unit |
|---|---|---|---|---|---|---|
| I DD | Power consumption | @0.75 MSPS | - | 300 | - | μA |
| C IN (1) | Internal sample and hold capacitors | - | - | 5 | - | pF |
| f ADC | Convert clock frequency | V REF+ = V CC = 1.7 ~ 2.0 V | 0.8 | 3 | 6 (2) | MHz |
| f ADC | Convert clock frequency | V REF+ = V CC = 2.0 ~ 5.5 V | 0.8 | 6 | 12 (2) | MHz |
| f ADC | Convert clock frequency | V REF+ = V REFBUF | 0.375 | - | 0.75 | MHz |
| t samp (1) | Sampling time | f ADC =8 MHz | 0.438 | - | 29.94 | μs |
| t samp (1) | Sampling time | V CC = 1.7 ~ 2.0 V | 3.5 | - | 239.5 | 1/f ADC |
| t samp (1) | Sampling time | f ADC =12 MHz | 0.292 | - | 19.96 | μs |
| t samp (1) | Sampling time | V CC = 2.0 ~ 5.5 V | 3.5 | - | 239.5 | 1/f ADC |
| t samp_setup (1) | Sampling setup | V REF+ = V CC = 2.3 ~ 5.5 V | 15 | - | - | μs |
| Symbol | Parameter | Condition | Minimum | Typical | Maximum | Unit |
|---|---|---|---|---|---|---|
| time of V REFINT | ||||||
| t conv (1) | Total conversion time | - | - | 12 | - | 1/f ADC |
| t eoc (1) | Conversion end time | - | - | 0.5 | - | 1/f ADC |
| DNL (2) | Differential linearity error | - | - | ±2 | - | LSB |
| INL (2) | Integral linearity error | - | - | ±3 | - | LSB |
| Offset (2) | Offset error | - | - | ±2 | - | LSB |
- Data is based on assessment results and is not tested in production.
Absolute Maximum Ratings
If the applied voltage exceeds the absolute maximum value given in the table below, it may cause permanent damage to the chip. Only the strength ratings that can be tolerated are listed here, and it does not imply that the functional operation of the device is correct under these conditions. Operating under maximum conditions for a long time may affect the reliability of the chip.
Table 5-1 Voltage characteristics (1)
| Symbol | Description | Minimum | Maximum | Unit |
|---|---|---|---|---|
| V CC | External mains power supply | -0.3 | 6.25 | V |
| V IN | Input voltage of other pins | -0.3 | V CC +0.3 | V |
- Power supply VCC and ground VSS pins must always be connected to the external power supply within the allowable range.
Table 5-2 Current characteristics
| Symbol | Description | Maximum | Unit |
|---|---|---|---|
| I VCC | Total current flowing into V CC pin supply current) (1) | 80 | mA |
| I VSS | Total current flowing out of V SS pin (outflow current) (1) | 80 | mA |
| I IO(PIN) | Output sink current for all IOs | 20 | mA |
| Symbol | Description | Maximum | Unit |
|---|---|---|---|
| Source current for all IOs | -20 |
Table 5-3 Temperature characteristics
| Symbol | Description | Condition | Value | Unit |
|---|---|---|---|---|
| T STG | Storage temperature range | - | -65 ~ +150 | ° C |
| T O | Range of working temperature | X6 version X7 version | -40 ~ +85 -40 ~ +105 | ° C |
Ordering Information
No ordering information found in the provided section.
Get structured datasheet data via API
Get started free