ST STM8A-DISCOVERY User Manual Download Page 8

Features

UM1574

8/48

Doc ID 023645 Rev 1

3 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

External application power supply V

BAT

 (up to 14 Vdc)

16 MHz HSE XTAL crystal oscillator

L99PM62GXP power management IC with LIN and high speed CAN with SPI control 
interface and high-side drivers

Two push buttons (USER1 and USER2)

Extension header for L99PM62GXP including relays, high-side outputs and wake-up 
capabilities

STM8AF dedicated board features:

STM8AF5288T microcontroller featuring 64 Kbytes Flash, 2 Kbytes data EEPROM, 
LIN, CAN in an 48-pin package

Seven LEDs:

LD1 (red/green) for USB communication

LD2 (red) for 5 V power ON

Five user LEDs LD3 (red) and LD4 to LD7 (green)

RV1 potentiometer connected to the ADC peripheral

Extension headers for MCU connectivity (full Port B, free ports pins, RESET)

STM8AL dedicated board features:

STM8AL3L68T microcontroller featuring 32 Kbytes Flash, 1 Kbytes data EEPROM, 
LCD in an 48-pin package

Four LEDs:

LD1 (red/green) for USB communication

LD2 (red) for 3.3 V power ON

2 user LEDs LD3 (red) and LD4 (green)

4-digit alphanumeric LCD display including 4 bars display

Extension header for MCU connectivity (free ports pins, RESET)

Summary of Contents for STM8A-DISCOVERY

Page 1: ...tions 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 digi...

Page 2: ...1 STM8AF5288T microcontroller 17 4 2 2 STM8AF board LEDs 19 4 2 3 STM8AF board Push buttons 19 4 2 4 STM8AF board solder bridges 20 4 2 5 STM8AF board jumpers selection 21 4 2 6 STM8AF board extension...

Page 3: ...UM1574 Contents Doc ID 023645 Rev 1 3 48 5 2 STM8AL board mechanical drawing 36 6 STM8AF board electrical schematics 37 7 STM8AL board electrical schematics 41 8 Revision history 47...

Page 4: ...oller connectivity 21 Table 5 STM8AF board P2 pinout microcontroller connectivity 22 Table 6 STM8AF board P3 pinout L99PM62GXP connectivity 22 Table 7 LCD connections 32 Table 8 STM8AL board solder br...

Page 5: ...rd hardware block diagram 23 Figure 12 STM8AL board top layout 24 Figure 13 STM8AL board bottom layout 25 Figure 14 STM8AL3L68T package 26 Figure 15 STM8AL3L68T MCU block diagram 27 Figure 16 STM8AL b...

Page 6: ...t 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 f...

Page 7: ...nd twice on the STM8AL board then the LIN communication between both boards starts 5 Turn the RV1 trimmer on the STM8AF board to adjust the value from 0 to 100 on the STM8AL board LCD through the LIN...

Page 8: ...or L99PM62GXP including relays high side outputs and wake up capabilities STM8AF dedicated board features STM8AF5288T microcontroller featuring 64 Kbytes Flash 2 Kbytes data EEPROM LIN CAN in an 48 pi...

Page 9: ...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 i...

Page 10: ...microcontroller when the STM8AL board or an external application board is connected Figure 3 Debugging the STM8AF microcontroller when the STM8AL board or an external application board is connected E...

Page 11: ...clude an internal 5 V to 12 V step up converter that is needed to build the voltages required for LIN or CAN networks The 5 V USB is then converted into 12 V voltage that supplies the integrated L99PM...

Page 12: ...diagnosis of the device A lot of features are offered to control low and high side drivers using the embedded and configurable PWM timers window watchdog wake up capability Some of their outputs are...

Page 13: ...UM1574 Hardware and layout Doc ID 023645 Rev 1 13 48 Figure 5 L99PM62GXP block diagram MS31061V1 y...

Page 14: ...INK V2 L99PM62GXP IC push buttons LED and connectors Figure 6 and Figure 7 help you locate these features on the STM8AF board Figure 6 STM8AF board hardware block diagram MS31074V1 Mini USB Embedded S...

Page 15: ...5V2 ST LINK V2 LD2 red LED PWR red LED LD3 green LED LD4 green LED LD5 green LED LD6 green LED LD7 JP3 I measurement DD JP1 FLASH LIN ST662A JP2 FLASH CAN B2 USER2 button CN3 Female external CN4 Male...

Page 16: ...8 Doc ID 023645 Rev 1 Figure 8 STM8AF board bottom layout MS31063V1 SB1 RESERVED SB2 STM_RST SB3 MCO SB4 SB5 RESERVED SB6 L99PM62GXP SB7 CAN supply SB8 Start up delay SB9 CAN terminating resistor SB10...

Page 17: ...ycles High system integration level with internal clock oscillators watchdog and brownout reset Performance and robustness Peak performance 20 MIPS at 24 MHz and average performance 10 MIPS at 16 MHz...

