DataSheet.es    


PDF RM0016 Data sheet ( Hoja de datos )

Número de pieza RM0016
Descripción STM8S and STM8AF microcontroller families
Fabricantes STMicroelectronics 
Logotipo STMicroelectronics Logotipo



Hay una vista previa y un enlace de descarga de RM0016 (archivo pdf) en la parte inferior de esta página.


Total 30 Páginas

No Preview Available ! RM0016 Hoja de datos, Descripción, Manual

RM0016
Reference manual
STM8S and STM8AF microcontroller families
Introduction
This reference manual provides complete information for application developers on how to
use STM8S and STM8AF microcontroller memory and peripherals.
The STM8AF is a family of microcontrollers designed for automotive applications, with
different memory densities, packages and peripherals:
The low density STM8AF devices are the STM8AF6223/26 with 8 Kbytes of Flash
memory.
The medium density STM8AF devices are the STM8AF624x, STM8AF6266/68,
STM8AF612x/4x and STM8AF6166/68 microcontrollers with 16 to 32 Kbytes of Flash
memory.
The high density STM8AF devices are the STM8AF52xx STM8AF6269/8x/Ax,
STM8AF51xx, and STM8AF6178/99/9A microcontrollers with 32 to 128 Kbytes of Flash
memory.
The STM8S is a family of microcontrollers designed for general purpose applications, with
different memory densities, packages and peripherals.
The value line low density STM8S devices are the STM8S003xx microcontrollers with 8
Kbytes of Flash memory.
The value line medium density STM8S devices are the STM8S005xx microcontrollers
with 32 Kbytes of Flash memory.
The value line high density STM8S devices are the STM8S007xx microcontrollers with 64
Kbytes of Flash memory.
The access line low density STM8S devices are the STM8S103xx and STM8S903xx
microcontrollers with 8 Kbytes of Flash memory.
The access line medium density STM8S devices are the STM8S105xx microcontrollers
with 16 to 32-Kbytes of Flash memory.
The performance line high density STM8S devices are the STM8S207xx and
STM8S208xx microcontrollers with 32 to 128 Kbytes of Flash memory.
Refer to the product datasheet for ordering information, pin description, mechanical and
electrical device characteristics, and for the complete list of available peripherals.
Reference documents
For information on programming, erasing and protection of the internal Flash memory
please refer to the STM8S and STM8AF Flash programming manual (PM0051), and to
the STM8 SWIM communication protocol and debug module user manual (UM0470).
For information on the STM8 core, refer to STM8 CPU programming manual (PM0044).
The bootloader user manual (UM0560) describes the usage of the integrated ROM
bootloader.
June 2014
DocID14587 Rev 10
1/464
www.st.com

1 page




