ST STM8A-DISCOVERY User Manual
ST STM8A-DISCOVERY User Manual

ST STM8A-DISCOVERY User Manual

Discovery kit for stm8a microcontrollers
Table of Contents

Advertisement

Quick Links

Introduction
The STM8A-DISCOVERY helps you discover the STM8AF and STM8AL automotive
microcontroller family features and develop your applications through two dedicated
application boards that can be connected together via a LIN network.
The STM8AF board can perform both CAN and LIN communications with the MCU powered
at 5 V and is ready to be connected into a network with its integrated transceiver.
The STM8AL board manages LIN slave communication through its transceiver and uses a
4-digit alphanumeric LCD display with the MCU powered at 3.3 V, offering low energy power
modes.
Both STM8AF and STM8AL boards include push buttons, LEDs, external connectors and
allow various configurations to take advantage of the numerous capabilities of the
microcontrollers.
Figure 1.
Figure 2.
November 2012
Discovery kit for STM8A microcontrollers
STM8A-DISCOVERY
STM8AF
board
Applicable tools
Type
Evaluation tools
Doc ID 023645 Rev 1
UM1574
User manual
STM8A-DISCOVERY
STM8AL
board
Part number
STM8A-DISCOVERY
1/48
www.st.com

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM8A-DISCOVERY and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for ST STM8A-DISCOVERY

  • Page 1 STM8A-DISCOVERY Discovery kit for STM8A microcontrollers Introduction The STM8A-DISCOVERY helps you discover the STM8AF and STM8AL automotive microcontroller family features and develop your applications through two dedicated application boards that can be connected together via a LIN network. The STM8AF board can perform both CAN and LIN communications with the MCU powered at 5 V and is ready to be connected into a network with its integrated transceiver.
  • Page 2: Table Of Contents

    Embedded ST-LINK/V2 ........
  • Page 3 UM1574 Contents STM8AL board mechanical drawing ......36 STM8AF board electrical schematics ......37 STM8AL board electrical schematics .
  • Page 4 List of tables UM1574 List of tables Table 1. ON/OFF conventions ............6 Table 2.
  • Page 5 STM8AF board ST-LINK/V2 (SWIM only)........
  • Page 6: Conventions

    Conventions UM1574 Conventions Table 1 provides the definitions of some conventions used in the present document. Table 1. ON/OFF conventions Convention Definition Jumper JPx ON Jumper fitted Jumper JPx OFF Jumper not fitted Jumper JPx 1-2 Jumper is fitted between pins 1 and 2 Jumper JPx 2-3 Jumper is fitted between pins 2 and 3 Solder bridge SBx ON...
  • Page 7: Quick Start

    UM1574 Quick start Quick start The STM8A-DISCOVERY is a low-cost and easy-to-use development kit to quickly evaluate and start a development with STM8AF and STM8AL microcontrollers family devices. STM8AF devices offer high performance and full automotive network connectivity with high speed CAN and LIN master/slave modes communications.
  • Page 8: Features

    Features UM1574 Features The STM8A-DISCOVERY offers different features combined with STM8AF and STM8AL boards: STM8AF and STM8AL common board features: ● On-board ST-LINK/V2 included for debugging and programming ● Board power supply: through 5 V USB bus ● Internal dual ST662A step-up converter building the 12 Vdc when powered by USB port ●...
  • Page 9: Hardware And Layout

    STM8AL boards. The embedded ST-LINK/V2 can be used to program/debug the MCU on the board and supports SWIM for STM8 devices. The ST-LINK/V2 must be connected with the dual type A to mini-B USB cable provided in the blister. Caution: First connect the dual type A on the PC side (both type A connectors must be plugged in) then connect the mini-B USB to the board (STM8AF or STM8AL boards).
  • Page 10: Debugging Stm8A-Discovery

    Hardware and layout UM1574 4.1.2 Debugging STM8A-DISCOVERY The STM8A-DISCOVERY is composed by a STM8AF board connected to a STM8AL board. A PC can be connected to the STM8AF or STM8AL board side while programming/debugging the STM8AF5288T or the STM8AL3L68T. ●...
  • Page 11: Power Supply

    When the STM8AF board is connected to the STM8AL board, different schemes are possible: ● The USB cable is used to simply provide the power supply to the STM8A-DISCOVERY. In that case, it can be connected either to the STM8AF or STM8AL board side. ●...
  • Page 12 STM8AF and STM8AL boards. This device is a power SS0-36-pin package. Figure 5 illustrates the L99PM62GXP block diagram. For further information on the L99PM62GXP device and to explore its numerous capabilities, please refer to datasheet available at www.st.com. 12/48 Doc ID 023645 Rev 1...
  • Page 13: Figure 5. L99Pm62Gxp Block Diagram

    UM1574 Hardware and layout Figure 5. L99PM62GXP block diagram MS31061V1 Doc ID 023645 Rev 1 13/48...
  • Page 14: Stm8Af Board Dedicated Resources

    The STM8AF board is designed around the STM8AF5288T microcontroller in a 48-pin LQFP package. Figure 6 illustrates the connections between the STM8AF5288T and the different peripherals (ST-LINK/V2, L99PM62GXP IC, push buttons, LED and connectors). Figure 6 Figure 7 help you locate these features on the STM8AF board.
  • Page 15: Figure 7. Stm8Af Board Top Layout

    UM1574 Hardware and layout Figure 7. STM8AF board top layout ST-LINK/V2 LD1 (red/green LED) (red LED) PWR (red LED) LD3, (green LED) LD4, (green LED) LD5, (green LED) LD6, (green LED) LD7 STM8AF5288T JP3 (I measurement) L99PM62GXP JP1 (FLASH/LIN) VBAT...
  • Page 16: Figure 8. Stm8Af Board Bottom Layout

    Hardware and layout UM1574 Figure 8. STM8AF board bottom layout SB1 (RESERVED) SB2 (STM_RST) SB3 (MCO) SB4, SB5 (RESERVED) SB6 (L99PM62GXP) SB7 (CAN supply) SB8 (Start-up delay) SB9 (CAN SB10, SB11 (USB5V) terminating resistor) MS31063V1 SB12, SB13 (RESERVED) 16/48 Doc ID 023645 Rev 1...
  • Page 17: Stm8Af5288T Microcontroller

    UM1574 Hardware and layout 4.2.1 STM8AF5288T microcontroller This automotive 8-bit MCU has 64 Kbytes Flash, 2 Kbytes data EEPROM, 10-bit ADC, timers, LIN, CAN, USART, SPI, I2C and operates from 3 to 5.5 V. Figure 9. STM8AF5288T package STM8AF5288T 64 Kbytes of Flash memory 2 Kbytes of EEPROM 4 Kbytes of RAM LQFP48 7x7...
  • Page 18: Figure 10. Stm8Af5288T Block Diagram

    Hardware and layout UM1574 Figure 10. STM8AF5288T block diagram Reset block XTAL 1-24 MHz Clock controller Reset Reset RC int. 16 MHz Detector RC int. 128 kHz Clock to peripherals and core Window WDG STM8A CORE IWDG Single wire Up to 128 Kbyte Debug/SWIM debug interf.
  • Page 19: Stm8Af Board Leds

    ● LD1 COM: LD1 default status is red. LD1 turns to green to indicate that communications are in progress between the PC and the ST-LINK/V2. ● LD2 PWR: red LED indicates that the board is powered and that 5 V is output from L99PM62GXP power management IC.
  • Page 20: Stm8Af Board Solder Bridges

    State Description SB1 (Reserved) Reserved, do not modify. NRST signal of STM32F103C8T6 (ST-LINK/V2) is not connected to GND. (STM_RST) NRST signal of STM32F103C8T6 (ST-LINK/V2) is connected to GND. MCO clock from STM32F103C8T6 is not connected to PA1 (OSC_IN) of STM8AF5288T.
  • Page 21: Stm8Af Board Jumpers Selection

    UM1574 Hardware and layout 4.2.5 STM8AF board jumpers selection Table 3. STM8AF board jumper selection Jumper State Description Flash mode selected (LIN/FLASH) LIN communication enabled. Flash mode selected (CAN/FLASH) CAN communication enabled. Standard operation, 5 V connected to the V of the microcontroller.
  • Page 22: Table 5. Stm8Af Board P2 Pinout Microcontroller Connectivity

    Low-side driver output (2  typ.) REL1 Low-side driver output (2  typ.) REL2 Digital ground External power supply (12 Vdc typ.) 1. For additional information on L99PM62GXP device connectivity, please refer to product datasheet available at www.st.com. 22/48 Doc ID 023645 Rev 1...
  • Page 23: Stm8Al Board Dedicated Resources

    The STM8AL board is designed around the STM8AL3L68T microcontroller in a 48-pin LQFP package. Figure 11 illustrates the connections between the STM8AL3L68T and the different peripherals (ST-LINK/V2, L99PM62GXP IC, push buttons, LED, I measurement circuitry, LCD and connectors). Figure 11 Figure 12 help you to locate these features on the STM8AL board.
  • Page 24: Figure 12. Stm8Al Board Top Layout

    Hardware and layout UM1574 Figure 12. STM8AL board top layout ST-LINK/V2 LD1 (red/green LED) LD2 (red LED) PWR LCD 24 segments IDD module JP2 (I (red LED) LD3 STM8AL3L68T (green LED) LD4 JP3 (RESERVED) L99PM62GXP VBAT B1 USER1 button B2 USER2 button...
  • Page 25: Figure 13. Stm8Al Board Bottom Layout

    UM1574 Hardware and layout Figure 13. STM8AL board bottom layout SB1 (RESERVED) SB2 (STM_RST) SB4, SB5 (RESERVED) SB3 (MCO) SB6, SB7, SB8 circuitry) SB9, SB10 (Xtal 32.768 kHZ) SB11 (L99M62GXP Reset) SB12 (RESERVED) SB13, SB14 (USB5V) SB15, SB16 (RESERVED) MS31064V1 Doc ID 023645 Rev 1 25/48...
  • Page 26: Stm8Al3L68T Microcontroller

    Hardware and layout UM1574 4.3.1 STM8AL3L68T microcontroller This automotive 8-bit ultralow power MCU has 32 Kbytes Flash, 1 Kbytes data EEPROM, RTC, LCD, timers, USART, I2C, SPI, ADC, DAC and comparators. Figure 14. STM8AL3L68T package STM8AL3L68T 32 Kbytes of Flash memory 1 Kbytes of EEPROM 2 Kbytes of RAM LQFP48 7x7...
  • Page 27: Figure 15. Stm8Al3L68T Mcu Block Diagram

    UM1574 Hardware and layout Figure 15. STM8AL3L68T MCU block diagram OSC_IN, 1-16 MHz oscillator OSC_OUT Power =1.65 V DD18 Clock 3.6 V 16 MHz internal RC controller VOLT. REG. OSC32_IN, Clocks 32 kHz oscillator OSC32_OUT to core and 38 kHz internal RC peripherals RESET NRST...
  • Page 28: Stm8Al Board Leds

    LD1 COM: LD1 default status is red. LD1 turns to green to indicate that communications are in progress between the PC and the ST-LINK/V2. LD2 PWR: red LED indicates that the board is powered and that 3.3 V is generated by the regulator supplied by the L99PM62GXP power management IC.
  • Page 29: Figure 16. Stm8Al Board Idd Measurement Circuit

    UM1574 Hardware and layout Figure 16. STM8AL board I measurement circuit IDD Measure V DD MAX9938FEUK+ IDD_Measurement 2(1%) 74H1G66STR 2K(1%) 74LX1G04CTR 100nF I DD_CNT_EN IDD_WAKEUP STS4 DPF20L M74HC4060TTR Oscillator frequency 30 KHz MS31059V1 ● Run mode In Run mode, I current is measured using the operational amplifier MAX9938FEUK+ (U8) ...
  • Page 30: Figure 17. Stm8Al Board Idd Low Power Mode Measurement Timing Diagram

    Hardware and layout UM1574  The measurement timing is given in Figure 17. In Low power modes, the 2 K resistor is connected when the U5 switch goes off after entering Low power mode. The Q13 output of  the counter allows connection of the 2 K resistor when the current I becomes very low.
  • Page 31: Stm8Al Board Lcd (16 Segments, 4 Commons)

    UM1574 Hardware and layout 4.3.5 STM8AL board LCD (16 segments, 4 commons) This LCD allows the STM8AL3L68T to display any information on four 14-segment digits and 4 BARs, using all COMs. (See the LCD segment mapping in Figure 18 and pin connections in Table 7).
  • Page 32: Table 7. Lcd Connections

    Hardware and layout UM1574 Table 7. LCD connections STM8AL3L68T Pin Name COM3 COM2 COM1 COM0 1COLON 2COLON PE3_LCDSEG4 PE4_LCDSEG5 3COLON PE5_LCDSEG6 PD0_LCDSEG7 4COLON PD2_LCDSEG8 PD3_LCDSEG9 BAR2 BAR3 PB0_LCDSEG10 PB1_LCDSEG11 BAR0 BAR1 PD1_LCDCOM3 COM3 PA6_LCDCOM2 COM2 PA5_LCDCOM1 COM1 PA4_LCDCOM0 COM0 PB2_LCDSEG12 PB3_LCDSEG13 PA7_LCDSEG0 PE0_LCDSEG1...
  • Page 33: Stm8Al Board Solder Bridges

    State Description SB1 (Reserved) Reserved, do not modify. OFF NRST signal of STM32F103C8T6 (ST-LINK/V2) is not connected to GND. (STM_RST) NRST signal of STM32F103C8T6 (ST-LINK/V2) is connected to GND. MCO clock from STM32F103C8T6 is not connected to PA2 (OSC_IN) of STM8AL3L68T.
  • Page 34: Stm8Al Board Extension Connection

    Low-side driver output (2  typ.) REL1 Low-side driver output (2  typ.) REL2 Digital ground VBAT External power supply (12Vdc typ.) 1. For additional information on L99PM62GXP device connectivity, please refer to product datasheet available at www.st.com. 34/48 Doc ID 023645 Rev 1...
  • Page 35: Stm8A-Discovery Boards Mechanical Drawing

    UM1574 STM8A-DISCOVERY boards mechanical drawing STM8A-DISCOVERY boards mechanical drawing STM8AF board mechanical drawing Figure 19. STM8AF board mechanical drawing Doc ID 023645 Rev 1 35/48...
  • Page 36: Stm8Al Board Mechanical Drawing

    STM8A-DISCOVERY boards mechanical drawing UM1574 STM8AL board mechanical drawing Figure 20. STM8AL board mechanical drawing 36/48 Doc ID 023645 Rev 1...
  • Page 37: Stm8Af Board Electrical Schematics

    STM8AF board electrical schematics Figure 21. STM8AF board top level SB13 VBAT U_ST_LINK SB11 USB5V ST_LINK_V2.SCHDOC CANL CANH STM8AF_USART_RX STM8AF_USART_TX ST_LINK_SWIM Header F 90° 5x2H ST_LINK_SWIM NRST NRST CANH Header 5X2 CANL SB10 USB5V SB12 VBAT Header M 90° 5X2H GND Test Point U_STM8AF STM8AF.SchDoc...
  • Page 38: Figure 22. Stm8Af Board St-Link/V2 (Swim Only)

    Figure 22. STM8AF board ST-LINK/V2 (SWIM only) SWIM 100K Board Ident: PC13=0 ST_LINK_SWIM SWIM_IN SWIM ST_LINK_SWIM Not Fitted SWIM_RST_IN SWIM_RST NRST STM32F103C8T6 STM8AF_RESET 20pF 20pF VBAT VDD_2 PC13 VSS_2 STM_JTMS PC14 JTMS/SWDIO 8MHz USB_DP PC15 PA12 OSC_IN USB_DM OSCIN PA11...
  • Page 39: Figure 23. Stm8Af Board Mcu

    Figure 23. STM8AF board MCU green ST_LINK_SWIM STM8AF_USART_RX STM8AF_USART_TX green LIN_TX LIN_RX green Not Fitted green NRST Close to XTAL & MCU 10nF User Button 2 STM8AF5288T NRST CAN_RX NRST CAN_RX CAN_TX OSCIN/PA1 CAN_TX SPI_MISO SW-PUSH-CMS OSCOUT/PA2 SPI_MISO 20pF SPI_MOSI Vssio_1 SPI_MOSI Vddio_2...
  • Page 40: Figure 24. Stm8Af Board Can/Lin And 12V

    Figure 24. STM8AF board CAN/LIN and 12V L99PM62GXP 220nF REL1 REL1 REL1 REL2 REL2 REL2 NRST OUT_HS NRST NRESET OUT_HS OUT_HS SPI_NSS R31 1K OUT1 SPI_NSS OUT1 OUT1 SPI_SCK R32 1K OUT2 SPI_SCK OUT2 OUT2 SPI_MOSI R34 1K SPI_MOSI OUT3/FSO SPI_MISO R33 1K SPI_MISO...
  • Page 41: Stm8Al Board Electrical Schematics

    STM8AL board electrical schematics Figure 25. STM8AL board top level U_ST_LINK IDD_measurement.SchDoc ST_LINK_V2.SCHDOC U_Power SB16 VBAT STM8AL_USART_RX IDD_CNT_EN SB15 IDD_CNT_EN USB5V STM8AL_USART_TX ST_LINK_SWIM IDD_Measurement CANL ST_LINK_SWIM IDD_Measurement NRST IDD_WAKEUP CANH NRST IDD_WAKEUP Header F 90° 5x2H CANH CANL SB13 USB5V GND Test Point SB14 VBAT...
  • Page 42: Figure 26. Stm8Al Board St-Link/V2 (Swim Only)

    Figure 26. STM8AL board ST-LINK/V2 (SWIM only) SWIM 100K Board Ident: PC13=0 ST_LINK_SWIM SWIM_IN SWIM ST_LINK_SWIM Not Fitted SWIM_RST_IN SWIM_RST NRST STM32F103C8T6 STM8AF_RESET 20pF 20pF VBAT VDD_2 PC13 VSS_2 PWR_STM8 STM_JTMS PC14 JTMS/SWDIO 8MHz USB_DP PC15 PA12 OSC_IN USB_DM OSCIN...
  • Page 43: Figure 27. Stm8Al Board Mcu

    Figure 27. STM8AL board MCU ST_LINK_SWIM Not Fitted green NRST NRST Close to XTAL & MCU 10nF 6.8pF 6.8pF MC306-G-06Q-32.768 (manufacturer JFVNY) 20pF Must be close to the Crystal and ON 16MHz NRST/PA1 IDD_WAKEUP PA4_LCDCOM0 20pF SB10 PA5_LCDCOM1 IDD_CNT_EN PA6_LCDCOM2 USART1_TX PA7_LCDSEG0 USART1_RX...
  • Page 44: Figure 28. Stm8Al Board Lcd

    Figure 28. STM8AL board LCD PD7_LCDSEG21 PD6_LCDSEG20 PD4_LCDSEG18 PE0_LCDSEG1 PD5_LCDSEG19 PA7_LCDSEG0 PB3_LCDSEG13 PB2_LCDSEG12 PA4_LCDCOM0 PA5_LCDCOM1 GH08172T PA6_LCDCOM2 PD1_LCDCOM3 PB1_LCDSEG11 PB0_LCDSEG10 PE3_LCDSEG4 PD3_LCDSEG9 PE4_LCDSEG5 PD2_LCDSEG8 PE5_LCDSEG6 PD0_LCDSEG7 Title: STM8AL BOARD LCD MB1037 Number: Rev: B.0(PCB.SCH) Date: 10/3/2012 Sheet...
  • Page 45: Figure 29. Stm8Al Board Idd_Measurement

    Figure 29. STM8AL board IDD_measurement IDD Measure MAX9938FEUK+ IDD_Measurement 2(1%) 74H1G66STR 2K(1%) 74LX1G04CTR 100nF IDD_CNT_EN IDD_WAKEUP STS4DPF20L M74HC4060TTR Oscillator frequency 30KHz Title: STM8AL BOARD IDD_Measurement MB1037 Number: Rev: B.0(PCB.SCH) Date: 10/3/2012 Sheet...
  • Page 46: Figure 30. Stm8Al Board Lin And 12V

    Figure 30. STM8AL board LIN and 12V L99PM62GXP 220nF REL1 REL1 REL1 REL2 REL2 REL2 NRST OUT_HS NRST NRESET OUT_HS OUT_HS SB11 SPI_NSS R37 1K OUT1 SPI_NSS OUT1 OUT1 SPI_SCK R38 1K OUT2 SPI_SCK OUT2 OUT2 SPI_MOSI R39 1K SPI_MOSI OUT3/FSO SPI_MISO R40 1K...
  • Page 47: Revision History

    UM1574 Revision history Revision history Table 12. Document revision history Date Revision Changes 15-Nov-2012 Initial release. Doc ID 023645 Rev 1 47/48...
  • Page 48 No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such third party products or services or any intellectual property contained therein.

Table of Contents