background image

Induction Heater C Library V1.1 

Chapter 7 8BDriver Function 

7.2.4  PowerOn () 

Prototype void 

PowerOn(void) 

Output void 

Input void 

Description 

Turn on the system, and set in the braise mode. 

 

7.2.5  PowerOff () 

Prototype void 

PowerOff(void) 

Output void 

Input void 

Description 

Turn off the system. 

 

7.2.6  PWMSet (int cycle,int duty) 

Prototype 

void PWMSet(int cycle,int duty) 

Output void 

Input Cycle,duty 

Description 

Set the PWM. The cycle must be greater than the duty. 

 

7.2.7  PwmOn () 

Prototype void 

PwmOn(void) 

Output void 

Input void 

Description 

Turn on the PWM driver. 

 

7.2.8  PwmOff () 

Prototype void 

PwmOff(void) 

Output void 
Input void 

Description 

Turn off the PWM driver. 

 

7.2.9  FanOn () 

Prototype void 

FanOn(void) 

Output void 

Input void 

Description 

Turn on the fan. 

 

7.2.10 FanOff () 

Prototype void 

FanOff(void) 

Output void 

Input void 

MCU-AN-500089-E-11 – Page 16 

Содержание MB95F430 Series

Страница 1: ...Fujitsu Semiconductor Shanghai Co Ltd User Manual MCU AN 500089 E 11 F MC 8FX FAMILY 8 BIT MICROCONTROLLER MB95F430 SERIES INDUCTION HEATER C LIBRARY USER MANUAL ...

Страница 2: ...rd party caused by the use of information or drawings described in this manual 3 The contents of this manual may not be transferred or copied without the express permission of Fujitsu 4 The products contained in this document are not intended for use with equipment which require extremely high reliability such as aerospace equipment undersea repeaters nuclear control systems or medical equipment f...

Страница 3: ...M FUNCTION 10 5 1 Global Variable 10 5 2 Function List 10 5 3 Function Prototype 10 5 3 1 InitSys 10 5 3 2 GetKey 10 5 3 3 ParseKey 10 5 3 4 EventProc 10 5 3 5 Display 11 6 EVENT FUNCTION 12 6 1 Function List 12 6 2 Function Prototype 12 6 2 1 ModeCaoCai 12 6 2 2 ModeHuoGuo 12 6 2 3 ModeDunCai 12 6 2 4 ModeBaoTang 13 6 2 5 ModeBaoWen 13 6 2 6 WattInc 13 6 2 7 WattDec 13 6 2 8 TmrInc 13 6 2 9 TmrDe...

Страница 4: ...2 9 FanOn 16 7 2 10 FanOff 16 7 2 11 VCInit 17 7 2 12 OPAMPInit 17 8 INTERRUPT FUNCTION 18 8 1 Function List 18 8 2 Function Prototype 18 8 2 1 Keyboard 18 8 2 2 ProtectIGBT 18 8 2 3 ProtectSys 18 8 2 4 IntCurOver 18 8 2 5 IntVolOver 19 8 2 6 IntSurge 19 8 2 7 IntKettle 19 9 DEMO SYSTEM 20 9 1 System Features 20 9 2 Software Design 21 9 2 1 User Interface 21 9 2 2 System Module 21 9 2 3 System Mai...

Страница 5: ...Induction Heater C Library V1 1 Chapter 1 2BIntroduction 1 Introduction This document introduces how to use the C library API to develop the induction heater based on MB95F434K MCU AN 500089 E 11 Page 5 ...

Страница 6: ...ary V1 1 Chapter 2 3BSystem Hardware Environment 2 System Hardware Environment CPU Chip Fujitsu MB95F434K CPU Frequency 16 25MHz Minimum Instruction Time 61 5ns Ram Space 496Bytes Code Space 20Kbytes MCU AN 500089 E 11 Page 6 ...

Страница 7: ... 3 Development Environment and Tools Name Description Manufacturer Notes Windows XP Pro PC OS Microsoft SP2 Softune V3 Software Developing IDE Fujitsu For FFMC 8L MB95F434K Emulator MCU Emulator Fujitsu Cadence SPB Design Schematic and PCB Cadence V16 0 MCU AN 500089 E 11 Page 7 ...

Страница 8: ...used to protect the system and calculate power The feedback signal includes current voltage surge and temperature 4 2 MCU Resource Usage MB95F434K Resource Usage No Resource Usage Info Remark 1 VCC 5 0V 2 ROM 15KBytes 3 RAM 300Bytes 4 OSC Clock 16 25MHz 5 CPU Clock 8 125MHz 6 GPIO 6 Pins LED COM 5 Start 7 INTxx 1 Pins Internal Pad osc 8 8 16Bit PPG Timer 1 Pins PPG 9 ANxx 4 Pins 10 UART0 LED Displ...

Страница 9: ...g 14 P05 INT05 AN05 TO0 HCLK2 AN05 AC Current Measuring 15 P06 INT06 AN06 TO1 AN06 Temperature for IGBT 16 P07 INT07 AN07 EC0 AN07 Temperature for plate 17 P70 CMP0_O OUT0 TRG0 P70 LED COM4 18 P71 CMP0_P CMP0_P PAD L Input 19 P72 CMP0_N CMP0_N PAD L Input 20 P73 CMP1_O OUT1 PPG0 PPG0 PPG IGBT 21 P74 CMP1_P CMP1_P Over Current Reference Input 22 P75 CMP1_N CMP1_n Over Current Compare Input 23 P76 C...