Page 18: ...ck controller Detector Clock to peripherals and core 10 Mbit s LIN master Up to Window WDG IWDG Up to 128 Kbyte Up to 2 Kbytes Up to 6 Kbytes Boot ROM 10 bit ADC beCAN 9 CAPCOM Reset 400 Kbit s 1 Mbit...

Page 19: ...ser LD3 red LED is a user LED connected to the I O PA3 of the STM8AF5288T User LD4 green LED is a user LED connected to the I O PD3 of the STM8AF5288T User LD5 green LED is a user LED connected to the...

Page 20: ...external watchdog disable ON NRESET of L99PM62GXP is connected to the STM8AF5288T Reset pin external watchdog enable SB7 CAN supply ON CAN transceiver is powered ON OFF CAN transceiver is OFF This sel...

Page 21: ...P1 LIN FLASH 1 2 Flash mode selected 2 2 The Flash mode is activated if at least JP1 or JP2 selects Flash mode 2 3 LIN communication enabled JP2 CAN FLASH 1 2 Flash mode selected 2 2 3 CAN communicati...

Page 22: ...10 27 PC2 I O Port C2 Timer 1 channel 2 11 26 PC1 I O Port C1 Timer 1 channel 1 12 VDD Microcontroller Digital power supply Table 6 STM8AF board P3 pinout L99PM62GXP connectivity 1 1 For additional i...

Page 23: ...IC push buttons LED IDD measurement circuitry LCD and connectors Figure 11 and Figure 12 help you to locate these features on the STM8AL board Figure 11 STM8AL board hardware block diagram MS31075V1...

Page 24: ...STM8AL board top layout MS31065V1 LD2 red LED PWR red LED LD3 JP3 RESERVED B2 USER2 button CN4 Female external CN3 Male external B1 USER1 button L99PM62GXP STM8AL3L68T LD1 red green LED COM JP2 I DD S...

Page 25: ...23645 Rev 1 25 48 Figure 13 STM8AL board bottom layout SB1 RESERVED SB2 STM_RST SB3 MCO SB9 SB10 Xtal 32 768 kHZ SB13 SB14 USB5V SB12 RESERVED SB6 SB7 SB8 IDD circuitry SB15 SB16 RESERVED MS31064V1 SB...

Page 26: ...t mode Clock gated system and optimized power management Capability to execute from RAM for Low power wait mode and Low power run mode Advanced features Up to 16 MIPS at 16 MHz CPU clock frequency Dir...

Page 27: ...ytes RAM to core and peripherals IWDG 38 kHz clock SWIM Port A Port B Port C I C1 USART1 Power VOLT REG Port F 1 16 MHz oscillator 32 kHz oscillator 38 kHz internal RC LCD driver 4x28 WWDG STM8 Core c...

Page 28: ...utton connected to the I O PE1 of STM8AL3L68T USER2 User button connected to the I O PE2 of STM8AL3L68T 4 3 4 STM8AL board built in IDD measurement circuit The STM8AL board built in IDD measurement ci...

Page 29: ...ciple The principle used to measure a current when the STM8AL3L68T is in Low power mode is 1 Configure ADC to measure voltage on the IDD_Measurement pin 2 Configure PE6 to serve as wakeup pin 3 Enter...

Page 30: ...t negligible compared to IDD current typical Ibias is 240 nA To obtain a reliable STM8AL3L68T IDD measurement it is mandatory to subtract the bias current from the IDD low power measurement since MCU...

Page 31: ...nd pin connections in Table 7 The two first left digits of the LCD display are not used in this application Characteristics overview 16 segments and 4 commons Drive method multiplexed 1 4 duty 1 3 bia...

Page 32: ...4COLON 4C 4M PD2_LCDSEG8 9 5N 5P 5D 5E PD3_LCDSEG9 10 BAR2 BAR3 5C 5M PB0_LCDSEG10 11 6N 6P 6D 6E PB1_LCDSEG11 12 BAR0 BAR1 6C 6M PD1_LCDCOM3 13 COM3 PA6_LCDCOM2 14 COM2 PA5_LCDCOM1 15 COM1 PA4_LCDCO...

Page 33: ...nnected freeing PF0 PC4 and PE6 SB9 10 Xtal 32 768 kHz OFF PC5 and PC6 of STM8AL3L68T are free for general purpose I Os ON PC5 and PC6 of STM8AL3L68T are connected to 32 768 kHz crystal oscillator if...

Page 34: ...4 44 PC5 I O Port C5 OSC32_IN 5 38 PC1 I O Port C1 I2C1_SCL 6 37 PC0 I O Port C0 I2C1_SDA 7 10 VDD Microcontroller Digital power supply 8 5V 5V board power supply output 5V1 from L99PM62GXP Table 11...