RM0016 pdf
RM0016
Contents
9.7
9.8
9.9
9.10
Clock-out capability (CCO) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
CLK interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
CLK register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
9.9.1 Internal clock register (CLK_ICKR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
9.9.2 External clock register (CLK_ECKR) . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
9.9.3 Clock master status register (CLK_CMSR) . . . . . . . . . . . . . . . . . . . . . . 92
9.9.4 Clock master switch register (CLK_SWR) . . . . . . . . . . . . . . . . . . . . . . . 92
9.9.5 Switch control register (CLK_SWCR) . . . . . . . . . . . . . . . . . . . . . . . . . . 93
9.9.6 Clock divider register (CLK_CKDIVR) . . . . . . . . . . . . . . . . . . . . . . . . . . 94
9.9.7 Peripheral clock gating register 1 (CLK_PCKENR1) . . . . . . . . . . . . . . . 95
9.9.8 Peripheral clock gating register 2 (CLK_PCKENR2) . . . . . . . . . . . . . . . 96
9.9.9 Clock security system register (CLK_CSSR) . . . . . . . . . . . . . . . . . . . . . 97
9.9.10 Configurable clock output register (CLK_CCOR) . . . . . . . . . . . . . . . . . 98
9.9.11 HSI clock calibration trimming register (CLK_HSITRIMR) . . . . . . . . . . . 98
9.9.12 SWIM clock control register (CLK_SWIMCCR) . . . . . . . . . . . . . . . . . . 100
CLK register map and reset values . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
10 Power management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
10.1 General considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
10.1.1 Clock management for low consumption . . . . . . . . . . . . . . . . . . . . . . . 103
10.2 Low power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
10.2.1 Wait mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
10.2.2 Halt mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
10.2.3 Active-halt modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
10.3 Additional analog power controls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
10.3.1 Fast Flash wakeup from Halt mode . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
10.3.2 Very low Flash consumption in Active-halt mode . . . . . . . . . . . . . . . . . 105
11 General purpose I/O ports (GPIO) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
11.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
11.2 GPIO main features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
11.3 Port configuration and usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
11.3.1 Input modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
11.3.2 Output modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
11.4 Reset configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
11.5 Unused I/O pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
DocID14587 Rev 10
5/464
16

5 Page





RM0016 arduino
RM0016
Contents
19.6.9 Auto-reload register (TIMx_ARR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256
19.6.10 TIM4/TIM6 register map and reset values . . . . . . . . . . . . . . . . . . . . . . 257
20 Serial peripheral interface (SPI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259
20.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259
20.2 SPI main features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259
20.3 SPI functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 260
20.3.1 General description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 260
20.3.2 Configuring the SPI in slave mode . . . . . . . . . . . . . . . . . . . . . . . . . . . 264
20.3.3 Configuring the SPI master mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264
20.3.4 Configuring the SPI for simplex communications . . . . . . . . . . . . . . . . 265
20.3.5 Data transmission and reception procedures . . . . . . . . . . . . . . . . . . . 265
20.3.6 CRC calculation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272
20.3.7 Status flags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273
20.3.8 Disabling the SPI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 274
20.3.9 Error flags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 275
20.3.10 SPI low power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276
20.3.11 SPI interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 278
20.4 SPI registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279
20.4.1 SPI control register 1 (SPI_CR1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279
20.4.2 SPI control register 2 (SPI_CR2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280
20.4.3 SPI interrupt control register (SPI_ICR) . . . . . . . . . . . . . . . . . . . . . . . . 281
20.4.4 SPI status register (SPI_SR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282
20.4.5 SPI data register (SPI_DR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 283
20.4.6 SPI CRC polynomial register (SPI_CRCPR) . . . . . . . . . . . . . . . . . . . . 283
20.4.7 SPI Rx CRC register (SPI_RXCRCR) . . . . . . . . . . . . . . . . . . . . . . . . . 283
20.4.8 SPI Tx CRC register (SPI_TXCRCR) . . . . . . . . . . . . . . . . . . . . . . . . . 284
20.5 SPI register map and reset values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 284
21 Inter-integrated circuit (I2C) interface . . . . . . . . . . . . . . . . . . . . . . . . . 285
21.1
21.2
21.3
21.4
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 285
I2C main features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 285
I2C general description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 286
I2C functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 288
21.4.1 I2C slave mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 288
21.4.2 I2C master mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 290
DocID14587 Rev 10
11/464
16

11 Page







PáginasTotal 30 Páginas
PDF Descargar[ Datasheet RM0016.PDF ]




Hoja de datos destacado

Número de piezaDescripciónFabricantes
RM0016STM8S and STM8AF microcontroller familiesSTMicroelectronics
STMicroelectronics

Número de piezaDescripciónFabricantes
SLA6805M

High Voltage 3 phase Motor Driver IC.

Sanken
Sanken
SDC1742

12- and 14-Bit Hybrid Synchro / Resolver-to-Digital Converters.

Analog Devices
Analog Devices


DataSheet.es es una pagina web que funciona como un repositorio de manuales o hoja de datos de muchos de los productos más populares,
permitiéndote verlos en linea o descargarlos en PDF.


DataSheet.es    |   2020   |  Privacy Policy  |  Contacto  |  Buscar