Страница 10: ...key Get the system event void EventProc int evt Process the event by the event value void Display Display process 5 3 Function Prototype 5 3 1 InitSys Prototype void InitSys void Output void Input void Description Initalize system 5 3 2 GetKey Prototype int GetKey void Output int return the key value Input void Description Get the user pushed key 5 3 3 ParseKey Prototype int ParseKey int key Outpu...

Страница 11: ...on Heater C Library V1 1 Chapter 5 6BSystem Function Description Process the event by the event value 5 3 5 Display Prototype void Display Output void Input void Description Display MCU AN 500089 E 11 Page 11 ...

Страница 12: ...Dec void Increase the timer s value void TmrRst void Reset and turn off the timer or start the timer void TempInc void Increase the temperature in stew mode void TempDec void Decrease the temperature in stew mode void ConstTempProc void Constant temperature heating process It is used in empty event 6 2 Function Prototype 6 2 1 ModeCaoCai Prototype void ModeCaoCai void Output void Input void Descri...

Страница 13: ... void Description Increase the watt 100w Range is from 200w to 2100w 6 2 7 WattDec Prototype void WattDec void Output void Input void Description Decrease the watt 100w Range is from 200w to 2100w 6 2 8 TmrInc Prototype void TmrInc void Output void Input void Description Increase the timer s value 1 minute Range is from 1 to 180 6 2 9 TmrDec Prototype void TmrDec void Output void Input void Descri...

Страница 14: ...t void Input void Description Increase the temperature 10 Range is from 60 to 180 6 2 12 TempDec Prototype void TempDec void Output void Input void Description Decrease the temperature 10 Range is from 60 to 180 6 2 13 ConstTempProc Prototype void ConstTempProc void Output void Input void Description Constant temperature heating process It is used in empty event MCU AN 500089 E 11 Page 14 ...

Страница 15: ...PwmOff void Turn off the PWM driver void FanOn void Turn on the fan void FanOff void Turn off the fan void VCInit void Initialize all the VC void OPAMPInit void Initialize the OPAMP 7 2 Function Prototype 7 2 1 GetADC int chl Prototype void GetADC int chl Output void Input Channel Range is 1 4 1 Voltage AN4 2 Current AN5 3 Igbt temp AN6 4 Pad temp AN7 Description get the ADC 7 2 2 BuzzerOn Prototy...

Страница 16: ...uty Prototype void PWMSet int cycle int duty Output void Input Cycle duty Description Set the PWM The cycle must be greater than the duty 7 2 7 PwmOn Prototype void PwmOn void Output void Input void Description Turn on the PWM driver 7 2 8 PwmOff Prototype void PwmOff void Output void Input void Description Turn off the PWM driver 7 2 9 FanOn Prototype void FanOn void Output void Input void Descri...

Страница 17: ...on Description Turn off the fan 7 2 11 VCInit Prototype void VCInit void Output void Input void Description Initialize all the VC 7 2 12 OPAMPInit Prototype void OPAMPInit void Output void Input void Description Initialize the OPAMP MCU AN 500089 E 11 Page 17 ...

Страница 18: ...urge void External interrupt service for surging void IntKettle void External interrupt service for no kettle 8 2 Function Prototype 8 2 1 Keyboard Prototype void Keyboard void Output void Input void Description Sample keyboard and parse key value It is used in 10ms timer interrupt Use 16bit timer 0 channel 8 2 2 ProtectIGBT Prototype void ProtectIGBT void Output void Input void Description Detect...

Страница 19: ... void Output void Input void Description External interrupt service for over voltage Use VC 2 channel 8 2 6 IntSurge Prototype void IntSurge void Output void Input void Description External interrupt service for surging Use VC 3 channel 8 2 7 IntKettle Prototype void IntKettle void Output void Input void Description External interrupt service for no kettle Use VC 0 channel MCU AN 500089 E 11 Page ...

Страница 20: ...Current Protect 18A Over Voltage Protect 270V Lower Voltage Protect 150V Surge Protect 1000V No Operation for 2 Hours auto turn off if no timer In the system design we will use some feedback signals to protect system or calculate watt The protect signal include over current over voltage surge voltage and kettle detect Anyone of them appears the system must stop work If the IGBT temperature is rais...

Страница 21: ...ou press On off it will work under thaw mode In any mode you can press On off to turn off or press to change the watt or the time when you are setting the timer When you want to heat food by timer you can press Timing to set and start the timer And you can press Cancel to cancel the timer You can press View to view the timer If the time is zero the timer is not started 9 2 2 System Module MCU AN 5...

Страница 22: ...iles In this application there are 4 files main c vectors c devdriver c ledkeydriver c and startup asm main c includes main loop and MCU control functions vectors c includes interrupt functions devdriver c includes device drivers ledkeydriver c includes led and key drivers startup asm is MCU startup codes MCU AN 500089 E 11 Page 22 ...

Страница 23: ...Induction Heater C Library V1 1 Chapter 9 10BDemo System 9 2 5 System Files Structure MCU AN 500089 E 11 Page 23 ...

Страница 24: ... Watt Display BaoWen Mode BaoWen Led Temp Display JieDong Mode JieDong Led Temp Display Error Mode Error Code Display error led Display such as Er E3 Error C d Description Notes 0xE0 Power under voltage 0xE1 Power over voltage 0xE2 Power over current 0xE3 Main sensor over 300 0xE4 Main sensor break circuit 0xE5 Main sensor short circuit 0xE6 Main sensor temp not change 0xE7 IGBT temp over 120 0xE8...

Отзывы: