中国电子技术网

设为首页 网站地图 加入收藏

 

[原创] ST STM8S207K8 8位MCU开发方案

关键词:工厂自动化 马达控制 电动汽车 STM8S207K8

时间:2020-01-24 12:09:01       来源:中电网

ST公司的stm8S207K8是8位微控制器(MCU),提供32KB到128KB闪存程序存储器.具有降低系统成本,性能鲁棒性,缩短开发周期和延长产品寿命优势.器件MCU的工作频率24MHz,集成了EEPROM,10为ADC,计时器和2个UART,SPI,I2C和CAN等外设.MCU在24MHz时的性能达到20 MIPS.工作电压2.95 V 到 5.5 V.在设计开发对功耗,空间和成本有严格限制的智能传感器,执行器等产品时, STM8S207K8 MCU是优先之选.主要用在家用电器,电动工具,HVAC,电源管理,照明,工厂自动化,带可充电电池的设备,马达控制,电动汽车,玩具和游戏,传感器,电源和用户接口.本文介绍了STM8S207K8主要特性,框图以及开发板NUCLEO-8S207K8 STM8 Nucleo-32主要特性,硬件框图,电路图,材料清单和PCB设计图.

The STM8S20xxx performance line 8-bit microcontrollers offer from 32 to 128 Kbytes Flash program memory. They are referred to as high-density devices in the STM8S microcontroller family reference manual.

All STM8S20xxx devices provide the following benefits: reduced system cost, performance robustness, short development cycles, and product longevity.

The system cost is reduced thanks to an integrated true data EEPROM for up to 300 k write/erase cycles and a high system integration level with internal clock oscillators, watchdog, and brown-out reset.

Device performance is ensured by 20 MIPS at 24 MHz CPU clock frequency and enhanced characteristics which include robust I/O, independent watchdogs (with a separate clock source), and a clock security system.

Short development cycles are guaranteed due to application scalability across a common family product architecture with compatible pinout, memory map and modular peripherals. Full documentation is offered with a wide choice of development tools.

Product longevity is ensured in the STM8S family thanks to their advanced core which is made in a state-of-the art technology for applications with 2.95 V to 5.5 V operating supply.

The STM8S20xxx performance line 8-bit microcontrollers offer from 32 to 128 Kbytes Flash program memory. They are referred to as high-density devices in the STM8S microcontroller family reference manual.

All STM8S20xxx devices provide the following benefits: reduced system cost, performance robustness, short development cycles, and product longevity.

The system cost is reduced thanks to an integrated true data EEPROM for up to 300 k write/erase cycles and a high system integration level with internal clock oscillators, watchdog, and brown-out reset.

Device performance is ensured by 20 MIPS at 24 MHz CPU clock frequency and enhanced characteristics which include robust I/O, independent watchdogs (with a separate clock source), and a clock security system.

Short development cycles are guaranteed due to application scalability across a common family product architecture with compatible pinout, memory map and modular peripherals. Full documentation is offered with a wide choice of development tools.

Product longevity is ensured in the STM8S family thanks to their advanced core which is made in a state-of-the art technology for applications with 2.95 V to 5.5 V operating supply.

STM8S207K8主要特性:

Core
– Max fCPU: up to 24 MHz, 0 wait states @ fCPU 16 MHz
– Advanced STM8 core with Harvard architecture and 3-stage pipeline
– Extended instruction set – Max 20 MIPS @ 24 MHz 
Memories
– Program: up to 128 Kbytes Flash; data retention 20 years at 55 °C after 10 kcycles
– Data:up to 2 Kbytes true data EEPROM; endurance 300 kcycles
– RAM: up to 6 Kbytes 
Clock, reset and supply management
– 2.95 to 5.5 V operating voltage
– Low power crystal resonator oscillator
– External clock input
– Internal, user-trimmable 16 MHz RC
– Internal low power 128 kHz RC
– Clock security system with clock monitor
– Wait, active-halt, & halt low power modes
– Peripheral clocks switched off individually
– Permanently active, low consumption power-on and power-down reset 
Interrupt management
– Nested interrupt controller with 32 interrupts
– Up to 37 external interrupts on 6 vectors 
Timers
– 2x 16-bit general purpose timers, with 2+3 CAPCOM channels (IC, OC or PWM)
– Advanced control timer: 16-bit, 4 CAPCOM channels, 3 complementary outputs, dead-time insertion and flexible synchronization
– 8-bit basic timer with 8-bit prescaler
– Auto wakeup timer
– Window watchdog, independent watchdog
 Communications interfaces
