ST STM8A-DISCOVERY User Manual

Page 1
November 2012 Doc ID 023645 Rev 1 1/48
UM1574
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 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. STM8A-DISCOVERY
Figure 2. Applicable tools
Typ e Part nu mber
Evaluation tools
STM8A-DISCOVERY
STM8AF
board
STM8AL
board
www.st.com
Page 2
Contents UM1574
2/48 Doc ID 023645 Rev 1
Contents
1 Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2 Quick start . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.1 Getting started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.2 System requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.3 Development toolchains supporting the STM8A-DISCOVERY . . . . . . . . . 7
3 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
4 Hardware and layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
4.1 STM8A-DISCOVERY common resources . . . . . . . . . . . . . . . . . . . . . . . . . 9
4.1.1 Embedded ST-LINK/V2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
4.1.2 Debugging STM8A-DISCOVERY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
4.1.3 Power supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
4.1.4 L99PM62GXP power management IC with LIN and high speed CAN . 11
4.2 STM8AF board dedicated resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
4.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 connection . . . . . . . . . . . . . . . . . . . . . . . . . . 21
4.3 STM8AL board dedicated resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
4.3.1 STM8AL3L68T microcontroller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
4.3.2 STM8AL board LEDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
4.3.3 STM8AL board Push buttons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
4.3.4 STM8AL board built-in I
DD
measurement circuit . . . . . . . . . . . . . . . . . . 28
4.3.5 STM8AL board LCD (16 segments, 4 commons) . . . . . . . . . . . . . . . . . 31
4.3.6 STM8AL board solder bridges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
4.3.7 STM8AL board jumpers selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
4.3.8 STM8AL board extension connection . . . . . . . . . . . . . . . . . . . . . . . . . . 34
5 STM8A-DISCOVERY boards mechanical drawing . . . . . . . . . . . . . . . . 35
5.1 STM8AF board mechanical drawing . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
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
List of tables UM1574
4/48 Doc ID 023645 Rev 1
List of tables
Table 1. ON/OFF conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Table 2. STM8AF board solder bridges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Table 3. STM8AF board jumper selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Table 4. STM8AF board P1 pinout microcontroller 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 bridges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Table 9. STM8AL board jumpers selection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Table 10. STM8AL board P1 pinout Microcontroller connectivity . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Table 11. STM8AL board P2 pinout L99PM62GXP connectivity . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Table 12. Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Page 5
UM1574 List of figures
Doc ID 023645 Rev 1 5/48
List of figures
Figure 1. STM8A-DISCOVERY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Figure 2. Applicable tools. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Figure 3. Debugging the STM8AF microcontroller when the STM8AL board or an
external application board is connected . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Figure 4. Debugging the STM8AL microcontroller when the STM8AF board or an
external application board is connected . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Figure 5. L99PM62GXP block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Figure 6. STM8AF board hardware block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Figure 7. STM8AF board top layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Figure 8. STM8AF board bottom layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Figure 9. STM8AF5288T package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Figure 10. STM8AF5288T block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Figure 11. STM8AL board 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 board I
DD
measurement circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Figure 17. STM8AL board I
DD
Low power mode measurement timing diagram . . . . . . . . . . . . . . . . . 30
Figure 18. LCD segment mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Figure 19. STM8AF board mechanical drawing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Figure 20. STM8AL board mechanical drawing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Figure 21. STM8AF board top level . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Figure 22. STM8AF board ST-LINK/V2 (SWIM only). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Figure 23. STM8AF board MCU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Figure 24. STM8AF board CAN/LIN and 12V . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Figure 25. STM8AL board top level . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Figure 26. STM8AL board ST-LINK/V2 (SWIM only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Figure 27. STM8AL board MCU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Figure 28. STM8AL board LCD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Figure 29. STM8AL board IDD_measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Figure 30. STM8AL board LIN and 12V. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Page 6
Conventions UM1574
6/48 Doc ID 023645 Rev 1
1 Conventions
Ta bl e 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 SBx connections closed by solder
Solder bridge SBx OFF SBx connections left open
Page 7
UM1574 Quick start
Doc ID 023645 Rev 1 7/48
2 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-Q100 rev G.
For more information on the STM8A-DISCOVERY and for demonstration software, visit www.st.com/stm8a-discovery.
2.1 Getting started
1. Connect CN3 and CN4 on the STM8AF board to CN3 and CN4 on the STM8AL board.
2. Connect both type A connectors of the USB cable to a PC.
3. Then connect the mini-B connector of the USB cable to the STM8AF board.
4. All LEDs blink once on the STM8AF board and 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 bus.
6. Push button USER1 on the STM8AF board to sequentially display the LCD bars on the STM8AL board through the LIN bus. Push button USER2 on the STM8AF board to sequentially switch them off one by one.
7. Push button USER1 on the STM8AL board to sequentially switch on green LEDs LD4, LD5, LD6 and LD7 on the STM8AF board through the LIN bus. Push button USER2 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/stm8a­discovery.
9. You can discover the STM8AF and STM8AL features, download and execute programs proposed in the list of projects.
10. You can then develop your own application using the available examples.
2.2 System requirements
Windows PC (XP, Vista, 7)
USB cable (dual type A to mini-B) - included
2.3 Development toolchains supporting the STM8A-DISCOVERY
IAR: EWSTM8
STMicroelectronics: STVD
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)
Page 9
UM1574 Hardware and layout
Doc ID 023645 Rev 1 9/48
4 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.
4.1 STM8A-DISCOVERY common resources
4.1.1 Embedded ST-LINK/V2
The ST-LINK/V2 programming and debugging tool is integrated both in STM8AF and 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).
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 UM1075 (ST-LINK/V2 in-circuit debugger/programmer for STM8 and STM32) which describes in detail all the ST-LINK/V2 features.
Page 10
Hardware and layout UM1574
10/48 Doc ID 023645 Rev 1
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.
Example 1: Debugging the STM8AF 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
Example 2: Debugging the STM8AL microcontroller when the STM8AF board or an
external application board is connected.
Figure 4. 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.
Page 11
UM1574 Hardware and layout
Doc ID 023645 Rev 1 11/48
4.1.3 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 (12 Vdc typical, 14 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 3 and Figure 4).
If no programming/debugging operations are needed (no PC connected) or if a larger
amount of current is required (higher than 200 mA @5 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 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 L99PM62GXP power management IC. This device includes a 5 V regulator which is connected directly to the STM8AF5288T microcontroller or transformed subsequently into 3.3 V to supply the STM8AL3L68T microcontroller.
The power supplies of STM8AF5288T and STM8AL3L68T are provided by the L99PM62GXP power management IC on condition that the microcontrollers sequentially refresh the watchdog included in the L99PM62GXP devices. This functionality exists when the L99PM62GXP is in Active mode (standard operation). In that case, if the L99PM62GXP device is not refreshed periodically, the 5 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 L99PM62GXP watchdog refresh, the L99PM62GXP can be placed in Flash mode by configuring some dedicated jumpers (see Section 4.2.5). 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.
4.1.4 L99PM62GXP power management IC with LIN and high speed CAN
The L99PM62GXP 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
Page 12
Hardware and layout UM1574
12/48 Doc ID 023645 Rev 1
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 L99PM62GXP 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-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.
Page 13
UM1574 Hardware and layout
Doc ID 023645 Rev 1 13/48
Figure 5. L99PM62GXP block diagram
MS31061V1
y
Page 14
Hardware and layout UM1574
14/48 Doc ID 023645 Rev 1
4.2 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 and Figure 7 help you locate these features on the STM8AF board.
Figure 6. STM8AF board hardware block diagram
MS31074V1
Mini
USB
Embedded
ST-LINK/V2
DC/DC
converter
5V to 12V
USER1 button
USER2 button
P1 Header
Red LED LD3
Green LED LD4
Green LED LD5
STM8AF5288T
5V
I/O
L99PM62GXP
Power Management
LIN transceiver
5V
LIN
P3 Header
I/O
VBAT
SWIM SPI
P2 Header
CAN
Green LED LD6
Green LED LD7
RV1
potentiometer
CN3/CN4
Page 15
UM1574 Hardware and layout
Doc ID 023645 Rev 1 15/48
Figure 7. STM8AF board top layout
MS31065V2
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 external
B1 USER1 button
L99PM62GXP
STM8AF5288T
LD1 (red/green LED) COM
RV1 potentiometer
VBAT
Page 16
Hardware and layout UM1574
16/48 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, SB11 (USB5V)
SB12, SB13 (RESERVED)
Page 17
UM1574 Hardware and layout
Doc ID 023645 Rev 1 17/48
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
The STM8AF5288T automotive 8-bit microcontroller offers 64 Kbytes of non-volatile memory and integrated true data EEPROM.
The STM8AF52xx 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 300 k write/erase cycles
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 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 3.3 V and 5 V supply
The STM8AF and STM8AL boards are supported by the same tools including STVD/STVP development environment.
STM8AF5288T
LQFP48 7x7
64 Kbytes of Flash memory 2 Kbytes of EEPROM 4 Kbytes of RAM
Page 18
Hardware and layout UM1574
18/48 Doc ID 023645 Rev 1
Figure 10. STM8AF5288T block diagram
MS31062V1
XTAL 1-24 MHz
RC int. 16 MHz
RC int. 128 kHz
STM8A CORE
Debug/SWIM
I
2
C
SPI
USART
LINUART
16-bit general purpose
AWU t im er
Reset block
Reset
Clock 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/s
Master/slave
Single wire
automatic
debug interf.
SPI emul.
channels
high density program
Flash
16-bit advanced control
timer (TIM1)
(TIM2, TIM3)
8-bit AR timer
(TIM4)
data EEPROM
RAM
Up to
Address and data bus
16 channels
resynchronization
POR
BOR
Page 19
UM1574 Hardware and layout
Doc ID 023645 Rev 1 19/48
4.2.2 STM8AF board LEDs
The STM8AF board includes the following 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.
User 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 I/O PD0 of the STM8AF5288T.
User LD6: green LED is a user LED connected to the I/O PE3 of the STM8AF5288T.
User LD7: green LED is a user LED connected to the I/O PC3 of the STM8AF5288T.
4.2.3 STM8AF board Push buttons
STM8AF board includes two push buttons:
USER1: User button connected to the I/O PE2 of STM8AF5288T.
USER2: User button connected to the I/O PE1 of STM8AF5288T.
Page 20
Hardware and layout UM1574
20/48 Doc ID 023645 Rev 1
4.2.4 STM8AF board solder bridges
Table 2. STM8AF board solder bridges
Bridge State
(1)
Description
SB1 (Reserved) ON Reserved, do not modify.
SB2
(STM_RST)
OFF NRST signal of STM32F103C8T6 (ST-LINK/V2) is not connected to GND.
ON NRST signal of STM32F103C8T6 (ST-LINK/V2) is connected to GND.
SB3 (MCO)
OFF
MCO clock from STM32F103C8T6 is not connected to PA1 (OSC_IN) of STM8AF5288T.
ON MCO clock from STM32F103C8T6 is connected to PA1 (OSC_IN) of STM8AF5288T.
SB4,5
(Reserved)
OFF Reserved, do not modify.
SB6
(L99PM62GXP
Reset)
OFF
NRESET of L99PM62GXP is not connected to the STM8AF5288T Reset pin (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 selection saves power consumption.
SB8
(Start-up delay)
OFF
If the STM8AF board is connected to another STM8AF board, then one of them must have SB8 OFF.
ON The STM8AF board is connected to the STM8AL board (standard demo package).
SB9 (CAN
terminating
resistor)
ON The CAN terminating 120 Ohms resistor is connected on the CAN bus.
OFF The CAN terminating 120 Ohms resistor is not connected on the CAN bus.
SB10,11 (USB5V)
ON
USB5V is available on CN3/CN4 connectors for powering an external board through CN3/CN4.
OFF USB5V is not available on CN3/CN4 connectors.
SB12,13
(Reserved)
ON Reserved, do not modify.
1. Default SBx state is shown in bold.
Page 21
UM1574 Hardware and layout
Doc ID 023645 Rev 1 21/48
4.2.5 STM8AF board jumpers selection
4.2.6 STM8AF board extension connection
Male headers P1, P2 and P3 connectors can connect the STM8AF board to a standard prototyping/wrapping board. Free GPI/Os of the STM8AF5288T are available on P1 and P2. L99PM62GXP device I/Os are connected to P3. P1, P2 and P3 can also be probed by an oscilloscope, a logic analyzer or a voltmeter.
P1 connector contains the full port B GPI/Os and the alternate functions are the first 8 ADC channel inputs. Its standard HE10 format complies with some additional modules or resources that are pin-to-pin equivalent.
Table 3. STM8AF board jumper selection
Jumper State
(1)
1. Default jumper state is shown in bold.
Description
JP1
(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 communication enabled.
JP3 (I
DD
)
ON Standard operation, 5 V connected to the V
DD
of the microcontroller.
OFF
An ammeter can be connected between JP3 pins to measure the current sunk by the MCU.
JP4 (Reserved) OFF Reserved, do not modify.
Table 4. STM8AF board P1 pinout microcontroller connectivity
Pin number P1Pin number
STM8AF MCU
Board pin
name
Type Main function Alternate function
1 22 PB0 I/O Port B0 Analog input AIN0
2 21 PB1 I/O Port B1 Analog input AIN1
3 20 PB2 I/O Port B2 Analog input AIN2
4 19 PB3 I/O Port B3 Analog input AIN3
5 18 PB4 I/O Port B4 Analog input AIN4
6 17 PB5 I/O Port B5 Analog input AIN5
7 16 PB6 I/O Port B6 Analog input AIN6
8 15 PB7 I/O Port B7 Analog input AIN7
9V
DD
Microcontroller Digital power supply
10 GND Digital ground
Page 22
Hardware and layout UM1574
22/48 Doc ID 023645 Rev 1
Table 5. STM8AF board P2 pinout microcontroller connectivity
Pin number
P2
Pin number
STM8AF
MCU
Board pin
name
Type Main function Alternate function
1 GND Digital ground
2 1 NRST I/O Reset
3 48 PD7 I/O Port D7 TLI
4 45 PD4 I/O Port D4 Timer 2 - channel 1
5 43 PD2 I/O Port D2 Timer 3 - channel 1
6 12 PA6 I/O Port A6 USART synchronous clock
7 40 PE0 I/O Port E0 CCO Configurable clock output
8 24 PE6 I/O Port E6 Analog input AIN9
9 29 PC4 I/O Port C4 Timer 1 - channel 4
10 27 PC2 I/O Port C2 Timer 1 - channel 2
11 26 PC1 I/O Port C1 Timer 1 - channel 1
12 V
DD
Microcontroller Digital power supply
Table 6. STM8AF board P3 pinout L99PM62GXP connectivity
(1)
1. For additional information on L99PM62GXP device connectivity, please refer to product datasheet
available at www.st.com.
Pin number
P3
Pin number
STM8AF
MCU
Board pin
name
Type Main function
15V
5 V board power supply (output 5V1 from
L99PM62GXP)
2 20 WU1 I Wake-up input 1
3 28 OUT2 O High-side driver output (7 , typ.)
4 29 OUT1 O High-side driver output (7 , typ.)
5 30 O_HS O High-side driver (1 , typ.)
6 34 REL1 O Low-side driver output (2 typ.)
7 35 REL2 O Low-side driver output (2 typ.)
8 GND Digital ground
9V
BAT
I External power supply (12 Vdc typ.)
Page 23
UM1574 Hardware and layout
Doc ID 023645 Rev 1 23/48
4.3 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
DD
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
Mini
USB
Embedded
ST-LINK/V2
DC/DC converter 5V to 12V
5V to 3V3
USER1 button
USER2 button
LCD (16 segments, 4 commons)
P1 Header
Red LED LD3
Green LED LD4
IDD
measurement
3V3
I/O
L99PM62GXP
Power Management
LIN transceiver
5V
LIN
I/O
SWIM SPI
P2 Header
VBAT
CN3/CN4
3V3
WIM
PI
STM8AL3L68T
Page 24
Hardware and layout UM1574
24/48 Doc ID 023645 Rev 1
Figure 12. 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
ST662A
ST-LINK/V2
(green LED) LD4
LCD 24 segments
VBAT
IDD module
Page 25
UM1574 Hardware and layout
Doc ID 023645 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 (R ESERVED)
SB6, SB7, SB8
(I
DD
circuitry)
SB15, SB16 (RESERVED)
MS31064V1
SB11 (L99 M62GXP R eset)
SB4, SB5 (RESERVED)
Page 26
Hardware and layout UM1574
26/48 Doc ID 023645 Rev 1
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
This microcontroller belongs to the STM8AL family and provides the following benefits:
Integrated system
Up to 32 Kbytes of medium-density embedded Flash program memory
1 Kbyte of data EEPROM
Internal high speed and low-power low speed RC.
Embedded reset
Ultralow power consumption
195 µA/MHZ + 440 µ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 16 MIPS at 16 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 12-bit ADC, DAC, two comparators, real-time clock, three 16-bit timers, one 8-bit timer as well as standard communication interfaces such as SPI, I2C and USART. A 4x28-segment LCD is available on the medium-density STM8AL3L68T device.
STM8AL3L68T
32 Kbytes of Flash memory 1 Kbytes of EEPROM 2 Kbytes of RAM
LQFP48 7x7
Page 27
UM1574 Hardware and layout
Doc ID 023645 Rev 1 27/48
Figure 15. STM8AL3L68T MCU block diagram
1. 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
16 MHz internal RC
Clock
Clocks
Address, control and data buses
Debug module
SPI1
32 Kbytes
Interrupt controller
2 Kbytes 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
controller
and
CSS
1 Kbyte
Port D
Port E
Beeper
RTC
memoryProgram
Data EEPROM
@V
DD
V
DD18
V
DD1
=1.65 V
V
SS1
SWIM
SCL, SDA,
MOSI, MISO,
SCK, NSS
RX, TX, CK
ADC1_INx
DAC_OUT
COMP1_INP
COMP 1
COMP 2
COMP2_INP
V
DDA
V
SSA
SMB
@V
DDA/VSSA
Temp sensor
12-bit ADC1
V
REF+
V
REF-
3.6 V
12-bit DAC
12-bit DAC
NRST
PA[7:0]
PB[7:0]
PC[7:0]
PD[7:0]
PE[7:0]
PF0
BEEP
ALARM, CALIB
SEGx, COMx
POR/PDR
OSC_IN,
OSC_OUT
OSC32_IN,
OSC32_OUT
to
BOR
PVD
PVD_IN
RESET
DMA1
8-bit Timer 4
16-bit Timer 3
16-bit Timer 2
16-bit Timer 1
(4 channels)
2 channels
2 channels
3 channels
COMP2_INM
V
LCD
= 2.5 V
3.6 V
to
LCD booster
Internal reference
voltage
VREFINT out
V
REF+
Infrared interface
IR_TIM
Page 28
Hardware and layout UM1574
28/48 Doc ID 023645 Rev 1
4.3.2 STM8AL board LEDs
The STM8AL board includes the following LEDs and their description is:
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.
User LD3: red LED is a user LED connected to the I/O PE7 of the STM8AL3L68T.
User LD4: green LED is a user LED connected to the I/O PC7 of the STM8AL3L68T.
4.3.3 STM8AL board Push buttons
The STM8AL board includes two push buttons:
USER1: User button 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 circuit allows the consumption of the STM8AL3L68T to be measured and displayed on the LCD Glass while the MCU is in Run or Low power saving modes.
JP2 in ON position: STM8AL3L68T is powered through I
DD
measurement circuit
(default).
JP2 in OFF position: STM8AL3L68T is powered directly by +3V3, I
DD
measurement
circuit is bypassed.
Note: When jumper JP2 is removed the current consumption of the STM8AL3L68T can be measured by connecting an ammeter between jumper JP2 pin 1 and pin 2.
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 JP2 pin 2 and pin 3.
Page 29
UM1574 Hardware and layout
Doc ID 023645 Rev 1 29/48
Figure 16. STM8AL board IDD measurement circuit
Run mode
In Run mode, I
DD
current is measured using the operational amplifier MAX9938FEUK+ (U8)
connected to the 2
shunt resistor (R23). In this case IDD_CNT_EN remains high during
measurement, so R24 remains in short-circuit during the measurement because of switch U5 which remains ON permanently. The jumper JP2 must be connected between pins 2 and 3 of JP2. The measurement range in this case can be up to 30 mA.
Low power mode
In Low power modes (Halt or Active halt), I
DD
current is measured using the operational
amplifier MAX9938FEUK+ (U8) connected to the 2 K
shunt resistor (R24), controlled by
the switch STS4DPF20L (U5). In this case the counter 74HC4060 (U7) enabled by IDD_CNT_EN manages the measurement timing according to Figure 17. The measurement range in this case can be up to 30 µA.
Low power mode I
DD
measurement principle
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 Low power mode after setting IDD_CNT_EN (PC4) signal low.
4. IDD_WAKEUP rising edge wakes up the MCU after around 300 ms.
5. Start ADC conversion as soon as possible after wakeup in order to measure the
voltage corresponding to Low power mode on capacitor C14.
6. Reset the counter by programming IDD_CNT_EN high (in less than 70 ms after the
wakeup) to avoid the R24 2 K
resistor being connected later in Run mode.
R28 47K
2
345
U4 74LX1G04CTR
I/O1O/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
GND8CO
9
CO
10
CI
11
CLR
12
Q9
13
Q8
14
Q10
15
VCC
16
U7
R26 10K
R25
10K
C14 1uF
1
2
3
JP2
C16 1nF
R29 15K
R27 30K
Oscillator frequency 30 KHz
R22
0
C15 100nF
SB6
SB8
SB7
IDD Measure
ffono
4
5
2
3
1
U8 MAX9938FEUK+
S11D1
8
G12D1
7
S23D2
6
G24D2
5
U5
STS4 DPF20L
IDD_Measurement
IDD_CNT_EN
IDD_WAKEUP
PF0
PE6
PC4
3V3
3V3
3V3
3V3
3V3
MS31059V1
M74HC4060TTR
Page 30
Hardware and layout UM1574
30/48 Doc ID 023645 Rev 1
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
DD
becomes very low.
Figure 17 shows how the counter and U5 ensure that, 150 ms after IDD_CNT_EN falling
edge, the shunt resistor R24 is connected between VDD_MCU and the power supply in order to reduce the measurement range to 30 µA full scale (instead of 30 mA in Run mode).
Then after another 150 ms for current stabilization, R24 is shorted, the I
DD
measurement is
stored in C14, and the MCU is woken up. After wakeup, the MCU can measure the I
DD
current corresponding to the Low power mode stored in C14.
Figure 17. STM8AL board I
DD
Low power mode measurement timing diagram
Ibias current measurement procedure
In Low power mode the bias current of operational amplifier input (U8 pin 4) is not negligible compared to I
DD
current (typical Ibias is ~240 nA). To obtain a reliable STM8AL3L68T IDD
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:
1. Power off the board (disconnect the USB cable).
2. Set jumper JP2 to OFF position (pins 1 and 2).
3. Push down USER2 button while powering on the board from the USB.
4. Wait at least 1 second before releasing USER2, the LCD displays the Ibias
measurement.
5. Power off the board (disconnect the USB cable).
6. Set jumper JP2 to ON position (pins 2 and 3). The Ibias value is now stored. The bias
current is then subtracted from the I
DD
measurement performed in Low power mode.
MCU mode Run Low power
Wake-up Clear CNT
IDD_CNT_EN
Q13 = LOW_POWER_EN
Q14 = IDD_WAKEUP
Q14n = U4 pin 4
0ms
150 ms
300 ms
event event
Wake-up period
IDD measurement
3
4
5
6
Page 31
UM1574 Hardware and layout
Doc ID 023645 Rev 1 31/48
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 Ta bl e 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 bias
Operating voltage: 3 V
Operating temperature: 0 to 50°C
Connector: 28-pin DIL 2.54 mm pitch
Note: When the LCD is plugged in, all I/O ports listed in Ta bl e 7 are unavailable. To use one of
these as I/O, you must remove the LCD
Figure 18. LCD segment mapping
Page 32
Hardware and layout UM1574
32/48 Doc ID 023645 Rev 1
Table 7. LCD connections
STM8AL3L68T LCD
Pin Name PIN COM3 COM2 COM1 COM0
11N1P1D1E
2 1DP 1COLON 1C 1M
32N2P2D2E
4 2DP 2COLON 2C 2M
PE3_LCDSEG4 5 3N 3P 3D 3E
PE4_LCDSEG5 6 3DP 3COLON 3C 3M
PE5_LCDSEG6 7 4N 4P 4D 4E
PD0_LCDSEG7 8 4DP 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_LCDCOM0 16 COM0
PB2_LCDSEG12 17 6J 6K 6A 6B
PB3_LCDSEG13 18 6H 6Q 6F 6G
PA7_LCDSEG0 19 5J 5K 5A 5B
PE0_LCDSEG1 20 5H 5Q 5F 5G
PD6_LCDSEG20 21 4J 4K 4A 4B
PD7_LCDSEG21 22 4H 4Q 4F 4G
PD4_LCDSEG18 23 3J 3K 3A 3B
PD5_LCDSEG19 24 3H 3Q 3F 3G
25 2J 2K 2A 2B
26 2H 2Q 2F 2G
27 1J 1K 1A 1B
28 1H 1Q 1F 1G
Page 33
UM1574 Hardware and layout
Doc ID 023645 Rev 1 33/48
4.3.6 STM8AL board solder bridges
1. Default SBx state is shown in bold.
4.3.7 STM8AL board jumpers selection
Table 8. STM8AL board solder bridges
Bridge State Description
SB1 (Reserved) ON Reserved, do not modify.
SB2
(STM_RST)
OFF NRST signal of STM32F103C8T6 (ST-LINK/V2) is not connected to GND.
ON NRST signal of STM32F103C8T6 (ST-LINK/V2) is connected to GND.
SB3 (MCO)
OFF
MCO clock from STM32F103C8T6 is not connected to PA2 (OSC_IN) of STM8AL3L68T.
ON MCO clock from STM32F103C8T6 is connected to PA2 (OSC_IN) of STM8AL3L68T.
SB4, 5 (Reserved) OFF Reserved, do not modify.
SB6, 7, 8
(I
DD
circuitry)
ON I
DD
measurement circuitry and features connected.
OFF
I
DD
measurement circuitry and features are not connected (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 fitted on board).
SB11
(L99PM62GXP
Reset)
OFF
NRESET of L99PM62GXP is not connected to STM8AL3L68T Reset pin (external watchdog disable).
ON
NRESET of L99PM62GXP is connected to STM8AL3L68T Reset pin (external watchdog enable).
SB12 (Reserved) ON Reserved, do not modify.
SB13, 14 (USB5V)
ON
USB5V is distributed on CN3/CN4 connectors (USB5V can drive an external board connected to CN3 and CN4).
OFF USB5V is not distributed on CN3/CN4 connectors.
SB15, 16 (Reserved) ON Reserved, do not modify.
Table 9. STM8AL board jumpers selection
Jumper State
(1)
1. Default jumper state is shown in bold.
Description
JP1 (Reserved) OFF Reserved, do not modify.
JP2 (I
DD
)
1-2 OFF Ibias measurement selection.
2-3 ON I
DD
measurement selection.
JP3 (Reserved) 2-3 Reserved, do not modify.
Page 34
Hardware and layout UM1574
34/48 Doc ID 023645 Rev 1
4.3.8 STM8AL board extension connection
Male headers P1 and P2 connectors can connect the STM8AL board to a standard prototyping/wrapping board. Free GPI/Os of STM8AL3L68T are available on P1. L99PM62GXP device I/Os are connected to P2.
P1 and P2 can also be probed by an oscilloscope, a logic analyzer or a voltmeter.
Table 10. STM8AL board P1 pinout Microcontroller connectivity
Pin number
P1
Pin number
STM8AL
MCU
Board pin
name
Type Main function Alternate function
1 GND Digital ground
2 2 NRST I/O Reset PA1
3 45 PC6 I/O Port C6 OSC32_OUT
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
710V
DD
Microcontroller Digital power supply
85V
5V board power supply (output 5V1 from
L99PM62GXP)
Table 11. STM8AL board P2 pinout L99PM62GXP connectivity
(1)
1. For additional information on L99PM62GXP device connectivity, please refer to product datasheet
available at www.st.com.
Pin
number
P2
Pin number
L99PM62GXP
Board pin
name
Type Main function
13V3
3.3 V board power supply
(output 3.3 V from U11 PWR_STM8)
2 20 WU1 I Wake-up input 1
3 28 OUT2 O High-side driver output (7 , typ.)
4 29 OUT1 O High-side driver output (7 , typ.)
5 30 O_HS O High-side driver (1 , typ.)
6 34 REL1 O Low-side driver output (2 typ.)
7 35 REL2 O Low-side driver output (2 typ.)
8 GND Digital ground
9 VBAT I External power supply (12Vdc typ.)
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
UM1574 STM8AF board electrical schematics
Doc ID 023645 Rev 1 37/48
6 STM8AF board electrical schematics
Figure 21. STM8AF board top level
1
1
2
2
3
3
4
4
D D
C C
B B
A A
STMicroelectronics
Title:
Number: Rev: Sheet of
B.0(PCB.SCH)
Date:
10/3/2012
MB1036 1 4
STM8AF BOARD
MCO PA4 PA5
NRST
ST_LINK_SWIM
U_ST_LINK ST_LINK_V2.SCHDOC
ST_LINK_SWIM
MCO
NRST
PA5
MCO
PA4SPI_NSS
CAN_TX
NRSTLIN_TX
LIN_RX
SPI_SCK
SPI_MOSI
SPI_MISO
CAN_RX
PB0 PB1 PB2 PB3
PB4 PC1 PC2 PC4
PE0
PD2 PD4 PD7
ST_LINK_SWIM
PB5
PB6
PB7
PA6
PE6
U_STM8AF STM8AF.SchDoc
MCO
PA4 PA5
ST_LINK_SWIM
LIN_TX LIN_RX
SPI_NSS
SPI_SCK
SPI_MOSI
SPI_MISO
CAN_TX
NRST
RevA.0 --> PCB label MB1036 A-00 RevB.0 --> PCB label MB1036 B-00
- Add capacitor for consumption 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_RX
WU1
REL1 REL2
CANH
CANL
LIN
U_CAN_LIN CAN_LIN.SchDoc
LIN_TX LIN_RX
SPI_NSS
SPI_SCK
SPI_MOSI
SPI_MISO
CAN_TX CAN_RX
NRST
REL1 REL2 WU1
CANH
OUT2 OUT_HS
PB0 PB1
PC1
PB2 PB3 PB4
PC2 PC4
PD2 PD4
PE0
PD7
STM8AF_USART_TX
STM8AF_USART_RX
PA6
CANL
LIN
1 2 3 4 5 6 7 8 9 10
P1
Header 5X2
PB0 PB2 PB4
PB1 PB3 PB5
PB6 PB7
PB5 PB6 PB7
OUT1
TP4
TP5
TP3
TP2
PE6
PC1
PC2
PC4
PD2
PD4
PD7
PA6 PE0 PE6
VDD
NRST
REL1 REL2
WU1 OUT2
OUT_HS
OUT1
5V
1 2 3 4 5 6 7 8
9 10 11 12
P2
Header 12
SB10
CANH CANL
LIN
VBAT
12 34 56 78 910
CN3
Header F 90° 5x2H
12
34
56
78
910
CN4
Header M 90° 5X2H
USB5V
SB12
SB11
CANH
CANL
LIN
VBAT
USB5V
SB13
USB
Female
Male
1 2 3 4 5 6 7 8 9
P3
Header 9
VBAT
TP1
GND Test Point
Page 38
STM8AF board electrical schematics UM1574
38/48 Doc ID 023645 Rev 1
Figure 22. STM8AF board ST-LINK/V2 (SWIM only)
1
1
2
2
3
3
4
4
D D
C C
B B
A A
STMicroelectronics
Title:
Number: Rev: Sheet of
B.0(PCB.SCH)
Date:
10/3/2012
C7 20pF
C9 20pF
1 2
X1
8MHz
3V
USB_DM
USB_DP
STM_RST
T_JTCK
T_JTCK
T_JTDO
T_JTDI
T_JTMS
STM_JTMS
STM_JTCK
OSC_IN OSC_OUT
T_NRST
R19 4K7
R18 4K7
AIN_1
C10
100nF
R16 100K
R11
100K
3V
3V
3V
SWIM_IN
SWIM_IN
SWIM_IN
SWIM
SWIM
SWIM_RST_IN
SWIM_RST
MB1036 2 4
STM8AF BOARD ST-LINK/V2 (SWIM only)
USB_DM USB_DP
3V
R7 1K5
USB
R5 1 00K
VCC
1
D-
2
D+
3
ID
4
GND
5
SHELL
0
CN1
5075BMR-05-SM
USB5V
COM
3V
R2 1K
PWR
LD2 RED
C13 100nF
C12 100nFC6100nF
C8 100nF
3V
VBAT
1
PA7
17
PC13
2
PA12
33
PC14
3
PB0
18
PC15
4
JTMS/SWDIO
34
OSCIN
5
PB1
19
OSCOUT
6
VSS_2
35
NRST
7
PB2/BOOT1
20
VSSA
8
VDD_2
36
VDDA
9
PB10
21
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
45
PA9
30
PB9
46
PA10
31
VSS_3
47
PA11
32
VDD_3
48
U3 STM32F103C8T6
Board Ident: PC13=0
SWIM
3V1
2 3 4
CN2
STM_JTMS
STM_JTCK
3V
T_SWDIO_IN
T_SWO LED_STLINK
LED_STLINK
3V
R4
510
R3
510
R1
0
Red
_Green
2 1
3 4
LD1
LD_BICOLOR_CMS
R15 10K
R14 10K
VDD
Not Fitted
MCO
C4 1μF_X5R_0603
C3 10nF_X7R_0603
C1 1μF_X5R_0603
C5
100nF
C2 100nF
MCO
Not Fitted
R20 100
SB2
RC Must be very close to STM32F103 pin 29
JP3
51
2
GND
3
4
BYPASS
INH
Vin Vout
U1
LD3985M33R
R17
100
C11 20pF
JP4
TX RX
STLINK_RX
Not Fitted
SB4
SB5
STLINK_TX
PA4
PA5
STM8AF_USART_TX
STM8AF_USART_RX
Close to JP Not Fitted
Idd
NRST
ST_LINK_SWIM
SWIM
SWIM_RST
SWIM_IN
SWIM_RST_IN
R13
220
R10
220
R12
47
R21
47
R9 680
T_JRST
ST_LINK_SWIM
STM8AF_RESET
IO1
1
GND
3
IO2
2
U2 ESDA5V3L
5V
D1
BAT60JFILM
SB1
5V
PWR
D2
BAT60JFILM
5V
USB5V
R8 0 R6 0
D3
BAT60JFILM
Page 39
UM1574 STM8AF board electrical schematics
Doc ID 023645 Rev 1 39/48
Figure 23. STM8AF board MCU
1
1
2
2
3
3
4
4
D D
C C
B B
A A
STMicroelectronics
Title:
Number: Rev: Sheet of
B.0(PCB.SCH)
Date:
10/3/2012
MB1036 3 4
STM8AF BOARD MCU
PA4 PA5
PA4 PA5
SPI_NSS
CAN_TX
LD3
red
PA3
R25
1K
C30
100nF
5V
User Button 1
PE1
User Button 2
C36
100nF
5V
12
3 4
B2
SW-PUSH-CMS
12
3 4
B1
SW-PUSH-CMS
MCO
MCO
SB3
Close to XTAL & MCU
Not Fitted
C17
20pF
C18
20pF
X2 16MHz
VDD
5V
C19 10nF
NRST PA1 PA2
PA3 PA4 PA5 PA6
VCAP
C14
680nF
VDD
VDD
L1
BEAD
C15 1uF
C21 100nF
VDDA
PB0
PB1
PB2
PB3
PB4
PB5
PB6
PB7
PE0
PE1
PE2
PE3
SPI_NSS
PE6
PE7
PC1
PC2
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
R42 4K7
LD7
green
PC3
R29
510
LD4
green
PD3
R26
510
LD6
green
PE3
R28
510
LIN_TX
LIN_RX
SPI_SCK
SPI_MOSI
SPI_MISO
CAN_RX
5V
PE7
NRST
1
OSCIN/PA1
2
OSCOUT/PA2
3
Vssio_1
4
Vss
5
VCAP
6
Vdd
7
Vddio_1
8
PA3
9
PA4
10
PA5
11
PA6
12
Vdda13Vssa14PB715PB616PB517PB418PB319PB220PB121PB022PE723PE6
24
PE5
25
PC1
26
PC2
27
PC3
28
PC4
29
PC5
30
Vssio_2
31
Vddio_2
32
PC6
33
PC7
34
PG0
35
PG1
36
PE337PE238PE139PE0
40
PD041PD142PD243PD344PD445PD546PD647PD7
48
U4 STM8AF5288T
R24 10K
R22
60
PB0
PB1
PB2
PB3
PB4
PC1
PC2
PC4
PE0
PD2
PD4
PD7
13
2
RV1 10K
PB5
PB6
PB7
LD5
green
PD0
R27
510
PA6
PE6
Page 40
STM8AF board electrical schematics UM1574
40/48 Doc ID 023645 Rev 1
Figure 24. STM8AF board CAN/LIN and 12V
1
1
2
2
3
3
4
4
D D
C C
B B
A A
STMicroelectronics
Title:
Number: Rev: Sheet of
B.0(PCB.SCH)
Date:
10/3/2012
MB1036 4 4
STM8AF BOARD CAN / LIN & 12V
NRST
C1-
1
C1+
2
C2-
3
C2+
4
VCC5VOUT
6
GND7SHDN
8
U6
ST662A
C1-
1
C1+
2
C2-
3
C2+
4
VCC5VOUT
6
GND7SHDN
8
U7
ST662A
1
2
3
JP2
1
2
3
JP1
D4
BAT60JFILM
D6
BAT60JFILM
SB7
5V
SPI_NSS SPI_SCK SPI_MOSI SPI_MISO
5V
OUT_HS
OUT1 OUT2
12V
LIN_RX
LIN_TX
OUT2
OUT1
OUT_HS
SPI_MISO
SPI_MOSI
SPI_SCK
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 220nF
C27 10uF/25V
C26 10uF/25V
USB5V
SB6
CANH
CANL
LIN
VBAT
R39 10K
R40 22K
SHDN
SHDNSHDN
GND
36
RxDC
2
TxDC
3
CANH
4
CANL
5
OP2+
13
OP2-
14
OP2OUT
15
DI
16
DO
17
CLK
18
CSN
19
NRESET
8
CAN_Supply
7
RxDL/NINT
12
TxDL
11
SPLIT
6
5V1
9
LIN
33
LINPU
32
5V2
10
WU3
22
WU2
21
WU1
20
OP1OUT
23
OP1-
24
OP1+
25
OUT4
26
OUT3/FSO
27
OUT2
28
OUT1
29
OUT_HS
30
REL2
35
REL1
34
VS
31
AGND
1
U5 L99PM62GXP
R36 1K
R35 1K
R37 1K
R41 1K R38 1K
R31 1K R32 1K R34 1K R33 1K
LIN_RX
LIN_TX
CAN_RXCAN_TX
C29 220nF
SB8
USB5V
C31 220nF
C28 10uF/25V
R43
120
SB9
Page 41
UM1574 STM8AL board electrical schematics
Doc ID 023645 Rev 1 41/48
7 STM8AL board electrical schematics
Figure 25. STM8AL board top level
1
1
2
2
3
3
4
4
D D
C C
B B
A A
STMicroelectronics
Title:
Number: Rev: Sheet of
B.0(PCB.SCH)
Date:
10/3/2012
MB1037 1 6
STM8AL BOARD
MCO
NRST
ST_LINK_SWIMPC3
PC2
U_ST_LINK ST_LINK_V2.SCHDOC
ST_LINK_SWIM
MCO
NRST
SPI_NSS
SPI_SCK
SPI_MOSI
SPI_MISO
PC1
PC0
PC5 PC6
PD1_LCDCOM3
PD2_LCDSEG8
PD3_LCDSEG9
PB0_LCDSEG10
PB3_LCDSEG13 PB2_LCDSEG12 PB1_LCDSEG11
USART1_RX USART1_TX
PD7_LCDSEG21 PD6_LCDSEG20 PD5_LCDSEG19 PD4_LCDSEG18
IDD_Measurement IDD_WAKEUP
IDD_CNT_EN
PA4_LCDCOM0
PA5_LCDCOM1
PA6_LCDCOM2
PA7_LCDSEG0
PE0_LCDSEG1
PE3_LCDSEG4
PE4_LCDSEG5
PE5_LCDSEG6
PD0_LCDSEG7
NRST ST_LINK_SWIM MCO
U_STM8AL STM8AL.SchDoc
MCO
ST_LINK_SWIM
SPI_NSS
SPI_SCK
SPI_MOSI
SPI_MISO
NRST
RevA.0 --> PCB label MB1037 A-00 RevB.0 --> PCB label MB1037 B-00
- Add capacitor for consumption delay 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
SPI_SCK
SPI_MOSI
SPI_MISO
NRST
REL1 REL2 WU1
OUT2 OUT_HS
PC1
PC0
SB13
LIN
LIN
VBAT
12 34 56 78 910
CN4
Header F 90° 5x2H
12
34
56
78
910
CN3
Header M 90° 5X2H
USB5V
SB14
SB15
LIN
VBAT
USB5V
SB16
OUT1
TP5
TP4
TP3
TP2
PC1
VDD
NRST REL1
REL2
WU1 OUT2
OUT_HS
OUT1
3V3
PC0
PC5
PC6
1 2 3 4 5 6 7 8
P1
Header 8
PB3_LCDSEG13 PB2_LCDSEG12 PB1_LCDSEG11
PD7_LCDSEG21 PD6_LCDSEG20 PD5_LCDSEG19 PD4_LCDSEG18
PA4_LCDCOM0
PA5_LCDCOM1
PA6_LCDCOM2
PA7_LCDSEG0
PE0_LCDSEG1
PE3_LCDSEG4
PE4_LCDSEG5
PE5_LCDSEG6
PD0_LCDSEG7
PD1_LCDCOM3
PD2_LCDSEG8
PD3_LCDSEG9
PB0_LCDSEG10
U_LCD GH08172_buttons.SchDoc
PC3
PC2
PC3
PC2
STM8AL_USART_TX
STM8AL_USART_RX
PC5 PC6
5V
IDD_Measurement
IDD_CNT_EN
IDD_WAKEUP
U_Power
IDD_measurement.SchDoc
IDD_Measurement
IDD_CNT_EN
IDD_WAKEUP
USB
Female
Male
IDD_Measurement
IDD_CNT_EN
IDD_WAKEUP
PC3
PC2
TP1
GND Test Point
1 2 3 4 5 6 7 8 9
P2
Header 9
VBAT
CANL CANH
CANH CANL
Page 42
STM8AL board electrical schematics UM1574
42/48 Doc ID 023645 Rev 1
Figure 26. STM8AL board ST-LINK/V2 (SWIM only)
1
1
2
2
3
3
4
4
D D
C C
B B
A A
STMicroelectronics
Title:
Number: Rev: Sheet of
B.0(PCB.SCH)
Date:
10/3/2012
C7 20pF
C8 20pF
1 2
X1
8MHz
3V
USB_DM
USB_DP
STM_RST
T_JTCK
T_JTCK
T_JTDO
T_JTDI
T_JTMS
STM_JTMS
STM_JTCK
OSC_IN OSC_OUT
T_NRST
R20 4K7
R19 4K7
AIN_1
C10
100nF
R16 100K
R6
100K
3V
3V
3V
SWIM_IN
SWIM_IN
SWIM_IN
SWIM
SWIM
SWIM_RST_IN
SWIM_RST
MB1037 2 6
STM8AL BOARD ST-LINK/V2 (SWIM only)
USB_DM USB_DP
3V
R9 1K5
USB
R8 1 00K
VCC
1
D-
2
D+
3
ID
4
GND
5
SHELL
0
CN1
5075BMR-05-SM
USB5V
COM
3V
R2 820
PWR
LD2 RED
C9 100nF
C12 100nFC6100nF
C13 100nF
3V
VBAT
1
PA7
17
PC13
2
PA12
33
PC14
3
PB0
18
PC15
4
JTMS/SWDIO
34
OSCIN
5
PB1
19
OSCOUT
6
VSS_2
35
NRST
7
PB2/BOOT1
20
VSSA
8
VDD_2
36
VDDA
9
PB10
21
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
45
PA9
30
PB9
46
PA10
31
VSS_3
47
PA11
32
VDD_3
48
U3 STM32F103C8T6
Board Ident: PC13=0
SWIM
3V1
2 3 4
CN2
STM_JTMS
STM_JTCK
3V
T_SWDIO_IN
T_SWO LED_STLINK
LED_STLINK
3V
R4
510
R3
510
R1
0
Red
_Green
2 1
3 4
LD1
LD_BICOLOR_CMS
R15 10K
R12 10K
Not Fitted
MCO
C4 1μF_X5R_0603
C3 10nF_X7R_0603
C1 1μF_X5R_0603
C5 100nF
C2 100nF
MCO
Not Fitted
R17 100
SB2
RC Must be very close to STM32F103 pin 29
51
2
GND
3
4
BYPASS
INH
Vin Vout
U1
LD3985M33R
R18
100
C11 20pF
JP1
TX RX
STLINK_RX
Not Fitted
SB5
SB4
STLINK_TX
PC3
PC2
STM8AL_USART_TX
STM8AL_USART_RX
Close to JP Not Fitted
NRST
ST_LINK_SWIM
SWIM
SWIM_RST
SWIM_IN
SWIM_RST_IN
R14
220
R13
220
R7
47
R21
47
R5 680
T_JRST
ST_LINK_SWIM
STM8AF_RESET
IO1
1
GND
3
IO2
2
U2 ESDA5V3L
5V
D1
BAT60JFILM
SB1
PWR
D2
BAT60JFILM
USB5V
3V3
PWR_STM8
C31 1μF_X5R_0603
C32 10nF_X7R_0603
C28 1μF_X5R_0603
C30 100nF
C29 100nF
51
2
GND
3
4
BYPASS
INH
Vin Vout
U11
LD3985M33R
5V
3V3
3V3
R11 0 R10 0
D3
BAT60JFILM
Page 43
UM1574 STM8AL board electrical schematics
Doc ID 023645 Rev 1 43/48
Figure 27. STM8AL board MCU
1
1
2
2
3
3
4
4
D D
C C
B B
A A
STMicroelectronics
Title:
Number: Rev: S heet of
B.0(PCB.SCH)
Date:
10/3/2012
MB1037 3 6
STM8AL BOARD MCU
LD3
red
R30
820
LD4
green
R35
330
PA4_LCDCOM0
NRST
C22
20pF
C23
20pF
X2 16MHz
R32
60
41
32
X3
MC306-G-06Q-32.768 (manufacturer JFVNY)
C24
6.8pF
C27
6.8pF
VDD
VDDA
VDD
PA0
PA4 PA5 PA6 PA7
PE0 PE1 PE2 PE3 PE4 PE5 PD0 PD1 PD2 PD3 PB0 PB1
PB2
PB3
PB4
PB5
PB6
PB7
PF0
PD4
PD5
PD6
PD7
PC0
PC1
PC2
PC3
PC4
PC5
PC6
PC7
PE6
PE7
C21 100nF
VDD
C26 100nF
L1
BEAD
C19 1uF
C20 100nF
VDDA
PA5_LCDCOM1 PA6_LCDCOM2 PA7_LCDSEG0
PE0_LCDSEG1
PE3_LCDSEG4 PE4_LCDSEG5 PE5_LCDSEG6 PD0_LCDSEG7 PD1_LCDCOM3 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
PE7
PC7
IDD_WAKEUP
IDD_CNT_EN
R36
0
VDD
R34 0
Not Fitted
PA0
1
NRST/PA1
2
PA2
3
PA3
4
PA4
5
PA5
6
PA6
7
PA7
8
AVSS
9
VDD
10
VDDA
11
VREF+
12
VLCD
13
PE0
14
PE1
15
PE2
16
PE3
17
PE4
18
PE5
19
PD0
20
PD1
21
PD2
22
PD3
23
PB0
24
PB1
25
PB2
26
PB3
27
PB4
28
PB5
29
PB6
30
PB7
31
PF0
32
PD4
33
PD5
34
PD6
35
PD7
36
PC0
37
PC1
38
VDDIO
39
VSSIO
40
PC2
41
PC3
42
PC4
43
PC5
44
PC6
45
PC7
46
PE6
47
PE7
48
U10
STM8AL3L68T
Not Fitted
3V3
C17 10nF
R31 10K
PC0
PC1
SB9
SB10
Must be close to the Crystal and ON
C42
100nF
User Button 2
PE1
User Button 1
C37
100nF
12
3 4
B1
SW-PUSH-CMS
12
3 4
B2
SW-PUSH-CMS
R45 4K7
PE2
R48 4K7
3V3 3V3
PC5
PC6
PC5
PC6
SPI_NSS
SPI_SCK
SPI_MOSI
SPI_MISO
MCO
MCO
SB3
Close to XTAL & MCU
R33
0
Page 44
STM8AL board electrical schematics UM1574
44/48 Doc ID 023645 Rev 1
Figure 28. STM8AL board LCD
1
1
2
2
3
3
4
4
D D
C C
B B
A A
STMicroelectronics
Title:
Number: Rev: Sheet of
B.0(PCB.SCH)
Date:
10/3/2012
MB1037 4 6
STM8AL BOARD LCD
LCD
SEG01SEG12SEG23SEG34SEG45SEG56SEG67SEG78SEG89SEG910SEG1011SEG1112COM313COM2
14
COM115COM0
16
SEG1217SEG1318SEG1419SEG1520SEG1621SEG1722SEG1823SEG1924SEG2025SEG2126SEG2227SEG23
28
U6 GH08172T
PB3_LCDSEG13
PB2_LCDSEG12
PB1_LCDSEG11
PD7_LCDSEG21 PD6_LCDSEG20
PD5_LCDSEG19
PD4_LCDSEG18
PA4_LCDCOM0
PA5_LCDCOM1
PA6_LCDCOM2
PA7_LCDSEG0
PE0_LCDSEG1
PE3_LCDSEG4
PE4_LCDSEG5
PE5_LCDSEG6 PD0_LCDSEG7
PD1_LCDCOM3
PD2_LCDSEG8
PD3_LCDSEG9
PB0_LCDSEG10
Page 45
UM1574 STM8AL board electrical schematics
Doc ID 023645 Rev 1 45/48
Figure 29. STM8AL board IDD_measurement
1
1
2
2
3
3
4
4
D D
C C
B B
A A
STMicroelectronics
Title:
Number: Rev: Sheet of
B.0(PCB.SCH)
Date:
10/3/2012
MB1037 5 6
STM8AL BOARD IDD_Measurement
R28 47K
2
345
U4 74LX1G04CTR
I/O1O/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
GND8CO
9
CO
10
CI
11
CLR
12
Q9
13
Q8
14
Q10
15
VCC
16
U7
M74HC4060TTR
R26 10K
R25
10K
C14 1uF
123
JP2
C16 1nF
R29 15K
R27 30K
Oscillator frequency 30KHz
R22
0
C15 100nF
SB6
SB8
SB7
IDD Measure
onoff
4
5
2
3
1
U8 MAX9938FEUK+
S11D1
8
G12D1
7
S23D2
6
G24D2
5
U5
STS4DPF20L
IDD_Measurement
IDD_CNT_EN
IDD_WAKEUP
PF0
PE6
PC4
3V3
3V3
3V3
3V3
3V3
Page 46
STM8AL board electrical schematics UM1574
46/48 Doc ID 023645 Rev 1
Figure 30. STM8AL board LIN and 12V
1
1
2
2
3
3
4
4
D D
C C
B B
A A
STMicroelectronics
Title:
Number: Rev: Sheet of
B.0(PCB.SCH)
Date:
10/3/2012
MB1037 6 6
STM8AL BOARD LIN & 12V
NRST
C1-
1
C1+
2
C2-
3
C2+
4
VCC5VOUT
6
GND7SHDN
8
U13
ST662A
C1-
1
C1+
2
C2-
3
C2+
4
VCC5VOUT
6
GND7SHDN
8
U14
ST662A
1
2
3
JP3
D6
BAT60JFILM
D7
BAT60JFILM
SPI_NSS SPI_SCK SPI_MOSI SPI_MISO
5V
OUT_HS
OUT1 OUT2
12V
LIN_RX
LIN_TX
OUT2
OUT1
OUT_HS
SPI_MISO
SPI_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
USB5V
SB11
LIN
VBAT
R47 10K
R46 22K
SHDN
SHDNSHDN
GND
36
RxDC
2
TxDC
3
CANH
4
CANL
5
OP2+
13
OP2-
14
OP2OUT
15
DI
16
DO
17
CLK
18
CSN
19
NRESET
8
CAN_Supply
7
RxDL/NINT
12
TxDL
11
SPLIT
6
5V1
9
LIN
33
LINPU
32
5V2
10
WU3
22
WU2
21
WU1
20
OP1OUT
23
OP1-
24
OP1+
25
OUT4
26
OUT3/FSO
27
OUT2
28
OUT1
29
OUT_HS
30
REL2
35
REL1
34
VS
31
AGND
1
U12 L99PM62GXP
R41 1K
R44 1K
R43 0
R42 1K
D5
BAT60JFILM
3V3
R37 1K R38 1K R39 1K R40 1K
LIN_RX
LIN_TX
D4
BAT60JFILM
3V3
C34 10uF/25V
C41 220nF
SB12
USB5V
C40 220nF
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
UM1574
48/48 Doc ID 023645 Rev 1
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.
© 2012 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
Loading...