Page 35: ...UM1574 STM8A DISCOVERY boards mechanical drawing Doc ID 023645 Rev 1 35 48 5 STM8A DISCOVERY boards mechanical drawing 5 1 STM8AF board mechanical drawing Figure 19 STM8AF board mechanical drawing...

Page 36: ...STM8A DISCOVERY boards mechanical drawing UM1574 36 48 Doc ID 023645 Rev 1 5 2 STM8AL board mechanical drawing Figure 20 STM8AL board mechanical drawing...

Page 37: ...nsumption delay when step up start Adjust few values of components VDD PA4 PA5 STM8AF_USART_TX STM8AF_USART_RX CAN_RX LIN_RX LIN_TX OUT2 OUT1 OUT_HS SPI_MISO SPI_MOSI SPI_SCK SPI_NSS NRST CAN_TX CAN_R...

Page 38: ...PA0 10 JTCK SWCLK 37 PA1 11 PB11 22 PA2 12 PA15 JTDI 38 PA3 13 VSS_1 23 PA4 14 PB3 JTDO 39 PA5 15 VDD_1 24 PA6 16 PB4 JNTRST 40 PB12 25 PB5 41 PB13 26 PB6 42 PB14 27 PB7 43 PB15 28 BOOT0 44 PA8 29 PB8...

Page 39: ...PC3 PC4 SPI_SCK SPI_MOSI SPI_MISO CAN_TX CAN_RX PD0 ST_LINK_SWIM PD2 PD3 PD4 LIN_TX LIN_RX PD7 VDD C22 100nF C16 100nF C20 100nF NRST ST_LINK_SWIM STM8AF_USART_TX STM8AF_USART_RX R23 0 R30 4K7 PE2 R4...

Page 40: ...SPI_NSS NRST 12V CAN_TX 12V CAN_RX CAN ON FLASH Mode FLASH Mode LIN ON LIN WU1 WU1 REL1 REL1 REL2 REL2 C23 220nF CANH CANL C24 100nF 12V D5 BAT60JFILM C34 220nF C35 220nF C32 220nF C33 220nF C25 220n...

Page 41: ...elay when step up start Adjust few values of components STM8AL_USART_TX STM8AL_USART_RX LIN_RX LIN_TX OUT2 OUT1 OUT_HS SPI_MISO SPI_MOSI SPI_SCK SPI_NSS NRST WU1 REL1 REL2 LIN U_LIN LIN SchDoc SPI_NSS...

Page 42: ...SS_1 23 PA4 14 PB3 JTDO 39 PA5 15 VDD_1 24 PA6 16 PB4 JNTRST 40 PB12 25 PB5 41 PB13 26 PB6 42 PB14 27 PB7 43 PB15 28 BOOT0 44 PA8 29 PB8 45 PA9 30 PB9 46 PA10 31 VSS_3 47 PA11 32 VDD_3 48 U3 STM32F103...

Page 43: ...PD2_LCDSEG8 PD3_LCDSEG9 PB0_LCDSEG10 PB3_LCDSEG13 PB2_LCDSEG12 PB1_LCDSEG11 USART1_RX USART1_TX PD7_LCDSEG21 PD6_LCDSEG20 PD5_LCDSEG19 PD4_LCDSEG18 C25 1uF C18 1uF NRST ST_LINK_SWIM IDD_Measurement P...

Page 44: ...EG4 5 SEG5 6 SEG6 7 SEG7 8 SEG8 9 SEG9 10 SEG10 11 SEG11 12 COM3 13 COM2 14 COM1 15 COM0 16 SEG12 17 SEG13 18 SEG14 19 SEG15 20 SEG16 21 SEG17 22 SEG18 23 SEG19 24 SEG20 25 SEG21 26 SEG22 27 SEG23 28...

Page 45: ...4 74LX1G04CTR I O 1 O I 2 GND 3 C 4 VCC 5 U9 74H1G66STR VDD R23 2 1 R24 2K 1 Q12 1 Q13 2 Q14 3 Q6 4 Q5 5 Q7 6 Q4 7 GND 8 CO 9 CO 10 CI 11 CLR 12 Q9 13 Q8 14 Q10 15 VCC 16 U7 M74HC4060TTR R26 10K R25 1...

Page 46: ...MOSI SPI_SCK SPI_NSS NRST 12V 12V FLASH Mode LIN ON LIN WU1 WU1 REL1 REL1 REL2 REL2 C33 220nF C39 100nF 12V D8 BAT60JFILM C45 220nF C46 220nF C43 220nF C44 220nF C38 220nF C36 10uF 25V C35 10uF 25V US...

Page 47: ...UM1574 Revision history Doc ID 023645 Rev 1 47 48 8 Revision history Table 12 Document revision history Date Revision Changes 15 Nov 2012 1 Initial release...

Page 48: ...RRANTIES OF MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE AND THEIR EQUIVALENTS UNDER THE LAWS OF ANY JURISDICTION OR INFRINGEMENT OF ANY PATENT COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT UNLES...

Reviews: