Home

MLX81200 SW Development Kit Description

image

Contents

1. 515 5 T 1 118 0 51 GND BAT 4 gt Driver Stage 0 a 1 ST6 ST19 o E 1 R1 S7 1 c ST20 0 E 5 6R8 9 5 Variant G G G 1 5 near VBAT connector History list STERN m E 0 5 M M gt for sensing current peaks 8 changings from rev 1 to rev 1 1 m N Bugfix VBAT_S1 and VBAT_S2 were virtual Starpoint exchanged on R81 a a changings from rev 1 1 to 1 3 00 6 E delete the copper wire on R23 R24 and 59 SEN t ST3 ST17 o c change the value to 100 Ohm 3 2 WwW 4 5 3 5 8 0 9 2 2 a High Side Current Sense 3 3 21 14 a 4 BLDC T lt 52 ANN 3 py 1 STERN MOTOR 2 5 5 tbd 5 ui 2 o changings from rev 1 3 to rev 1 4 e BS 514 gt exchange of C2 to other package R20 5 1 9 3 2 Driver Stage V HS1 e T3 R10 R3 IRL1004 Supply EN VS T7 511 680k 6R8 ST2 8 IRL1 004 Nes 4 oo 2 P o 2 02 y 2 9 ays e gt 5514 2 lt lt 00 o 9 2 Y ul o 5 R25 52 D 5 7 0
2. Lecce eee eee esee seen etta esos eese teste 30 7 4 Save compile and program the firmware 32 8 BLDC DemoKit PG program PER 35 HBMeSICU 35 8 2 Command line parameter ER 35 LIMPIO 36 8 4 Control Load Wind SC 38 8 5 Control Debus WINDOW Am 39 8 6 PID controller and PC program ccccsssssscsscccsescesccescessssscssccssssscssesessenesscsssseneesessscssessscssesesseneeees 39 9 brodo C 40 9 1 Schematic MLX81200 EVB rev 1 7 81200 4 402024 1 40 9 2 Schematic MLX81200 EVB rev 1 7 programmer interface eese e eese tenen eene entes etn stes tu 41 9 3 Assembly drawing MLX81200 EVB rev 1 7 top layer 4 esee eese 42 9 4 Assembly drawing MLX81200 EVB rev 1 7 bottom layer ce eee e eee eeeeeeee eese eese es aseeaas 43 MLX81200 SW Development kit Page 1 48 Rev 1 5 12 02 09 Author ERE SW Development Kit Description MelexiIs MLX81200 BLDC Motor Controller Microelectronic Integrated Systems 9 5 Schematic MLX81200 Power Board rev 1 4 44 9 6 Assembly drawing MLX81200 Power Boa
3. jme BUF SHIELD EA 70 74 125 x e ni lt lt Default setting is for USB Mini E MIx R42 22 R35 R R36 JMP21 close 4 Setting for Parallel E MIx R35 R36 nc JMP21 open U2 B 5V Regulator 2 4 m 3 gt 6 m BUF m Bur 2 2 T 5 4 74 125 gt io Sbs im R43 _ 828 sl pi 3 mN S LL U2 C 0 8 lt 9 TO BUF 74HC125 R44 88 CRI nc tox 5 NZ O always on eof R40 U2 D 4 1 Interface Disable E MLX ED 588 72 74HC125D Setting E MLX R41 ST3 3 EN wear MAA C E MLX Indicator T 8 100k 1 857 Sok VSR 80848 R29 o 5 lt T4 gt 5 V18V Detection 13 5 5 5 R37 3 ANN 2 5 a 47k t 5 5 4 BC848 iow curren N 2 H VBAT Detection 08 5 8 01 R23 D9 N Place S2 instead of JMP9 10 TN K K A mE Note for passing through the Test signals 1 111 LL nc 1 5 detection of switched by E MIx Note DISABLE will separate Testpins from nc BAV70 and V18V chip is running status is showed by 020 VBAT1 detection is obsolete STARTPROTECT will hold MelexCM in MLX Test Mode Title is high MLX81200 Evalboard Size Rev 1
4. DC STEP SIZE DC SU B DATE COUNTER MAX p TESTPULSES RAMP slow down time 400 us MIN MOTOR STATE TIME SU o0 Hus waiting time currentless 40 us STATE TIME SU mo EM LMP FP TEST PULS 255 INIT VALUE MOTOR STATE TIME WAITING TIME CURRENTLESS 40 us 1 1 STEP SIZE STATE TIME 50 105 SLOW DOWN TIME 400 us MSTT DATE fi a 1 119 814 Fig 19 81200 SCT modify the parameter of the BLDC demo kit 7 Parameter set motor operation 8 Parameter set System setting 9 Parameter set Communication Interface settings 10 Parameter set Speed regulator settings 11 Parameter set Test pulse settings 12 Parameter set Motor start up test pulses MLX81200 SW Development kit Page 30 48 Rev 1 5 12 02 09 Author ERE SW Development Kit Description MLX81200 Melexis BLDC Motor Controller Microelectronic Integrated Systems 7 3 2 Ramp configuration 81200 SCT GUI1 xi File Window Configuration Help Melexis i Small things Melex 2 lt lt big difference Microolectionic Integrated Cstemo 19752847 1 Project name path 2 Settings 3 Copy amp compile siii Motor Operation System settings DUTY CYCLE MIN 20 3 NUMBER OF POLE PAS 5 21 8 DUTY CYCLE
5. 253 aif BLDC_MODE TRIPOLAR BLDC_SENSOR SENSOR_LESS MOTOR_LEAD_ANGLE_DIVISOR 14 PwM PERIDD FREQUENCY 12052 CONTROLLER ENABLE 20 24 21 START_UP_BEHAVIOR RAMP E WATCHDOG digita ENABLE OVERCURRENT_THRESHOLD 83 4 257 OVERCURRENT_THRESHOLD_ADC Communication Interface settings MOTOR SPEED MIN RPM m 4 LIN PwM No Interface 9 5 1 0 TARGET MOTOR ROT SPEED AFTER START UP 11400 31 LIN Standard LIN 2 Y LIN SPEED 9500 Baud 2 a Number of ramp steps 0 5 NUMBER OF RAMP STEPS 1 13 parameter array 112 2650 18 112 2650 2650 2650 2650 2550 2550 2550 2650 2550 2650 2650 2550 2650 2650 2650 112 2650 1181 112 112 2650 112 2650 112 2650 112 2650 2650 2650 2650 120 1211 1251 27 1112 112 12 12 12 12 12 12 12 112 112 2650 112 2650 1 1 19 81 7 Fig 20 MLX81200 SCT modify the parameter of the BLDC demo kit 7 Parameter set motor operation 8 Parameter set System setting 9 Parameter set Communication Interface settings 10 Parameter set Speed regulator settings 13 Parameter set Motor start up Ramp MLX81200 SW Development kit Page 31 48 Rev 1 5 12 02 09 Author ERE SW Development Kit
6. MIx16 Simulator Emulator Simulator Emulator PC Software Mlx16Setup x xx x exe MIx81200x mmf Configuration file for Simulator Emulator and Flash Programmer MIx81200Conf x x x msi MM Mini E MLX Emulator Emulator Software and hardware driver EmlxSetup x x x msi MIx16 Interactive C Debugger Melexis C Debugger MDC Setup x x x exe Flash Programmer Software for MM and Mini E MLX Programming software for Flash memory EMIXMMProgSetup x x xx msi Gnu Tool chain Mlx16 C Compiler and associated tools 16 setup x xx x exe MLX81200 SW Platform Includes general chip operation especially the LIN feature Available on Softdist Melexis USB LIN Master Software PC software for LIN Master Comes with MLX USB LIN Master on CD MLX81200 BLDC Firmware BLDC Firmware for the Demo kit setup BLDC DemokKit Firmware x zip MLX81200 PC program PC program to control the BLDC firmware via LIN MLX81200 Demokit PCProgram x exe MLX81200 SCT PC program to configure build und flash the BLDC Demokit firmware MLX81200 SCT x exe MLX81200 Software Source code BLDC Firmware sources for the BLDC Demokit BLDC x Demokit zip Tbl 2 Contents Software MLX81200 SW Development kit Author ERE Page 6 48 Rev 1 5 12 02 09 Melexis Microelectronic Integrated Systems SW Development Kit Description 3
7. 2 m m y 4 BUS 19 2 7627 5 4 22 c 6 ae Title Sem m 7 36 MLX81200 Evalboard 02 oF 8 Size Rev LIN STECKER 6 STECKER 6 POLISTECKER 6 POLIG STECKER 8 POLIG STECKER 8 POLIGTECKER 8 POLIG 8 8 m tres MLX81200 LIN Master Supply connectors LIN Emulator connector Date Fri Nov 28 2008 AuthorA Peterl ERE nc Sub D9 Female Filename wixs200 Evalboord 1 7 Sheet 1 of 3 D Ready for new USB Mini EMIx History list for complete list see next page Input from Mini E MLX 5 Note for using the Parallel E MIx the jumpers 11 12 Input from E MLX MM and the resistors R21 R22 must be populated with 1k 2 2 For using the Mini R21 R22 must be increased 9 9 X up to 220k g 1 E MLX MINIDING 2549 eon 296 5 1 GND D4 70 STARTPROT 3 youre 25 22 4 MUST 2o o1 952 55 9 5 EXTRA2 i mo Buffer E MLX Testlines M 2 6 VOUTS 12 ours R35 m MU T E MLX Mini 2 1_ 25 ag 2 DIN9 pinning B MICE ms E PERMANENT
8. Change Date 1 0 1 Creation of document 20 Dec 06 1 1 2 Changed description EMLX MM programmer to Mini E MLX 13 Feb 08 and adapted to hardware revision 1 4 and Powerboard 1 1 1 2 3 Add chapter 7 BLDC Demokit PC program 1 May 08 1 3 4 Add chapter 7 MLX81200 Software configuration tool 24 Okt 08 1 4 5 Add chapter 8 2 Command line parameter adapted new SW structure 05 Nov 08 and add chapter 7 4 1 Configure the hardware in use 1 5 6 Adapted schematic and assembly drawings to EVB rev 1 7 12 Feb 09 and PWRB rev 1 4 add component order codes for exotic parts add chapter power board MLX81200 SW Development kit Author ERE Page 47 48 Rev 1 5 12 02 09 SW Development Kit Description 81200 BLDC Motor Controller Melexis Microelectronic Integrated Systems 11 Disclaimer Devices sold by Melexis are covered by the warranty and patent indemnification provisions appearing in its Term of Sale Melexis makes no warranty express statutory implied or by description regarding the information set forth herein or regarding the freedom of the described devices from patent infringement Melexis reserves the right to change specifications and prices at any time and without notice Therefore prior to designing this product into a system it is necessary to check with Melexis for current information This product is intended for use in normal commercial applications Applications req
9. Copper Wire 4 1 5 optional o o 3A N 52 vaa 51 00 CE am 2 STERN gt Connectors for Hallsensors o SW3 ADC Input ASA e Connector Sensors Irensmotee gt 5 Driver Stage 151 9 ST9 1 ex 9 o ST10A RS IRL1004 m 1 2 psa AAA 5 2 S S 5 6R8 nix ss 9 i 4 BS oo Variant B STECKER 4 POUG STECKER 6 POUG St near phases E 7 swo smoothing current peaks 52 51 GND Low Side Current Sense 6 2 ST10B e E R23 29 R6 IRL1004 2 m CH 4 Buerkiin 1203964 e w 2 lt 152 59 STECKER 4 POUG R24 Sa 1 Title wm o 5 MLX81200 Powerboard 100 MOS 2 e gt Size Rev POWER MOS i Copper Wire d Date Fri Nov 28 2008 AuthorANP ERE Filename 1200 Poverboard 1 amp sch Sheet 1 of 2 114 3 4500 0 mil o A 2 07 OOJO GND PO 924015 PEKE24A 77 Bottom 243 ceric 1812 zm WSZ C22 4 1812 Sho o Lg Be ic 1812 HS2 cet Top Side Row32 32 O20 O20 0270 O
10. 2 Project Settings 3 amp compile project Step 3 1 Save actual configuration 1 6 Save Configuration 3 2 Build new firmware Remove objects Hex and ELF fles e 1 8 17 Compile MelexCM libraries lt lt Compile Loader ee 1 9 Step 3 2 Upload firmware 20 21 Load Firmware into the IC Compile porcess window MLX81200 SCT Step 7 compile application execute 1111111111111111111111111111111 finished Build firmware MLX81200 SCT Step 6 clean application execute finished MLX81200 SCT Step 5 compile and install Loader execute 1 finished MLX81200 SCT Step 4 clean Loader sources execute finished MLX81200 SCT Step 3 compile MelexCM libraries execute 11111111111111111111111111111111111 finished MLX81200 SCT Step 2 uninstall MelexCM libraries execute finished 119 81 2 Fig 22 MX81200 SCT screenshot running compile process of the BLDC demo kit firmware 16 Button Save configuration the configuration will be saved into the files 17 Button Build firmware start the compile process 18 Checkbox Remove objects Hex and Elf files remove the old object and firmware files 19 Checkbox Compile libraries compile the complete libraries 20 Checkbox Compile Loader build the loader firmware from current configuration 21 Button Load Firmware into the IC start the programmer too
11. 4 9 9 0 5 ius 3joe oi 100 58 Saag 29 1 37 51 Oc B lt 3 JMP7 69 59 NT o 1 9 9 2 66064 m R77 3e 5 3 P N 27 ES Sws 29 MAN V_PROT 62 A34 e 61 mea C19 1 150 64 A32 3 POWER 10 C9 Si oz e 1 3 T6 R12 JuP148 pe POWER R9 5 lt v 100k 68k 15 18 IRFLO14N 1 JMP8 2 R88 n MAN W_PROT 5 NBATI BAV7O 8 VS VS V18V V5R V5V gt d 021 2 150 5 3 51 1 1 a ee BUS Load pO Appel E E Bor 1 POWER MINI c gt io 00 5 4 lt Nis 5514 ME 16 09 gt DRV DRV DRV ap 3 oF 8 Sci S L SAN 110 57108 ST9 v 2 2 956 6 55 9 lt 4 lt VBAT EVA ERE cd EIN 021 K A ST2 ST12 ST12B 5111 1 1 1 034 zem 2 2 AAA LIN 4 protection 3 3 mer 2 2k green VBAT ok g STECKER 9 POLIG STECKER 9 POLIGTECKER 9 POLIG STECKER 3 POLIG STECKER 3 POLISTECKER 3 POLIG Melexis Test LED SMD1206 BU1 SW SW Sw 54 10 10 10 ST8 5 8 577 c ST4 3 1 Ge
12. 6 Log Window each operation is shown in this window MLX81200 SW Development kit Page 29 48 Author ERE Rev 1 5 12 02 09 SW Development Kit Description 5 MLX81200 BLDC Motor Controller Microelectronic Integrated Systems 7 3 Configure the demokit firmware 7 3 1 Test pulse configuration MLX81200 SCT GUI1 E z inl xl File Window Configuration Help Melexis Small things Melexis 8 gt lt big difference Microelectronic Integrated Systeme e dr 1 Project name amp path 2 Project Settings 3 Copy amp compile al Motor Operation System settings PWM DUTY CYCLE MIN 20 3 NUMBER DF 5 8 DLITY CYCLE 253 BLDC MODE TRIPOLAR 7 BLDC SENSOR SENSOR LESS MOTOR LEAD ANGLE DIVISOR 4 3 PERIBD FREQUENCY 2 Hz 71 CONTROLLER OVERCURRENT_COUNTER_MAX 2 0 3 START UP PULSES x WATCHDOG digita ENABLE OVERCURRENT THREsHOLD 83 3 257 OVERCURRENT_THRESHOLD_ADC ERES ES Communication Interface settings 9 MOTOR ROT SPEED MIN RPM x LIN Pwm No Interface ao 10 MOTOR SPEED RPM TARGET MOTOR ROT SPEED AFTER START UP RPM 1400 LIN Standardi LN 2 LIN SPEED 3500 Baud pulse settings Motor startup 12 MIN DUTY CYCLE SU MAX DUTY CYCLE 50 2 5 INIT VALUE
13. 1 5 12 02 09 Author ERE SW Development Kit Description 81200 BLDC Motor Controller Melexis Microelectronic Integrated Systems 4 1 2 Software Development in C language Gnu has also developed a C compiler Assembler and Linker This tool chain supports all known features of other common compilers The creation of C source file s can be achieved with any common non formatting editor The code is then compiled and linked with the above mentioned Gnu tools see 2 With this methodology e All C language based features can be used Assembler parts previously compiled to object file level can be included ROM and In circuit emulation is possible on C instruction level NOTE The object files of Gnu and Melexis supplied Assembler are not compatible Therefore the Gnu provided Assembler must be used in case Assembler sources should be included with a Gnu C source Include file C Source code file DUM 2727 inc lt lt Note compiler assembler and linker are made are not compatible to the GCC C ee Melexis assembler flow compiler 1 Assembler source file Assembler file interim 5 Assembler Object file 0 Other object file s Library Y 27 Final elf file Used for Simulation Hex file gen and In Circuit Emulation Final HEX file hex Sent to E MLX MM and use
14. 7 Date Nov 28 2008 AuthorA Peterl ERE Filename MLX81200 Evolboard 1 7 sch Sheet 2 of 3 A B C D 114 3 4500 0 mil GND VBAT 51 5 2 as Bet 5 C31 78 057632 C30 ziz ET Power on g A A pipe m D8 R2 D9 18 C1 15 c 5 c 5 Pint gt Filter c 5 no Filter 1 gt Filter o no Filter MLX81200 Powerboard O E MLX Start off protection 9 LIN Emulator 90 E C C3 O3 aga i CN Cel CS Cel Cel gt a 000000 900900 000000 000000 Jar C1 ses Interface www melexis com MLX81200 Evalboard Rev 1 7 Sept 2008 ANP 129 5 Side 5100 0 mil 266 6 wi 1142 Bottom Side mm 2 051 lim 6 6072
15. Description 81200 BLDC Motor Controller Melexis Microelectronic Integrated Systems 7 4 Save compile and program the firmware 7 4 1 Configure the hardware in use 1 1 81200 SCT File Window Configuration 3 dose programmer Ser programming gt 4 B Small things make use LINMaster 2 0 big difference t 2 Microelectronic Integrated Systema 1 Project amp path 2 Project Setting 3 1 Save actual configuration 14 Save Configuration 15 Step 3 2 Build new firmware Remove objects and ELF files Build firmware Compile MelexCM libraries Compile Loader Step 3 2 Upload firmware Load Firmware into process window Fig 21 MX81200 SCT configure the hardware in use 14 Main menu item Configuration the SCT can be configured in this menu 15 Menu item use Mini and use LINMas the USB LINMaster or the Mini E MLX can be chosen MLX81200 SW Development kit Page 32 48 Rev 1 5 12 02 09 Author ERE SW Development Kit Description Melexis MLX81200 BLDC Motor Controller Microelectronic Integrated Systems 7 4 2 Build process MLX81200 SCT GUI1 E ES inl x Window Configuration Help Melexis Melex is Small things make big difference Microelectionic Integrated Systeme 7 A 7 1 Project name amp path
16. Following parameters are supported maxspeed x set the maximum limit minspeed x set the minimum limit Example The command 1 8 1200 Demokit PC program exe maxspeed 4000 minspeed 2000 starts the BLDC Demokit PC program with a speed range from 2000 to 4000 rpm MLX81200 SW Development kit Page 35 48 Rev 1 5 12 02 09 Author ERE SW Development Kit Description 81200 BLDC Motor Controller Melexis Microelectronic Integrated Systems 8 3 Main window MLX81200 Demokit program 02 integrated Systane Small things make difference 81200 BLDC Motor Controller Control Status BLDC Motor PWM 0 Send pwm PWM Speed na 500 5000 em Bend Speed T Stop 5 Current 2 Start B 4 Connect O Disconnect Connect About 3 LIN master disconnected G LIN CAN Control Load Cortiol Debug Nouv hardware connected 5 6 0 17 Fig 24 Main window after start 6 Get status E 4 1 Button Disconnect disconnect the LIN or CAN master The application does not close The software can be reactivated by clicking the connect button 2 Button Connect connect the LIN master or the CAN master 3 Interface radio buttons interface can be selected with this two radio buttons 4 Checkbox Control Load open a window to control the hysteresis brake bo
17. How to use the MLX81200 SW Development kit MLX81200 BLDC Motor Controller The following table introduces the philosophy of the MLX SW Development kit and gives an overview about the different options for development with the kit Task Hardware 81200 specific hardware Required software Software development in Assembler Editor 16 Melexis Assembler Software development in C Editor 16 Compiler Software Simulation in Assembler Mini E MLX Emulator in Assembler PC MIx16 Simulator e Simulation In Circuit Emulation PC Mix16 Simulator Evaluation board 16 Emulator 81200x mmf configuration file In Circuit Emulation Mini E MLX Emulator Evaluation board Mix16 Simulator 16 Emulator 81200x mmf configuration file Quick HW Test PC Mini E MLX Emulator Evaluation board MIx16 Simulator Mix16 Emulator 81200x mmf configuration file Demo Software for the Evaluation board Configure build and program via pin LIN PC Mini Emulator USB LinMaster 2 0 Evaluation board MLX81200 IC with loader support MIx16 GCC Compiler MLX81200 SCT Tbl 3 How to use the SW Development kit MLX81200 SW Development kit Author ERE Page 7 48 Rev 1 5 12 02 09 SW Development Kit Description 81200 BLDC Motor Contro
18. active the PID controller is activated and the predefined target rational speed is set up by the PID controller Every time the button Send PWM is used to change the PWM value of the motor the PID controller is disabled and only the adjusted PWM is used by the firmware The PID controller can be reactivated by sending a new speed target to the MLX81200 MLX81200 SW Development kit Page 39 48 Rev 1 5 12 02 09 Author ERE D ST1 Bootstrap Stage R13 REF Powerboard connector DAWN i 72 22 x 9 onk 4 DC 3 d E G D 5 5 Ro 5 5 5 5 MLX81200 Q Y5 2 1 19 DAS 5 lt 3 HS2 m 2 889 1 12 Su R14 E MelexCM 3 Phase Sinus Motor Driver 4 14 yazo 12 YW t Menor c
19. the power board are protected against reverse polarity MLX81200 SW Development kit Page 14 48 Rev 1 5 12 02 09 Author ERE SW Development Kit Description MLX81200 BLDC Motor Controller 5 3 3 Evaluation board Phase signal filters Fig 5 Position of the filter components on the EVB The resistors R13 R14 R15 R16 and the diodes D13 D14 D15 D16 protect the IC against negative current and voltage from the motor coils The resistors increase the discharging time of the high side n channel MOSFET transistor gates With the low pass filters R55 C15 R66 C16 R77 C17 and R88 C18 fast disturbances can be filtered out The default value for the resistor is 150 ohm and for the capacitor is 10nF MLX81200 SW Development kit Page 15 48 Rev 1 5 12 02 09 Author ERE Melexis Microelectronic Integrated Systems SW Development Kit Description 5 3 4 Evaluation board Jumper ring MLX81200 BLDC Motor Controller The jumper ring enables the user to either connect or disconnect all signal lines to the chip By removing jumpers the circuit from the chip to the application hardware can be disconnected e g for measuring current or applying external signals All jumpers are described with the specific pin names on the board 5 3 5 Connection between Power Board Port and Evaluation Board Connector
20. the test interface please refer to chapter 6 2 For further information please see the description for the MLX81200 BLDC Demo Kit firmware Application Note how to program on module Application Note how to flash over pin LIN 7 2 Locate the demokit firmware sources and load the configuration MLX81200 SCT GUI1 lol xl File Window Configuration Help Melexis small things make Melexis a big difference Systeme TEX gt 25 E 2 Project Settings 3 Copy amp compile project Project path D projects MLXB1 200 Software Borland_CPP SCT BLDC_V2 0_DemoKit_beta Browse Project name eroe 21 1 Target name 2 227 read parameter 4 ER 5 Log Window check path found config Chip mk found config Config mk found config Rules mk found libsrc Makefile found projects LINLoader Makefile 6 found projects 81200 include sysdef h found projects 81200 include motorctrl h User has chosen user has chosen project D projects MLX81200 Software Borland CPPXSCTABLDC V2 0 DemoKit betaYprojec Fig 18 MLX81200 SCT chose the path and load the configuration 1 Button Browse the path to BLDC firmware source 2 Project selector the current project name must be selected 3 Project name shows the current project name 4 Edit field Target name the name of the firmware 5 Button read parameter the configuration will be read from the chosen directory
21. with TO220 transistors and heat sinks The order number of the heat sinks can be found inside chapter 9 8 MLX81200 SW Development kit Page 19 48 Rev 1 5 12 02 09 Author ERE SW Development Kit Description 81200 BLDC Motor Controller Melexis Microelectronic Integrated Systems 5 4 2 High and Low side current sensor The high side shunt resistor is assembled with 1 The low side shunt resistor is assembled with 5 The maximum current can be calculated 3W P dra max 7 R _ 3w 0 0018 94A I mx 0 0058 24 If the shunt resistor is not used it is possible to replace it with a copper wire ig 7 Copper wire connected instead of shunt 5 4 3 Reverse polarity protection transistor T7 The transistor T7 can be substituted against a type with a smaller Rpson The bigger gate capacity doesn t matter because the transistor will be switched on only once The temperature increasing can be calculated for PCB mounted transistors 204 0 008Q 3 2W 101 AT 40 532W tot AT 128 MLX81200 SW Development kit Page 20 48 Rev 1 5 12 02 09 Author ERE Melexis Microelectronic Integrated Systems 5 4 4 Power board Jumper settings 1 SUPPLY vet 3 5 F MLX81200 Powerboard Rev 1 4 Sept 2098 ANP Fig 8 Location of Connectors on Power board JMP1 1 2 real star point connected
22. 0 E MLX on should light up Memory Pattern Sequence Programme B POWER ow b POWER Messages gt gt gt Echo Executing POWER gt gt gt Info Action successfully completed Double click to edit Elapsed 0 1075 CRC locked 2 Fig 15 Programmer enable programmer interface Select Flash from the tab Memories sections Select the Program using file radio button Load file and push the Execute button Verify the programmed file by pushing the Compare Dump to radio button and press Execute again 1 MM Programmer C Program Files Common Files Melexts Shared contig STET ioj Memory Pattem Sequence Programmer 7 MEMORY 94 1024 bits B Stat Address 0 0x0 e g Byte address 0x0 4 Size 256 0x100 words of 1024 bits 32 0 KBytes 4 Little Endian C Dump C Erase Program using Edited Data Program using HEX file 7 Compare Dump to HEX Dump and Compare to HEX file fi 5 5 D projects MLX81200 Software GCC BLDC_V1 4 1_Demokit_ Use Erase All Stop Execute Messages Memory View Reading HEX file Loading Memory gt gt gt Warning Using ERASEALL Data not in HEX file will be erased gt gt gt Info gt gt gt Info gt gt gt Info Programming completed gt gt gt Info Ok
23. 20 020 0230 m 90970 1 5 T virtual Test HS1 T o E Test 0 Test 152 22 D Oo Melexis 9020 O20 020 0190 0O18 O 0170 0160 0150 0140 0130 ST18 ST2 2 2 o 0000000 N NW Microelectronic Integrated Systems MLX81200 Powerboard 1 4 Sept 2008 4500 0 mil 2000 w1 11 3 OL Lic Or 002 1925 1 10 8514 n 8 2 2181 2000 11873 WW SW Development Kit Description Melexis 81200 BLDC Motor Controller Microelectronic Integrated Systems 9 8 Component order codes Component Name Manufacturer Distributor Order code Power board R8 Shunt Isabellenhuette Buerklin 16 696 SMVORO0010 Power board R7 Shunt Isabellenhuette Buerklin 16 E 702 SMVORO0050 Power board T1 T7 Power N Fet IR IRL1104S Power board Heat sink AAVID THERMALLOY Farnell 121 3432 TO220 HF20 AluTronic Reichelt V CK960 20 CK 960 20 SE EVB J1 Connector Farnell 152 392 Mini Din 9 pol 4850 295 10 History record Rev No
24. 5 3 Evaluation board 5 3 1 Evaluation board jumper settings Fig 4 Location of Connectors on Evaluation board MLX81200 SW Development kit Page 13 48 Rev 1 5 12 02 09 Author ERE SW Development Kit Description 81200 BLDC Motor Controller Melexis Microelectronic Integrated Systems JMP1 short connects Vbat to the chip open disconnects Vbat from the chip JMP2 short connects CWD pin to GND open CWD pin of the chip is active NOTE the external capacitor for analog Watchdog is active JMP3 short disables the external regulator NPN transistor for higher VCC loads open enables the external regulator NPN transistor for higher VCC loads JMP5 1 2 enable low pass filter R55 C15 and voltage divider R5 R50 for pin T 2 3 only the voltage divider R5 R50 for pin T JMP6 1 2 enable low pass filter R66 C16 and voltage divider R6 R60 for pin SW5 2 3 enable only the voltage divider R6 R60 for SW5 JMP7 1 2 enable low pass filter R77 C17 and voltage divider R7 R70 for pin SW6 2 3 enable only the voltage divider R7 R70 for SW6 JMP8 1 2 enable low pass filter R88 C18 and voltage divider R8 R80 for pin SW7 2 3 enable only the voltage divider R8 R80 for SW7 S2 consists of the jumper JMP9 and JMP10 JMP9 short the connection between the chip and the emulator is split open the connection between the chip and the emulator is established the chip can be accessed th
25. 58 058000 words of 1 bits 4 0 KBytes Format Little Endian Dump Pr Program using HEX file Dump and Compare to 1 3 D projects MLX81200 Software Borland_CPP SCT BLDC_V2 Use Erase All Stop Microelectronic Integrated Systeme 1 Project name amp path 2 Project Settings 3 Copy Step 3 1 Save actual configuration ia Edited Data Save Configuration Step 3 2 Build new firmware Rem Build firmware Dump to HEX file 23 Com 4 Programming completed OK Messages Memory View Comi Step 3 2 Upload firmware 21 gt gt gt Echo FLS 10 83 D3 25 7E gt gt gt Echo FLS 21 26 52 B3 94 47 96 gt gt gt Echo FLS 22 45 94 47 96 45 FF gt gt gt Echo FLS 23 3B A7 B6 53 72 81 z gt gt gt Echo FLS 24 7 B6 52 72 81 Compile porcess window gt gt gt Echo FLS 25 C7 A7 6 81 C7 A7 ep 0 0 gt gt gt Echo FLS 26 92 BS 90 46 08 debug abbrev 0 4 gt gt gt Echo FLS 27 00 AO 63 OB 10 55 igni iugo Ox2a6e gt gt gt Echo FLS 28 BZ 81 6 02 01 8E ore oxs3p4 gt gt gt Echo FLS 29 B6 49 62 88 26 00 oM oxalo gt gt gt Echo FLS 2A 5C 96 46 01 00 70 5 gt gt gt Echo FLS 2B 26 88 26 53 B2 92 debug pubnames 0 8 5 de
26. IC Pin 20 4 SW3 IC Pin 19 13 Connector ST10 on Power board MLX81200 SW Development kit Author ERE Page 22 48 Rev 1 5 12 02 09 SW Development Kit Description 81200 BLDC Motor Controller Melexis Microelectronic Integrated Systems 6 Quick start up 6 1 Using the C flow Assembling Linking change to the libsrc directory open command prompt and type gmake clean gmake install change to the directory where the source code is situated e g projects 81200 BLDC open a command prompt and type gmake clean gmake executable elf file is created in the same directory executable hex file is created in the same directory Simulation Start the Interactive Debugger Melexis MDC MLXDBGW exe e Select target MIx81200 and Simulator from Tools gt Target amp Engine menus as shown in Fig 9 Load appropriate file File gt Open Run the elf files by pressing the Go or Step icon Emulation Connect the Mini EMIx Emulator to the PC via an USB cable Insert a MLX81200 chip to the appropriate socket on the Evaluation board Power up the Evaluation board and connect the Mini EMIx Emulator to the EVB Start the Interactive Debugger Melexis MDC MLXDBGW exe Select target MIx81200 and Mini from Tools Target amp Engine menus as shown in Fig 9 Load the a
27. ST1 on Evaluation board Pin Name Description Direction 1 GND Ground 2 GND Ground 3 GND Ground 4 W IC Pin 24 Input 5 HS2 IC Pin 25 Output 6 SWO IC Pin 23 Input Output 7 GND Ground 8 SW1 22 Input Output 9 V IC Pin 31 Input 10 1 IC Pin 30 Output 11 GND Ground 12 SW2 IC Pin 21 Input Output 13 U IC Pin 33 Input 14 HSO IC Pin 34 Output 15 GND Ground 16A VBAT_S2 IC Pin 40 Input 16C VBAT S1 39 Input 17 IC Pin 2 Output 18 T IC Pin 37 Input 19 GND Ground 20 LS2 IC Pin 27 Output 21 LS1 IC Pin 28 Output 22 150 IC Pin 36 Output 23 GND Ground 24 EN VS Bootstrap output from IC Pin 15 CLKO Output 25 SW3 IC Pin 20 Input Output 26 GND Ground 27 GND Ground 28 GND_S2 IC Pin 42 Input 29 GND S1 IC Pin 41 Input 30 GND Ground 31 VBAT unprotected voltage from Power board Input 32 VBAT unprotected voltage from Power board Input Tbl 5 Connector ST1 male on Evaluation board MLX81200 SW Development kit Author ERE Page 16 48 Rev 1 5 12 02 09 SW Development Kit Description Melexis MLX81200 BLDC Motor Controller Microelectronic Integrated Systems 5 3 6 Evaluation board extension port ST3 Connector ST3 on Evaluation board m m mmm m mmus 1 19 Description 1 V5V or V5EXT 5V power supply or protected switchable V5ext 2 VS Protected voltage 3 SW3 STB 4 4 Wake up interrupt si
28. SW Development Kit Description Melexis MLX81200 BLDC Motor Controller Microelectronic Integrated Systems Table of contents 3 2 Contents of the MLX81200 SW Development Kit 4 2 1 M 4 A 6 3 How to use MLX81200 SW Development 7 d The S npn 8 4 1 Software Evaluation flow A 8 4 2 The installation of the Software 10 5 Hardware 12 31 COMPUTA OM 552525 LIII 12 terc 13 5 3 Evaluation e 13 5 4 19 PROT 23 6 1 Using the 23 6 2 Programming HEX file to FLASH sccsssscsssscssssscsssssssscccsssscssssscssscscsscssssessssssssssscsssscssssascoses 25 7 MLX81200 Software configuration tool SCT 28 TeV QOD EV AN 28 7 2 Locate demokit firmware sources and load the configuration 1 29 7 3 Configure the demokit firmware
29. ard via the LIN bus 5 Button About 6 Checkbox Control Debug open the debug window to control the wave form 7 Button Exit close all windows and exit the application 8 Status bar show the status of the LIN bus and the revision number of the firmware MLX81200 SW Development kit Page 36 48 Rev 1 5 12 02 09 Author ERE Melexis Microelectronic Integrated Systems MLX81200 Demokit PC program integrated Systeme BLDC Motor Controller Control PWM 9 gt 0 Send PWM PWM o SW Development Kit Description 81200 BLDC Motor Controller x Small things make big difference MLX 81200 Status BLDC Motor Motor speed 10 Speed 15 op 500 5000 rpm C urrent 0 mA Send Speed 12 _ Send Speed Vot stoped 13 Start Stop Get status 14 Status bus T continuously lonnect 9 1 Connect Disconnect About Exit 17 16 17 Searching for LIN master G LIN c Control Load Control Debug viii comected coms 5 6 047 2 Fig 25 Main window with connected LIN master Control bar PWM Button Send PWM Control bar Speed Button Send Speed Button Start Button Stop Status window Button Get Status Checkbox continuously MLX81200 SW Development kit Author ERE adjust the PWM value send to MLX81200 wi
30. bug aranges debug str Oxl f3 TUNE arched comment 0 120 5 BUILDING Fig 23 MLX81200 SCT uploading procedure with the programmer tool 21 Button Load Firmware into the IC into the MLX81200 via pin LIN 22 Log window Compile process window 23 MM Programmer tool The Melexis programmer tool MLX81200 SW Development kit Author ERE Page 34 48 Start the programmer tool and load the actual firmware The compile log messages are shown inside Rev 1 5 12 02 09 SW Development Kit Description 81200 BLDC Motor Controller Melexis Microelectronic Integrated Systems 8 BLDC DemoKit PC program 8 1 General The Motor control Software does NOT include any source code for the MLX81200 The required firmware file BLDC_V20_Demokit_XY hex MUST be loaded first into the MLX81200 The program MUST be running either by starting the program in the Melexis interactive debugger or let the CPU run free without the emulator out of power on reset The BLDC Demokit Firmware can be controlled with the PC program via the LIN bus The hysteresis brake board can be controlled via the LIN bus too For programming a HEX file to the flash please refer to chapter 6 2 8 2 Command line parameter It is possible to configure the minimum and maximum speed slider values of the graphical interface The default limits are 500 rpm for the minimum and 5000 rpm for the maximum
31. d in the MLX82001 MLX Assembler Linker Obgen Tabgen description GCC User s Manual incl AS LD and Getting Started Doc description of the Emulator Debugger User s Manual description of the Simulator explanation of the Mlx16X8 microcontroller core and the instruction set description of the Melexis USB LIN Master detailed description of the MelexCM LIN API MLX81200 SWDesignDescription x pdf AppNote MLX81100 MLX81200 Reflashing on module x pdf ApplNote Flash over pin LIN x pdf MLX81200 SW Development kit Author ERE Page 3 48 Rev 1 5 12 02 09 SW Development Kit Description 81200 BLDC Motor Controller Microelectronic Integrated Systems 2 Contents of the MLX81200 SW Development kit 2 1 Hardware Part Picture MLX81200 Evaluation board Power board MLX81200 SW Development kit Page 4 48 Rev 1 5 12 02 09 Author ERE SW Development Kit Description 81200 BLDC Motor Controller Microelectronic Integrated Systems USB LIN Master Mini E MLX Emulator BLDC Motor and hysteresis brake Hysteresis brake control board 1 Contents Hardware MLX81200 SW Development kit Page 5 48 Rev 1 5 12 02 09 Author ERE Melexis Microelectronic Integrated Systems 2 2 Software SW Development Kit Description MLX81200 BLDC Motor Controller Part Function Installation file
32. e BLDC Demokit firmware 4 2 2 Directory structure of the Software Tools It is recommended to use the standard installation option After installing with this installation option the following path settings and directory structure appears C Programs Melexis MM Programmer FLASH Programmer Software Bin MLX Assembler Package Bin Doc MLX Assembler Development System Documentation Emulator Emulator Software and help file Simulator MLX16 Simulator Emulator Assembler MDC MLX16 Interactive C Debugger and manual MLX81200_Demokit_PCprogram MLX81200 Control Software MLX81200 SW Development kit Page 10 48 Rev 1 5 12 02 09 Author ERE SW Development Kit Description Melexis MLX81200 BLDC Motor Controller Microelectronic Integrated Systems The release of Mx16 GCC suite installs in the following directory tree C mIx16 gcc bin contains executable files Lib contains libgcc library and include files and compiler specs mlx16 contains libmlx16 library and include files start up module linker command files and memory map libexec additional executable files config configuration file and script for 16 Simulator docs documentation examples sample programs C Programs Common Files Melexis Shared WConfig 81200 81200 mmf Configuration file for Simulator Emulator and Flash Programmer C Programme LIN Commander LinCommander exe LinCommander exe a sample interface program that can be used to debug via the LIN b
33. e emulator if the emulator is not plugged the CPU is executing the flash program JMP10 short CPU does not execute the flash program open CPU is executing the flash program if no emulator is connected and JMP9 is shorted JMP11 short the pull up resistors R21 and R22 are connected to the test interface inputs JMP12 necessary if the E mlx MM programmer is used open the pull up resistors are disconnected default for the Mini E MIx programmer JMP21 short supply the additional voltage regulators inside the Mini E MIx programmer required open disconnect VBAT from the test interface required for the MM programmer NOTE If the MM programmer is connected and the JMP21 is shorted the diode D4 can be destroyed 5 3 2 Functionality of the Evaluation Board Main Power Switch S1 selects between supply connector of the evaluation board or the supply connector of the power board IMPORTANT If the evaluation board is supplied via the power board the power supply connector of the Evaluation board should NOT be connected Otherwise the board or the power supply will be damaged The only requires DC voltage of 12 18 which is applied the supply connector of the evaluation board This is valid if the evaluation board is used stand alone without the power board In case the board is used alongside the power board the power board delivers the supply voltage for both PCBs Both the evaluation board and
34. for Flash Emulation Fig 2 Flow of the Software Development using the Gnu C Compiler tools MLX81200 SW Development kit Page 9 48 Rev 1 5 12 02 09 Author ERE SW Development Kit Description 81200 BLDC Motor Controller Melexis Microelectronic Integrated Systems 4 2 The installation of the Software Kit 4 2 1 Installation of the tools All tools run under WinXP Win9x WinNT and Win20000 are not supported All programs use the standard windows installer of WinXP The following tools have to be installed e EmlxSetup x x x msi Emulator Software and hardware driver Mlxi6Setup x xx MIx16 Simulator Software MDC Setup x x MIx16 Interactive Debugger EMIXMMProgSetup x x xx msi Flash Programmer Software MIx81200Conf x x x msi Configuration file consists of chip specific settings e Mlx16 setup x xx x exe Mlx16 C Compiler NMLXLinMaster Setup exe USB LIN Master Software MlxLinDebug exe Melexis USB LIN Master MLX81200 Demokit PCProgram PC program to control the BLDC firmware via LIN e MLX81200 SCT x exe PC program to configure build und flash the BLDC Demokit firmware x Revision number Demo Software can be copied at any top level directory Software Platform MelexCM x x x zip Software platform including the Demo Software DemokKit Firmware x x zip firmware for the Evaluation setup x Demokit zip the source code of th
35. gnal INH 5 GND Ground 6 105 Interrupt from CAN module 7 GND Ground 8 104 SPI clock 9 GND Ground 10 103 SPI MOSI 11 GND Ground 12 102 SPI MISO 13 GND Ground 14 101 SPI chip select 15 GND Ground 16 Not used 17 Not used 18 Not used 19 Not used 20 Not used 6 Connector ST3 on Evaluation board for example a CAN extension board can be connected 5 3 7 Evaluation board Signal pin headers 1 6 Connector ST5 on Evaluation board GND Pin Name Description 1 100 IC Pin 1 2 101 IC Pin7 3 102 IC Pin 10 4 IC Pin 12 5 04 IC Pin 9 6 105 IC Pin 3 Tbl 7 Connector ST5 on Evaluation board MLX81200 SW Development kit Page 17 48 Rev 1 5 12 02 09 Author ERE SW Development Kit Description 81200 BLDC Motor Controller Melexis Microelectronic Integrated Systems 1 9 Connector ST7 on Evaluation board GND Pin Name Description 1 150 IC Pin 36 2 IC Pin 25 3 50 34 4 HS1 IC Pin 30 5 CP1 IC Pin 29 6 LS1 IC Pin 28 7 LS2 IC Pin 27 8 CP2 IC Pin 26 9 HS2 IC Pin 25 8 Connector ST7 on Evaluation board 1 8 Connector ST9 on Evaluation board GND Pin Name Description 1 SWO IC Pin 23 2 SW1 IC Pin 22 3 SW2 IC Pin 21 4 SW3 IC Pin 20 5 SW4 IC Pin 19 6 SW5 IC Pin 18 7 SW6 IC Pin 17 8 SW7 IC Pin 16 9 Connector ST9 on Evaluatio
36. gt gt gt Info Dump completed Reading HEX file Comparing file to memory gt gt gt Info No error found Elapsed 21 5065 CRC locked 7 Fig 16 E MIx MM Programmer programming the flash MLX81200 SW Development kit Page 27 48 Rev 1 5 12 02 09 Author ERE SW Development Kit Description 81200 BLDC Motor Controller Melexis Microelectronic Integrated Systems Before disconnecting the Mini EMLX select tab Pattern gt OFF Push the Execute button e D20 E MLX on should now be turned of C Program Files Common Files Melexis Shared Configi MEZE x MM Programmer File Tools Help Mlx81200 Memory Pattern Sequence Proarammer gt POWER b POWER OFF Disassemble Stop Messages gt gt gt Echo Executing POWER OFF gt gt gt Info Action successfully completed Elapsed 0 0205 2 CRC locked Fig 17 MM Programmer disable programmer interface Pattern arguments The evaluation board can now switched off Mini E MLX Emulator can now safely removed For generating hex code please refer to 6 1 7 MLX81200 Software configuration tool SCT 7 1 General The Software configuration tool can be used to configure compile and flash the BLDC Demokit firmware version The Software configuration tool is not suitable to write a complete applica
37. l and load the actual firmware into the MLX81200 via pin LIN 22 Log window Compile process window The compile log messages are shown inside MLX81200 SW Development kit Page 33 48 Rev 1 5 12 02 09 Author ERE Melexis Microelectronic Integrated Systems 7 4 3 Upload the firmware Disconnect all other devices from the LIN bus SW Development Kit Description ML X81200 BLDC Motor Controller Connect the USB LIN master version 2 0 or the Mini emulator to the pin LIN and to the PC e Press the Button Load Firmware into the IC The programmer tool is started and will be configured for the used loader protocol e Doa POR of the MLX81200 when the message gt gt gt Echo Entering programming mode is shown Uploading the firmware is only possible immediately after POR and for a certain time 500ms Afterwards uploading is not possible anymore e Wait until the MM Programmer tool has finished with the message e Close the MM Programmer tool A working loader inside the IC is necessary for this process 17 E Mlx MM Programmer D projects MLX81200 Software Borland_CPP SCT BLDC_ 2 0 beta Wi 10 Tools Help Memory Programme Ele Window Configuration Help Melexis Parameter Vae 4 2 2 4 Epe Melexis 9 4 B Stat 4 Size Address 0 0x0 327
38. ller Melexis Microelectronic Integrated Systems 4 The Software Kit 4 1 Software Evaluation flow The documentation for the development tools listed above is included with those tools and is outside the scope of this document Despite that a brief flow of the software development for the MLX81200 is given below in Fig 1 Software can generally be written in Assembler or in C 4 1 1 Software Development in Assembler language Assembler source file s can be written with all common non formatting editors The code is then compiled with a Melexis supplied assembler which is customized for the MIx16X8 instruction set and supports all standard features of other commercial compilers The linker will merge the object files generated by the assembler and create a final file hex cod This final hex file can be used in two different ways e for simulation purposes with the 16 Simulator e for in circuit debugging testing programmed to Flash Source code file Include file asm TS gt Assembler Object file obj Other object file s Library Linker Final CODE cod Hex file gen Used for Simulation and In Circuit Emulation Final HEX file hex Sent to E MLX MM and used for Flash Emulation Fig 1 Flow of the Software Development using Assembler and Melexis tools MLX81200 SW Development kit Page 8 48 Rev
39. lo 16 45 221 Changed GND routing S S45 18 Sag es ayy 8 8 3 8 o o 20 Sato 164 19 st GND ASIC GND HS1 o Lyan 21 4 0 D p e RIS v C22 GND POWER MOS DRV 26 5 NP B Pats W VW 6 gt 2 100n z v Analog Phase Filter 4 u 4 3g SACS 900 e 29 22 a 9 PINS JMP5 R55 52 52 Sarg cie 31 51 z g lt 0 C23 TL FILTER 29 AAA 3 137 JMP124 150 36 e18 35 R16 A 409 ea 9 cmm 38 At9 9N0 0 9 37 9 24 40 9 a 23 ue ese 4 22 Se E 257 30654 2 2 Gi a D q a 22 2 44 22 lt 3 4581 45740 52 40003 4 24 779 1 0 6 2 R66 4 aos 99 9 2 43 4090 4 20 29 AAA 4 N 48 4 7 ETE 5 19 30661 zu 150 2 50 25 5 lt 49 593 5 5 5 e 5 DC 6 51 z ee 3 177 3 885 8 54 234 53 amp Gum D 2 E _ 5 35 gt 3 8 N 2 Heg egee t 991 600 BAV99 lt 4 228 28 lt 22 20 gt oS
40. lp 81200 Memory Sequence Programmer Mini EMI JautoDetect Lin Master Mini EMIx Messages B CRC locked 2 Fig 13 MM Programmer Chose the Mini Push the Diagnose button gt This message should appear gt gt gt info Hardware successfully checked E Mlx MM Programmer C Program Files Common Files Melexis Sha F7 ni x File Tools Help 81200 Memory Sequence Programmer Mini 7 AutoDetect 4 amp Driver MiniEMIs sys 1 7 0 0 4 5 USBSAO070014 ad 1 ver 3 0 high speed 9 Melexis Mini VID 3E9 amp PID A508 4 4 Firmware C Program Files Common Files Melexis Shared 200 252005256 2007 11 12 15 20 09 8 Serial Number 7 0 Power 200m All EndPoints connected Toggle 8051 Reset 01 Load firmware in Cypress Toggle 8051 Reset 00 11 EndPoints connected Xilinx Reset sucessfull Xilinx loaded sucessfully Hardware sucessfully checked Elapsed 2 5865 CRC locked 2 14 E MIx MM Programmer checking connected emulator MLX81200 SW Development kit Page 26 48 Rev 1 5 12 02 09 Author ERE SW Development Kit Description 81200 BLDC Motor Controller Melexis Microelectronic Integrated Systems Select tab Pattern and go to pattern POWER ON Push the Execute button gt in addition to Power 02
41. n board 5 3 8 Evaluation board Reset Resets are always active low and can be achieved by the following options e Turning off the power switch on the Evaluation board resets all components of the Evaluation board as soon as the charge of the block capacitors falls below the reset threshold level In case of working with the Mini E Mlx Emulator there are two more reset options this is valid only for the digital part of the chip MelexCM Sending a new software x16 or elf file to the Emulator will reset the MelexCM chip automatically e Reset also be achieved by the Reset button of the PC Simulator Debugger software IMPORTANT Reset of the whole chip including the analog part can ONLY be achieved by turning off the power switch MLX81200 SW Development kit Page 18 48 Rev 1 5 12 02 09 Author ERE SW Development Kit Description 81200 BLDC Motor Controller Melexis Microelectronic Integrated Systems 5 4 Power board 5 4 1 Power board Electrical continues parameter The power board is designed for a maximum continues current up to 15 amps motor current Motor currents up to 40 amps are allowed for maximum 1 minute Higher currents up to 50 amps are only allowed for 5 seconds The SMD power transistors can be replaced by 220 types This type of transistors can be cooled with additional heat sinks 7 lt Fig 6 Power board
42. onnect the Mini E MLX Emulator programmer to the EVB Start the programmer software Programmen EMIxMMProg exe Select File Open to open the MIx81200 mmf file installed by MIx81200Conf x iojxi File No File loaded Diagnostic Hardware and software not yet checked 2054 Look in 200 109 7 includ 23 My Documents My Computer system ID Program Files Common Files Melexis Shared 23 Config gt Filename d ier Ma Places Abort Execute Messages Fig 11 MM Programmer Path to the MIx81200 mmf file Select Tools Options Programming tick checkbox Keep Supply between patterns E MIx MM Programmer C Program Files Common 5 xl File Tools Help 81200 Programming Editor Logging Keep supply between pattem Contact test Action after Programming or Erase C Do nothing C Dump Dump and compare to HEX Programming only Default byte FF Fig 12 MM Programmer Option keep supply between pattern MLX81200 SW Development kit Page 25 48 Rev 1 5 12 02 09 Author ERE SW Development Kit Description 81200 Melexis BLDC Motor Controller Microelectronic Integrated Systems Select tab Programmer choose from pull down menu Mini E mlx on Autodetect MM Programmer C Program Files Common Files Melexis Shar File Tools He
43. ppropriate file File gt Open Run the elf files by pressing the Go or Step icon Choose Target amp Engine x Target MI amp 1200 Using rl Simulator Mini Fig 9 Interactive Debugger Selecting Simulator or Emulator mode MLX81200 SW Development kit Page 23 48 Rev 1 5 12 02 09 Author ERE Melexis SW Development Kit Description MLX81200 BLDC Motor Controller Microelectronic Integrated Systems 7 pwm demo elf Melexis Interactive Debugger main c 41 Debug Tools Window es SO 8 0 184870 amp 1 ax Disassembly main c new_functions c 4bx lin h IO Interupt Flag 1 5 types h break main c 3 ioports MelexCM h 3 break ioports custom h H new functions c 2074 ml ReleaseBuffer 3 2078 return lin c n flashupload c tables h ml Linlnit c ApplicationStop c BLN DoD ieii cio didi deeds d nnn tlu_AutoAddPulse c int DataTransmitted c w 4 Breakpoints nx unsigned int long ADCValuei 0 Addre 88 LIN Initialization men ml Status iStatus 6 returnvalue for Lin Funktic Breakpoints list 2 73 ml LinInit Set Lin IDs Ox2D74 33 2D7E iStatus ml SetLinId LIN Status 0 01 LIN Status gt maea 2088 iStatus ml SetLinId LIN 0x02 Read gt ini
44. r 26 Button Close close the window Control load and return to the main window MLX81200 SW Development kit Page 38 48 Rev 1 5 12 02 09 Author ERE SW Development Kit Description 81200 BLDC Motor Controller Melexis Microelectronic Integrated Systems 8 5 Control Debug window Debug Window E File Help Microelectronic Integrated Systema 28 27 29 Sinestep 3 255 send Table Block 30 33 0 10 31 Parameter1 0 send parameters 3 parameter 0 Fig 27 Control Debug window 27 Pull down menu open table load a saved sine table save table save the sine table save table as save the sine table to a selected path close window close the debug window 28 Sine table each element can be chosen by mouse and modified with field 29 29 Edit field Sinestep the value for each sine step can be modified direct or with up down buttons 30 Button set default Block setthe sine table to a default block 31 Button send Table send the table to the MLX81200 via LIN 32 Edit field ParameterO not used 33 Edit field Parameter1 not used 34 Edit field Parameter2 not used 35 Button send parameter not used 8 6 PID controller and PC program The firmware revision 1 6 for the MLX81200 BLDC Demokit includes PID controller After the button Start is pressed the start algorithm begins to rotate the motor After a defined number of motor states ECM must be
45. rd rev 1 4 top layer 45 9 7 Assembly drawing MLX81200 Power Board rev 1 4 bottom layer e eeeeeee scere eene nennt 46 9 8 order 47 WISIS ni 47 T iesi sor eint deso ies iosten ensin EEUE N NEEE ENEA EES rE ESE SENEE E Eris iS 48 MLX81200 SW Development kit Page 2 48 Rev 1 5 12 02 09 Author ERE Melexis Microelectronic Integrated Systems 1 Introduction SW Development Kit Description MLX81200 BLDC Motor Controller This document is intended to give a brief introduction of the different parts of the SW Development kit for the ASSP MLX81200 The aim of this document is to support a fast start up with this kit Besides this document several other important documents are necessary for a deeper understanding of more detailed development issues The most important documents related to the MLX81200 are MLX81200 Datasheet MLX82001 Product Specification Melexis development system GNU C Compiler GCC Melexis emulator flash programming SW Melexis emulator SW Mlx16 C Debugger Mlx16 CPU Simulator MIx16X8 Data book Melexis Lin Master documentation MelexCM LIN API including required SW files MLX81200 BLDC Demo Kit firmware detailed description of the chip with all functions and features MelexCM Datasheet and underlying documentation of different blocks include
46. stems 5 Hardware Kit 5 1 Configuration e Evaluation board in conjunction with the Mini E MLX Emulator e Used for In Circuit debugging e Flash programming possible e LIN Communication possible Fig 3 Arrangement of Evaluation board in conjunction with Power board Mini E MLX Emulator BLDC motor and Melexis USB LIN Master MLX81200 SW Development kit Page 12 48 Rev 1 5 12 02 09 Author ERE SW Development Kit Description MLX81200 BLDC Motor Controller Melexis Microelectronic Integrated Systems 5 2 General The purpose of the HW kit is the development of software for the MLX81200 BLDC Motor Controller Using this HW kit the device can be evaluated in a detailed fashion The evaluation system is composed of an evaluation board and the power board The idea of the evaluation system is to have two stand alone boards e A standard board evaluation board is used for all possible applications It consists of a socket for the chip several pin headers for all signals from the chip and interface connectors to the Emulator LIN Bus and the application board power board e customized application board power board has to be designed specifically for a certain application by the user It is possible to connect this power board on 32 pin connector The sample power board consists of 3 half Bridges with N FET transistors 2 shunts for possible current supervision and interface connectors to Vbat and the BLDC Motor
47. th button 10 send the adjusted PWM value to the MLX81200 adjust motor speed send to MLX81200 with button 12 send the adjusted speed value to the MLX81200 start the motor Note The default speed target after start command is 1200U min stop the motor immediately shows the current motor speed PWM value motor status and the current Note If the CAN interface is used the value of the current will not be transferred Click this button to get the actual status of the motor shown in 15 Note the received values of the PWM and speed will be transferred automatically to the control bars 9 and 11 get the motor status and send the target speed value every 150 ms Page 37 48 Rev 1 5 12 02 09 SW Development Kit Description Melexis MLX81200 BLDC Motor Controller Microelectronic Integrated Systems 8 4 Control Load window 81200 Load control 18 Fig 26 Control Load window 18 Control bar Load adjust the load value send to brake board with button 19 19 Button send Load send the adjusted load value to the brake board 20 Button Enable switch the load on 21 Button Disable switch the load off 22 Status window Current shows the actual current of the load 23 Button Get status click this button to get the actual current of the load shown in 22 24 Button Connect LIN connect the LIN master if the CAN interface is used in main window 25 Button Disconnect disconnect the LIN maste
48. tial 2092 iStatus ml SetLinId LIN DCConfig 0x03 Config gt initit 2 9 iStatus ml SetLinId Config 0x04 Config gt 10116 2DA6 iStatus ml SetLinId LED Switch 0 05 LED ON Off initit aktivate Bus gt 3 iStatus ml Connect seio C smoved E P TENTS ENG a si und aid Status 0 un LinFrameBuffer 5 0500 00000000 2074 int lt lt Click here to add new item gt gt 1 0030 02 26 amp 0032 03 B3 0034 10 47 G 0036 07 73 s 0038 02 B3 003 16 47 G 003 06 73 s 003 06 4C L 0040 85 39 9 0042 07 4C Value x 801 2574 I 10 Interupt Flag 0 un a x PC 5 AKTIV 0 36571162 unsigned long H LinFrameBuffer 1 0500 y 5 1 M 1723 2074 int 5 C em AD ur Stopped at breakpoint lena E Mlx MM on L ftot Mix81001 Stopped Fig 10 Melexis Interactive Debugger session MLX81200 SW Development kit Page 24 48 Author ERE Rev 1 5 12 02 09 SW Development Kit Description 81200 BLDC Motor Controller Melexis Microelectronic Integrated Systems 6 2 Programming a HEX file to the FLASH Connect the Mini E MLX Emulator to the PC an USB cable Insert a MLX81200 into the socket and power up the EVB C
49. tion If the file structure is changed or the source files are modified the tool will not work correctly Note The save function will overwrite the files motorctrl h sysdef h ramppar c config chip mk and the application Makefile with a defined content That means any modification will be lost The Software configuration tool does NOT include any source code for the MLX81200 The required firmware source files package Vx x DemokKit can be found on the Melexis Softdist server The firmware needs to be unpacked to a local folder on the PC Please make sure that directory path does not contain any spaces The SCT is divided into three major parts Part 1 locate the demokit firmware sources Part 2 configure the motor control parameters Part 3 compile the firmware and flash the firmware into the IC via the pin LIN A working loader inside the IC is necessary for a successful flash process Melexis will deliver preprogrammed devices which include an initial working loader code If the preprogrammed loader code was destroyed the first step must be always the programming of the loader software via test interface This step can only be executed via the programmer software or debugger using E mlx Emulator MLX81200 SW Development kit Page 28 48 Rev 1 5 12 02 09 Author ERE SW Development Kit Description Melexis MLX81200 BLDC Motor Controller Microelectronic Integrated Systems For programming file to the flash
50. to ST3 amp 4 2 3 virtual star point used R17 R18 and R19 are used to create the virtual star point ST1 Evaluation board connector ST2 Power terminal 51384 BLDC motor terminal ST9 Hall sensor connector ST10 5 0 3 input connector ST17 BLDC demo kit motor connector MLX81200 SW Development kit Page 21 48 Author ERE SW Development Kit Description 81200 BLDC Motor Controller Rev 1 5 12 02 09 Melexis Microelectronic Integrated Systems SW Development Kit Description MLX81200 BLDC Motor Controller 5 4 5 Power board motor connectors ST3 amp 4 and ST17 WY oU T Connector ST3 amp 4 on Power board eee Pin Name Description U Phase U V Phase V Phase W T Real star point 10 Connector ST3 amp 4 on Power board 13 onnector ST17 on Power board Pin Name Description 1 Phase U 2 Phase V 3 Phase W Tbl 11 Connector ST17 on Power board 5 4 6 Power board hall sensor connectors ST9 and ST10 1 5 onnector ST9 on Power board Pin Name Description 1 V5EXT IC Pin 2 2 GND 3 SWO IC Pin 22 hall sensor input 4 5 1 IC Pin 21 hall sensor input 5 SW2 Pin 20 hall sensor input 6 Not used Tbl 12 Connector ST9 on Power board 1 4 Connector ST10 GND Pin Name Description 1 5 0 22 2 SW1 Pin 21 3 SW2
51. uiring extended temperature range unusual environmental requirements or high reliability applications such as military medical life support or life sustaining equipment are specifically not recommended without additional processing by Melexis for each application The information furnished by Melexis is believed to be correct and accurate However Melexis shall not be liable to recipient or any third party for any damages including but not limited to personal injury property damage loss of profits loss of use interrupt of business or indirect special incidental or consequential damages of any kind in connection with or arising out of the furnishing performance or use of the technical data herein No obligation or liability to recipient or any third party shall arise or flow out of Melexis rendering of technical or other services 2008 Melexis NV All rights reserved For the latest version of this document go to our website at www melexis com Or for additional information contact Melexis Direct Europe and Japan All other locations Phone 32 1367 0495 Phone 1 603 223 2362 E mail sales_europe melexis com E mail sales_usa melexis com ISO TS 16949 and ISO14001 Certified MLX81200 SW Development kit Page 48 48 Rev 1 5 12 02 09 Author ERE
52. us when developing an application 4 2 3 Directory structure of the Demo Software The setup works with relative paths so it can be copied into any top level directory NOTE Please make sure that directory path does not contain any spaces It contains the following folders bin Utilities config Makefile configurations doc Documentation related to general MelexCM platform software include Common libraries include directory lib Common libraries a library object files and linker files mmf Test controller files and tools libsre Root of the common libraries sources libsre lib Source code of the common libraries libsrc LIN LIN library source code libsrc math Math library source code projects Root of the projects sources projects Examples Projects which are independent from analogue chip periphery projects 81200 Root of the MLX81200 project projects 81200 include The MLX81200 specific declarations analogue port names etc projects 81200 sre The MLX81200 common versions of the product specific functions analog trimming power down and vectors S and projects projects LINLoader LIN pin loader source code LIN mode or standalone 4 Folder description MLX81200 SW Development kit Page 11 48 Rev 1 5 12 02 09 Author ERE SW Development Kit Description MLX81200 BLDC Motor Controller Melexis Microelectronic Integrated Sy

Download Pdf Manuals

image

Related Search

Related Contents

Manutenzione  français  Samsung WF8700S6C คู่มือการใช้งาน  english - Reloop  Parement à clin  

Copyright © All rights reserved.
Failed to retrieve file