Home

Inductor Heater (Half Bridge) Software User Manual

image

Contents

1. free run timer clock 1 4 MCLK up down mode I2C bus clock MCLK Fsck 83K interrupt mode ADC clock 1 4 MCLK 10bit data format start by AD bit base timer 2ms port according to the function of the port Table 6 1 Initial State The system is initialized to power off state with all display off 6 2 Power Adjustment The Induction Cooking board works on the principle of a series L C resonant circuit When the size of L and C are set the resonant frequency is set as well Unfortunately this value does not depend only on the resonant tank In fact the size and material of the pot affect the resonant frequency too This causes the system to have an oscillatory resonant frequency strongly depending on the type of pot placed on the plate So each power level does not work on a constant PWM frequency but a constant current In this system the power adjustment includes two steps fast adjustment and slight adjustment The fast adjustment is done per second before the real power level equals to the target power level The slight adjustment will be done after the fast adjustment is completed MCU AN 500077 E 10 Page 20 co Inductor Heater Half Bridge User Manual V1 0 Chapter 6 Contents FUJITSU 6 3 Pot Detection Actually the inductor heater won t heat if there is no pot on the heat plate that is protection act in fact Before heating the system will output a period of pulse sequence
2. 5 6 1 Function List Prototype Description void Protect void Get the protect resource inputs and do protection when illegal events occur 5 6 2 Function Prototype e void Protect void Input void Output void Description Get the protect resource inputs and do protection when illegal events occur Note This function is called in main loop MCU AN 500077 E 10 Page 18 co Inductor Heater Half Bridge User Manual V1 0 Chapter 5 Contents FUJITSU 5 7 Others 5 7 1 Function List Prototype Description void FanCtrl void Control the fan void BuzzerCtrl void Control the buzzer 5 7 2 Function Prototype void FanCtrl void Input void Output void Description Control the fan Note 1 When the OCU is enabled the fan will run 2 When the OCU is disabled the fan will go on running for 1minute void BuzzerCtrl void Input void Output void Description Control the buzzer Note Each sound will last for 200 ms MCU AN 500077 E 10 Page 19 co FUJITSU Inductor Heater Half Bridge User Manual V1 0 Chapter 6 Important Details 6 Important Details 6 1 Initialization Table 6 1shows the modules and peripherals used in this system and their initial state Module or peripheral Initial state system clock main osc clock 8MHz MCLK 4MHz CLK MCLK up down mode output disabled buffer output compare unit enabled HW STOP enabled
3. and measuring the AC current If there is a pot on the heat plate the current will be much higher than that there is no pot on the heat plate Figure 6 1 shows the flow of pot detection otDectec Counter lt 60 EE notin stop process Enable OCU Step Get AC Average Current Current during Value gt Thresh Pot Exist 200ms old Delay 800ms PotDetect Counter Disable OCU Step 0 Step Start to heat Standby mode Figure 6 1 Pot Detection 6 4 Mode Switch This inductor heater has three modes constant power constant temperature and timing The two modes ahead are mutually exclusive The timing mode can coexist with one of others In constant power mode the system will keep the power output stable In constant temperature mode the system will keep the temperature of the pot bottom stable If timing mode is selected the system will run in constant power mode or constant temperature mode until the time is out then the system will enter standby automatically MCU AN 500077 E 10 Page 21 co FUJITSU Inductor Heater Half Bridge User Manual V1 0 Chapter 6 Important Details 6 5 Protection There are five kinds of protection for this system over current surge over voltage IGBT over temperature pot over temperature and pot removed protection Over current is implemented by comparator 1 it will monitor the resonant current flowing the resonant tank When over current occurs the system will
4. portions thereof must not be exported without permission as defined under the law 2008 Fujitsu Microelectronics Shanghai Co Ltd MCU AN 500077 E 10 Page 2 Inductor Heater Half Bridge User Manual V1 0 FUJITSU Contents Contents REVISION HISTORY E 2 KR e 5 Wel About This BOOK poe M 5 T Reference EE 5 2 SYSTEM HARDWARE ENVIRONMENT wesssssscssssssncssnsssncesnsssesesnsssesesnssnesesnsssnsennene 6 3 DEVELOP ENVIRONMENT Zieser 7 4 OVERVIEW OF SYSTEM sicxi cataciiucaiuxiidtu eu icm dud ida dui ix nu dx idc idm cR iic 8 41 Main L p MIT 8 LOOAME 2o oct REEE 9 5 FUNCTION DESCRIPTION eer 10 51 a lt lt f the E 10 52 Initialization EE 11 S XEM CUM mS 12 5 3 1 mU esie EIST ec M 12 5 3 2 Function Prototype eegene eege eege eege 12 5 4 Power Management EE 13 5 4 1 PMNS UO EEN 13 5 4 2 EREECHEN C 13 55 Di pl y and Key e 15 5 5 1 aUe E 15 5 522 Puncuon Prototype mesener ENER EE 15 E ee eR 18 5 6 1 ST COA UNG imienne edee A a a 2 a9 040 ARE Da Ad 18 Bb Function Ge 18 5 7 Ote EE 19 5 7 1 QU esie E 19 5 7 2 Function POO rn a eee eee eee 19 6 IMPORTANT DE ET 20 61 MOMMA AMON EE 20 6 2 Power Adjustment E 20 Gis Pot E EE 21 64 TE e EE 21 p 5 REESEN EE Ee e 22 6 6 Key Gin display EEN 22 MCU AN 500077 E 10 Page 3 FUJITSU In
5. Contents FUJITSU 8 Appendix 8 1 List of Figure Figure 4 1 Main oM m 8 Figure e EE 9 Figure Ss 1 Pot Detection EE 21 8 2 List of Table Table 4 1 Related Elles sss 10 Table 6 1 Initial State ieri 20 Table 6 2 Important Variable and Flag 23 MCU AN 500077 E 10 Page 25 ca FUJITSU Inductor Heater Half Bridge User Manual V1 0 Chapter 8 Appendix 8 3 MCU Usage Pin Number Pin Name Function 1 PG2 PPGO X1A OUT1 Sub clock 2 PG1 TRGO ADTG X0A Sub clock 3 Vcc Vcc 4 C C 9 P60 OPAM P Fan 6 P61 OPAM N LED COMO 7 P62 OPAM O SYS PW 8 P12 EC0 UI DBG DBG 9 P00 INTOO ANOO System voltage measuring 10 P01 INTO1 ANO1 BZ Buzzer 11 P02 INTO2 ANO2 UCK NULL 12 POS INTOG ANOS UO SDA for GC 13 PO4 INTO4 ANO4 UI SCL for DC 14 P05 INTO5 ANOS TOO System current measuring 15 PO6 INTOG ANOG TO1 Plate temperature measuring 16 P07 INTO7 ANO7 ECO IGBT temperature measuring 17 P70 CMPO O OUTO IGBT driver H 18 P71 CMPO P LED COM2 19 P72 CMPO N LED COM3 20 P73 CMP1 O OUT1 IGBT driver L 21 P74 CMP1 P OC protection reference voltage 22 P75 CMP1 N OC input 23 P76 CMP2 O UCK LED COM1 24 P63 CMP2 P Surge protection reference voltage 25 P64 CMP2 N Surge input 26 P65 CMP3 O UO LED COM4 27 P66 CMP3 P Short circuit protect reference voltage 28 P67 CMP3 N Short circuit protect 29
6. Fujitsu Microelectronics Shanghai Co Ltd Se User Manual FUJITSU Inductor Heater Half Bridge Software User Manual co FUJITSU FUJITSU Inductor Heater Half Bridge User Manual V1 0 Revision History Hevision History Author Change of Records 2010 04 06 Kevin Lin V1 0 0 First draft 2010 08 10 Kevin Lin V1 1 0 update the main loop figure Initialization value 2010 11 17 Kevin Lin V1 1 1 update error code list This manual contains 27 pages The products described in this manual and the specifications thereof may be changed without prior notice To obtain up to date information and or specifications contact your Fujitsu sales representative or Fujitsu authorized dealer Fujitsu will not be liable for infringement of copyright industrial property right or other rights of a third party caused by the use of information or drawings described in this manual The contents of this manual may not be transferred or copied without the express permission of Fujitsu The products contained in this manual are not intended for use with equipment which requires extremely high reliability such as aerospace equipments undersea repeaters nuclear control systems or medical equipments for life support Some of the products described in this manual may be strategic materials or special technology as defined by the Foreign Exchange and Foreign Trade Control Law In such cases the products or
7. PF2 RSTX Reset 30 PFO XO oscillator 31 PF1 X1 oscillator 32 Vss Vss MCU AN 500077 E 10 Page 26 co Inductor Heater Half Bridge User Manual V1 0 Chapter 8 Contents FUJITSU 8 4 ErrorCode Error Code Description Notes EO HW STOP is set the power supply is lower E1 Low voltage than 185V E2 Over voltage the power supply is higher than 256V E3 Pot temperature sensor is short E4 Pot temperature sensor is open ES IGBT temperature sensor is short E6 IGBT temperature sensor is open the temperature of pan ei Pan over temperature bottom is higher than 200 C f IGBT i E8 IGBT over temperature he sempera re o aa e higher than 80 C MCU AN 500077 E 10 Page 27
8. break for 30 s Surge is implemented by comparator 2 it will monitor the rectifier module output voltage When Surge occurs the system will break for 30 s Over voltage protection will protect the system from high voltage 256VAC or low voltage 187VAC input If that happens the system will stop and alarm ADC channel 0 is used to monitor the AC voltage IGBT over temperature is implemented ADC channel ANO7 When the temperature of IGBT is higher than 80 centigrade degree the system will stop until the temperature return to normal area If the temperature of pot bottom exceeds 200 centigrade degree The pot over temperature protection will take effect the system will stop until the temperature return to normal area If the pot is removed during heating the OCU also will stop to protect the IGBT stage The error code can be found in chapter 8 Appendix 6 6 Key and display The key and display function is mainly implemented using AT5088 that is a capacity touch chip It exchange the key and display data with MCU by hardware I2C bus The MCU will communicate with AT5088 once per 2ms The user can found the code in the file DisplayandKey c MCU AN 500077 E 10 Page 22 Inductor Heater Half Bridge User Manual V1 0 FUJITSU Chapter 6 Contents 6 7 Important variable and flag Figure 6 2 shows the important variable and flag as below Variable or flag Description Mode 0 standby mode mode 1 constan
9. ductor Heater Half Bridge User Manual V1 0 Revision History 6 7 Important variable and Tag 23 7 ADDITIONAL INFORMATION sss sss sss sss sss sss sees nennen nennen nnn nnn nnn nnn nnn nnne nnn nnns 24 SEP idc np f 25 8 1 Listof Eeer 25 LM List OF Jabbar 25 8 3 MGU cp te iai HR 26 EE 4 6916 6746 ae ee eee eRe ere ete ere eee eee ee eee ere ee 27 MCU AN 500077 E 10 Page 4 co Inductor Heater Half Bridge User Manual V1 0 Chapter 1 Contents FUJITSU 1 Preface 1 1 About This Book This book provides a detailed description of the half bridge inductor heater software The user could have an overlook to the structure of the code after reading this manual The software is developed based on MB95F430 serious MCU Table 1 shows the summary of chapters included in this manual Chapter Title Description Preface This chapter introduces the content of this book System hardware This chapter introduces the MCU environment Development environment This chapter introduces the development tools Overview of system This chapter describes the main loop and project Function description This chapter describes the function list and prototype Important details This chapter explains some detail information Additional Information This chapter gives the website for this document Appendix This chapter gives the MCU pin usage and e
10. e 14 co Inductor Heater Half Bridge User Manual V1 0 Chapter 5 Contents FUJITSU 5 5 Display and Key 5 5 1 Function List Prototype Description void DoKey void Parse the key value void DisplaySetting void Update the display content void ErrorDisplay void Display the error code void NormalDisplay void Display normal content void ConfirmSetting void Make a 5s delay before confirming the settings uchar DECtoBCD uchar Convert decade code to BCD code DecValue uchar AT5088 Read uchar Read given register of AT5088 through l2C chip id uchar Addr module void AT5088 Write uchar Write given register of AT5088 through DC chip id uchar Addr uchar Data module 5 5 2 Function Prototype e void DoKey void Input void Output void Description Parse the key value Note This is the button definition and corresponding code below ON OFF 0x40 TIMING 0x80 INCREASE 0x20 DECREASE 0x10 RIGHT 0x08 LEFT 0x04 CONST PWR 0x02 CONST TEMP 0x01 MCU AN 500077 E 10 Page 15 ca FUJITSU Inductor Heater Half Bridge User Manual V1 0 Chapter 5 Function Description e void DisplaySetting void Input Output Description Note void void Update the display content Update the display content including error display and normal display If the error code is 0 normal display routine will be executed otherwise the error display r
11. eted then check the PotExt bit 42 else if Flag1 PotExt 43 44 H 45 if Flag1 StartTiming 46 47 HeatTiming a Bn I i i Figure 4 2 Project MCU AN 500077 E 10 Page 9 ca FUJITSU Inductor Heater Half Bridge User Manual V1 0 Chapter 5 Function Description 5 Function Description 5 1 Overview of the File Table 4 1 shows the files used in this project Function Files Description IH c Main application code Header file with extern definitions for main l general h f Main Function unction def h Header file with macro definitions mb95430 h Header file with I O and register definitions E InitMCU c Initialize all modules and peripherals Initialization involved def h mb95430 h As described ahead System Timer BaseTimer c Afford time tick for system def h As described ahead Power Management PowerOutput c The file contains running mode and power adjustment functions poweroutput h Header file with function and variable definitions for power management def h mb95430 h As described ahead Display and Key DisplayandKey c The file with key parsing display setting and scanning interrupt functions displayandkey h Contains the BCD code function and variable definitions used in displayandkey c def h mb95430 h As described ahead Protection Protect c Detect the protect resource and do protect actions when
12. illegal case occurs def h mb95430 h As described ahead Buzzer and Fan BuzzerandFan c Buzzer and fan will be controlled in this file def h mb95430 h As described ahead Base Timer basetimer c time ticks System file startup asm Start file vector c Configure the vector priority and address Table 4 1 Related Files MCU AN 500077 E 10 Page 10 co Inductor Heater Half Bridge User Manual V1 0 Chapter 5 Contents FUJITSU 5 2 Initialization 5 2 1 Function List Prototype Description void InitMCU void Initialize the modules and peripherals used in this application 5 2 2 Function Prototype e void InitMCU void Input void Output void Description Initialize the modules and peripherals used in this application Note These modules or peripherals will be initialized System clock Ports Buzzer OCU and FRT I2C module ADC Voltage comparators o N D S qe o No Base timer MCU AN 500077 E 10 Page 11 FUJITSU Inductor Heater Half Bridge User Manual V1 0 Chapter 5 Function Description 5 8 System Timer 5 3 4 Function List Prototype Description void System Tick void void BaseTimer ms void Afford four millisecond tick to system void BaseTimer s void Afford second tick to system 5 3 2 Function Prototype void System Tick void Input void Output void Descripti
13. l shut down the system when the time is e void ConstantPowerMode void Adjust the power level according to the setting value and keep the power output stable Input void Output void Description Note When the PowerLevel isn t equal to PowerLevel_old do fast adjustment then slight adjustment The range of power level is 0 8 0 min power 8 max power MCU AN 500077 E 10 Page 13 ca FUJITSU Inductor Heater Half Bridge User Manual V1 0 Chapter 5 Function Description e void ConstantTempMode void Input Output Description Note void void Adjust the power output time according to temperature of the pot bottom and keep it stable The temperature can be set from 50 to 100 degree e void AdjustPower void Input Output Description Note void void Measure the current value and keep it stable no e void StopOCUPro void Input Output Description Note void void Stop the OCU output softly To decrease the influence to power line when power off the system has to shut down step by step with power level decrease e void SetOCU uchar Frequency Input Output Description Note void void Set the OCU frequency when the frequency is 0 the OCU will stop with pins cleared e unsigned int ADC uchar channel Input Output Description Note void void Get the voltage value on target channel no MCU AN 500077 E 10 Pag
14. n the 2ms interrupt Initialize MCU Fan amp amp Buzzer Power Off Protection Display Setting Power On Enter Standby Constant PotDetecting Temp Heating Pot Available Timing Figure 4 1 Main Loop MCU AN 500077 E 10 Page 8 co Inductor Heater Half Bridge User Manual V1 0 Chapter 4 Contents FUJITSU 4 2 Project Figure 4 2 shows the project gs SOFTUNE Workbench test0731 IH c File Edi View Project Debug Setup Window Help Workspace test0731 EI test0731 abs test Source Files e C EI apc c JO DIQ E BaseTimer c 11 InitIrqLevels EI BuzzerandFan c 12 InitHCU E Displayandkey c 13 EI E GC 14 mE m 15 DeftSetting EI InitMCU c 16 e PowerOutput c 17 while 1 EI Protect c 18 E startup asm 19 System Tick E vectors c 28 DoKey handler t Include Files 21 DisplaySetting Bl F2mcafx h 22 FanDlyStop E def h 23 BuzzerCtr1 H displayandkey h 24 Start CUPro delay 1s I2C h 25 i h b 26 Ze H mb95430 h 27 all below will not be excuted unless i poweroutput h 28 the power is on and no error Dependencies 29 x Y Bg Debug 38 if Hode t STANDBY MODE 31 H 32 check if need to dectet pot x 33 if Flag1 PotDetect amp Flag1 PotExt 34 H 35 36 this function will produce a flag to indicate 37 that there is a pot on the plate or not 38 Mi 39 PotDetect 40 H 1 pot detecting compl
15. on no Note this function is called in main loop void BaseTimer ms void Input void Output void Description generate millisecond tick Note this function is called in System Tick void BaseTimer s void Input void Output void Description generate second tick Note this function is called in System Tick MCU AN 500077 E 10 Page 12 Inductor Heater Half Bridge User Manual V1 0 co FUJITSU Chapter 5 Contents 5 4 Power Management 5 4 4 Function List Prototype Description void PotDetect void Detect the pot void HeatTiming void Kill the time of heat void ConstantPowerMode void Adjust the power level according to the setting value and keep the power output stable void ConstantTempMode void Adjust the power output according to the temperature of the pot bottom and keep it stable void AdjustPower void Keep the current stable void StopOCUPro void Stop the OCU output softly void SetOCU uchar Frequency Set the OCU frequency uint ADC uchar channel Get the voltage value on target channel note uchar is short of unsigned char uint is short of unsigned int 5 4 2 Function Prototype e void PotDetect void Input void Output void Description Note no e void HeatTiming void Input void Output void Description Note out Detect the pot Kill the time of heat This function wil
16. outine will be executed e void ErrorDisplay void Input Output Description Note void void Display the error code This function is called in DisplaySetting e void NormalDisplay void Input Output Description Note void void Display the normal content This function is called in DisplaySetting e void ConfirmSetting void Input Output Description Note void void Make a 5s delay before confirming the settings Each touch for setting will refresh the 5s counter This function is called in DoKey e uchar DECtoBCD uchar DecValue Input Output Description Note uchar DecValue BCDCode Convert decade code to BCD code the max input decade value is 999 MCU AN 500077 E 10 Page 16 co Inductor Heater Half Bridge User Manual V1 0 Chapter 5 Contents FUJITSU e uchar AT5088 Read uchar chip id uchar Addr Input uchar chip id uchar Addr Output uchar Button Description Enable to read the given register of AT5088 through I2C module Note This function is called in TimerBase ISR e void AT5088 Write uchar chip id uchar Addr Input uchar chip id uchar Addr Output void Description Enable to write the given register of AT5088 through DC module Note This function is called in TimerBase ISR MCU AN 500077 E 10 Page 17 FUJITSU Inductor Heater Half Bridge User Manual V1 0 Chapter 5 Function Description 5 6 Protection
17. rror code Table 1 1 Chapter Summary 1 2 Reference Material Use this book in conjunction with e Inductor Heater Half Bridge Demo Board User Manual v1 1 0 MCU AN 500077 E 10 Page 5 FUJITSU Inductor Heater Half Bridge User Manual V1 0 Chapter 2 System Hardware Environment 2 System Hardware Environment gt CPU Chip Fujitsu MB95F434H gt CPU Frequency 8MHZ gt Instruction Time 0 25us gt Ram Space 496Bytes gt Flash Space 20KBytes MCU AN 500077 E 10 Page 6 Inductor Heater Half Bridge User Manual V1 0 Chapter 3 Contents co FUJITSU 3 Develop Environment Name Description Manufacturer Notes Windows XP Pro PC OS Microsoft SP2 Softune V3 Mar cc Fujitsu For FFMC 8L MB95F434H 2 Emulator MCU Emulator Fujitsu MCU AN 500077 E 10 Page 7 FUJITSU Inductor Heater Half Bridge User Manual V1 0 Chapter 4 Overview of System 4 Overview of System 4 1 Main Loop Figure 4 1 shows the main loop of the software When the system is powered on and the BUTTONG is touched the system will run in standby mode User can choose constant power mode or constant temperature mode by touch different button The key and display scanning is implemented in basetimer interrupt The period is 2ms Key parsing and display content setting is done in main loop There are two time ticks in this system four millisecond and second two of them are based o
18. t power mode 2 constant temperature mode PowerLevel new power level that user can select level 0 level 8 PowerLevel new buf power level buffer for flicker display when setting level 0 level 8 PowerLevel old the previous power level level O level 8 PotTemp Pot temperature that user can set 50 100 degree PotTempbuf Pot temperature buffer for flicker display when setting PotTempExt the actual temperature of pot Hour the hour value that user can set 0 1 Minute the Minute value that user can set 1 59 DisplayVaule 4 the array contains display content BCDCode 10 BCD code for display CrntArray 6 Current value to corresponding to power level PulseFreq 8 base frequency of each power level Flag1 ONorOFF 1 ON 0 OFF Flag1 PotDetect 1 detect pot 0 don t detect pot Flag1 PotExt 1 pot exists 0 no pot Table 6 2 Important Variable and Flag MCU AN 500077 E 10 Page 23 G FUJITSU Inductor Heater Half Bridge User Manual V1 0 Chapter 7 Additional Information 7 Additional Information For more information on FUJITSU MICROELECTRONICS products please visit the following website at Simplified Chinese Version http www fujitsu com cn fmc services mcu mb95430 English Version http www fujitsu com cn fmc en services mcu mb95430 MCU AN 500077 E 10 Page 24 co Inductor Heater Half Bridge User Manual V1 0 Chapter 8

Download Pdf Manuals

image

Related Search

Related Contents

HP CP1215 User's Manual  THERMOSALD ISC  日本電子工業株式会社  Untitled - Lanaform  starting the engine  Manual del Usuario 2013 Corregido    Bula do VITA B COMPLEXO    User Manual  

Copyright © All rights reserved.
Failed to retrieve file