UM7 User manual 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 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 -digit alphanumeric LCD display with the MCU powered at. 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. STM8A-DISCOVERY STM8AF board STM8AL board Figure. Applicable tools Type Evaluation tools Part number STM8A-DISCOVERY November 0 Doc ID 06 Rev /8 www.st.com
Contents UM7 Contents Conventions................................................ 6 Quick start................................................. 7. Getting started.............................................. 7. System requirements......................................... 7. Development toolchains supporting the STM8A-DISCOVERY......... 7 Features................................................... 8 Hardware and layout......................................... 9. STM8A-DISCOVERY common resources......................... 9.. Embedded ST-LINK/V...................................... 9.. Debugging STM8A-DISCOVERY............................. 0.. Power supply............................................... L99PM6GXP power management IC with LIN and high speed CAN.. STM8AF board dedicated resources.............................. STM8AF88T microcontroller............................... 7.. STM8AF board LEDs....................................... 9.. STM8AF board Push buttons................................ 9.. STM8AF board solder bridges................................ 0.. STM8AF board jumpers selection...............................6 STM8AF board extension connection........................... STM8AL board dedicated resources.............................. STM8ALL68T microcontroller............................... 6.. STM8AL board LEDs....................................... 8.. STM8AL board Push buttons................................. 8.. STM8AL board built-in I DD measurement circuit.................. 8.. STM8AL board LCD (6 segments, commons)...................6 STM8AL board solder bridges..................................7 STM8AL board jumpers selection...............................8 STM8AL board extension connection.......................... STM8A-DISCOVERY boards mechanical drawing................. STM8AF board mechanical drawing............................ /8 Doc ID 06 Rev
UM7 Contents. STM8AL board mechanical drawing............................ 6 6 STM8AF board electrical schematics.......................... 7 7 STM8AL board electrical schematics.......................... 8 Revision history........................................... 7 Doc ID 06 Rev /8
List of tables UM7 List of tables Table. ON/OFF conventions...................................................... 6 Table. STM8AF board solder bridges.............................................. 0 Table. STM8AF board jumper selection............................................ Table. STM8AF board P pinout microcontroller connectivity............................ Table. STM8AF board P pinout microcontroller connectivity............................ Table 6. STM8AF board P pinout L99PM6GXP connectivity............................ Table 7. LCD connections........................................................ Table 8. STM8AL board solder bridges.............................................. Table 9. STM8AL board jumpers selection............................................ Table 0. STM8AL board P pinout Microcontroller connectivity............................ Table. STM8AL board P pinout L99PM6GXP connectivity............................ Table. Document revision history................................................. 7 /8 Doc ID 06 Rev
UM7 List of figures List of figures Figure. STM8A-DISCOVERY...................................................... Figure. Applicable tools........................................................... Figure. Debugging the STM8AF microcontroller when the STM8AL board or an external application board is connected....................................... 0 Figure. Debugging the STM8AL microcontroller when the STM8AF board or an external application board is connected....................................... 0 Figure. L99PM6GXP block diagram............................................... Figure 6. STM8AF board hardware block diagram...................................... Figure 7. STM8AF board top layout.................................................. Figure 8. STM8AF board bottom layout............................................... 6 Figure 9. STM8AF88T package................................................... 7 Figure 0. STM8AF88T block diagram.............................................. 8 Figure. STM8AL board hardware block diagram...................................... Figure. STM8AL board top layout.................................................. Figure. STM8AL board bottom layout............................................... Figure. STM8ALL68T package................................................... 6 Figure. STM8ALL68T MCU block diagram......................................... 7 Figure 6. STM8AL board I DD measurement circuit...................................... 9 Figure 7. STM8AL board I DD Low power mode measurement timing diagram................. 0 Figure 8. LCD segment mapping.................................................... Figure 9. STM8AF board mechanical drawing.......................................... Figure 0. STM8AL board mechanical drawing.......................................... 6 Figure. STM8AF board top level................................................... 7 Figure. STM8AF board ST-LINK/V (SWIM only)...................................... 8 Figure. STM8AF board MCU..................................................... 9 Figure. STM8AF board CAN/LIN and V........................................... 0 Figure. STM8AL board top level................................................... Figure 6. STM8AL board ST-LINK/V (SWIM only)...................................... Figure 7. STM8AL board MCU..................................................... Figure 8. STM8AL board LCD...................................................... Figure 9. STM8AL board IDD_measurement.......................................... Figure 0. STM8AL board LIN and V................................................ 6 Doc ID 06 Rev /8
Conventions UM7 Conventions Table provides the definitions of some conventions used in the present document. Table. ON/OFF conventions Convention Definition Jumper JPx ON Jumper fitted Jumper JPx OFF Jumper not fitted Jumper JPx - Jumper is fitted between pins and Jumper JPx - Jumper is fitted between pins and Solder bridge SBx ON SBx connections closed by solder Solder bridge SBx OFF SBx connections left open 6/8 Doc ID 06 Rev
UM7 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. STM8AL devices offer high performance with ultra-low power management. Both comply with automotive qualification and conform to AEC-Q00 rev G. For more information on the STM8A-DISCOVERY and for demonstration software, visit www.st.com/stm8a-discovery.. Getting started. Connect CN and CN on the STM8AF board to CN and CN on the STM8AL board.. Connect both type A connectors of the USB cable to a PC.. Then connect the mini-b connector of the USB cable to the STM8AF board.. All LEDs blink once on the STM8AF board and twice on the STM8AL board, then the LIN communication between both boards starts.. Turn the RV trimmer on the STM8AF board to adjust the value from 0 to 00 on the STM8AL board LCD through the LIN bus. 6. Push button USER on the STM8AF board to sequentially display the LCD bars on the STM8AL board through the LIN bus. Push button USER on the STM8AF board to sequentially switch them off one by one. 7. Push button USER on the STM8AL board to sequentially switch on green LEDs LD, LD, LD6 and LD7 on the STM8AF board through the LIN bus. Push button USER on the STM8AL board to sequentially switch them off one by one. 8. To perform or modify the Discover project related to this demo, visit www.st.com/stm8adiscovery. 9. You can discover the STM8AF and STM8AL features, download and execute programs proposed in the list of projects. 0. You can then develop your own application using the available examples.. System requirements Windows PC (XP, Vista, 7) USB cable (dual type A to mini-b) - included. Development toolchains supporting the STM8A-DISCOVERY IAR: EWSTM8 STMicroelectronics: STVD Doc ID 06 Rev 7/8
Features UM7 Features The STM8A-DISCOVERY offers different features combined with STM8AF and STM8AL boards: STM8AF and STM8AL common board features: On-board ST-LINK/V included for debugging and programming Board power supply: through V USB bus Internal dual ST66A step-up converter building the Vdc when powered by USB port External application power supply V BAT (up to Vdc) 6 MHz HSE XTAL crystal oscillator L99PM6GXP power management IC with LIN and high speed CAN with SPI control interface and high-side drivers Two push buttons (USER and USER) Extension header for L99PM6GXP including relays, high-side outputs and wake-up capabilities STM8AF dedicated board features: STM8AF88T microcontroller featuring 6 Kbytes Flash, Kbytes data EEPROM, LIN, CAN in an 8-pin package Seven LEDs: LD (red/green) for USB communication LD (red) for V power ON Five user LEDs LD (red) and LD to LD7 (green) RV potentiometer connected to the ADC peripheral Extension headers for MCU connectivity (full Port B, free ports pins, RESET) STM8AL dedicated board features: STM8ALL68T microcontroller featuring Kbytes Flash, Kbytes data EEPROM, LCD in an 8-pin package Four LEDs: LD (red/green) for USB communication LD (red) for. V power ON user LEDs LD (red) and LD (green) -digit alphanumeric LCD display including bars display Extension header for MCU connectivity (free ports pins, RESET) 8/8 Doc ID 06 Rev
UM7 Hardware and layout Hardware and layout This section describes STM8A-DISCOVERY hardware and layout which can be broken down into common resources used both in STM8AF and STM8AL boards and the special features belonging to each of them.. STM8A-DISCOVERY common resources.. Embedded ST-LINK/V Caution: The ST-LINK/V programming and debugging tool is integrated both in STM8AF and STM8AL boards. The embedded ST-LINK/V can be used to program/debug the MCU on the board and supports SWIM for STM8 devices. The ST-LINK/V must be connected with the dual type A to mini-b USB cable provided in the blister. 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). For programming or debugging the STM8A-DISCOVERY, the PC can be either connected to the mini-b USB connector of the STM8AF or STM8AL board. The connection on both mini-b usb of the STM8AF and STM8AL boards is not supported. This operation can damage the boards. For information about debugging and programming features refer to user manual UM07 (ST-LINK/V in-circuit debugger/programmer for STM8 and STM) which describes in detail all the ST-LINK/V features. Doc ID 06 Rev 9/8
Hardware and layout UM7.. 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 STM8AF88T or the STM8ALL68T. Example : Debugging the STM8AF microcontroller when the STM8AL board or an external application board is connected. Figure. Debugging the STM8AF microcontroller when the STM8AL board or an external application board is connected Example : Debugging the STM8AL microcontroller when the STM8AF board or an external application board is connected. Figure. Debugging the STM8AL microcontroller when the STM8AF board or an external application board is connected Note: All other configuration are not supported and could damage the boards or the PC. 0/8 Doc ID 06 Rev
UM7 Hardware and layout.. Power supply The power supply is provided by the host PC through the dual type A to mini-b USB cable or by an external V BAT power supply ( Vdc typical, Vdc max). One dual type A to mini-b USB is needed to provide the current required by the STM8AF and STM8AL boards when they are connected together. Reminder: 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 one of the STM8Ax boards. 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. While programming/debugging the STM8AF or STM8AL board with your PC, the USB cable must be placed on the appropriate side of the board depending on which board is being debugged (see Figure and Figure ). If no programming/debugging operations are needed (no PC connected) or if a larger amount of current is required (higher than 00 ma @ V), then the power supply must be wired between the V BAT and GND pins of the STM8AF or STM8AL board. V BAT is indeed internally distributed through the two boards. Therefore, V BAT can be wired indifferently on the STM8AF or STM8AL board (not on both). On the other hand, if the STM8AF or STM8AL board is used in standalone (not connected together), they can be supplied either by the USB cable or by the external V BAT. As for instance, this configuration can be used when the boards are inserted in an automotive network. The STM8AF and STM8AL boards include an internal V to V step-up converter that is needed to build the voltages required for LIN or CAN networks. The V USB is then converted into V voltage that supplies the integrated L99PM6GXP power management IC. This device includes a V regulator which is connected directly to the STM8AF88T microcontroller or transformed subsequently into. V to supply the STM8ALL68T microcontroller. The power supplies of STM8AF88T and STM8ALL68T are provided by the L99PM6GXP power management IC on condition that the microcontrollers sequentially refresh the watchdog included in the L99PM6GXP devices. This functionality exists when the L99PM6GXP is in Active mode (standard operation). In that case, if the L99PM6GXP device is not refreshed periodically, the V power supply is provisionally shutdown until a next start-up sequence is performed. This behavior can generate some issues when the SWIM communication tries to establish a connection with the microcontroller and when the latter is not power supplied. To remedy to this situation and to avoid caring about L99PM6GXP watchdog refresh, the L99PM6GXP can be placed in Flash mode by configuring some dedicated jumpers (see Section..). This prevents to cut the power supply to the microcontroller as for instance for software debugging. This behavior is only present on the STM8AF board as the STM8AL board is always put in Flash mode by design... L99PM6GXP power management IC with LIN and high speed CAN The L99PM6GXP is a power management system IC that provides electronic control units with enhanced system power supply functionality, including various standby modes, as well as LIN and HS CAN physical communication layers. The device's two low-drop voltage regulators supply the system microcontroller and external peripheral loads such as sensors Doc ID 06 Rev /8
Hardware and layout UM7 and provide enhanced system standby functionality with programmable local and remote wake-up capability. The microcontrollers of the STM8AF and STM8AL boards communicate with the L99PM6GXP IC through the SPI interface, that allows control and 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 available at external headers of the STM8AF and STM8AL boards. This device is a power SS0-6-pin package. Figure illustrates the L99PM6GXP block diagram. For further information on the L99PM6GXP device and to explore its numerous capabilities, please refer to datasheet available at www.st.com. /8 Doc ID 06 Rev
UM7 Hardware and layout Figure. L99PM6GXP block diagram y MS06V Doc ID 06 Rev /8
Hardware and layout UM7. STM8AF board dedicated resources The STM8AF board is designed around the STM8AF88T microcontroller in a 8-pin LQFP package. Figure 6 illustrates the connections between the STM8AF88T and the different peripherals (ST-LINK/V, L99PM6GXP 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 Mini USB Embedded ST-LINK/V CN/CN DC/DC converter V to V L99PM6GXP Power Management LIN transceiver V LIN CAN P Header SWIM SPI STM8AF88T V VBAT I/O I/O P Header P Header USER button USER button RV potentiometer Red LED LD Green LED LD Green LED LD Green LED LD6 Green LED LD7 MS07V /8 Doc ID 06 Rev
UM7 Hardware and layout Figure 7. STM8AF board top layout LD (red/green LED) COM ST-LINK/V LD (red LED) PWR (red LED) LD, (green LED) LD, (green LED) LD, (green LED) LD6, (green LED) LD7 STM8AF88T JP (I DD measurement) L99PM6GXP VBAT JP (FLASH/LIN) ST66A B USER button JP (FLASH/CAN) B USER button CN Male external CN Female external RV potentiometer MS06V Doc ID 06 Rev /8
Hardware and layout UM7 Figure 8. STM8AF board bottom layout SB (RESERVED) SB (STM_RST) SB (MCO) SB, SB (RESERVED) SB6 (L99PM6GXP) SB7 (CAN supply) SB8 (Start-up delay) SB0, SB (USBV) SB9 (CAN terminating resistor) SB, SB (RESERVED) MS06V 6/8 Doc ID 06 Rev
UM7 Hardware and layout.. STM8AF88T microcontroller This automotive 8-bit MCU has 6 Kbytes Flash, Kbytes data EEPROM, 0-bit ADC, timers, LIN, CAN, USART, SPI, IC and operates from to. V. Figure 9. STM8AF88T package STM8AF88T 6 Kbytes of Flash memory Kbytes of EEPROM Kbytes of RAM LQFP8 7x7 The STM8AF88T automotive 8-bit microcontroller offers 6 Kbytes of non-volatile memory and integrated true data EEPROM. The STM8AFxx series feature a CAN interface. All devices of the STM8A product line provide the following benefits: reduced system cost, performance and robustness, short development cycles, and product longevity. Reduced system cost Integrated true data EEPROM for up to 00 k write/erase cycles High system integration level with internal clock oscillators, watchdog and brownout reset Performance and robustness Peak performance 0 MIPS at MHz and average performance 0 MIPS at 6 MHz CPU clock frequency Robust I/O, independent watchdogs with separate clock source Clock security system Short development cycles Applications scalability across a common family product architecture with compatible pinout, memory map and modular peripherals. Full documentation and a wide choice of development tools Product longevity Advanced core and peripherals made in a state-of-the art technology Native automotive product family operating both at. V and V supply The STM8AF and STM8AL boards are supported by the same tools including STVD/STVP development environment. Doc ID 06 Rev 7/8
Hardware and layout UM7 Figure 0. STM8AF88T block diagram Reset block Clock controller XTAL - MHz Reset Reset RC int. 6 MHz POR Detector RC int. 8 khz BOR Clock to peripherals and core Window WDG STM8A CORE IWDG Single wire debug interf. Master/slave automatic resynchronization 00 Kbit/s 0 Mbit/s Debug/SWIM LINUART I C SPI Address and data bus Up to 8 Kbyte high density program Flash Up to Kbytes data EEPROM Up to 6 Kbytes RAM Boot ROM LIN master SPI emul. Mbit/s USART becan 6-bit advanced control timer (TIM) 6-bit general purpose (TIM, TIM) Up to 9 CAPCOM channels Up to 6 channels 0-bit ADC 8-bit AR timer (TIM) AWU timer MS06V 8/8 Doc ID 06 Rev
UM7 Hardware and layout.. STM8AF board LEDs The STM8AF board includes the following LEDs: LD COM: LD default status is red. LD turns to green to indicate that communications are in progress between the PC and the ST-LINK/V. LD PWR: red LED indicates that the board is powered and that V is output from L99PM6GXP power management IC. User LD: red LED is a user LED connected to the I/O PA of the STM8AF88T. User LD: green LED is a user LED connected to the I/O PD of the STM8AF88T. User LD: green LED is a user LED connected to the I/O PD0 of the STM8AF88T. User LD6: green LED is a user LED connected to the I/O PE of the STM8AF88T. User LD7: green LED is a user LED connected to the I/O PC of the STM8AF88T... STM8AF board Push buttons STM8AF board includes two push buttons: USER: User button connected to the I/O PE of STM8AF88T. USER: User button connected to the I/O PE of STM8AF88T. Doc ID 06 Rev 9/8
Hardware and layout UM7.. STM8AF board solder bridges Table. STM8AF board solder bridges Bridge State () Description SB (Reserved) ON Reserved, do not modify. SB (STM_RST) SB (MCO) SB, (Reserved) SB6 (L99PM6GXP Reset) SB7 (CAN supply) SB8 (Start-up delay) SB9 (CAN terminating resistor) SB0, (USBV) SB, (Reserved) OFF ON OFF ON OFF OFF ON ON OFF OFF ON ON OFF ON OFF ON signal of STMF0C8T6 (ST-LINK/V) is not connected to GND. signal of STMF0C8T6 (ST-LINK/V) is connected to GND. MCO clock from STMF0C8T6 is not connected to PA (OSC_IN) of STM8AF88T. MCO clock from STMF0C8T6 is connected to PA (OSC_IN) of STM8AF88T. Reserved, do not modify. NRESET of L99PM6GXP is not connected to the STM8AF88T Reset pin (external watchdog disable). NRESET of L99PM6GXP is connected to the STM8AF88T Reset pin (external watchdog enable). CAN transceiver is powered ON. CAN transceiver is OFF. This selection saves power consumption. If the STM8AF board is connected to another STM8AF board, then one of them must have SB8 OFF. The STM8AF board is connected to the STM8AL board (standard demo package). The CAN terminating 0 Ohms resistor is connected on the CAN bus. The CAN terminating 0 Ohms resistor is not connected on the CAN bus. USBV is available on CN/CN connectors for powering an external board through CN/CN. USBV is not available on CN/CN connectors. Reserved, do not modify.. Default SBx state is shown in bold. 0/8 Doc ID 06 Rev
UM7 Hardware and layout.. STM8AF board jumpers selection Table. STM8AF board jumper selection Jumper State () Description JP (LIN/FLASH) JP (CAN/FLASH) JP (I DD ). Default jumper state is shown in bold. - Flash mode selected (). - LIN communication enabled. - Flash mode selected (). - CAN communication enabled. ON OFF JP (Reserved) OFF Reserved, do not modify. Standard operation, V connected to the V DD of the microcontroller. An ammeter can be connected between JP pins to measure the current sunk by the MCU.. The Flash mode is activated if at least JP or JP selects Flash mode...6 STM8AF board extension connection Male headers P, P and P connectors can connect the STM8AF board to a standard prototyping/wrapping board. Free GPI/Os of the STM8AF88T are available on P and P. L99PM6GXP device I/Os are connected to P. P, P and P can also be probed by an oscilloscope, a logic analyzer or a voltmeter. P connector contains the full port B GPI/Os and the alternate functions are the first 8 ADC channel inputs. Its standard HE0 format complies with some additional modules or resources that are pin-to-pin equivalent. Table. Pin number P STM8AF board P pinout microcontroller connectivity Pin number STM8AF MCU Board pin name Type Main function Alternate function PB0 I/O Port B0 Analog input AIN0 PB I/O Port B Analog input AIN 0 PB I/O Port B Analog input AIN 9 PB I/O Port B Analog input AIN 8 PB I/O Port B Analog input AIN 6 7 PB I/O Port B Analog input AIN 7 6 PB6 I/O Port B6 Analog input AIN6 8 PB7 I/O Port B7 Analog input AIN7 9 V DD Microcontroller Digital power supply 0 GND Digital ground Doc ID 06 Rev /8
Hardware and layout UM7 Table. Pin number P STM8AF board P pinout microcontroller connectivity Pin number STM8AF MCU Board pin name Type Main function Alternate function GND Digital ground I/O Reset 8 PD7 I/O Port D7 TLI PD I/O Port D Timer - channel PD I/O Port D Timer - channel 6 PA6 I/O Port A6 USART synchronous clock 7 0 PE0 I/O Port E0 CCO Configurable clock output 8 PE6 I/O Port E6 Analog input AIN9 9 9 PC I/O Port C Timer - channel 0 7 PC I/O Port C Timer - channel 6 PC I/O Port C Timer - channel V DD Microcontroller Digital power supply Table 6. STM8AF board P pinout L99PM6GXP connectivity () Pin number P Pin number STM8AF MCU Board pin name Type Main function V V board power supply (output V from L99PM6GXP) 0 WU I Wake-up input 8 OUT O High-side driver output (7, typ.) 9 OUT O High-side driver output (7, typ.) 0 O_HS O High-side driver (, typ.) 6 REL O Low-side driver output ( typ.) 7 REL O Low-side driver output ( typ.) 8 GND Digital ground 9 V BAT I External power supply ( Vdc typ.). For additional information on L99PM6GXP device connectivity, please refer to product datasheet available at www.st.com. /8 Doc ID 06 Rev
UM7 Hardware and layout. STM8AL board dedicated resources The STM8AL board is designed around the STM8ALL68T microcontroller in a 8-pin LQFP package. Figure illustrates the connections between the STM8ALL68T and the different peripherals (ST-LINK/V, L99PM6GXP IC, push buttons, LED, I DD measurement circuitry, LCD and connectors). Figure and Figure help you to locate these features on the STM8AL board. Figure. STM8AL board hardware block diagram Mini USB Embedded ST-LINK/V CN/CN DC/DC converter V to V L99PM6GXP Power Management LIN transceiver V LIN V to V P Header SWIM I/O SPI V STM8ALL68T I/O P Header VBAT USER button Red LED LD USER button Green LED LD IDD measurement LCD (6 segments, commons) MS07V Doc ID 06 Rev /8
Hardware and layout UM7 Figure. STM8AL board top layout LD (red/green LED) COM ST-LINK/V LD (red LED) PWR IDD module LCD segments JP (I ) DD (red LED) LD STM8ALL68T (green LED) LD JP (RESERVED) L99PM6GXP VBAT B USER button B USER button ST66A CN Male external CN Female external MS06V /8 Doc ID 06 Rev
UM7 Hardware and layout Figure. STM8AL board bottom layout SB (RESERVED) SB (STM_RST) SB (MCO) SB, SB (RESERVED) SB6, SB7, SB8 (I DD circuitry) SB9, SB0 (Xtal.768 khz) SB (L99M6GXP Reset) SB, SB (USBV) SB (RESERVED) SB, SB6 (RESERVED) MS06V Doc ID 06 Rev /8
Hardware and layout UM7.. STM8ALL68T microcontroller This automotive 8-bit ultralow power MCU has Kbytes Flash, Kbytes data EEPROM, RTC, LCD, timers, USART, IC, SPI, ADC, DAC and comparators. Figure. STM8ALL68T package STM8ALL68T Kbytes of Flash memory Kbytes of EEPROM Kbytes of RAM LQFP8 7x7 This microcontroller belongs to the STM8AL family and provides the following benefits: Integrated system Up to Kbytes of medium-density embedded Flash program memory Kbyte of data EEPROM Internal high speed and low-power low speed RC. Embedded reset Ultralow power consumption 9 µa/mhz + 0 µa (consumption) 0.9 µa with LSI in Active-halt 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 6 MIPS at 6 MHz CPU clock frequency Direct memory access (DMA) for memory-to-memory or peripheral-to-memory access. Short development cycles Application scalability across a common family product architecture with compatible pinout, memory map and modular peripherals. Wide choice of development tools This device offers -bit ADC, DAC, two comparators, real-time clock, three 6-bit timers, one 8-bit timer as well as standard communication interfaces such as SPI, IC and USART. A x8-segment LCD is available on the medium-density STM8ALL68T device. 6/8 Doc ID 06 Rev
UM7 Hardware and layout Figure. STM8ALL68T MCU block diagram OSC_IN, OSC_OUT OSC_IN, OSC_OUT -6 MHz oscillator 6 MHz internal RC khz oscillator 8 khz internal RC Interrupt controller STM8 Core Clock controller and CSS V DD8 Clocks to core and peripherals @V DD Power VOLT. REG. RESET POR/PDR V DD =.6 V to.6 V V SS SWIM channels Debug module (SWIM) 6-bit Timer BOR PVD PVD_IN channels channels IR_TIM SCL, SDA, SMB MOSI, MISO, SCK, NSS RX, TX, CK V DDA V SSA ADC_INx V REF+ V REF- 6-bit Timer 6-bit Timer 8-bit Timer Infrared interface DMA ( channels) I²C SPI USART @V DDA /V SSA -bit ADC Temp sensor Address, control and data buses Kbytes Program memory Kbyte Data EEPROM Kbytes RAM Port A Port B Port C Port D Port E Port F Beeper PA[7:0] PB[7:0] PC[7:0] PD[7:0] PE[7:0] PF0 BEEP VREFINT out COMP_INP COMP COMP_INP COMP_INM Internal reference voltage COMP RTC IWDG (8 khz clock) WWDG ALARM, CALIB DAC_OUT V REF+ -bit DAC -bit DAC V LCD =. V.6 V to LCD booster LCD driver x8 SEGx, COMx. Legend: ADC: Analog-to-Digital Converter BOR: Brownout Reset DMA: Direct Memory Access DAC: Digital-to-Analog Converter I²C: Inter-Integrated Circuit multimaster interface IWDG: Independent WatchDoG LCD: Liquid Crystal Display POR/PDR: Power On Reset / Power Down Reset RTC: Real-Time Clock SPI: Serial Peripheral Interface SWIM: Single Wire Interface Module USART: Universal Synchronous Asynchronous Receiver Transmitter WWDG: Window WatchDoG Doc ID 06 Rev 7/8
Hardware and layout UM7.. STM8AL board LEDs The STM8AL board includes the following LEDs and their description is: LD COM: LD default status is red. LD turns to green to indicate that communications are in progress between the PC and the ST-LINK/V. LD PWR: red LED indicates that the board is powered and that. V is generated by the regulator supplied by the L99PM6GXP power management IC. User LD: red LED is a user LED connected to the I/O PE7 of the STM8ALL68T. User LD: green LED is a user LED connected to the I/O PC7 of the STM8ALL68T... STM8AL board Push buttons The STM8AL board includes two push buttons: USER: User button connected to the I/O PE of STM8ALL68T. USER: User button connected to the I/O PE of STM8ALL68T... STM8AL board built-in I DD measurement circuit The STM8AL board built-in I DD measurement circuit allows the consumption of the STM8ALL68T to be measured and displayed on the LCD Glass while the MCU is in Run or Low power saving modes. JP in ON position: STM8ALL68T is powered through I DD measurement circuit (default). JP in OFF position: STM8ALL68T is powered directly by +V, I DD measurement circuit is bypassed. Note: When jumper JP is removed the current consumption of the STM8ALL68T can be measured by connecting an ammeter between jumper JP pin and pin. For I DD measurement by the MCU itself, the circuit below is implemented on the STM8AL board. Solder bridges SB6, SB7 and SB8 must be closed and a jumper must be plugged between JP pin and pin. 8/8 Doc ID 06 Rev
UM7 Hardware and layout Figure 6. STM8AL board I DD measurement circuit IDD Measure VDD off on V R (%) JP R K(%) U8 MAX998FEUK+ U9 I/O O/I C GND VCC 7HG66STR V R 0K C uf R 0 SB6 PF0 IDD_Measurement V U S G S G D D D D STS DPF0L 8 7 6 R8 7K SB8 U 7LXG0CTR V PE6 IDD_WAKEUP U7 C 6 00nF Q VCC Q Q0 Q Q8 Q6 Q9 Q CLR 6 Q7 CI 7 0 Q CO 8 9 GND CO M7HC060TTR C6 R9 nf K Run mode In Run mode, I DD current is measured using the operational amplifier MAX998FEUK+ (U8) connected to the shunt resistor (R). In this case IDD_CNT_EN remains high during measurement, so R remains in short-circuit during the measurement because of switch U which remains ON permanently. The jumper JP must be connected between pins and of JP. The measurement range in this case can be up to 0 ma. Low power mode In Low power modes (Halt or Active halt), I DD current is measured using the operational amplifier MAX998FEUK+ (U8) connected to the K shunt resistor (R), controlled by the switch STSDPF0L (U). In this case the counter 7HC060 (U7) enabled by IDD_CNT_EN manages the measurement timing according to Figure 7. The measurement range in this case can be up to 0 µa. Low power mode I DD measurement principle The principle used to measure a current when the STM8ALL68T is in Low power mode is:. Configure ADC to measure voltage on the IDD_Measurement pin.. Configure PE6 to serve as wakeup pin.. Enter Low power mode after setting IDD_CNT_EN (PC) signal low.. IDD_WAKEUP rising edge wakes up the MCU after around 00 ms.. Start ADC conversion as soon as possible after wakeup in order to measure the voltage corresponding to Low power mode on capacitor C. 6. Reset the counter by programming IDD_CNT_EN high (in less than 70 ms after the wakeup) to avoid the R K resistor being connected later in Run mode. AFT R6 0K R7 0K V Oscillator frequency 0 KHz SB7 PC IDD_CNT_EN MS09V Doc ID 06 Rev 9/8
Hardware and layout UM7 The measurement timing is given in Figure 7. In Low power modes, the K resistor is connected when the U switch goes off after entering Low power mode. The Q output of the counter allows connection of the K resistor when the current I DD becomes very low. Figure 7 shows how the counter and U ensure that, 0 ms after IDD_CNT_EN falling edge, the shunt resistor R is connected between VDD_MCU and the power supply in order to reduce the measurement range to 0 µa full scale (instead of 0 ma in Run mode). Then after another 0 ms for current stabilization, R is shorted, the I DD measurement is stored in C, and the MCU is woken up. After wakeup, the MCU can measure the I DD current corresponding to the Low power mode stored in C. Figure 7. STM8AL board I DD Low power mode measurement timing diagram Wake-up period IDD measurement MCU mode Run Low power Wake-up event Clear CNT event IDD_CNT_EN Q = LOW_POWER_EN Q = IDD_WAKEUP Qn = U pin 0ms 0 ms 00 ms 6 Ibias current measurement procedure In Low power mode the bias current of operational amplifier input (U8 pin ) is not negligible compared to I DD current (typical Ibias is ~0 na). To obtain a reliable STM8ALL68T I DD measurement, it is mandatory to subtract the bias current from the I DD low power measurement since MCU is not sinking the current. Ibias is measured during production test and stored in the MCU EPROM. The demonstration software, Discover, uses this value to display the correct I DD. The Ibias measurement procedure is part of the demonstration software and can be launched if required. The procedure for Ibias measurement (implemented in the package demo) is:. Power off the board (disconnect the USB cable).. Set jumper JP to OFF position (pins and ).. Push down USER button while powering on the board from the USB.. Wait at least second before releasing USER, the LCD displays the Ibias measurement.. Power off the board (disconnect the USB cable). 6. Set jumper JP to ON position (pins and ). The Ibias value is now stored. The bias current is then subtracted from the I DD measurement performed in Low power mode. 0/8 Doc ID 06 Rev
UM7 Hardware and layout.. STM8AL board LCD (6 segments, commons) This LCD allows the STM8ALL68T to display any information on four -segment digits and BARs, using all COMs. (See the LCD segment mapping in Figure 8 and pin connections in Table 7). The two first left digits of the LCD display are not used in this application. Note: Characteristics overview: 6 segments and commons Drive method: multiplexed / duty, / bias Operating voltage: V Operating temperature: 0 to 0 C Connector: 8-pin DIL. mm pitch When the LCD is plugged in, all I/O ports listed in Table 7 are unavailable. To use one of these as I/O, you must remove the LCD Figure 8. LCD segment mapping Doc ID 06 Rev /8
Hardware and layout UM7 Table 7. STM8ALL68T LCD connections LCD Pin Name PIN COM COM COM COM0 N P D E DP COLON C M N P D E DP COLON C M PE_LCDSEG N P D E PE_LCDSEG 6 DP COLON C M PE_LCDSEG6 7 N P D E PD0_LCDSEG7 8 DP COLON C M PD_LCDSEG8 9 N P D E PD_LCDSEG9 0 BAR BAR C M PB0_LCDSEG0 6N 6P 6D 6E PB_LCDSEG BAR0 BAR 6C 6M PD_LCDCOM COM PA6_LCDCOM COM PA_LCDCOM COM PA_LCDCOM0 6 COM0 PB_LCDSEG 7 6J 6K 6A 6B PB_LCDSEG 8 6H 6Q 6F 6G PA7_LCDSEG0 9 J K A B PE0_LCDSEG 0 H Q F G PD6_LCDSEG0 J K A B PD7_LCDSEG H Q F G PD_LCDSEG8 J K A B PD_LCDSEG9 H Q F G J K A B 6 H Q F G 7 J K A B 8 H Q F G /8 Doc ID 06 Rev
UM7 Hardware and layout..6 STM8AL board solder bridges Table 8. STM8AL board solder bridges Bridge State Description SB (Reserved) ON Reserved, do not modify. SB (STM_RST) SB (MCO) OFF ON OFF ON SB, (Reserved) OFF Reserved, do not modify. SB6, 7, 8 (I DD circuitry) SB9, 0 (Xtal.768 khz) SB (L99PM6GXP Reset) ON OFF OFF ON OFF ON SB (Reserved) ON Reserved, do not modify. SB, (USBV) ON OFF SB, 6 (Reserved) ON Reserved, do not modify.. Default SBx state is shown in bold. signal of STMF0C8T6 (ST-LINK/V) is not connected to GND. signal of STMF0C8T6 (ST-LINK/V) is connected to GND. MCO clock from STMF0C8T6 is not connected to PA (OSC_IN) of STM8ALL68T. MCO clock from STMF0C8T6 is connected to PA (OSC_IN) of STM8ALL68T. I DD measurement circuitry and features connected. I DD measurement circuitry and features are not connected (freeing PF0, PC and PE6). PC and PC6 of STM8ALL68T are free for general purpose I/Os. PC and PC6 of STM8ALL68T are connected to.768 khz crystal oscillator (if fitted on board). NRESET of L99PM6GXP is not connected to STM8ALL68T Reset pin (external watchdog disable). NRESET of L99PM6GXP is connected to STM8ALL68T Reset pin (external watchdog enable). USBV is distributed on CN/CN connectors (USBV can drive an external board connected to CN and CN). USBV is not distributed on CN/CN connectors...7 STM8AL board jumpers selection Table 9. STM8AL board jumpers selection Jumper State () Description JP (Reserved) OFF Reserved, do not modify. - OFF Ibias measurement selection. JP (I DD ) - ON I DD measurement selection. JP (Reserved) - Reserved, do not modify.. Default jumper state is shown in bold. Doc ID 06 Rev /8
Hardware and layout UM7..8 STM8AL board extension connection Male headers P and P connectors can connect the STM8AL board to a standard prototyping/wrapping board. Free GPI/Os of STM8ALL68T are available on P. L99PM6GXP device I/Os are connected to P. P and P can also be probed by an oscilloscope, a logic analyzer or a voltmeter. Table 0. Pin number P STM8AL board P pinout Microcontroller connectivity Pin number STM8AL MCU Board pin name Type Main function Alternate function GND Digital ground I/O Reset PA PC6 I/O Port C6 OSC_OUT PC I/O Port C OSC_IN 8 PC I/O Port C IC_SCL 6 7 PC0 I/O Port C0 IC_SDA 7 0 V DD Microcontroller Digital power supply 8 V V board power supply (output V from L99PM6GXP) Table. STM8AL board P pinout L99PM6GXP connectivity () Pin number P Pin number L99PM6GXP Board pin name Type Main function V. V board power supply (output. V from U PWR_STM8) 0 WU I Wake-up input 8 OUT O High-side driver output (7, typ.) 9 OUT O High-side driver output (7, typ.) 0 O_HS O High-side driver (, typ.) 6 REL O Low-side driver output ( typ.) 7 REL O Low-side driver output ( typ.) 8 GND Digital ground 9 VBAT I External power supply (Vdc typ.). For additional information on L99PM6GXP device connectivity, please refer to product datasheet available at www.st.com. /8 Doc ID 06 Rev
UM7 STM8A-DISCOVERY boards mechanical drawing STM8A-DISCOVERY boards mechanical drawing. STM8AF board mechanical drawing Figure 9. STM8AF board mechanical drawing Doc ID 06 Rev /8
STM8A-DISCOVERY boards mechanical drawing UM7. STM8AL board mechanical drawing Figure 0. STM8AL board mechanical drawing 6/8 Doc ID 06 Rev
Doc ID 06 Rev 7/8 6 STM8AF board electrical schematics Figure. A B C D VDD STM8AF board top level PB0 PB PB PB6 P 6 7 8 9 0 Header P 6 7 8 9 0 Header X PD7 PD PD PA6 PE0 PE6 PC PC PC PB PB PB PB7 GND Test Point TP VDD STM8AF_USART_RX STM8AF_USART_TX TP TP TP TP PA PA LIN_TX LIN_RX SPI_MISO SPI_MOSI SPI_SCK SPI_NSS CAN_TX CAN_RX PD PD PD7 PC PC PC LIN_TX LIN_RX SPI_MISO SPI_MOSI SPI_SCK SPI_NSS CAN_TX CAN_RX U_ST_LINK ST_LINK_V.SCHDOC PA PA U_STM8AF STM8AF.SchDoc MCO ST_LINK_SWIM LIN_TX LIN_RX ST_LINK_SWIM SPI_MISO SPI_MOSI MCO SPI_SCK SPI_NSS PA PA CAN_TX PA6 CAN_RX PB0 PD PB PD PB PD7 PB PB PC PC PC U_CAN_LIN CAN_LIN.SchDoc LIN_TX LIN_RX SPI_MISO SPI_MOSI SPI_SCK SPI_NSS CAN_TX CAN_RX PB PB6 PB7 PE0 PE6 REL REL WU OUT OUT OUT_HS CANH CANL LIN MCO ST_LINK_SWIM ST_LINK_SWIM MCO PA PA PA6 PB0 PB PB PB PB PB PB6 PB7 PE0 PE6 REL REL WU OUT OUT OUT_HS CANH CANL LIN STM8AF_USART_RX STM8AF_USART_TX RevA.0 --> PCB label MB06 A-00 RevB.0 --> PCB label MB06 B-00 - Add capacitor for consumption delay when step-up start - Adjust few values of components STMicroelectronics Title: USB VBAT USBV USBV VBAT STM8AF BOARD V CANH CANL WU OUT OUT OUT_HS REL REL Number: MB06 Rev: B.0(PCB.SCH) Date:0//0 Sheet of LIN CANL CANH LIN VBAT SB SB SB0 SB P 6 7 8 9 CN 6 8 0 7 9 Header F 90 xh CN 0 8 6 Header 9 9 7 Header M 90 XH Male Female A B C D UM7 STM8AF board electrical schematics
8/8 Doc ID 06 Rev Figure. A B C D Board Ident: PC=0 R6 00K C9 0pF V C0 V 00nF SB USB CN VCC D- D+ ID GND SHELL Not Fitted STM8AF board ST-LINK/V (SWIM only) 0 07BMR-0-SM X 8MHz STM8AF_USART_RX PA PA STM8AF_USART_TX R R R9 R8 C7 0pF Close to JP Not Fitted D 0K 0K OSC_IN OSC_OUT STM_RST K7 K7 SB TX RX SB AIN_ STLINK_TX BAT60JFILM JP 6 7 8 9 0 USBV SB R7 K R8 0 USB_DM V R6 0 USB_DP R 00K V VBAT PC PC PC OSCIN OSCOUT VSSA VDDA PA0 PA PA STLINK_RX Not Fitted D R 00K SWIM_IN SWIM SWIM_IN SWIM_RST SWIM_RST_IN T_JTCK T_JTDO T_JTDI T_ T_JRST SWIM_IN SWIM STM_JTCK 8 7 6 0 9 8 7 VDD_ VSS_ PB9 PB8 BOOT0 PB7 PB6 PB PB/JNTRST PB/JTDO PA/JTDI JTCK/SWCLK PA PA PA PA6 PA7 PB0 PB PB/BOOT PB0 PB VSS_ VDD_ 6 7 8 9 0 IO IO GND D BAT60JFILM BAT60JFILM U ESDAVL V VDD_ VSS_ JTMS/SWDIO PA PA PA0 PA9 PA8 PB PB PB PB V USBV U STMF0C8T6 6 V STM_JTMS USB_DP USB_DM T_SWO 0 LED_STLINK 9 8 7 T_JTMS 6 T_JTCK T_SWDIO_IN V U Vin C8 00nF PWR C 00nF INH C GND BYPASS μf_xr_060 LD98MR C 00nF RC Must be very close to STMF0 pin 9 R7 MCO MCO 00 C 0pF R0 00 Not Fitted Vout C 00nF C 0nF_X7R_060 C6 00nF V C μf_xr_060 C 00nF CN SWIM_IN SWIM_RST_IN STM_JTCK STM_JTMS R0 0 R 0 V SWIM COM LED_STLINK SWIM SWIM_RST Idd R 0 R 0 V R9 680 R 7 VDD R 7 JP R K STMicroelectronics LD RED LD Red Title: STM8AF BOARD ST-LINK/V (SWIM only) V Number: MB06 Rev: B.0(PCB.SCH) Date:0//0 Sheet of R 0 _Green LD_BICOLOR_CMS ST_LINK_SWIM ST_LINK_SWIM STM8AF_RESET PWR V A B C D STM8AF board electrical schematics UM7
Doc ID 06 Rev 9/8 Figure. A B C D STM8AF board MCU Close to XTAL & MCU MCO MCO STM8AF_USART_RX STM8AF_USART_TX C8 0pF C7 0pF PA PA Not Fitted SB R 0 X 6MHz R 60 PA PA VDD VDD V R 0K C9 0nF C 680nF L BEAD PA6 C uf PD LIN_TX LIN_RX PD7 PA PA VCAP PA PA PA PA6 VDD 6 7 8 9 0 C 00nF C 00nF ST_LINK_SWIM PD VDDA PD7 LIN_RX LIN_TX PD PD PD ST_LINK_SWIM PD0 OSCIN/PA OSCOUT/PA Vssio_ Vss VCAP Vdd Vddio_ PA PA PA PA6 C6 00nF PE0 PE PE PE 8 7 6 0 9 8 7 PD7 PD6 PD PD PD PD PD PD0 PE0 PE PE PE Vdda Vssa PB7 PB6 PB PB PB PB PB PB0 PE7 PE6 6 7 8 9 0 PB7 PB6 PB PB PB PB PB PB0 PE7 PE6 C0 00nF PE0 PG PG0 PC7 PC6 Vddio_ Vssio_ PC PC PC PC PC PE 6 0 9 8 7 6 PE6 PB0 PB PB PB PB PB PB6 PB7 U STM8AF88T CAN_RX CAN_TX SPI_MISO SPI_MOSI VDD SPI_SCK PC PC PC PC PC PC PC SPI_NSS CAN_RX CAN_TX SPI_MISO SPI_MOSI SPI_SCK SPI_NSS PE7 PA PC PD0 PD PE V RV 0K STMicroelectronics Title: R K R9 0 R7 0 R6 0 R8 0 LD red LD7 green LD green LD green LD6 green PE STM8AF BOARD MCU User Button C6 00nF User Button PE C0 00nF Number: MB06 Rev: B.0(PCB.SCH) Date:0//0 Sheet of V V R0 K7 R K7 SW-PUSH-CMS B SW-PUSH-CMS B A B C D UM7 STM8AF board electrical schematics
0/8 Doc ID 06 Rev Figure. A B C USBV D STM8AF board CAN/LIN and V C 0nF 7 C+ GND VCC ST66A C7 0uF/V C+ SHDN VOUT 8 6 LIN_TX CAN_TX SHDN C6 0uF/V C 0nF LIN_TX FLASH Mode V R6 K JP LIN ON FLASH Mode CAN_TX V R K C 0nF CAN ON C 0nF 7 JP C+ GND VCC ST66A C+ SHDN VOUT 8 6 SPI_NSS SPI_SCK SPI_MOSI SPI_MISO LIN_RX CAN_RX SHDN C 0nF D6 SPI_NSS SPI_SCK SPI_MOSI SPI_MISO LIN_RX CAN_RX BAT60JFILM V SB6 V R K R K R K R K R K R8 K C 00nF C 0nF 9 0 VBAT 8 9 8 6 7 V V CSN CLK DI DO TxDC RxDC D BAT60JFILM C8 0uF/V NRESET OPOUT OP- OP+ OPOUT OP- OP+ U6 C- C- U7 C- C- RxDL/NINT TxDL GND 6 R9 0K V VS R0 K SHDN WU WU WU CAN_Supply AGND U L99PM6GXP REL REL OUT_HS OUT OUT OUT/FSO OUT CANH SPLIT CANL LINPU LIN STMicroelectronics Title: 0 7 6 REL REL 0 OUT_HS 9 OUT 8 OUT 7 6 WU D SB7 CANH CANL V BAT60JFILM C9 0nF SB8 USBV C 0nF R7 K REL REL OUT_HS OUT OUT WU LIN SB9 R 0 STM8AF BOARD CAN / LIN & V Number: MB06 Rev: B.0(PCB.SCH) Date:0//0 Sheet of LIN CANH CANL A B C D STM8AF board electrical schematics UM7
Doc ID 06 Rev /8 7 STM8AL board electrical schematics Figure. A B C D P 6 7 8 Header 8 STM8AL board top level STM8AL_USART_RX STM8AL_USART_TX GND Test Point PC6 PC PC PC0 V TP VDD PC PC STM8AL_USART_RX STM8AL_USART_TX TP TP TP TP U_ST_LINK ST_LINK_V.SCHDOC PC PC ST_LINK_SWIM MCO PC PC MCO ST_LINK_SWIM SPI_MISO SPI_MOSI SPI_SCK SPI_NSS IDD_CNT_EN IDD_Measurement IDD_WAKEUP PC0 PC PC PC6 PC PC SPI_MISO SPI_MOSI SPI_SCK SPI_NSS U_STM8AL STM8AL.SchDoc SPI_MISO SPI_MOSI SPI_SCK SPI_NSS PC0 PC PC PC6 MCO ST_LINK_SWIM MCO USART_RX USART_TX IDD_CNT_EN IDD_Measurement IDD_WAKEUP U_LIN LIN.SchDoc LIN_RX LIN_TX SPI_MISO SPI_MOSI SPI_SCK SPI_NSS ST_LINK_SWIM REL REL WU OUT OUT OUT_HS PD7_LCDSEG PD6_LCDSEG0 PD_LCDSEG9 PD_LCDSEG8 PB_LCDSEG PB_LCDSEG PB_LCDSEG PB0_LCDSEG0 PD_LCDSEG9 PD_LCDSEG8 PD0_LCDSEG7 PE_LCDSEG6 PE_LCDSEG PE_LCDSEG PE0_LCDSEG PA7_LCDSEG0 PD_LCDCOM PA6_LCDCOM PA_LCDCOM PA_LCDCOM0 LIN REL REL WU OUT OUT OUT_HS LIN IDD_CNT_EN IDD_Measurement IDD_WAKEUP IDD_measurement.SchDoc U_Power IDD_CNT_EN IDD_Measurement IDD_WAKEUP U_LCD GH087_buttons.SchDoc PD7_LCDSEG PD6_LCDSEG0 PD_LCDSEG9 PD_LCDSEG8 PB_LCDSEG PB_LCDSEG PB_LCDSEG PB0_LCDSEG0 PD_LCDSEG9 PD_LCDSEG8 PD0_LCDSEG7 PE_LCDSEG6 PE_LCDSEG PE_LCDSEG PE0_LCDSEG PA7_LCDSEG0 PD_LCDCOM PA6_LCDCOM PA_LCDCOM PA_LCDCOM0 RevA.0 --> PCB label MB07 A-00 RevB.0 --> PCB label MB07 B-00 - Add capacitor for consumption delay when step-up start - Adjust few values of components STMicroelectronics Title: USB VBAT USBV USBV VBAT STM8AL BOARD Number: MB07 Rev: B.0(PCB.SCH) Date:0//0 Sheet of 6 LIN CANL CANH CANH CANL LIN V SB6 SB SB SB WU OUT OUT OUT_HS REL REL VBAT CN 6 8 0 7 9 Header F 90 xh CN 0 8 6 9 7 Header M 90 XH P 6 7 8 9 Header 9 Male Female A B C D UM7 STM8AL board electrical schematics
/8 Doc ID 06 Rev Figure 6. A B C D Board Ident: PC=0 R6 00K C8 0pF V C0 V 00nF SB USB CN VCC D- D+ ID GND SHELL Not Fitted STM8AL board ST-LINK/V (SWIM only) 0 07BMR-0-SM X 8MHz STM8AL_USART_RX PC PC STM8AL_USART_TX R R R0 R9 C7 0pF Close to JP Not Fitted D 0K 0K OSC_IN OSC_OUT STM_RST K7 K7 SB TX RX SB AIN_ STLINK_TX BAT60JFILM JP 6 7 8 9 0 USBV SB R9 K R 0 USB_DM V R0 0 USB_DP R8 00K V VBAT PC PC PC OSCIN OSCOUT VSSA VDDA PA0 PA PA STLINK_RX Not Fitted D R6 00K SWIM_IN SWIM SWIM_IN SWIM_RST SWIM_RST_IN T_JTCK T_JTDO T_JTDI T_ T_JRST SWIM_IN SWIM STM_JTCK 8 7 6 0 9 8 7 VDD_ VSS_ PB9 PB8 BOOT0 PB7 PB6 PB PB/JNTRST PB/JTDO PA/JTDI JTCK/SWCLK PA PA PA PA6 PA7 PB0 PB PB/BOOT PB0 PB VSS_ VDD_ 6 7 8 9 0 IO IO GND D BAT60JFILM BAT60JFILM U ESDAVL V VDD_ VSS_ JTMS/SWDIO PA PA PA0 PA9 PA8 PB PB PB PB V USBV U STMF0C8T6 6 V STM_JTMS USB_DP USB_DM T_SWO 0 LED_STLINK 9 8 7 T_JTMS 6 T_JTCK T_SWDIO_IN V U Vin C 00nF PWR C9 00nF INH C GND BYPASS μf_xr_060 LD98MR C 00nF RC Must be very close to STMF0 pin 9 R8 MCO MCO 00 C 0pF R7 00 Not Fitted Vout C 00nF C 0nF_X7R_060 C6 00nF V CN C μf_xr_060 C 00nF STM_JTCK STM_JTMS SWIM_IN SWIM_RST_IN V R 0 R 0 SWIM V COM LED_STLINK SWIM SWIM_RST U Vin R 0 R 0 V R 680 R 7 R7 7 PWR_STM8 INH C GND BYPASS μf_xr_060 LD98MR C0 00nF LD Red STMicroelectronics Title: STM8AL BOARD ST-LINK/V (SWIM only) Number: MB07 Rev: B.0(PCB.SCH) Date:0//0 Sheet of 6 Vout R 80 LD RED R 0 _Green LD_BICOLOR_CMS ST_LINK_SWIM ST_LINK_SWIM C 0nF_X7R_060 V STM8AF_RESET V C8 μf_xr_060 C9 00nF PWR V A B C D STM8AL board electrical schematics UM7
Doc ID 06 Rev /8 Figure 7. A B C D STM8AL board MCU ST_LINK_SWIM Close to XTAL & MCU MCO C 0pF C 0pF MCO Not Fitted SB R 0 X 6MHz R 60 VDD Not Fitted R6 0 C uf V R 0K C7 0nF PA_LCDCOM0 PA_LCDCOM PA6_LCDCOM PA7_LCDSEG0 PE0_LCDSEG PE_LCDSEG PE_LCDSEG PE_LCDSEG6 PD0_LCDSEG7 PD_LCDCOM PD_LCDSEG8 PD_LCDSEG9 PB0_LCDSEG0 C8 uf VDD VDDA C6 00nF VDD PA0 PA PA 6 PA6 7 PA7 8 9 0 PE0 PE PE 6 PE 7 PE 8 PE 9 PD0 0 PD PD PD PB0 C 00nF U0 PA0 /PA PA PA PA PA PA6 PA7 AVSS VDD VDDA VREF+ VLCD PE0 PE PE PE PE PE PD0 PD PD PD PB0 STM8ALL68T L BEAD C9 uf PE7 PE6 PC7 PC6 PC PC PC PC VSSIO VDDIO PC PC0 PD7 PD6 PD PD PF0 PB7 PB6 PB PB PB PB PB 8 7 6 0 9 8 7 6 0 9 8 7 6 VDDA C0 00nF PE7 PE6 PC7 PC6 PC PC PC PC PC PC0 PD7 PD6 PD PD PF0 PB7 PB6 PB PB PB PB PB IDD_WAKEUP SB9 IDD_CNT_EN USART_TX USART_RX C 6.8pF VDD PC PC0 PD7_LCDSEG PD6_LCDSEG0 PD_LCDSEG9 PD_LCDSEG8 IDD_Measurement SPI_MISO SPI_MOSI SPI_SCK SPI_NSS PB_LCDSEG PB_LCDSEG PB_LCDSEG PE7 PC7 STMicroelectronics Title: R0 80 R 0 X LD red LD green C7 6.8pF MC06-G-06Q-.768 (manufacturer JFVNY) R 0 Must be close to the Crystal and ON SB0 User Button PE PC6 PC C7 00nF PC6 PC V R K7 B STM8AL BOARD MCU Number: MB07 Rev: B.0(PCB.SCH) Date:0//0 Sheet of 6 SW-PUSH-CMS User Button PE C 00nF V R8 K7 B SW-PUSH-CMS A B C D UM7 STM8AL board electrical schematics
STM8AL board electrical schematics UM7 Figure 8. STM8AL board LCD A A LCD PD_LCDSEG8 PD_LCDSEG9 PD7_LCDSEG PD6_LCDSEG0 PA7_LCDSEG0 PE0_LCDSEG PB_LCDSEG PB_LCDSEG PA_LCDCOM0 PA_LCDCOM B B 6 7 8 9 0 SEG0 SEG SEG SEG SEG SEG SEG6 SEG7 SEG8 SEG9 SEG0 SEG COM COM SEG SEG SEG SEG0 SEG9 SEG8 SEG7 SEG6 SEG SEG SEG SEG COM0 COM 8 7 6 0 9 8 7 6 U6 GH087T PA6_LCDCOM PD_LCDCOM PB_LCDSEG PB0_LCDSEG0 PE_LCDSEG PD_LCDSEG9 C PE_LCDSEG PD_LCDSEG8 C PE_LCDSEG6 PD0_LCDSEG7 D D STMicroelectronics Title: STM8AL BOARD LCD Number: MB07 Rev: B.0(PCB.SCH) Date:0//0 Sheet of 6 /8 Doc ID 06 Rev
Doc ID 06 Rev /8 Figure 9. A B C D STM8AL board IDD_measurement V IDD Measure off V VDD on R (%) JP U S G S G R K(%) D D D D STSDPF0L 8 7 6 R8 7K U8 MAX998FEUK+ U9 I/O O/I C GND VCC SB8 7HG66STR U 7LXG0CTR V PE6 IDD_WAKEUP 6 7 8 V U7 Q Q Q Q6 Q Q7 Q GND R 0K VCC Q0 Q8 Q9 CLR CI CO CO M7HC060TTR 6 0 9 C uf C 00nF C6 nf R 0 R9 K R6 0K R7 0K V Oscillator frequency 0KHz PF0 IDD_Measurement SB6 PC IDD_CNT_EN SB7 STMicroelectronics Title: STM8AL BOARD IDD_Measurement Number: MB07 Rev: B.0(PCB.SCH) Date:0//0 Sheet of 6 A B C D UM7 STM8AL board electrical schematics
6/8 Doc ID 06 Rev Figure 0. A B C USBV D STM8AL board LIN and V C 0nF 7 C+ GND VCC ST66A C6 0uF/V C+ SHDN VOUT LIN_TX 8 6 LIN_TX SHDN C 0uF/V C6 0nF FLASH Mode V R K JP LIN ON C 0nF C8 0nF 7 GND SHDN VCC VOUT ST66A LIN_RX 8 6 SPI_NSS SPI_SCK SPI_MOSI SPI_MISO V V D C 0nF SHDN D7 V BAT60JFILM V SB SPI_NSS R7 K SPI_SCK R8 K SPI_MOSI R9 K SPI_MISO R0 K D BAT60JFILM LIN_RX BAT60JFILM R 0 R K V C9 00nF C 0nF 9 0 VBAT 8 9 8 6 7 V V CSN CLK DI DO TxDC RxDC D8 BAT60JFILM C 0uF/V NRESET OPOUT OP- OP+ OPOUT OP- OP+ U C- C- C+ C+ U C- C- RxDL/NINT TxDL GND 6 R6 K R7 0K V VS SHDN OUT OUT OUT/FSO OUT WU WU WU CAN_Supply AGND U L99PM6GXP REL REL OUT_HS CANH SPLIT CANL LINPU LIN STMicroelectronics Title: 0 7 6 REL REL 0 OUT_HS 9 OUT 8 OUT 7 6 WU D6 R K BAT60JFILM C 0nF SB USBV C0 0nF REL REL OUT_HS OUT OUT WU LIN STM8AL BOARD LIN & V Number: MB07 Rev: B.0(PCB.SCH) Date:0//0 Sheet 6 of 6 LIN A B C D STM8AL board electrical schematics UM7
UM7 Revision history 8 Revision history Table. Document revision history Date Revision Changes -Nov-0 Initial release. Doc ID 06 Rev 7/8
UM7 Please Read Carefully: Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries ( ST ) reserve the right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any time, without notice. All ST products are sold pursuant to ST s terms and conditions of sale. Purchasers are solely responsible for the choice, selection and use of the ST products and services described herein, and ST assumes no liability whatsoever relating to the choice, selection or use of the ST products and services described herein. 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. UNLESS OTHERWISE SET FORTH IN ST S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED WARRANTIES 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. UNLESS EXPRESSLY APPROVED IN WRITING BY TWO AUTHORIZED ST REPRESENTATIVES, ST PRODUCTS ARE NOT RECOMMENDED, AUTHORIZED OR WARRANTED FOR USE IN MILITARY, AIR CRAFT, SPACE, LIFE SAVING, OR LIFE SUSTAINING APPLICATIONS, NOR IN PRODUCTS OR SYSTEMS WHERE FAILURE OR MALFUNCTION MAY RESULT IN PERSONAL INJURY, DEATH, OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE. ST PRODUCTS WHICH ARE NOT SPECIFIED AS "AUTOMOTIVE GRADE" MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USER S OWN RISK. Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately void any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, any liability of ST. ST and the ST logo are trademarks or registered trademarks of ST in various countries. Information in this document supersedes and replaces all information previously supplied. The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners. 0 STMicroelectronics - All rights reserved STMicroelectronics group of companies Australia - Belgium - Brazil - Canada - China - Czech Republic - Finland - France - Germany - Hong Kong - India - Israel - Italy - Japan - Malaysia - Malta - Morocco - Philippines - Singapore - Spain - Sweden - Switzerland - United Kingdom - United States of America www.st.com 8/8 Doc ID 06 Rev