– High speed 1 Mbit/s active beCAN 2.0B
– UART with clock output for synchronous operation - LIN master mode
– UART with LIN 2.1 compliant, master/slave modes and automatic resynchronization
– SPI interface up to 10 Mbit/s
– I2C interface up to 400 Kbit/s 
10-bit ADC with up to 16 channels 
I/Os
– Up to 68 I/Os on an 80-pin package including 18 high sink outputs
– Highly robust I/O design, immune against current injection
– Development support
– Single wire interface module (SWIM) and debug module (DM) 
96-bit unique ID key for each device

图1. STM8S207K8框图

开发板NUCLEO-8S207K8 STM8 Nucleo-32

The NUCLEO-8S207K8 STM8 Nucleo-32 board featuring the STM8S207K8T6C STM8 8-bit MCU provides an affordable and flexible way for users to try out new concepts and build prototypes with STM8S Series microcontrollers in LQFP32 package, choosing from the various combinations of performance, power consumption, and features. The ARDUINO® Nano connectivity support makes it easy to expand the functionality of the Nucleo-32 open development platform with a wide choice of specialized shields. The STM8 Nucleo-32 board does not require any separate probe as it integrates the ST-LINK/V2-1 debugger/programmer and comes with the STM8 standard peripheral library, together with various packaged software examples.


图2. 开发板NUCLEO-8S207K8 外形图
左:正面     右:背面

开发板NUCLEO-8S207K8主要特性:

• STM8 microcontroller in LQFP32 32-pin package
• 4 LEDs:
– USB communication (LD1)
– Power (LD2)
– User (LD3)
– Default (LD4)
• 1 reset push-button
• Board connectors:
– ARDUINO® Nano V3 expansion connector
– Micro-B USB connector for the ST-LINK
– SWIM interface
• Flexible power-supply options: ST-LINK USB VBUS or external sources (3.3 V, 5 V, 7 V – 12 V)
• On-board ST-LINK/V2-1 debugger/programmer with SWIM connector and USB re-enumeration capability: mass storage, Virtual COM port and debug port
• Comprehensive free software STM8 libraries including a variety of software examples
• Support of a wide choice of Integrated Development Environments (IDEs) including STMicroelectronics free STVD-STM8 (using Cosmic toolchain), IAR™, Cosmic free IDEA

图3.硬件框图

图4. STM8 Nucleo-32板外形图:正面布局


图5. STM8 Nucleo-32板外形图:背面布局


图6. STM8 Nucleo-32板机械尺寸图

STM8 Nucleo-32 board

The NUCLEO-8S207K8 STM8 Nucleo-32 board featuring the STM8S207K8T6C STM8 8-bit MCU provides an affordable and flexible way for users to try out new concepts and build prototypes with STM8S Series microcontrollers in LQFP32 package, choosing from the various combinations of performance, power consumption and features. The ARDUINO® Nano connectivity support makes it easy to expand the functionality of the Nucleo-32 open development platform with a wide choice of specialized shields. The STM8 Nucleo-32 board does not require any separate probe as it integrates the ST-LINK/V2-1 debugger/programmer and comes with the STM8 standard peripheral library, together with various packaged software examples.


MB1442-S207K8-B03_BOM

图7. STM8 Nucleo-32板电路图(1)
MB1442-S207K8-B03 Board

图8. STM8 Nucleo-32板电路图(2)

图9. STM8 Nucleo-32板电路图(3)

图10. STM8 Nucleo-32板PCB设计图(1)

图11. STM8 Nucleo-32板PCB设计图(2)

开发板NUCLEO-8S207K8材料清单见:
MB1442-S207K8-B03_BOM.xls
详情请见:
https://www.st.com/content/ccc/resource/technical/document/user_manual/group1/6b/d6/f5/78/6a/5b/46
/79/DM00489875/files/DM00489875.pdf/jcr:content/translations/en.DM00489875.pdf

stm8s207k8.pdf
en.DM00489875.pdf

  • 分享到:

 

猜你喜欢