Datasheet

DS7147 Rev 10 7/103
STM8S003F3 STM8S003K3 List of figures
8
List of figures
Figure 1. STM8S003F3/K3 value line block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Figure 2. Flash memory organization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Figure 3. STM8S003K3 LQFP32 pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Figure 4. STM8S003F3 TSSOP20 pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Figure 5. STM8S003F3 UFQFPN20 pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Figure 6. Memory map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Figure 7. Pin loading conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Figure 8. Pin input voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Figure 9. f
CPUmax
versus V
DD
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Figure 10. External capacitor C
EXT
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Figure 11. Typ. I
DD(RUN)
vs V
DD
, HSE user external clock,
f
CPU
= 16 MHz . . . . . . . . . . . . . . . . . . . . 58
Figure 12. Typ. I
DD(RUN)
vs f
CPU
, HSE user external clock,
V
DD
= 5 V . . . . . . . . . . . . . . . . . . . . . . . . 58
Figure 13. Typ. I
DD(RUN)
vs V
DD
, HSI RC osc,
f
CPU
= 16 MHz . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Figure 14. Typ. I
DD(WFI)
vs. V
DD
HSE user external clock, f
CPU
= 16MHz . . . . . . . . . . . . . . . . . . . . . 59
Figure 15. Typ. I
DD(WFI)
vs. f
CPU
, HSE user external clock, V
DD
= 5 V . . . . . . . . . . . . . . . . . . . . . . . . 60
Figure 16. Typ. I
DD(WFI)
vs V
DD
, HSI RC osc, f
CPU
= 16 MHz . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Figure 17. HSE external clock source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Figure 18. HSE oscillator circuit diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Figure 19. Typical HSI frequency variation vs V
DD
at 4 temperatures. . . . . . . . . . . . . . . . . . . . . . . . . 64
Figure 20. Typical LSI frequency variation vs V
DD
@ 4 temperatures . . . . . . . . . . . . . . . . . . . . . . . . 64
Figure 21. Typical V
IL
and V
IH
vs V
DD
@ 4 temperatures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Figure 22. Typical pull-up resistance vs V
DD
@ 4 temperatures . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Figure 23. Typical pull-up current vs V
DD
@ 4 temperatures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
Figure 24. Typ. V
OL
@ V
DD
= 5 V (standard ports) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Figure 25. Typ. V
OL
@ V
DD
= 3.3 V (standard ports) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
Figure 26. Typ. V
OL
@ V
DD
= 5 V (true open drain ports) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
Figure 27. Typ. V
OL
@ V
DD
= 3.3 V (true open drain ports) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Figure 28. Typ. V
OL
@ V
DD
= 5 V (high sink ports) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Figure 29. Typ. V
OL
@ V
DD
= 3.3 V (high sink ports) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Figure 30. Typ. V
DD
- V
OH
@ V
DD
= 5 V (standard ports) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Figure 31. Typ. V
DD
- V
OH
@ V
DD
= 3.3 V (standard ports) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Figure 32. Typ. V
DD
- V
OH
@ V
DD
= 5 V (high sink ports) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Figure 33. Typ. V
DD
- V
OH
@ V
DD
= 3.3 V (high sink ports) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
Figure 34. Typical NRST V
IL
and V
IH
vs V
DD
@ 4 temperatures . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Figure 35. Typical NRST pull-up resistance vs V
DD
@ 4 temperatures . . . . . . . . . . . . . . . . . . . . . . . 76
Figure 36. Typical NRST pull-up current vs V
DD
@ 4 temperatures . . . . . . . . . . . . . . . . . . . . . . . . . . 76
Figure 37. Recommended reset pin protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Figure 38. SPI timing diagram - slave mode and CPHA = 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
Figure 39. SPI timing diagram - slave mode and CPHA = 1
(1)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
Figure 40. SPI timing diagram - master mode
(1)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
Figure 41. Typical application with I
2
C bus and timing diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
Figure 42. ADC accuracy characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
Figure 43. Typical application with ADC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
Figure 44. LQFP32 - 32-pin, 7 x 7 mm low-profile quad flat package outline . . . . . . . . . . . . . . . . . . . 88
Figure 45. LQFP32 - 32-pin, 7 x 7 mm low-profile quad flat recommended footprint . . . . . . . . . . . . . 89
Figure 46. LQFP32 marking example (package top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
Figure 47. TSSOP20 – 20-lead thin shrink small outline, 6.5 x 4.4 mm, 0.65 mm pitch,
package outline. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91