STM8AF6166 STMicroelectronics, STM8AF6166 Datasheet - Page 21
STM8AF6166
Manufacturer Part Number
STM8AF6166
Description
Automotive 8-bit MCU, with up to 128 Kbytes Flash, EEPROM, 10-bit ADC, timers, LIN, CAN, USART, SPI, I2C, 3 V to 5.5 V
Manufacturer
STMicroelectronics
Datasheet
1.STM8AF6168.pdf
(91 pages)
Specifications of STM8AF6166
Max Fcpu
16 MHz
Flash Program Memory
16 to 32 Kbytes Flash; data retention 20 years at 55 °C after 1 kcycle
Data Memory
0.5 to 1 Kbyte true data EEPROM; endurance 300 kcycles
Ram
1 to 2 Kbytes
Advanced Control Timer
16-bit, 4 CAPCOM channels, 3 complementary outputs, dead-time insertion and flexible synchronization
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
STM8AF6166TA
Manufacturer:
TI
Quantity:
1
Part Number:
STM8AF6166TA
Manufacturer:
ST
Quantity:
20 000
Company:
Part Number:
STM8AF6166TB
Manufacturer:
RENESAS
Quantity:
49
STM8AF61xx, STM8AF62xx
5.9.1
5.9.2
Serial peripheral interface (SPI)
The devices covered by this datasheet contain one SPI. The SPI is available on all the
supported packages.
●
●
●
●
●
●
●
●
●
●
●
●
Inter integrated circuit (I
The devices covered by this datasheet contain one I
on all the supported packages.
●
●
●
●
●
●
●
Maximum speed: 10 Mbit/s or f
Full duplex synchronous transfers
Simplex synchronous transfers on two lines with a possible bidirectional data line
Master or slave operation - selectable by hardware or software
CRC calculation
1 byte Tx and Rx buffer
Slave mode/master mode management by hardware or software for both master and
slave
Programmable clock polarity and phase
Programmable data order with MSB-first or LSB-first shifting
Dedicated transmission and reception flags with interrupt capability
SPI bus busy status flag
Hardware CRC feature for reliable communication:
–
–
I
–
–
I
–
–
Generation and detection of 7-bit/10-bit addressing and general call
Supports different communication speeds:
–
–
Status flags:
–
–
–
Error flags:
–
–
–
–
Interrupt:
2
2
C master features:
C slave features:
CRC value can be transmitted as last byte in Tx mode
CRC error checking for last received byte
Clock generation
Start and stop generation
Programmable I
Stop bit detection
Standard speed (up to 100 kHz),
Fast speed (up to 400 kHz)
Transmitter/receiver mode flag
End-of-byte transmission flag
I
Arbitration lost condition for master mode
Acknowledgement failure after address/data transmission
Detection of misplaced start or stop condition
Overrun/underrun if clock stretching is disabled
2
C busy flag
2
C address detection
Doc ID 14952 Rev 5
2
C) interface
MASTER
/2 both for master and slave
2
C interface. The interface is available
Product overview
21/91