Sign In
Upload
Download
Table of Contents
Contents
Add to my manuals
Delete from my manuals
Share
URL of this page:
HTML Link:
Bookmark this page
Add
Manual will be automatically added to "My Manuals"
×
Bookmark added
×
Added to my manuals
Manuals
Brands
STMicroelectronics Manuals
Microcontrollers
STM8
Manual
Table Of Contents - STMicroelectronics STM8 Manual
Hide thumbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
Table Of Contents
127
page
of
127
Go
/
127
Contents
Table of Contents
Bookmarks
Table of Contents
Advertisement
Table of Contents
Starting Stm8 Microcontrollers
1
The Stm8 Family
2
Overview Of The Discovery Board
3
Hardware Tools
5
Software Tools
7
Stm8Cubemx
11
Preparing The Software Tools
12
Creating A New Code Project
14
Uploading Code
20
General Purpose Input Output (Gpio)
24
Functions
26
Hardware Connection
27
Code Example
27
Explanation
28
Demo
29
Video Link
29
Clock System (Clk)
30
External Interrupt (Exti)
34
Stm8_Interrupt_Vector.c
38
Stm8S_It.h
39
Stm8S_It.c
39
Beeper (Beep)
41
Alphanumerical Lcd
44
Analog-To-Digital Converter (Adc)
51
Analog Watchdog (Awd)
56
Independent Watchdog (Iwdg)
62
Window Watchdog (Wwdg)
67
Timer Overview
71
Time Base Generation (Tim2)
72
Timer Interrupt (Tim4)
76
General Purpose Pulse Width Modulation (Tim2 Pwm)
82
Advanced Pulse Width Modulation (Tim1 Pwm)
86
Timer Input Capture (Tim1 & Tim2)
91
Stm8_Interrupt_Vector.c (Interrupt Vector Address Part Only)
94
Stm8S_It.h (Top Part Only)
94
Stm8S_It.c (Top Part Only)
94
Communication Overview
98
Serial Communication (Uart)
99
Serial Peripheral Interface (Spi)
104
Inter-Integrated Circuit (I2C)
111
Some Useful Tips
119
Creation & Addition Of Libraries
119
Peripheral Clock Configurations
121
Configuring Similar Stuffs Quickly
122
Some Stuffs About Cosmic C And Spl
122
Unlocking A Locked Stm8 Chip
124
Mastering C Language
125
Epilogue
126
Previous
Page
1
...
126
127
Show Quick Links
Quick Links:
Analog-To-Digital Converter (Adc)
Timer Overview
Time Base Generation (Tim2)
Timer Interrupt (Tim4)
General Purpose Pulse Width Modulation (Tim2...
Advanced Pulse Width Modulation (Tim1 Pwm)
Hide quick links:
Permanently
Temporary
Cancel
Advertisement
Table of Contents
Need help?
Do you have a question about the STM8 and is the answer not in the manual?
Ask a question
Questions and answers
Related Manuals for STMicroelectronics STM8
Microcontrollers STMicroelectronics STM32F427 Manual
(36 pages)
Microcontrollers STMicroelectronics STM32L151CB Manual
Ultralow power arm-based 32-bit mcu with up to 128 kb flash,rtc, lcd, usb, usart, i2c, spi, timers, adc, dac, comparators (109 pages)
Microcontrollers STMicroelectronics STM32L162RC Manual
Ultra-low-power 32-bit mcu arm-based cortex -m3, 256kb flash, 32kb sram, 8kb eeprom, lcd, usb, adc, dac, aes (124 pages)
Microcontrollers STMicroelectronics STM32L151RE Manual
Ultra-low -power 32-bit mcu arm-based cortex-m3 with 512kb flash, 80kb sram, 16kb eerom, lcd, usb, adc, dac (134 pages)
Microcontrollers STMicroelectronics STM32L100RC Manual
Ultra-low-power 32b mcu arm-based cortex-m3, 256kb flash, 16kb sram, 4kb eeprom, lcd, usb, adc, dac, memory i/f (104 pages)
Microcontrollers STMicroelectronics STM32L151QCH6 Manual
Ultra-low-power 32b mcu arm-based cortex-m3, 256kb flash, 32kb sram, 8kb eeprom, lcd, usb, adc, dac (134 pages)
Microcontrollers STMicroelectronics STM32F038C6 Manual
Arm-based 32-bit mcu with 32 kbyte flash, 9 timers, adc and communication interfaces, 1.8 v (103 pages)
Microcontrollers STMicroelectronics STM32F042F4 Manual
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 (118 pages)
Microcontrollers STMicroelectronics STM32F042G4 Manual
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 (117 pages)
Microcontrollers STMicroelectronics STM32F031F4 Manual
Arm-based 32-bit mcu with up to 32 kbyte flash, timers, adc and communication interfaces, 2.0 - 3.6 v (113 pages)
Microcontrollers STMicroelectronics STM32 Application Note
Microcontroller debug toolbox (118 pages)
Microcontrollers STMicroelectronics STM32F05 series Reference Manual
Advanced arm-based 32-bit mcus (742 pages)
Microcontrollers STMicroelectronics STM32F469I-DISCO User Manual
(30 pages)
Microcontrollers STMicroelectronics STM32WLEx Reference Manual
Advanced arm-based 32-bit mcus with sub-ghz radio solution (1306 pages)
Microcontrollers STMicroelectronics STM32WL5 Series Reference Manual
Advanced arm-based 32-bit mcus with sub-ghz radio solution (1450 pages)
Microcontrollers STMicroelectronics STM32H7 User Manual
(49 pages)
Related Products for STMicroelectronics STM8
STMicroelectronics STM32L152CCT6
STMicroelectronics STM32L152CCU6
STMicroelectronics STM32L152VCH6
STMicroelectronics STM32L151ZE
STMicroelectronics STM32L151RCY6
STMicroelectronics STM32L152QCH6
STMicroelectronics STM32L152VCT6A
STMicroelectronics STM32L152ZCT6
STMicroelectronics STM32F042K4
STMicroelectronics STM32F042G6
STMicroelectronics STM32F050G6
STMicroelectronics STM32F050G4
STMicroelectronics STM32F042C4
STMicroelectronics STM32F031G4
STMicroelectronics STM32F031C4
STMicroelectronics STM32F031F4
Table of Contents
Save PDF
Print
Rename the bookmark
Delete bookmark?
Delete from my manuals?
Login
Sign In
OR
Sign in with Facebook
Sign in with Google
Upload manual
Upload from disk
Upload from URL
Need help?
Do you have a question about the STM8 and is the answer not in the manual?
Questions and answers