芯嵌stm32开发板原理图V3.0版本
STM32原理图含保护电路
UM0723User manual1 kW three-phase motor control demonstration boardfeaturing L6390 drivers and STGP10NC60KD IGBT 1 IntroductionThis document describes the 1 kW three-phase motor control demonstration board featuringthe L6390 high and low-side drivers and the STGP10NC60KD IGBT. The demonstrationboard is an AC/DC inverter that generates a three-phase waveform for driving three or two-phase motors such as induction motors or PMSM motors up to 1000 W with or withoutsensors.The main device presented in this user manual is a universal, fully evaluated, and populateddesign consisting of a three-phase inverter bridge based on the 600 V STMicroelectronics™IGBT STGP10NC60KD in a TO-220 package mounted on a heatsink, and the L6390 high-voltage high-side and low-side driver featuring an integrated comparator for hardwareprotection features such as overcurrent and overtemperature. The driver also integrates anoperational amplifier suitable for advanced current sensing. Thanks to this advancedcharacteristic, the system has been specifically designed to achieve an accurate and fastconditioning of the current feedback, therefore matching the typical requirements in fieldoriented control (FOC).The board has been designed to be compatible with single-phase mains, supplying from90 VAC to 285 VAC or from 125 VDC to 400 VDC for DC voltage. With reconfiguration of theinput sourcing, the board is suitable also for low-voltage DC applications up to 35 VDC. Thisdocument is associated with the release of the STEVAL-IHM023V2 demonstration board(see Figure1 below).Figure 1.STEVAL-IHM023V2June 2011Doc ID 15870 Rev 41/48Contents UM0723Contents1Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12System introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62.1Main characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62.2Target applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62.3Safety and operating instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72.3.1General terms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72.3.2Demonstration board intended use . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72.3.3Demonstration board installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72.3.4Electrical connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82.3.5Demonstration board operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83Board description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93.1System architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93.2The board schematic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103.3Circuit description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163.3.1Power supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163.3.2Inrush limitation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173.3.3Brake function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173.3.4Gate driving circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183.3.5Overcurrent protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183.3.6Current sensing amplifying network . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193.3.7The tachometer and Hall/encoder inputs . . . . . . . . . . . . . . . . . . . . . . . . 233.3.8Temperature feedback and overtemperature protection . . . . . . . . . . . . 234Hardware setting of the STEVAL-IHM023V2 . . . . . . . . . . . . . . . . . . . . . 244.1Hardware settings for six-step (block commutation) control of BLDCmotors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244.2Hardware settings for “Field Oriented Control” (FOC) in single-shunttopology current reading configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . 264.3Hardware settings for FOC in three-shunt configuration . . . . . . . . . . . . . 27 5Description of jumpers, test pins, and connectors . . . . . . . . . . . . . . . 302/48Doc ID 15870 Rev 4UM0723Contents 6Connector placement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 7Bill of material . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 8PCB layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 9Ordering information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 10Using STEVAL-IHM023V2 with STM32 PMSM FOC firmwarelibrary v3.0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4410.1Environmental considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4410.2Hardware requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4510.3Software requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4510.4STM32 FOC firmware library v3.0 customization . . . . . . . . . . . . . . . . . . . 45 11Conclusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 12References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 13Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47Doc ID 15870 Rev 43/48List of tables UM0723 List of tablesTable 1.Current reading configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 Table 2.Jumper settings for high-voltage BLDC motor in six-step control. . . . . . . . . . . . . . . . . . . . 24 Table 3.Jumper settings for low-voltage BLDC motor in six-step control . . . . . . . . . . . . . . . . . . . . 25 Table 4.Jumper settings for high-voltage PMAC or generic AC motor in single-shuntFOC control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 Table 5.Jumper settings for low-voltage BLDC motor in single-shunt FOC control. . . . . . . . . . . . . 27 Table 6.Jumper settings for FOC of HV PMSM, BLDC, or AC IM in three-shunt configuration for current reading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Table 7.Jumper settings for FOC of LV PMSM or BLDC in three-shunt configuration for current reading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 Table 8.Jumpers description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Table 9.Connector pinout description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 Table 10.Testing pins description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 Table 11.Bill of material. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 Table 12.STEVAL-IHM023V2 motor control workbench parameters . . . . . . . . . . . . . . . . . . . . . . . . 45 Table 13.Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 4/48Doc ID 15870 Rev 4UM0723List of figures List of figuresFigure 1.STEVAL-IHM023V2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Figure 2.Motor control system architecture. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Figure 3.STEVAL- IHM023V2 schematic - part 1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Figure 4.STEVAL- IHM023V2 schematic - part 2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Figure 5.STEVAL- IHM023V2 schematic - part 3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Figure 6.STEVAL- IHM023V2 schematic - part 4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Figure 7.STEVAL- IHM023V2 schematic - part 5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Figure 8.STEVAL- IHM023V2 schematic - part 6. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Figure 9.Power supply block diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 Figure 10.Gate driving network. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Figure 11.Overcurrent protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Figure 12.Three-shunt configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Figure 13.Six-step current sensing configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Figure 14.NTC placement on the heatsink. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 Figure 15.STEVAL-IHM023V2 connectors placement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 Figure 16.Silk screen - top side . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 Figure 17.Silk screen - bottom side . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 Figure 18.Copper tracks - top side . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 Figure 19.Copper tracks - bottom side . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43Doc ID 15870 Rev 45/48System introduction UM07236/48Doc ID 15870 Rev 42 System introduction2.1 Main characteristicsThe information below lists the converter specification data and the main parameters set forthe STEVAL-IHM023V2 demonstration board.●Minimum input voltage 125 VDC or 90 VAC ●Maximum input voltage 400 VDC or 285 VAC●With applied input voltage doubler - the range is from 65 VAC to 145 VAC ●Voltage range for low-voltage motor control applications from 18 VDC to 35 VDC ●Possibility to use auxiliary +15 V supply voltage ●Maximum output power for motors up to 1000 W ●Regenerative brake control feature ●Input inrush limitation with bypassing relay●+ 15 V auxiliary power supply based on buck converter with VIPer™16●IGBT power switch STGP10NC60KD in TO-220 package - compatible with other ST IGBTs or power MOSFETs in TO-220 package●Fully populated board conception with testing points and isolated plastic safety cover ●Motor control connector for interface with STM3210B-EVAL board and other ST motor control dedicated kits ●Tachometer input ●Hall/encoder inputs●Possibility to connect BEMF daughterboard for sensorless six-step control of BLDC motors●PCB type and size:–Material of PCB - FR-4–Double-sided layout –Copper thickness: 60 µm–T otal dimensions of demonstration board: 127 mm x 180 mm.2.2 Target applications●Washing machines ●Home appliances●Medical applications - rehabilitative beds●High-power, high-efficiency water pumps for heating applications.UM0723System introductionDoc ID 15870 Rev 47/482.3 Safety and operating instructions2.3.1 General termsWarning:During assembly, testing, and operation, the demonstrationboard poses several inherent hazards, including bare wires, moving or rotating parts, and hot surfaces. There is a danger of serious personal injury and damage to property, if the kit or components are improperly used or installed incorrectly. The kit is not electrically isolated from the AC/DC input. The demonstration board is directly linked to the mains voltage. No insulation has been placed between the accessible parts and the high-voltage. All measurement equipment must be isolated from the mains before powering the board. When using an oscilloscope with the demonstration board, it must be isolated from the AC line. This prevents a shock from occurring as a result of touching any single point in the circuit, but does NOT prevent shocks when touching two or more points in the circuit. Do not touch the demonstration board after disconnection from the voltage supply, as several parts and power terminals, which contain energized capacitors, need to be allowed to discharge.All operations involving transportation, installation and use, as well as maintenance, are to be carried out by skilled technical personnel (national accident prevention rules must be observed). For the purpose of these basic safety instructions, “skilled technical personnel” are suitably qualified people who are familiar with the installation, use and maintenance of powered electronic systems.2.3.2 Demonstration board intended useThe STEVAL-IHM023V2 demonstration board is a component designed for demonstration purposes only and is not to be used for electrical installation or machinery. The technical data as well as information concerning the power supply conditions should be taken from the documentation and strictly observed.2.3.3 Demonstration board installationThe installation and cooling of the demonstration kit boards must be in accordance with the specifications and the targeted application.●The motor drive converters are protected against excessive strain. In particular, no components are to be bent or isolating distances altered during the course of transportation or handling.●No contact must be made with other electronic components and contacts.●The boards contain electro-statically sensitive components that are prone to damage through improper use. Electrical components must not be mechanically damaged or destroyed.System introduction UM07238/48Doc ID 15870 Rev 42.3.4 Electrical connectionsApplicable national accident prevention rules must be followed when working on the mainpower supply with a motor drive. The electrical installation must be completed in accordance with the appropriate requirements.2.3.5 Demonstration board operationA system architecture which supplies power to the demonstration board should be equipped with additional control and protective devices in accordance with the applicable safety requirements (e.g. compliance with technical equipment and accident prevention rules).UM0723Board descriptionDoc ID 15870 Rev 49/483 Board description3.1 System architectureA generic motor control system can be basically schematized as the arrangement of fourmain blocks (see Figure 2 below).●A control block - its main task is to accept user commands and motor driveconfiguration parameters and to provide all digital signals to implement the proper motor driving strategy. The ST demonstration board based on the STM32™microcontroller STM3210B-EVAL can be used as a control block thanks to the motor control connector used on the board.●A power block - makes a power conversion from the DC bus transferring to the motor by means of a three-phase inverter topology. The power block is based on high-voltage (high and low-side) drivers (L6390) and power switches (STGP10NC60KD) in TO-220 packages.●The motor itself - the STEVAL-IHM023V2 demonstration board is able to properly drive any PMSM, but the FOC itself is conceived for sinusoidal-shaped BEMF . The demonstration board is also suitable for driving any three or two-phase asynchronous motor or low-voltage BLDC motors.●Power supply block - able to work from 90 VAC to 285 VAC or from 125 VDC to400 VDC. With reconfiguration of the power stage with jumpers, the board can also be used for low-voltage applications from 18 VDC to 35 VDC. By supplying the electronic parts on the board through an external + 15 V connector, the board can be used for a wide voltage range up to 400 VDC. Please refer to Section 4 for detailed settings of the jumpers according to the required application.Referring to the above motor control system architecture, the STEVAL-IHM023V2 includes the power supply and the power block hardware blocks.Board description UM0723 3.2 The board schematic10/48Doc ID 15870 Rev 4Doc ID 15870 Rev 411/4812/48Doc ID 15870 Rev 4Doc ID 15870 Rev 413/4814/48Doc ID 15870 Rev 4Doc ID 15870 Rev 415/483.3 Circuitdescriptionsupply3.3.1 PowerThe power supply in the STEVAL-IHM023V2 demonstration board is implemented asa multifunctional block which allows to supply the inverter in all ranges of input voltage up to285 VAC or 400 VDC. If the input AC voltage does not surpass 145 VAC, it is possible toapply the input voltage doubler, this is done by shorting the W14 jumper. This configurationalmost doubles the input AC voltage to a standard level and allows to evaluate the motorcontrol application with a low level of input AC voltage.For high-voltage applications it is necessary to set W3 jumpers to position “HIGHVOLT AGE”, the auxiliary power supply for supplying all active components on thedemonstration board is implemented as a buck converter based on the U6 VIPer16L whichworks with fixed frequency 60 kHz. The output voltage of the converter is +15 VDC voltagewhich is fed into the L6390 drivers as supply voltage as well as into the linear regulatorL78L33ACD and L78M05ACDT. The linear regulator provides +3.3 VDC and +5 VDC forsupplying the operational amplifiers and other related parts placed on the demonstrationboard. The selection of supply voltage for hardware peripherals placed on the board is donewith jumper W1. In the “3.3 V” position the supply voltage selected is +3.3 V and in the “5 V”position it is +5 V. Thanks to jumper W6, it is possible to supply the connected MCU drivingboard with related supply voltage. In this case, the maximal consumptive current of the MCUunit has not overreached 50 mA. Please refer to the ST released VIPer16LD datasheet forfurther information on this concept.For low-voltage applications, the step-down converter must be disabled by setting the W3jumper to position “<35 V ONL Y”. In this case, the other linear regulator, L7815, isconnected directly on the bus line, to provide auxiliary voltage + 15 VDC.Note:Please note that the voltage range in this kind of application must be in the range + 18 VDC to + 35 VDC.For low-voltage DC motor applications which require a voltage lower than + 18 VDC, a dualsupply mode can be used. Voltage on the input connector is normally linked through powerswitches to the motor and an external auxiliary voltage is fed through the J3 connector froman external power source. The voltage of the external power supply used must be in therange + 14.8 V to + 15.5 V with maximal consumption current 0.5 A.The information regarding the value of the supply bus voltage on the main filteringcapacitors is sensed with the voltage divider built around R2, R4, and R7 and is fed into thededicated control unit through the J5 connector. The proper voltage partitioning for appliedresistors values is 0.0075.The presence of +15 VDC on the board is indicated with green LED D7. For a betterunderstanding of the concept, Figure9 describes the power supply in a block diagram.16/48Doc ID 15870 Rev 4limitation3.3.2 InrushThe input stage of the demonstration board is provided with the 10 Ω NTC resistor toeliminate input inrush current peak during charging of the bulk capacitors. T o achievea higher efficiency of the inverter, it is possible to bypass the NTC after the startup phase.The NTC bypass signal is provided from the MCU board through the J5 connector. Theyellow D27 LED diode is turned off when the inrush NTC is bypassed.The STEVAL-IHM023V2 demonstration board contains only a basic EMI filter based on X2and Y2 capacitors. The main function of this demonstration board is as a universal testingplatform. For this reason, the EMI filter is not able to absorb EMI distortion coming from theinverter for all ranges of the applications used and the design of the filter is up to the user.The EMI filter must be designed according to the motor and final target applications used.The heatsink itself is connected to the earth pin in the input J1 connector. If thedemonstration board is used only with DC voltage, it is recommended to connect theheatsink to a negative voltage potential - common ground.function3.3.3 BrakeThe hardware brake feature has been implemented on the STEVAL-IHM023V2demonstration board. This feature connects the external resistive load applied to the J6connector to the bus to eliminate overvoltage generated when the motor acts asa generator. Such a connected load must be able to dissipate all motor generated energy.The brake feature functions automatically in the case of bus overvoltage. Voltage on the busis sensed through the voltage divider with resistors R23, R24, and R31 and compared to thevoltage reference built around the Zener diode D26. The brake dummy load is switched onwhen voltage on the bus reaches 440 VDC and is switched off when the voltage falls below420 VDC. This voltage level has been chosen to be fully compliant with the possible use offront-end PFC stage. Another possibility, to activate the brake dummy load, is to use theexternal signal coming through the J5 motor connector (PWM_Brake signal) from theconnected MCU board. This function is active with the jumper W5 in position “R_BRAKE”.The brake threshold levels can be modified by calculating R23, R24, and R34 new values.The D28 red LED diode indicates acting brake switch.Doc ID 15870 Rev 417/4818/48Doc ID 15870 Rev 43.3.4 Gate driving circuitThe gates of the switches of the IGBT used are controlled by the L6390D drivers. Pleaserefer to the L6390 datasheet for a detailed analysis of the driver parameters.Figure 10 shows the correct driving of the IGBT. As can be seen, the charging current for the IGBT is different compared to the discharging current due to the diode used. The configuration used provides the best trade-off between efficiency and EMI distortion.Thanks to the high-performance L6390 driver, the deadtime insertion between the HVG and LVG outputs is hardware-guaranteed. In this case, considering the value of the deadtime resistors used to be 47 k Ω, the DT of about 600 ns is applied on the outputs in case:●The deadtime is not present on HIN and LIN inputs signals.●The deadtime present on HIN and LIN inputs is less than hardware-set DT .On the contrary, the hardware-set deadtime is not the sum of the deadtime present on the outputs between LVG and HVG if the deadtime present on the HIN and LIN inputs signals is higher than the hardware-set deadtime.3.3.5 Overcurrent protectionHardware overcurrent protection (OCP) is implemented on the board. This feature takes fulladvantage of the L6390 driver where an internal comparator is implemented. Thanks to the internal connection between the comparator output and shutdown block, the intervention time of the overcurrent protection is extremely low, ranging slightly above 200 ns. Please see Figure 11 below for details of the OCP .Considering that the overcurrent protection acts as soon as the voltage on the CP+ pin of the L6390 rises above (approximately equal to) 0.53 V, and considering the default value of the shunt resistor, it follows that the default value for the maximum allowed current is equal to:Equation 1with the default values this gives:I SHUNT_MAX = 7 AI SHUNTMAXV REF R SHUNT ---------------------1R1R2-------+⎝⎠⎛⎞×=The overcurrent protection can be disabled with software if the W5 jumper is set to the “OCPOFF” position. This may be necessary and is often useful when the user decides to makethe brake operate by turning on the three low-side switches. In fact, if the motor acts asa generator, it's necessary to protect the hardware, preventing the bus voltage fromexceeding a safety threshold. In addition to dissipating the motor energy on a brake resistor,it's possible to short the motor phases, preventing the motor current from flowing throughthe bulk capacitors.Please note that with disabling of the OCP, the demonstration board is not protected againstany overcurrent event.3.3.6 Current sensing amplifying networkThe STEVAL-IHM023V2 motor control demonstration board can be configured to run invarious current reading configuration modes:●Three-shunt configuration - suitable for the use of field oriented control (FOC)●Single-shunt configuration - suitable for the use of FOC in a single-shunt configuration●Single-shunt six-step configuration - suitable for scalar controlConfiguration with a shunt resistor, where voltage amplified with an operational amplifier issensed, was chosen as the current sensing networks. Single-shunt configuration requiresa single op amp, three-shunt configuration requires three op amps. Just for compatibilitypurposes, one of them is common to both basic configurations.The configuration jumpers W10 and W11 allow the user to set the common op amp toachieve the compatibility between single-shunt six-step configuration (suitable for scalarcontrol) and three-shunt or single-shunt FOC current reading configuration.Three-shunt FOC or single-shunt FOC current reading configurationThe details of the three-shunt current sensing reading configuration are shown in Figure12.In this configuration, the alternating signal on the shunt resistor, with positive and negativeDoc ID 15870 Rev 419/4820/48Doc ID 15870 Rev 4values, must be converted to be compatible with the single positive input of themicrocontroller A/D converter used to read the current value. This means that the op amp must be polarized in order to obtain a voltage on the output that makes it possible to measure the symmetrical alternating input signal.The op amp is used in follower mode with the gain of the op amp set by resistor r and R:Equation 2It is possible to calculate the voltage on the output of the op amp, OP OUT - V OUT , as the sum of a bias, V BIAS , and a signal, V SIGN , component equal to: Equation 3T otal gain of the circuit including the resistors’ divider is equal to:Equation 4with the default values this gives:●V BIAS = 1.7 V ●G = 4.3●G TOT = 1.7●Maximum current amplifiable without distortion is 6.5 A.Please observe that the user can modify the max. current value by changing the values ofthe shunt resistors.G R r +r------------=V OUT V SIGN V BIAS+=V BIAS 3.31R1-------1R2-------1R3-------++⎝⎠⎛⎞R3×---------------------------------------------------------G×=V SIGN I R SHUNT×1R1-------1R2-------1R3-------++⎝⎠⎛⎞R1×---------------------------------------------------------G×=G TOT V SIGNV IN ----------------V SIGN R SHUNT I×----------------------------==。
STM32原理图含保护电路
UM0723User manual1 kW three-phase motor control demonstration boardfeaturing L6390 drivers and STGP10NC60KD IGBT 1 IntroductionThis document describes the 1 kW three-phase motor control demonstration board featuringthe L6390 high and low-side drivers and the STGP10NC60KD IGBT. The demonstrationboard is an AC/DC inverter that generates a three-phase waveform for driving three or two-phase motors such as induction motors or PMSM motors up to 1000 W with or withoutsensors.The main device presented in this user manual is a universal, fully evaluated, and populateddesign consisting of a three-phase inverter bridge based on the 600 V STMicroelectronics™IGBT STGP10NC60KD in a TO-220 package mounted on a heatsink, and the L6390 high-voltage high-side and low-side driver featuring an integrated comparator for hardwareprotection features such as overcurrent and overtemperature. The driver also integrates anoperational amplifier suitable for advanced current sensing. Thanks to this advancedcharacteristic, the system has been specifically designed to achieve an accurate and fastconditioning of the current feedback, therefore matching the typical requirements in fieldoriented control (FOC).The board has been designed to be compatible with single-phase mains, supplying from90 VAC to 285 VAC or from 125 VDC to 400 VDC for DC voltage. With reconfiguration of theinput sourcing, the board is suitable also for low-voltage DC applications up to 35 VDC. Thisdocument is associated with the release of the STEVAL-IHM023V2 demonstration board(see Figure1 below).Figure 1.STEVAL-IHM023V2June 2011Doc ID 15870 Rev 41/48Contents UM0723Contents1Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12System introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62.1Main characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62.2Target applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62.3Safety and operating instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72.3.1General terms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72.3.2Demonstration board intended use . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72.3.3Demonstration board installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72.3.4Electrical connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82.3.5Demonstration board operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83Board description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93.1System architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93.2The board schematic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103.3Circuit description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163.3.1Power supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163.3.2Inrush limitation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173.3.3Brake function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173.3.4Gate driving circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183.3.5Overcurrent protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183.3.6Current sensing amplifying network . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193.3.7The tachometer and Hall/encoder inputs . . . . . . . . . . . . . . . . . . . . . . . . 233.3.8Temperature feedback and overtemperature protection . . . . . . . . . . . . 234Hardware setting of the STEVAL-IHM023V2 . . . . . . . . . . . . . . . . . . . . . 244.1Hardware settings for six-step (block commutation) control of BLDCmotors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244.2Hardware settings for “Field Oriented Control” (FOC) in single-shunttopology current reading configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . 264.3Hardware settings for FOC in three-shunt configuration . . . . . . . . . . . . . 27 5Description of jumpers, test pins, and connectors . . . . . . . . . . . . . . . 302/48Doc ID 15870 Rev 4UM0723Contents 6Connector placement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 7Bill of material . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 8PCB layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 9Ordering information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 10Using STEVAL-IHM023V2 with STM32 PMSM FOC firmwarelibrary v3.0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4410.1Environmental considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4410.2Hardware requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4510.3Software requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4510.4STM32 FOC firmware library v3.0 customization . . . . . . . . . . . . . . . . . . . 45 11Conclusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 12References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 13Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47Doc ID 15870 Rev 43/48List of tables UM0723 List of tablesTable 1.Current reading configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 Table 2.Jumper settings for high-voltage BLDC motor in six-step control. . . . . . . . . . . . . . . . . . . . 24 Table 3.Jumper settings for low-voltage BLDC motor in six-step control . . . . . . . . . . . . . . . . . . . . 25 Table 4.Jumper settings for high-voltage PMAC or generic AC motor in single-shuntFOC control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 Table 5.Jumper settings for low-voltage BLDC motor in single-shunt FOC control. . . . . . . . . . . . . 27 Table 6.Jumper settings for FOC of HV PMSM, BLDC, or AC IM in three-shunt configuration for current reading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Table 7.Jumper settings for FOC of LV PMSM or BLDC in three-shunt configuration for current reading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 Table 8.Jumpers description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Table 9.Connector pinout description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 Table 10.Testing pins description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 Table 11.Bill of material. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 Table 12.STEVAL-IHM023V2 motor control workbench parameters . . . . . . . . . . . . . . . . . . . . . . . . 45 Table 13.Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 4/48Doc ID 15870 Rev 4UM0723List of figures List of figuresFigure 1.STEVAL-IHM023V2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Figure 2.Motor control system architecture. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Figure 3.STEVAL- IHM023V2 schematic - part 1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Figure 4.STEVAL- IHM023V2 schematic - part 2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Figure 5.STEVAL- IHM023V2 schematic - part 3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Figure 6.STEVAL- IHM023V2 schematic - part 4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Figure 7.STEVAL- IHM023V2 schematic - part 5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Figure 8.STEVAL- IHM023V2 schematic - part 6. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Figure 9.Power supply block diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 Figure 10.Gate driving network. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Figure 11.Overcurrent protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Figure 12.Three-shunt configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Figure 13.Six-step current sensing configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Figure 14.NTC placement on the heatsink. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 Figure 15.STEVAL-IHM023V2 connectors placement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 Figure 16.Silk screen - top side . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 Figure 17.Silk screen - bottom side . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 Figure 18.Copper tracks - top side . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 Figure 19.Copper tracks - bottom side . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43Doc ID 15870 Rev 45/48System introduction UM07236/48Doc ID 15870 Rev 42 System introduction2.1 Main characteristicsThe information below lists the converter specification data and the main parameters set forthe STEVAL-IHM023V2 demonstration board.●Minimum input voltage 125 VDC or 90 VAC ●Maximum input voltage 400 VDC or 285 VAC●With applied input voltage doubler - the range is from 65 VAC to 145 VAC ●Voltage range for low-voltage motor control applications from 18 VDC to 35 VDC ●Possibility to use auxiliary +15 V supply voltage ●Maximum output power for motors up to 1000 W ●Regenerative brake control feature ●Input inrush limitation with bypassing relay●+ 15 V auxiliary power supply based on buck converter with VIPer™16●IGBT power switch STGP10NC60KD in TO-220 package - compatible with other ST IGBTs or power MOSFETs in TO-220 package●Fully populated board conception with testing points and isolated plastic safety cover ●Motor control connector for interface with STM3210B-EVAL board and other ST motor control dedicated kits ●Tachometer input ●Hall/encoder inputs●Possibility to connect BEMF daughterboard for sensorless six-step control of BLDC motors●PCB type and size:–Material of PCB - FR-4–Double-sided layout –Copper thickness: 60 µm–T otal dimensions of demonstration board: 127 mm x 180 mm.2.2 Target applications●Washing machines ●Home appliances●Medical applications - rehabilitative beds●High-power, high-efficiency water pumps for heating applications.UM0723System introductionDoc ID 15870 Rev 47/482.3 Safety and operating instructions2.3.1 General termsWarning:During assembly, testing, and operation, the demonstrationboard poses several inherent hazards, including bare wires, moving or rotating parts, and hot surfaces. There is a danger of serious personal injury and damage to property, if the kit or components are improperly used or installed incorrectly. The kit is not electrically isolated from the AC/DC input. The demonstration board is directly linked to the mains voltage. No insulation has been placed between the accessible parts and the high-voltage. All measurement equipment must be isolated from the mains before powering the board. When using an oscilloscope with the demonstration board, it must be isolated from the AC line. This prevents a shock from occurring as a result of touching any single point in the circuit, but does NOT prevent shocks when touching two or more points in the circuit. Do not touch the demonstration board after disconnection from the voltage supply, as several parts and power terminals, which contain energized capacitors, need to be allowed to discharge.All operations involving transportation, installation and use, as well as maintenance, are to be carried out by skilled technical personnel (national accident prevention rules must be observed). For the purpose of these basic safety instructions, “skilled technical personnel” are suitably qualified people who are familiar with the installation, use and maintenance of powered electronic systems.2.3.2 Demonstration board intended useThe STEVAL-IHM023V2 demonstration board is a component designed for demonstration purposes only and is not to be used for electrical installation or machinery. The technical data as well as information concerning the power supply conditions should be taken from the documentation and strictly observed.2.3.3 Demonstration board installationThe installation and cooling of the demonstration kit boards must be in accordance with the specifications and the targeted application.●The motor drive converters are protected against excessive strain. In particular, no components are to be bent or isolating distances altered during the course of transportation or handling.●No contact must be made with other electronic components and contacts.●The boards contain electro-statically sensitive components that are prone to damage through improper use. Electrical components must not be mechanically damaged or destroyed.System introduction UM07238/48Doc ID 15870 Rev 42.3.4 Electrical connectionsApplicable national accident prevention rules must be followed when working on the mainpower supply with a motor drive. The electrical installation must be completed in accordance with the appropriate requirements.2.3.5 Demonstration board operationA system architecture which supplies power to the demonstration board should be equipped with additional control and protective devices in accordance with the applicable safety requirements (e.g. compliance with technical equipment and accident prevention rules).UM0723Board descriptionDoc ID 15870 Rev 49/483 Board description3.1 System architectureA generic motor control system can be basically schematized as the arrangement of fourmain blocks (see Figure 2 below).●A control block - its main task is to accept user commands and motor driveconfiguration parameters and to provide all digital signals to implement the proper motor driving strategy. The ST demonstration board based on the STM32™microcontroller STM3210B-EVAL can be used as a control block thanks to the motor control connector used on the board.●A power block - makes a power conversion from the DC bus transferring to the motor by means of a three-phase inverter topology. The power block is based on high-voltage (high and low-side) drivers (L6390) and power switches (STGP10NC60KD) in TO-220 packages.●The motor itself - the STEVAL-IHM023V2 demonstration board is able to properly drive any PMSM, but the FOC itself is conceived for sinusoidal-shaped BEMF . The demonstration board is also suitable for driving any three or two-phase asynchronous motor or low-voltage BLDC motors.●Power supply block - able to work from 90 VAC to 285 VAC or from 125 VDC to400 VDC. With reconfiguration of the power stage with jumpers, the board can also be used for low-voltage applications from 18 VDC to 35 VDC. By supplying the electronic parts on the board through an external + 15 V connector, the board can be used for a wide voltage range up to 400 VDC. Please refer to Section 4 for detailed settings of the jumpers according to the required application.Referring to the above motor control system architecture, the STEVAL-IHM023V2 includes the power supply and the power block hardware blocks.Board description UM0723 3.2 The board schematic10/48Doc ID 15870 Rev 4Doc ID 15870 Rev 411/4812/48Doc ID 15870 Rev 4Doc ID 15870 Rev 413/4814/48Doc ID 15870 Rev 4Doc ID 15870 Rev 415/483.3 Circuitdescriptionsupply3.3.1 PowerThe power supply in the STEVAL-IHM023V2 demonstration board is implemented asa multifunctional block which allows to supply the inverter in all ranges of input voltage up to285 VAC or 400 VDC. If the input AC voltage does not surpass 145 VAC, it is possible toapply the input voltage doubler, this is done by shorting the W14 jumper. This configurationalmost doubles the input AC voltage to a standard level and allows to evaluate the motorcontrol application with a low level of input AC voltage.For high-voltage applications it is necessary to set W3 jumpers to position “HIGHVOLT AGE”, the auxiliary power supply for supplying all active components on thedemonstration board is implemented as a buck converter based on the U6 VIPer16L whichworks with fixed frequency 60 kHz. The output voltage of the converter is +15 VDC voltagewhich is fed into the L6390 drivers as supply voltage as well as into the linear regulatorL78L33ACD and L78M05ACDT. The linear regulator provides +3.3 VDC and +5 VDC forsupplying the operational amplifiers and other related parts placed on the demonstrationboard. The selection of supply voltage for hardware peripherals placed on the board is donewith jumper W1. In the “3.3 V” position the supply voltage selected is +3.3 V and in the “5 V”position it is +5 V. Thanks to jumper W6, it is possible to supply the connected MCU drivingboard with related supply voltage. In this case, the maximal consumptive current of the MCUunit has not overreached 50 mA. Please refer to the ST released VIPer16LD datasheet forfurther information on this concept.For low-voltage applications, the step-down converter must be disabled by setting the W3jumper to position “<35 V ONL Y”. In this case, the other linear regulator, L7815, isconnected directly on the bus line, to provide auxiliary voltage + 15 VDC.Note:Please note that the voltage range in this kind of application must be in the range + 18 VDC to + 35 VDC.For low-voltage DC motor applications which require a voltage lower than + 18 VDC, a dualsupply mode can be used. Voltage on the input connector is normally linked through powerswitches to the motor and an external auxiliary voltage is fed through the J3 connector froman external power source. The voltage of the external power supply used must be in therange + 14.8 V to + 15.5 V with maximal consumption current 0.5 A.The information regarding the value of the supply bus voltage on the main filteringcapacitors is sensed with the voltage divider built around R2, R4, and R7 and is fed into thededicated control unit through the J5 connector. The proper voltage partitioning for appliedresistors values is 0.0075.The presence of +15 VDC on the board is indicated with green LED D7. For a betterunderstanding of the concept, Figure9 describes the power supply in a block diagram.16/48Doc ID 15870 Rev 4limitation3.3.2 InrushThe input stage of the demonstration board is provided with the 10 Ω NTC resistor toeliminate input inrush current peak during charging of the bulk capacitors. T o achievea higher efficiency of the inverter, it is possible to bypass the NTC after the startup phase.The NTC bypass signal is provided from the MCU board through the J5 connector. Theyellow D27 LED diode is turned off when the inrush NTC is bypassed.The STEVAL-IHM023V2 demonstration board contains only a basic EMI filter based on X2and Y2 capacitors. The main function of this demonstration board is as a universal testingplatform. For this reason, the EMI filter is not able to absorb EMI distortion coming from theinverter for all ranges of the applications used and the design of the filter is up to the user.The EMI filter must be designed according to the motor and final target applications used.The heatsink itself is connected to the earth pin in the input J1 connector. If thedemonstration board is used only with DC voltage, it is recommended to connect theheatsink to a negative voltage potential - common ground.function3.3.3 BrakeThe hardware brake feature has been implemented on the STEVAL-IHM023V2demonstration board. This feature connects the external resistive load applied to the J6connector to the bus to eliminate overvoltage generated when the motor acts asa generator. Such a connected load must be able to dissipate all motor generated energy.The brake feature functions automatically in the case of bus overvoltage. Voltage on the busis sensed through the voltage divider with resistors R23, R24, and R31 and compared to thevoltage reference built around the Zener diode D26. The brake dummy load is switched onwhen voltage on the bus reaches 440 VDC and is switched off when the voltage falls below420 VDC. This voltage level has been chosen to be fully compliant with the possible use offront-end PFC stage. Another possibility, to activate the brake dummy load, is to use theexternal signal coming through the J5 motor connector (PWM_Brake signal) from theconnected MCU board. This function is active with the jumper W5 in position “R_BRAKE”.The brake threshold levels can be modified by calculating R23, R24, and R34 new values.The D28 red LED diode indicates acting brake switch.Doc ID 15870 Rev 417/4818/48Doc ID 15870 Rev 43.3.4 Gate driving circuitThe gates of the switches of the IGBT used are controlled by the L6390D drivers. Pleaserefer to the L6390 datasheet for a detailed analysis of the driver parameters.Figure 10 shows the correct driving of the IGBT. As can be seen, the charging current for the IGBT is different compared to the discharging current due to the diode used. The configuration used provides the best trade-off between efficiency and EMI distortion.Thanks to the high-performance L6390 driver, the deadtime insertion between the HVG and LVG outputs is hardware-guaranteed. In this case, considering the value of the deadtime resistors used to be 47 k Ω, the DT of about 600 ns is applied on the outputs in case:●The deadtime is not present on HIN and LIN inputs signals.●The deadtime present on HIN and LIN inputs is less than hardware-set DT .On the contrary, the hardware-set deadtime is not the sum of the deadtime present on the outputs between LVG and HVG if the deadtime present on the HIN and LIN inputs signals is higher than the hardware-set deadtime.3.3.5 Overcurrent protectionHardware overcurrent protection (OCP) is implemented on the board. This feature takes fulladvantage of the L6390 driver where an internal comparator is implemented. Thanks to the internal connection between the comparator output and shutdown block, the intervention time of the overcurrent protection is extremely low, ranging slightly above 200 ns. Please see Figure 11 below for details of the OCP .Considering that the overcurrent protection acts as soon as the voltage on the CP+ pin of the L6390 rises above (approximately equal to) 0.53 V, and considering the default value of the shunt resistor, it follows that the default value for the maximum allowed current is equal to:Equation 1with the default values this gives:I SHUNT_MAX = 7 AI SHUNTMAXV REF R SHUNT ---------------------1R1R2-------+⎝⎠⎛⎞×=The overcurrent protection can be disabled with software if the W5 jumper is set to the “OCPOFF” position. This may be necessary and is often useful when the user decides to makethe brake operate by turning on the three low-side switches. In fact, if the motor acts asa generator, it's necessary to protect the hardware, preventing the bus voltage fromexceeding a safety threshold. In addition to dissipating the motor energy on a brake resistor,it's possible to short the motor phases, preventing the motor current from flowing throughthe bulk capacitors.Please note that with disabling of the OCP, the demonstration board is not protected againstany overcurrent event.3.3.6 Current sensing amplifying networkThe STEVAL-IHM023V2 motor control demonstration board can be configured to run invarious current reading configuration modes:●Three-shunt configuration - suitable for the use of field oriented control (FOC)●Single-shunt configuration - suitable for the use of FOC in a single-shunt configuration●Single-shunt six-step configuration - suitable for scalar controlConfiguration with a shunt resistor, where voltage amplified with an operational amplifier issensed, was chosen as the current sensing networks. Single-shunt configuration requiresa single op amp, three-shunt configuration requires three op amps. Just for compatibilitypurposes, one of them is common to both basic configurations.The configuration jumpers W10 and W11 allow the user to set the common op amp toachieve the compatibility between single-shunt six-step configuration (suitable for scalarcontrol) and three-shunt or single-shunt FOC current reading configuration.Three-shunt FOC or single-shunt FOC current reading configurationThe details of the three-shunt current sensing reading configuration are shown in Figure12.In this configuration, the alternating signal on the shunt resistor, with positive and negativeDoc ID 15870 Rev 419/4820/48Doc ID 15870 Rev 4values, must be converted to be compatible with the single positive input of themicrocontroller A/D converter used to read the current value. This means that the op amp must be polarized in order to obtain a voltage on the output that makes it possible to measure the symmetrical alternating input signal.The op amp is used in follower mode with the gain of the op amp set by resistor r and R:Equation 2It is possible to calculate the voltage on the output of the op amp, OP OUT - V OUT , as the sum of a bias, V BIAS , and a signal, V SIGN , component equal to: Equation 3T otal gain of the circuit including the resistors’ divider is equal to:Equation 4with the default values this gives:●V BIAS = 1.7 V ●G = 4.3●G TOT = 1.7●Maximum current amplifiable without distortion is 6.5 A.Please observe that the user can modify the max. current value by changing the values ofthe shunt resistors.G R r +r------------=V OUT V SIGN V BIAS+=V BIAS 3.31R1-------1R2-------1R3-------++⎝⎠⎛⎞R3×---------------------------------------------------------G×=V SIGN I R SHUNT×1R1-------1R2-------1R3-------++⎝⎠⎛⎞R1×---------------------------------------------------------G×=G TOT V SIGNV IN ----------------V SIGN R SHUNT I×----------------------------==。
奋斗STM32开发板V3硬件说明书
奋斗版STM32开发板V3.0的硬件说明1. 供电电路:AMS1117-3.3输入+5V,提供3.3V的固定电压输出,为了降低电磁干扰,C1-C5为CPU 提供BANK电源(VCC:P50、P75、P100、P28、P11 GND:P49、P74、P99、P27、P10)滤波。
CPU的模拟输入电源供电脚VDDA(P22)通过L1 22uH的电感与+3.3V VDD电压连接,CPU的模拟地VSSA(P19)及VREF-(P20)通过R1 0欧电阻与GND连接。
VREF+(P21)采用VDDA(P22)电源基准。
AMS1117-2.5输入+5V,提供2.5V的固定电压输出,为MP3电路VS1003提供所需的电压。
为RTC的备份电源采用V1 3.3V锂离子片状电池。
2. 启动方式设置:Boot1—Boot0(P37,P94): x0: 内部程序存储区启动01:系统存储区启动(为异步通信ISP编程方式)在此将BOOT1始终设置为0, BOOT0为可变的状态,在正常模式下将其置为0,在ISP 编程时将其置为1。
用JP1跳线块设置,开路为ISP模式,短路为正常运行模式。
3. 时钟源电路:外部晶体/陶瓷谐振器(HSE)(P12、P13):B1:8MHz晶体谐振器,C8,C9谐振电容选择10P。
系统的时钟经过PLL模块将时钟提高到72MHz。
低速外部时钟源(LSE)(P8、P9):B2: 32.768KHz晶体谐振器。
C10,C11谐振电容选择10P。
注意:根据ST公司的推荐, B2要采用电容负载为6P的晶振,否则有可能会出现停振的现象。
4. SPI存储电路:D2 SST25VF016B(2M Bytes)CPU采用SPI1端口PA7-SPI1-MOSI(P32)、PA6-SPI1-MISO (P31)、PA5-SPI1-SCK(P30)、PC4-SPI1-CS2(P33)控制读写访问, SPI1地址:0x4000 3800 - 0x4000 3BFF5. 显示及触摸接口模块:显示器采用2.4” TFT320X240LCD(控制器ILI9325), 采用CPU的FSMC功能,LCD片选CS采用FSMC_NE1(P88),FSMC_A16(P58)作为LCD的RS选择,FSMC_nWE(P86)作为LCD的/WR, FSMC_nOE(P85)作为LCD的/RD, LCD的RESET脚用CPU的PE1(P98)(LCD-RST),FSMC_D0---FSMC_D15和LCD的D1-D8 D10-D17相互连接,触摸屏接口采用SPI1接口,片选为PB7-SPI1-CS3,由于LCD背光采用恒流源芯片PT4101控制,采用了PWM控制信号控制背光的明暗, PWM信号由PD13-LIGHT-PWM来控制。
智嵌STM32F107网络互联开发板V3.0实验例程操作手册
北京智嵌物联网电子技术ISTM32F107网络互联开发板3.0实验例程操作手册版本号:A拟制人:赵工时间:2013年7月1日目录1本文档编写目的 (1)2实验例程操作说明 (1)2.1LED闪烁实验 (1)2.2KEY_LED实验 (1)2.3RS232通讯实验 (1)2.4RS485通讯实验 (2)2.5CAN1通讯实验 (2)2.6CAN1与CAN2通讯实验 (3)2.7I2C实验—读写24c04 (4)2.8SPI通讯实验--读写SST2508B (5)2.9TCP服务器收发数据实验 (5)2.10动态IP实验 (7)2.11HTTP网页服务器实验 (7)2.12USB数据存储实验1(读写STM32F107片内flash) (9)2.13USB数据存储实验2(读写板载SST25F08B) (9)2.14U盘读写实验 (9)2.15USB鼠标实验 (11)2.16USB_JoyStickMouse实验 (11)2.17 2.4G无线模块NRF24l01通信实验 (12)2.18基于NRF24L01的无线RS232通讯实验 (12)2.19DS18B20温度试验 (13)2.20UDP客户端发送数据实验 (14)2.21UDP服务器收发数据实验 (15)2.22TCP客户端收发数据实验 (18)2.2316通道ADC采集实验 (21)2.24UDP与RS232RS485双向数据透明传输例程---开发板做服务器 (23)2.25TCP与RS232RS485双向数据透明传输实验 (23)2.26TCP与CAN双向数据透明传输实验 (23)1本文档编写目的本手册是针对STM32F107网络互联开发板V2.2的例程而编写的,包括每个实验例程的实验原理、实验步骤、注意事项等。
2实验例程操作说明2.1LED闪烁实验实验原理:通过控制PE2/PE3/PE4/PE5的电平变化实现LED灯的亮灭。
实验步骤:(1)用Keil uVision4打开LED灯闪烁实验工程,并编译。
stm32开发板原理图
Y5 1 4 3
C41 0.1uF C0603 VGND IOVDD0 IOVDD1 IOVDD2 6 14 19 CVDD CVDD0 CVDD1 CVDD2 CVDD3 RX TX 5 7 24 31 26 27 4 16 20 21 22 35 38 43 45 C35 0.1uF C0603 VGND C36 0.1uF C0603 C37 0.1uF C0603 C38 0.1uF C0603 R43 100k IOVDD R0603
C76 10uF C0805
U6 6 5 DD+ D+ D5 4 3 2 1 GND ID D+ DVBUS
PD14 PD15 PD0 PD1 PE7 PE8 PE9 PE10 PE11 PE12 PE13 PE14 PE15 PD8 PD9 PD10
PD14 PD15 PD0 PD1 PE7 PE8 PE9 PE10 PE11 PE12 PE13 PE14 PE15 PD8 PD9 PD10
5
4
3
2
1
J1 1 2 3 DC_IN R2 100k R0603 C1 0.1uF C0603 C2 10uF C0805 C3 10uF C0805 R1 179k R0603 8 3 7 1
U1 RT7272 VIN EN RLIM B00T SW FB 2 1 5 + EC2 2 100uF/25V
C42 0.01uF C0603R44 22R R0603 C43 0.01uF C0603 RIGHT R45 22R R0603
AGND
C60 18pF C0603
2
R53 1M R0603 30 31
U57 XI/CLKIN XO TXN TXP RXN RXP LINKLED ACTLED NC1 NC2 NC3 NC4 DNC VBG RSVD1 RSVD2 RSVD3 RSVD4 RSVD5 PMODE2 PMODE1 PMODE0 EXRES1 T0CAP 1V20 RSVD 1 2 5 6 25 27 46 47 12 13 7 18 38 39 40 41 42 43 44 45 10 R58 12.4k R0603 4.7uF C0603 0.01uF C0603 AGND R66 10k R0603 R65 10k R0603 AGND R64 10k R0603 R63 10k R0603 R62 10k R0603 R61 10k R0603 3V3 R60 10k R0603 R59 10k R0603 TXN TXP RXN RXP LINKLED ACTLED
stm32f103开发板原理图分析
stm32f103开发板原理图分析
1. 概述
文档适合STM32F103-EV AL开发板的用户使用,希望通过文档的描述可以使用户更快的进入产品的开发阶段。
2. 电路及接口说明
2.1. 电源模块
说明:
输入:5V DC
输出:3.3V DC
输出端接L1 会提高电源的质量。
2.2. 时钟供电模块说明:BT 为电池供电接口,板上有丝印标明正负极。
D3、D4 的作用是使板上供电和电池供电两种供电方式相互独立。
2.3. USB 通信模块
说明:开发板可以通过USB 接口供电,请不要同时使用USB 和外接电源供电。
D+为高时PC 认为有USB 设备接上并要求安装驱动程序,当只用USB 接口供电而不用USB 设备时JP7不接跳帽。
2.4. CAN 通信模块
说明:STB 接地为normal 模式,R34 不焊接。
2.5. RS232 通信模块
说明:D2、R29 为选择芯片的供电电源,板上D2 焊接,切勿两个器件同时焊接,否则5V 电源会灌到3.3V 供电电路上。
STM32F10x 的芯片的普通IO 可以接受5V 电平,可选择价格相对便宜的5V 供电的232芯片。
串口3 带CTS 和RTS 控制。
2.6. 红外通信模块
说明:红外接口与串口占用同一个串口,通过JP4、JP5 跳针来选择,跳针接1、2 脚选择RS232接口,调制接2、3 脚选择红外接口。
红外接口不焊接。
2.7. SPI 设。
STM32控制GSM模块原理图
V3.3 C109 100nF U102 RS232_TXD0 RS232_RXD3 UTXD STM_TXD3
C
16
Loud_SPK
VCC
13 8 11 10 1 3 4 5 2 6
R1IN R2IN T1IN T2IN C1+ C1C2+ C2V+ V-
R1OUT R2OUT T1OUT T2OUT
4
复位
3
NRST
NRST
C227 100n
C
摄像头电源
U206 Vin_5V R211 10K
2
S D 3
Vcamera_5V
SD卡电路
V3.3
1
cam_pwr_on_P25 R212 U207 390R 9013
蜂鸣器和指示灯
VBAT J204 V3.3
J205 V3.3 SD_CS SP2_MOSI SP2_CLK D202 C229 SP2_MISO 100n
GPRS模块唤醒电路
V3.3
Y202 8MHZ C226 33p
1 2 3 4 5 6 7 8 9 10 11 12
VDD_3 VSS_3 PB9/TIM4_CH4 PB8/TIM4_CH3 BOOT0 PB7/I2C1_SDA PB6/I2C1_SCL PB5/I2C1_SMBA PB4/NJTRST PB3/JTDO PA15/JTDI PA14/SWCLK
1
1
VCC
LX2 LX1 GND2 GND1 INFB
8 7 3 4
C114 100nF
J100
2
C102
SCP
6 5
OCP2020 100n/10V (X5R) R103 1K C103 2.2nF
安富莱STM32F103ZE-EK(V3)_原理图
VREF+
VDDA
C50 104/50
VDD3.3V
VDD3.3V VDD3.3V VDD3.3V
C31 104/50
C44 104/50
[5] PA0/WKUP (DM9000AE中断) [4,5] PA1
[4,5] PA2/USART2_TX
(RS232串口2) [4,5] PA3/USART2_RX
1
2 3 4 5 6 7 8 9 10
11 12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31 32 33 34
35 36
PE2/TRACECK/FSMC_A23
PE3/TRACED0/FSMC_A19 PE4/TRACED1/FSMC_A20 PE5/TRACED2/FSMC_A21 PE6/TRACED3/FSMC_A22 VBAT PC13-TAMPER-RTC PC14-OSC32_IN PC15-OSC32_OUT PF0/FSMC_A0
[2,3,4,5,6] FSMC_D6
[2,3,4,5,6] FSMC_D7
[2,3,4,5,6] FSMC_D8 [2,3,4,5,6] FSMC_D9 [2,3,4,5,6] FSMC_D10 [2,3,4,5,6] FSMC_D11 [2,3,4,5,6] FSMC_D12
[4,5] PB10/USART3_TX [4,5] PB11/USART3_RX
PG7 [5]
(5向键-ok)
FSMC_INT2 [3,5] (NAND) FSMC_A15 [2,3,5]
PG15[5]
(5向键-up)
VDD3.3V
安富莱_STM32-V5开发板_原理图(D030-8)
C87 104/50
C88 104/50
C90 104/50
Hale Waihona Puke C89 104/50C92 104/50
C91 104/50
C94 104/50
[11] PF6/LCD_PWM PF7/NRF24L01_CSN [3,5] PF8/SF_CS [8] PF9/ADC3_IN7 [8] PF10/ADC3_IN8 [1] PH0-OSC_IN [1] PH1-OSC_OUT [1,2,6,7,9,11] NRST [8] PC0/ADC123_IN10 [7] PC1/ETH_MDC [5,9] PC2/NRF905_CSN/VS1053_XCS [6] PC3/I2S2_SD [5,9] [10] CPU_VREF CPU_VDDA PA0/ADC123_IN0 [8] [7] PA1/ETH_RMII_REF_CLK PA2/USART2_TX/ETH_MDIO [5] PH2/JOY_U [5] PH3/JOY_D
U12 STM32F407IGT6/LQFP-176 [2,3,9] PE2/FSMC_A23/SD_DETECT [2] PE3/FSMC_A19 [2] PE4/FSMC_A20 [2] PE5/FSMC_A21 [2] PE6/FSMC_A22 [1] VBAT [5] PI8/KEY1 [5] PC13/KEY2 [1] PC14-OSC32_IN [1] PC15-OSC32_OUT [4] PI9/CAN1_RX [5,11] PI10/TP_NCS [5] PI11/KEY3 [2] [2] [2] [2] [2] [2] PF0/FSMC_A0 PF1/FSMC_A1 PF2/FSMC_A2 PF3/FSMC_A3 PF4/FSMC_A4 PF5/FSMC_A5 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
STM32开发板原理图
R7
45K DC5V
Y1 C2 22pF
R15 DGND DC3.3V R16 R17
10K 30.PA5-SPI1-SCK 10K 31.PA6-SPI1-MISO 10K 32.PA7-SPI1-MOSI A
DC3.3V C A 8550-PNP Q1 E B
R3 10K R4 1K
104
5 9 4 8 3 7 2 6 1
2.4K
ENC28J60CSS (SSOP-28)
RJ45-HR911105A
1 2 3 4 5 6 7 8
DAT2 CD/DAT3 CMD VDD3V CLK VSS DATA0 DATA1 TF_card
1
DC3.3V
DGND
AT24C02(SO-8)
DC5V
60.PD13-LIGHT-PWM 57.PD10-D15
DB9 DB9RA/F
11
1K
10M以太网
DGND C11 U5 10uF 1 2 3 4 5 6 7 8 9 10 11 12 13 14
SPI1
Vcap Vss CLKO INT WOL SO SI SCK CS RST Vssrx TPINTPIN+ Rbias VDD LEDA LEDB Vddosc OSC2 OSC1 Vssosc Vsspll Vddpll Vddrx Vsstx TPOUT+ TPOUTVddtx DC3.3V 28 C13 103 27 26 25 DC3.3V 24 23 22 21 20 19 18 17 16 15 DGND DC3.3V TPOUT+ R21 TPOUT- R22 DC3.3V RJ 1 DGND 2 LEDA 4 LEDB 8 DGND C17 7 C14 20pF 104 C18 104 5 TPIN+ 3 DGND TPIN6 Y2 DGND R24 1K 9 25MHZ 10 C15 20pF R25 1K 12 L1 11 50 DC3.3V A 50 100nH-0805 B C16 103 DGND DGND TPOUT+ TPOUTTD+ TDGND RD+ RDGLEDA GLEDK YLEDA YLEDK A B
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
C31 104 R54
PA8 PC8 PA9 PC9 PA10 PC10 PA11 PC11 PA12 PC12 PA13/JTMS/SWDIO PC13-TAMPER-RTC PA14/JTCK/SWCLK PC14-OSC32_IN PA15/JTDI PC15-OSC32_OUT PB0 PB1 PB2/BOOT1 PB3/JTDO PB4/JNTRST PB5 PB6 PB7 PB8 PB9 PB10 PB11 PB12 PB13 PB14 PB15 OSC_IN OSC_OUT BOOT0 NRST VREFVREF+ NC VBAT VDD_1 VDD_2 VDD_3 VDD_4 VDD_5 VDDA STM32F103VET6 C10 PD0 PD1 PD2 PD3 PD4 PD5 PD6 PD7 PD8 PD9 PD10 PD11 PD12 PD13 PD14 PD15 PE0 PE1 PE2 PE3 PE4 PE5 PE6 PE7 PE8 PE9 PE10 PE11 PE12 PE13 PE14 PE15 VSS_1 VSS_2 VSS_3 VSS_4 VSS_5 VSSA
USB
B
USB-SLAVE 1 VCC 2 D3 D+ 4 GND 5 SHL 6 SHL USB-SLAVE
U5V
R41 22 R42 22 R44 1K C41 R43 0.01uF1M Q1
PA11-USBDM PA12-USBDP
网络模块电路
ENC28J60 10uF 1 2 3 PB12_ETH0_INT 4 5 PB14_SPI2_MISO 6 PB15_SPI2_MOSI 7 PB13_SPI2_SCK 8 PB10_ETH0_CS 9 PB11_ETH0_RST 10 11 12 TPIN13 TPIN+ 14 R51 2.32K C30 Vcap Vss CLKOUT INT WOL SO SI SCK CS RST Vssrx TPINTPIN+ RBIAS VDD LEDA LEDB VDDOSC OSC2 OSC1 VSSOSC Vsspll Vddpll Vddrx Vsstx TPOUT+ TPOUTVddtx 28 27 26 25 24 23 22 21 20 19 18 17 16 15
JTAG
COM1
另有SWD接口, 在右下角
C21 GND 104 C22 104 RTS0 CTS0 U4 1 3 4 5 13 14 7 8 C1+ C1C2+ VDD V+ VVDD33V GND 16 C23 104 2 C24 104 6 C25 104 15 11 12 10 PA9-US1-TX 9 PA10-US1-RX
JP1 1 3 5 7 9 11 13 15 17 19 21 23 25 27 2 4 6 8 10 12 14 16 18 20 22 24 26 28 VDD33V PC3_LED2 PC2_LED1 PE0 PB8_CAN_RX PB7-SPI1-CS3 PB5 PC9-SDIO-D1 PC12-SDIO-CK PC11-SDIO-D3 PD6_PS_DATA VDD33V R19 PB2-BOOT1 10K
A CE SCK MISO
NRF24L01 JP11 GND PE5 PE3 PE1 1 3 5 7 2 4 6 8 VDD33V PE6 PE4 PE2 CSN MOSI IRQ
C43 12PF 12.288M C42 12PF R61 100K VDD33V 32 C52 104 C53 104 C54 104 4 16 20 21 22 33 34 9 10 X5 R67 1M 18 17 XTAL1 XTAL0
4 Phone_jack_2 4 3 3 5 5 2 2 1 1 Phone_PJ-215-B A
C56 104 4 Phone_jack 4 3 3 5 5 2 2 1 1 Phone_PJ-215-B
SW4 VDD33V PA0 23 24 PA1 25 PA2 26 PA3 PA4-LCD-RST 29 PA5-SPI1-SCK 30 PA6-SPI1-MISO 31 PA7-SPI1-MOSI 32 PA8_VS_RST PA9-US1-TX PA10-US1-RX PA11-USBDM PA12-USBDP PA13-JTMS PA14-JTCK PA15-JTDI PB0 PB1 PB2-BOOT1 PB3-JTDO PB4-JRST PB5 PB6 PB7-SPI1-CS3 PB8_CAN_RX PB9_CAN_TX PB10_ETH0_CS PB11_ETH0_RST PB12_ETH0_INT PB13_SPI2_SCK PB14_SPI2_MISO PB15_SPI2_MOSI OSC_I OSC_O BOOT0 nRST AGND 20 VDD33V_VDDA 21 73 BT2 VBAT BATTERY 6 50 75 100 28 11 C14 VDD33V_VDDA 22 67 68 69 70 71 72 76 77 35 36 37 89 90 91 92 93 95 96 47 48 51 52 53 54 12 13 94 14
1
2
3
4
5
6 VS1003 VDD33V DVDD DVDD DVDD CVDD CVDD CVDD CVDD AVDD AVDD AVDD RX TX 15 VCO GPIO0 GPIO1 GPIO2 GPIO3 TEST DGND DGND DGND DGND DGND VS1003 LEFT RIGHT GBUF MICP MICN LINE_IN RCAP AGND AGND AGND AGND 6 14 19 VS_AVDD 10uH
R45
PC13-USB-M
10K 8550-PNP VDD33V
R55 TPIN51R C37 R56 104 LEDA 1K LEDB R57 1K
9 Green L+ 10 L-
VDD33V R24 R23 R22 R21 10K 10K 10K 10K
此处 5个上拉电阻可省
JTAG PB4-JRST PA15-JTDI PA13-JTMS PA14-JTCK 1 3 5 7 9 11 13 15 17 19 2 4 6 8 10 12 14 16 18 20 VDD33V
有梦想 哪里都是你的舞台!
芯嵌 stm32开发板 (V3.0) 2014-2-20
TFT液晶接口
LCD-TFT VDD33V 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 PA5-SPI1-SCK PA7-SPI1-MOSI PE8-D5 PE10-D7 PE12-D9 PE14-D11 PD8-D13 PD10-D15 PD13-LIGHT-PWM PD15-D1 PD1-D3 PD5-LCD-nWE PB6 PA4-LCD-RST PA6-SPI1-MISO PE7-D4 PE9-D6 PE11-D8 PE13-D10 PE15-D12 PD9-D14 PD11-A16-RS PD14-D0 PD0-D2 PD4-LCD-nOE PD7_LCD_CS PB7-SPI1-CS3
NRF24L01 无线模块-SPI / IO两种控制方式
JP6 GND CE PB0 SCK PA5-SPI1-SCK MISO PA6-SPI1-MISO 1 3 5 7 2 4 6 8 VDD33V PB1 PA7-SPI1-MOSI PC4 CSN MOSI IRQ
无线模块(1) SPI方式 无线模块(2) 通用IO口方式
VDD33V L2 LEDA LEDB VDD33V X4 C8 20P VDD33V TPOUT+ TPOUTVDD33V 25M C9 20P
100uH
R52 51R R53 51R
TPOUT+ C35 104 TPOUT51R TPIN+ C36 104
1 4 2 3 5 6
HR911105A TD+ TDRD+ RD-
STM32F103VET6 PA0-WKUP PA1 PA2 PA3 PA4 PA5 PA6 PA7 PC0 PC1 PC2 PC3 PC4 PC5 PC6 PC7 15 16 17 18 33 34 63 64 65 66 78 79 80 7 8 9 81 82 83 84 85 86 87 88 55 56 57 58 59 60 61 62 97 98 1 2 3 4 5 38 39 40 41 42 43 44 45 46 49 74 99 27 10 19 AGND PC0_KEY1 PC1_KEY2 PC2_LED1 PC3_LED2 PC4 PC5 PC6_VS_DREQ PC7_VS_XDCS PC8-SDIO-D0 PC9-SDIO-D1 PC10-SDIO-D2 PC11-SDIO-D3 PC12-SDIO-CK PC13-USB-M PC14-OSC32-I PC15-OSC32-O PD0-D2 PD1-D3 PD2-SDIO-CMD PD3 PD4-LCD-nOE PD5-LCD-nWE PD6_PS_DATA PD7_LCD_CS PD8-D13 PD9-D14 PD10-D15 PD11-A16-RS PD12_PS_CLK PD13-LIGHT-PWM PD14-D0 PD15-D1 PE0 PE1 PE2 PE3 PE4 PE5 PE6 PE7-D4 PE8-D5 PE9-D6 PE10-D7 PE11-D8 PE12-D9 PE13-D10 PE14-D11 PE15-D12