Sign In
Upload
Manuals
Brands
STMicroelectronics Manuals
Microcontrollers
STM32F042T4, STM32F042C4
STMicroelectronics STM32F042T4, STM32F042C4 Manuals
Manuals and User Guides for STMicroelectronics STM32F042T4, STM32F042C4. We have
2
STMicroelectronics STM32F042T4, STM32F042C4 manuals available for free PDF download: Manual
STMicroelectronics STM32F042T4, STM32F042C4 Manual (118 pages)
ARM-based 32-bit MCU, up to 32 KB Flash, crystal-less USB FS 2.0, CAN, 9 timers, ADC and comm. interfaces, 2.0 - 3.6 V
Brand:
STMicroelectronics
| Category:
Microcontrollers
| Size: 1.64 MB
Table of Contents
Table 1. Device Summary
1
Table of Contents
2
Introduction
9
Description
10
Table 2. Stm32F042X4/X6 Device Features and Peripheral Counts
11
Figure 1. Block Diagram
12
Functional Overview
13
ARM ® -Cortex ® -M0 Core
13
Memories
13
Boot Modes
13
Cyclic Redundancy Check Calculation Unit (CRC)
14
Power Management
14
Power Supply Schemes
14
Power Supply Supervisors
14
Voltage Regulator
15
Low-Power Modes
15
Clocks and Startup
16
General-Purpose Inputs/Outputs (Gpios)
17
Figure 2. Clock Tree
17
Direct Memory Access Controller (DMA)
18
Interrupts and Events
18
Nested Vectored Interrupt Controller (NVIC)
18
Extended Interrupt/Event Controller (EXTI)
18
Analog-To-Digital Converter (ADC)
18
Temperature Sensor
19
Internal Voltage Reference
19
Refint )
19
Table 3. Temperature Sensor Calibration Values
19
Table 4. Internal Voltage Reference Calibration Values
19
Vbat
20
Touch Sensing Controller (TSC)
20
Table 5. Capacitive Sensing Gpios Available on Stm32F042X4/X6 Devices
20
Timers and Watchdogs
21
Advanced-Control Timer (TIM1)
21
Table 6. No. of Capacitive Sensing Channels Available on Stm32F042X Devices
21
Table 7. Timer Feature Comparison
21
General-Purpose Timers (TIM2, 3, 14, 16, 17)
22
Independent Watchdog (IWDG)
23
System Window Watchdog (WWDG)
23
Systick Timer
23
Real-Time Clock (RTC) and Backup Registers
23
Inter-Integrated Circuit Interface (I 2 C)
24
Table 8. Comparison of I
24
Universal Synchronous/Asynchronous Receiver/Transmitter (USART)
25
Table 9. Stm32F042X4/X6 I
25
Table 10. Stm32F042X4/X6 USART Implementation
25
Serial Peripheral Interface (SPI) / Inter-Integrated Sound Interface (I 2 S)
26
High-Definition Multimedia Interface (HDMI) - Consumer
26
Electronics Control (CEC)
26
Controller Area Network (CAN)
26
Table 11. Stm32F042X4/X6 SPI/I
26
Universal Serial Bus (USB)
27
Clock Recovery System (CRS)
27
Serial Wire Debug Port (SW-DP)
27
Pinouts and Pin Descriptions
28
Figure 3. LQFP48 Package Pinout
28
Figure 4. UFQFPN48 Package Pinout
28
Figure 5. WLCSP36 Package Pinout
29
Figure 6. LQFP32 Package Pinout
29
Figure 7. UFQFPN32 Package Pinout
30
Figure 8. UFQFPN28 Package
30
Table 12. Legend/Abbreviations Used in the Pinout Table
31
Figure 9. TSSOP20 Package
31
Table 13. Stm32F042X Pin Definitions
32
Table 14. Alternate Functions Selected through GPIOA_AFR Registers for Port a
37
Table 15. Alternate Functions Selected through GPIOB_AFR Registers for Port B
38
Table 16. Alternate Functions Selected through GPIOF_AFR Registers for Port F
38
Memory Mapping
39
Figure 10. Stm32F042X6 Memory Map
39
Table 17. Stm32F042X4/X6 Peripheral Register Boundary Addresses
40
Electrical Characteristics
42
Parameter Conditions
42
Minimum and Maximum Values
42
Typical Values
42
Typical Curves
42
Loading Capacitor
42
Pin Input Voltage
42
Figure 11. Pin Loading Conditions
42
Figure 12. Pin Input Voltage
42
Power Supply Scheme
43
Figure 13. Power Supply Scheme
43
Current Consumption Measurement
44
Figure 14. Current Consumption Measurement Scheme
44
Absolute Maximum Ratings
45
Table 18. Voltage Characteristics
45
Table 19. Current Characteristics
45
Operating Conditions
47
General Operating Conditions
47
Operating Conditions at Power-Up / Power-Down
47
Table 20. Thermal Characteristics
47
Table 21. General Operating Conditions
47
Embedded Reset and Power Control Block Characteristics
48
Table 22. Operating Conditions at Power-Up / Power-Down
48
Table 23. Embedded Reset and Power Control Block Characteristics
48
Table 24. Programmable Voltage Detector Characteristics
48
Embedded Reference Voltage
49
Supply Current Characteristics
49
Table 25. Embedded Internal Reference Voltage
49
Table 26. Typical and Maximum Current Consumption from V
50
Table 27. Typical and Maximum Current Consumption from the V
52
DDA Supply
52
Table 28. Typical and Maximum Consumption in Stop and Standby Modes
53
Table 29. Typical and Maximum Current Consumption from the
54
BAT Supply
54
Table 30. Typical Current Consumption, Code Executing from Flash Memory, Running from HSE 8 Mhz Crystal
55
Table 32. Peripheral Current Consumption
56
Table 31. Switching Output I/O Current Consumption
57
External Clock Source Characteristics
60
Table 33. Low-Power Mode Wakeup Timings
60
Table 34. High-Speed External User Clock Characteristics
60
Wakeup Time from Low-Power Mode
60
Figure 15. High-Speed External Clock Source AC Timing Diagram
61
Figure 16. Low-Speed External Clock Source AC Timing Diagram
61
Table 35. Low-Speed External User Clock Characteristics
61
Table 36. HSE Oscillator Characteristics
62
Figure 17. Typical Application with an 8 Mhz Crystal
63
Table 37. LSE Oscillator Characteristics
63
Figure 18. Typical Application with a 32.768 Khz Crystal
64
Internal Clock Source Characteristics
64
Figure 19. HSI Oscillator Accuracy Characterization Results for Soldered Parts
65
Table 38. HSI Oscillator Characteristics
65
Figure 20. HSI14 Oscillator Accuracy Characterization Results
66
Table 39. HSI14 Oscillator Characteristics
66
Figure 21. HSI48 Oscillator Accuracy Characterization Results
67
Table 40. HSI48 Oscillator Characteristics
67
Memory Characteristics
68
PLL Characteristics
68
Table 41. LSI Oscillator Characteristics
68
Table 42. PLL Characteristics
68
Table 43. Flash Memory Characteristics
68
EMC Characteristics
69
Table 44. Flash Memory Endurance and Data Retention
69
Table 45. EMS Characteristics
69
Electrical Sensitivity Characteristics
70
Table 46. EMI Characteristics
70
I/O Current Injection Characteristics
71
Table 47. ESD Absolute Maximum Ratings
71
Table 48. Electrical Sensitivities
71
I/O Port Characteristics
72
Table 49. I/O Current Injection Susceptibility
72
Table 50. I/O Static Characteristics
72
Figure 22. TC and Tta I/O Input Characteristics
74
Figure 23. Five Volt Tolerant (FT and Ftf) I/O Input Characteristics
74
Table 51. Output Voltage Characteristics
75
Table 52. I/O AC Characteristics
76
Figure 24. I/O AC Characteristics Definition
77
NRST Pin Characteristics
77
Table 53. NRST Pin Characteristics
77
12-Bit ADC Characteristics
78
Figure 25. Recommended NRST Pin Protection
78
Table 54. ADC Characteristics
78
Table 55. Table
79
Figure 26. ADC Accuracy Characteristics
81
Figure 27. Typical Connection Diagram Using the ADC
81
Table 57. TS Characteristics
82
Table 58. VBAT Monitoring Characteristics
82
Table 59. Timx Characteristics
82
Temperature Sensor Characteristics
82
Timer Characteristics
82
Vbat
82
Communication Interfaces
83
Table 60. IWDG Min/Max Timeout Period at 40 Khz (LSI)
83
Table 61. WWDG Min/Max Timeout Value at 48 Mhz (PCLK)
83
Table 62. I 2 C Analog Filter Characteristics
84
Table 63. SPI Characteristics
84
Figure 28. SPI Timing Diagram - Slave Mode and CPHA = 0
85
Figure 29. SPI Timing Diagram - Slave Mode and CPHA = 1
85
Figure 30. SPI Timing Diagram - Master Mode
86
Table 64. I 2 S Characteristics
86
Figure 31. I 2 S Slave Timing Diagram (Philips Protocol)
87
Figure 32. I 2 S Master Timing Diagram (Philips Protocol)
88
Table 65. USB Electrical Characteristics
89
Package Information
90
LQFP48 Package Information
90
Figure 33. LQFP48 Package Outline
90
Table 66. LQFP48 Package Mechanical Data
91
Figure 34. Recommended Footprint for LQFP48 Package
91
Figure 35. LQFP48 Package Marking Example
92
UFQFPN48 Package Information
93
Figure 36. UFQFPN48 Package Outline
93
Table 67. UFQFPN48 Package Mechanical Data
94
Figure 37. Recommended Footprint for UFQFPN48 Package
94
Figure 38. UFQFPN48 Package Marking Example
95
WLCSP36 Package Information
96
Table 68. WLCSP36 Package Mechanical Data
96
Figure 39. WLCSP36 Package Outline
96
Table 69. WLCSP36 Recommended PCB Design Rules
97
Figure 40. Recommended Pad Footprint for WLCSP36 Package
97
Figure 41. WLCSP36 Package Marking Example
98
LQFP32 Package Information
99
Figure 42. LQFP32 Package Outline
99
Table 70. LQFP32 Package Mechanical Data
100
Figure 43. Recommended Footprint for LQFP32 Package
100
UFQFPN32 Package Information
101
Figure 44. LQFP32 Package Marking Example
101
Figure 45. UFQFPN32 Package Outline
102
Table 71. UFQFPN32 Package Mechanical Data
103
Figure 46. Recommended Footprint for UFQFPN32 Package
103
Figure 47. UFQFPN32 Package Marking Example
104
UFQFPN28 Package Information
105
Table 72. UFQFPN28 Package Mechanical Data
105
Figure 48. UFQFPN28 Package Outline
105
Figure 49. Recommended Footprint for UFQFPN28 Package
106
Figure 50. UFQFPN28 Package Marking Example
107
TSSOP20 Package Information
108
Table 73. TSSOP20 Package Mechanical Data
108
Figure 51.TSSOP20 Package Outline
108
Figure 52. Recommended Footprint for TSSOP20 Package
109
Figure 53. TSSOP20 Package Marking Example
110
Thermal Characteristics
111
Reference Document
111
Selecting the Product Temperature Range
111
Table 74. Package Thermal Characteristics
111
Ordering Information
113
Table 75. Ordering Information Scheme
113
Revision History
114
Table 76. Document Revision History
114
Advertisement
STMicroelectronics STM32F042T4, STM32F042C4 Manual (117 pages)
ARM-based 32-bit MCU, up to 32 KB Flash, crystal-less USB FS 2.0, CAN, 8 timers, ADC & comm. interfaces, 2.0 - 3.6 V
Brand:
STMicroelectronics
| Category:
Microcontrollers
| Size: 1.99 MB
Table of Contents
Table 1. Device Summary
1
Table of Contents
2
Introduction
9
Description
10
Table 2. Stm32F042X Device Features and Peripheral Counts
11
Figure 1. Block Diagram
12
Functional Overview
13
ARM® Cortex®-M0 Core with Embedded Flash and SRAM
13
Memories
13
Boot Modes
13
Cyclic Redundancy Check Calculation Unit (CRC)
14
Power Management
14
Power Supply Schemes
14
Power Supply Supervisors
14
Voltage Regulator
15
Low-Power Modes
15
Clocks and Startup
16
General-Purpose Inputs/Outputs (Gpios)
17
Figure 2. Clock Tree
17
Direct Memory Access Controller (DMA)
18
Interrupts and Events
18
Nested Vectored Interrupt Controller (NVIC)
18
Extended Interrupt/Event Controller (EXTI)
18
Analog to Digital Converter (ADC)
18
Temperature Sensor
19
Internal Voltage Reference
19
Refint )
19
Table 3. Temperature Sensor Calibration Values
19
Table 4. Internal Voltage Reference Calibration Values
19
Vbat
20
Touch Sensing Controller (TSC)
20
Table 5. Capacitive Sensing Gpios Available on Stm32F042X Devices
20
Timers and Watchdogs
21
Table 6. No. of Capacitive Sensing Channels Available on Stm32F042X Devices
21
Table 7. Timer Feature Comparison
21
Advanced-Control Timer (TIM1)
22
General-Purpose Timers (TIM2
22
Independent Watchdog (IWDG)
23
System Window Watchdog (WWDG)
23
Systick Timer
23
Real-Time Clock (RTC) and Backup Registers
23
Inter-Integrated Circuit Interfaces (I 2 C)
24
Table 8. Comparison of I2C Analog and Digital Filters
24
Universal Synchronous/Asynchronous Receiver Transmitters (USART)
25
Table 9. Stm32F042X I 2 C Implementation
25
Table 10. Stm32F042X USART Implementation
25
Serial Peripheral Interface (Spi)/Inter-Integrated Sound Interfaces (I 2 S)
26
Table 11. Stm32F042X SPI/I2S Implementation
26
High-Definition Multimedia Interface (HDMI) - Consumer
27
Electronics Control (CEC)
27
Controller Area Network (CAN)
27
Universal Serial Bus (USB)
27
Clock Recovery System (CRS)
27
Serial Wire Debug Port (SW-DP)
27
Pinouts and Pin Descriptions
28
Figure 3. LQFP48 48-Pin Package Pinout (Top View)
28
Figure 4. UFQFPN48 48-Pin Package Pinout (Top View)
28
Figure 5. WLCSP36 36-Pin Package Ball-Out
29
Figure 6. LQFP32 32-Pin Package Pinout (Top View)
29
Figure 7. UFQFPN32 32-Pin Package Pinout (Top View)
30
Figure 8. UQFPN28 28-Pin Package (Top View)
30
Figure 9. TSSOP20 20-Pin Package (Top View)
31
Table 12. Legend/Abbreviations Used in the Pinout Table
32
Table 13. Stm32F042X Pin Definitions
33
Table 14. Alternate Functions Selected through GPIOA_AFR Registers for Port a
38
Table 15. Alternate Functions Selected through GPIOB_AFR Registers for Port B
39
Table 16. Alternate Functions Selected through GPIOF_AFR Registers for Port F
40
Memory Mapping
41
Figure 10. Stm32F042X Memory Map
41
Table 17. Stm32F042X Peripheral Register Boundary Addresses
42
Electrical Characteristics
44
Parameter Conditions
44
Minimum and Maximum Values
44
Typical Values
44
Typical Curves
44
Loading Capacitor
44
Pin Input Voltage
44
Figure 11. Pin Loading Conditions
44
Figure 12. Pin Input Voltage
44
Power Supply Scheme
45
Figure 13. Power Supply Scheme
45
Current Consumption Measurement
46
Figure 14. Current Consumption Measurement Scheme
46
Absolute Maximum Ratings
47
Table 18. Voltage Characteristics
47
Table 19. Current Characteristics
48
Table 20. Thermal Characteristics
48
Operating Conditions
49
General Operating Conditions
49
Table 21. General Operating Conditions
49
Operating Conditions at Power-Up / Power-Down
50
Embedded Reset and Power Control Block Characteristics
50
Table 22. Operating Conditions at Power-Up / Power-Down
50
Table 23. Embedded Reset and Power Control Block Characteristics
50
Table 24. Programmable Voltage Detector Characteristics
50
Embedded Reference Voltage
51
Table 25. Embedded Internal Reference Voltage
51
Supply Current Characteristics
52
Table 26 Table
52
Table 28. Typical and Maximum Consumption in Stop and Standby Modes
55
Table 29. Typical and Maximum Current Consumption from the VBAT Supply
56
Table 30. Typical Current Consumption, Code Executing from Flash, Running from HSE
57
Mhz Crystal
57
Table 31. Switching Output I/O Current Consumption
59
Table 32. Peripheral Current Consumption
60
Wakeup Time from Low-Power Mode
62
Table 33. Low-Power Mode Wakeup Timings
62
External Clock Source Characteristics
63
Table 34. High-Speed External User Clock Characteristics
63
Figure 15. High-Speed External Clock Source AC Timing Diagram
63
Table 35. Low-Speed External User Clock Characteristics
64
Figure 16. Low-Speed External Clock Source AC Timing Diagram
64
Table 36. HSE Oscillator Characteristics
65
Figure 17. Typical Application with an 8 Mhz Crystal
66
Table 37. LSE Oscillator Characteristics (F LSE = 32.768 Khz)
67
Figure 18. Typical Application with a 32.768 Khz Crystal
68
Internal Clock Source Characteristics
69
Table 38. HSI Oscillator Characteristics
69
Figure 19. HSI Oscillator Accuracy Characterization Results
69
Table 39. HSI14 Oscillator Characteristics
70
Figure 20. HSI14 Oscillator Accuracy Characterization Results
70
Table 40. HSI48 Oscillator Characteristics
71
Figure 21. HSI48 Oscillator Accuracy Characterization Results
71
PLL Characteristics
72
Table 41. LSI Oscillator Characteristics
72
Table 42. PLL Characteristics
72
Memory Characteristics
73
EMC Characteristics
73
Table 43. Flash Memory Characteristics
73
Table 44. Flash Memory Endurance and Data Retention
73
Table 45. EMS Characteristics
74
Table 46. EMI Characteristics
74
Electrical Sensitivity Characteristics
75
I/O Current Injection Characteristics
75
Table 47. ESD Absolute Maximum Ratings
75
Table 48. Electrical Sensitivities
75
I/O Port Characteristics
76
Table 49. I/O Current Injection Susceptibility
76
Table 50. I/O Static Characteristics
76
Figure 22. TC and Tta I/O Input Characteristics
78
Figure 23. Five Volt Tolerant (FT and Ftf) I/O Input Characteristics
79
Table 51. Output Voltage Characteristics
80
Table 52. I/O AC Characteristics
81
NRST Pin Characteristics
82
Table 53. NRST Pin Characteristics
82
Figure 24. I/O AC Characteristics Definition
82
12-Bit ADC Characteristics
83
Table 54. ADC Characteristics
83
Figure 25. Recommended NRST Pin Protection
83
Table 55. RAIN Max for F ADC = 14 Mhz
85
Table 56. ADC Accuracy
85
Figure 26. ADC Accuracy Characteristics
86
Figure 27. Typical Connection Diagram Using the ADC
86
Temperature Sensor Characteristics
87
VBAT Monitoring Characteristics
87
Timer Characteristics
87
Table 57. TS Characteristics
87
Table 58. VBAT Monitoring Characteristics
87
Table 59. Timx Characteristics
87
Communication Interfaces
88
Table 60. IWDG Min/Max Timeout Period at 40 Khz (LSI)
88
Table 61. WWDG Min/Max Timeout Value at 48 Mhz (PCLK)
88
Table 62. I2C Analog Filter Characteristics
89
Table 63. SPI Characteristics
90
Figure 28. SPI Timing Diagram - Slave Mode and CPHA = 0
91
Figure 29. SPI Timing Diagram - Slave Mode and CPHA = 1
91
Table 64. I 2 S Characteristics
92
Figure 30. SPI Timing Diagram - Master Mode
92
Figure 31. I2S Slave Timing Diagram (Philips Protocol)
93
Figure 32. I2S Master Timing Diagram (Philips Protocol)
94
Package Characteristics
95
Package Mechanical Data
95
Figure 33. LQFP48 - 7 MM X 7 MM, 48 Pin Low-Profile Quad Flat Package Outline
95
Table 65. LQFP48 - 7 MM X 7 MM Low-Profile Quad Flat Package Mechanical Data
95
Figure 34. LQFP48 Recommended Footprint
96
Figure 35. LQFP48 Package Top View
97
Figure 36. UFQFPN48 - 7 MM X 7 MM, 0.5 MM Pitch, Package Outline
98
Figure 37. UFQFPN48 Recommended Footprint
99
Table 66. UFQFPN48 - 7 MM X 7 MM, 0.5 MM Pitch, Package Mechanical Data
99
Figure 38. UFQFPN48 Package Top View
100
Figure 39. WLCSP36 - 0.4 MM Pitch, Package Outline
101
Table 67. WLCSP36, 0.4 MM Pitch, Package Mechanical Data
102
Figure 40. WLCSP36 Package Top View
103
Figure 41. LQFP32 - 7 MM X 7 MM 32-Pin Low-Profile Quad Flat Package Outline
104
Table 68. LQFP32 - 7 MM X 7 MM 32-Pin Low-Profile Quad Flat Package Mechanical Data
104
Figure 42. LQFP32 Recommended Footprint
105
Figure 43. LQFP32 Package Top View
106
Figure 44. UFQFPN32 - 5 X 5 MM, 32-Lead Ultra Thin Fine Pitch Quad Flat No-Lead Package Outline
107
Mechanical Data
107
Table 69. UFQFPN32 - 5 X 5 MM, 32-Lead Ultra Thin Fine Pitch Quad Flat No-Lead Package
107
Figure 45. UFQFPN32 Recommended Footprint
108
Figure 46. UFQFPN32 Package Top View
108
Figure 47. UFQFPN28 - 4 X 4 MM, 28-Lead Ultra Thin Fine Pitch Quad Flat No-Lead Package Outline
109
Mechanical Data
109
Table 70. UFQFPN28 - 4 X 4 MM, 28-Lead Ultra Thin Fine Pitch Quad Flat No-Lead Package
109
Figure 48. UFQFPN28 Recommended Footprint
110
Figure 49. UFQFPN28 Package Top View
111
Figure 50. TSSOP20 - 20-Pin Thin Shrink Small Outline
112
Table 71. TSSOP20 - 20-Pin Thin Shrink Small Outline Package Mechanical Data
112
Figure 51. TSSOP20 Recommended Footprint
113
Figure 52. TSSOP20 Package Top View
113
Thermal Characteristics
114
Reference Document
114
Table 72. Package Thermal Characteristics
114
Part Numbering
115
Table 73. Ordering Information Scheme
115
Revision History
116
Table 74. Document Revision History
116
Advertisement
Related Products
STMicroelectronics STM32F042F4
STMicroelectronics STM32F042G4
STMicroelectronics STM32F042K4
STMicroelectronics STM32F042G6
STMicroelectronics STM32F042F6
STMicroelectronics STM32F042K6
STMicroelectronics STM32F042T6
STMicroelectronics STM32F042C6
STMicroelectronics STM32F042C4
STMicroelectronics STM32F031G6
STMicroelectronics Categories
Motherboard
Microcontrollers
Computer Hardware
Controller
Control Unit
More STMicroelectronics Manuals
Login
Sign In
OR
Sign in with Facebook
Sign in with Google
Upload manual
Upload from disk
Upload from URL