Contents Revision History System Introduce System Hardware Environment Development Environment and Tools Hardware Desi

Similar documents
F²MC-8L/16LX/FR FAMILY

F²MC-8L/16LX/FR FAMILY

Important Notice SUNPLUS TECHNOLOGY CO. reserves the right to change this documentation without prior notice. Information provided by SUNPLUS TECHNOLO

1.ai

AN INTRODUCTION TO PHYSICAL COMPUTING USING ARDUINO, GRASSHOPPER, AND FIREFLY (CHINESE EDITION ) INTERACTIVE PROTOTYPING

Microsoft Word - AP1515V02

SPHE8202R Design Guide Important Notice SUNPLUS TECHNOLOGY CO. reserves the right to change this documentation without prior notice. Information provi

(Load Project) (Save Project) (OffLine Mode) (Help) Intel Hex Motor

untitled

User ID 150 Password - User ID 150 Password Mon- Cam-- Invalid Terminal Mode No User Terminal Mode No User Mon- Cam-- 2

SA-DK2-U3Rユーザーズマニュアル

ARM Cortex-M3 (STM32F) STMicroelectronics ( ST) STM32F103 Core: ARM 32-bit Cortex -M3 CPU 72 MHz, 90 DMIPS with 1.25 DMIPS/MHz Single-cycle multiplica

BC04 Module_antenna__ doc

Pin Configurations Figure2. Pin Configuration of FS2012 (Top View) Table 1 Pin Description Pin Number Pin Name Description 1 GND 2 FB 3 SW Ground Pin.

1-1 SH79F6431 A. 2( ) 9~15V ( 12V) U2 U3 3.3V SH79F B. 1(VCC/GND) SH79F6431 C. VDDIO SH79F6431 P4 P5 P0.6 P0.7 VDDIO VDDIO=5V D. 2 V 1.0

目 录

Microsoft Word - LD5515_5V1.5A-DB-01 Demo Board Manual

Guide to Install SATA Hard Disks

USB解决方案.ppt

LSC操作说明

邏輯分析儀的概念與原理-展示版

Cube20S small, speedy, safe Eextremely modular Up to 64 modules per bus node Quick reaction time: up to 20 µs Cube20S A new Member of the Cube Family

Microsoft Word - MSP430 Launchpad 指导书.docx

ICD ICD ICD ICD ICD

1 TPIS TPIS 2 2

68369 (ppp quickstart guide)

bingdian001.com

1.1 ML_ONOFF = 1 Q 3 Q 8 C 0.3V M 2 L 1 ML_ONOFF = 0 Q 3 Q 8 C 1. + R31 VCC R21 10K ML_ONOFF R15 0:off 1:on 1K Green Light VCC=5V L1 Q VDD=12V C

Microsoft Word - OPIGIMAC 譯本.doc

On/Off/ FlexiClip HFC FlexiClip

iml88-0v C / 8W T Tube EVM - pplication Notes. IC Description The iml88 is a Three Terminal Current Controller (TTCC) for regulating the current flowi

2/80 2

Data Management Software CL-S10w

SDP

untitled

Bus Hound 5

!!

CL-S10w

iml v C / 0W EVM - pplication Notes. IC Description The iml8683 is a Three Terminal Current Controller (TTCC) for regulating the current flowin

FM1935X智能非接触读写器芯片

ARM JTAG实时仿真器安装使用指南

iml v C / 4W Down-Light EVM - pplication Notes. IC Description The iml8683 is a Three Terminal Current Controller (TTCC) for regulating the cur

P3B-F Pentium III/II/Celeron TM

Microsoft Word - LR1122B-B.doc

Cadence SPB 15.2 VOICE Cadence SPB 15.2 PC Cadence 3 (1) CD1 1of 2 (2) CD2 2of 2 (3) CD3 Concept HDL 1of 1

目录

KDC-U5049 KDC-U4049 Made for ipod, and Made for iphone mean that an electronic accessory has been designed to connect specifically to ipod, or iphone,

Data Management Software CL-S10w

8idml_20_1_q

epub83-1

K301Q-D VRT中英文说明书141009

Edge-Triggered Rising Edge-Triggered ( Falling Edge-Triggered ( Unit 11 Latches and Flip-Flops 3 Timing for D Flip-Flop (Falling-Edge Trigger) Unit 11

2 Keil µ vision 2.1 1) Keil µ vision2 V2.34 µ vision3 2) Sino_Keil.exe Keil c:\keil\ 3) JET51 USB PC C:\Keil\ USB PC 4) S-L

目次 

audiogram3 Owners Manual

Logitech Wireless Combo MK45 English

User’s Manual

r_09hr_practical_guide_kor.pdf

K7VT2_QIG_v3


热设计网

AP128DG-H AP128DG-H 3 13 ATiRADEON TM Win 98/98SE, WinME Win XP Direct X

PIC16F F MPLAB 08 16F LED 15 LED

51 C 51 isp 10 C PCB C C C C KEIL

Microsoft PowerPoint - ATF2015.ppt [相容模式]

Ác Åé å Serial ATA ( Sil3132) S A T A (1) SATA (2) BIOS SATA (3)* RAID BIOS RAID (4) SATA (5) SATA (a) S A T A ( S A T A R A I D ) (b) (c) Windows XP

els0xu_zh_nf_v8.book Page Wednesday, June, 009 9:5 AM ELS-0/0C.8

1 Project New Project 1 2 Windows 1 3 N C test Windows uv2 KEIL uvision2 1 2 New Project Ateml AT89C AT89C51 3 KEIL Demo C C File

Table of Contents Design Concept 03 Copyrights & TradeMark 04 Special Notice 05 Notice to concerned 05 Installation and Registration Introduction 07 s

目 录 目 录 1. 安 装 和 快 速 入 门 附 件 1.1 随 机 附 件 附 件 信 息... 3 连 接 和 设 定 1.3 连 接 记 录 纸... 4 快 速 入 门 1.5 发 送 传 真 / 复 印 接 收 传 真

AL-M200 Series

1 CPU

untitled

行业

Chapter 2 GIGA-BYTE TECHNOLOGY CO., LTD. ("GBT") GBT GBT GBT

Chapter 2 GIGA-BYTE TECHNOLOGY CO., LTD. ("GBT") GBT GBT GBT

Chapter 2 GIGA-BYTE TECHNOLOGY CO., LTD. ("GBT") GBT GBT GBT

System Design and Setup of a Robot to Pass over Steps Abstract In the research, one special type of robots that can pass over steps is designed and se

untitled

中文手册

Microsoft Word - Front cover_white.doc

Microsoft Word - H6800BM_translation base_Update_1_2014_ doc

概述

逢 甲 大 學

Chapter 2 GIGA-BYTE TECHNOLOGY CO., LTD. ("GBT") GBT GBT GBT

穨control.PDF

P4VM800_BIOS_CN.p65

JLX

EK-STM32F

GIGA-BYTE TECHNOLOGY CO., LTD. ( GBT ) GBT GBT, GBT

mvc


IP505SM_manual_cn.doc

PCM-3386用户手册.doc

untitled

行业

Serial ATA ( Nvidia nforce430)...2 (1) SATA... 2 (2) B I O S S A T A... 3 (3) RAID BIOS RAID... 6 (4) S A T A... 9 (5) S A T A (6) Microsoft Win

大学计算机基础B.doc

Transcription:

FUJITSU MICROELECTRONICS (SHANGHAI) CO., LTD. Unit 1501, Jin Mao Tower, 88 Century Ave., Pudong New Area, Shanghai, P.R. China Tel: 61007800 Fax: 61007802 F²MC-8FX FAMILY 8-BIT MICROCONTROLLER MB95F430 SERIES Induction Heater C Library User Manual Revision History Version Date Comment Charge 1.0 2010-03-28 Create. Folix 1.1 2010-08-11 Modified: MCU Pin Assignment; Folix

Contents Revision History... 1 1. System Introduce... 4 2. System Hardware Environment... 5 3. Development Environment and Tools... 6 4. Hardware Design... 7 4.1. System Hardware Block Diagram... 7 4.2. MCU Resource Usage... 7 4.3. MCU Pin Assignment... 8 5. System Function... 9 5.1. Global Variable... 9 5.2. Function List... 9 5.3. Function Prototype... 9 5.3.1. InitSys ()... 9 5.3.2. GetKey ()... 9 5.3.3. ParseKey ()... 9 5.3.4. EventProc ()... 9 5.3.5. Display ()... 9 6. Event Function... 10 6.1. Function List... 10 6.2. Function Prototype... 10 6.2.1. ModeCaoCai ()... 10 6.2.2. ModeHuoGuo ()... 10 6.2.3. ModeDunCai ()... 10 6.2.4. ModeBaoTang ()... 10 6.2.5. ModeBaoWen ()... 11 6.2.6. WattInc ()... 11 6.2.7. WattDec ()... 11 6.2.8. TmrInc ()... 11 6.2.9. TmrDec ()... 11 6.2.10. TmrRst ()... 11 6.2.11. TempInc ()... 11 6.2.12. TempDec ()... 11 6.2.13. ConstTempProc ()... 12 7. Driver Function... 13 7.1. Function List... 13 7.2. Function Prototype... 13 7.2.1. GetADC (int chl)... 13 7.2.2. BuzzerOn ()... 13 7.2.3. BuzzerOff ()... 13 7.2.4. PowerOn ()... 13 7.2.5. PowerOff ()... 14 7.2.6. PWMSet (int cycle,int duty)... 14 7.2.7. PwmOn ()... 14 7.2.8. PwmOff ()... 14 7.2.9. FanOn ()... 14 7.2.10. FanOff ()... 14 7.2.11. VCInit ()... 14 7.2.12. OPAMPInit ()... 14 8. Interrupt Function... 15 8.1. Function List... 15 8.2. Function Prototype... 15 8.2.1. Keyboard ()... 15 8.2.2. ProtectIGBT ()... 15 8.2.3. ProtectSys ()... 15 8.2.4. IntCurOver ()... 15 8.2.5. IntVolOver ()... 15 8.2.6. IntSurge ()... 16 8.2.7. IntKettle ()... 16 9. Demo System... 17 9.1. System Features... 17 2 / 21

9.2. Software Design... 18 9.2.1. User Interface... 18 9.2.2. System Module... 18 9.2.3. System Main Loop... 19 9.2.4. System Files... 19 9.2.5. System Files Structure... 20 Appendix... 21 Display Content... 21 Error Code... 21 3 / 21

1. System Introduce This document introduce how to use the C library API to develop the Induction Heater based MB95F434K. 4 / 21

2. System Hardware Environment CPU Chip: Fujitsu MB95F434K; CPU Frequency: 16.25MHz; Minimum Instruction Time: 61.5ns; Ram Space: 496Bytes; Code Space: 20KBytes; 5 / 21

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 6 / 21

4. Hardware Design 4.1. System Hardware Block Diagram The electromagnetic eddy current heating is our system theory. We use the PWM to control the IGBT to generate the heating eddy current. We can adjust the PWM width to adjust the power. The fan is use to cool the IGBT. The feedback signal is 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 Display 11 Debug 1 Pins 12 Watchdog Timer Monitor System 13 16Bit Timer0 Keyboard Sample 14 16Bit Timer1 10MS Timer Protect,Error 7 / 21

4.3. MCU Pin Assignment No. Name Define Note Remark 1 PG2/PPG0/X1A/OUT1 sub oscillator LED COM1 2 PG1/TRG0/ADTG/X0A/BZ/OUT0 sub oscillator Fan 3 VCC VCC Vcc 4 C C C 5 P60/OPAMP_P OPAMP_P Current by Resistor 6 P61/OPAMP_N OPAMP_N 7 P62/OPAMP_O P62 LED COM2 8 P12/EC0/UI/DBG P12/DBG Debug 9 P00/INT00/AN00 P00 Start IGBT 10 P01/INT01/AN01/BZ BZ Buzzer 11 P02/INT02/AN02/UCK/TRG0 UCK Serial Clock 12 P03/INT03/AN03/UO/PPG0 UO Serial Data 13 P04/INT04/AN04/UI/HCLK1 AN04 AC voltage Measuring 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 OverCurrent Reference Input 22 P75/CMP1_N CMP1_n OverCurrent Compare Input 23 P76/CMP2_O/UCK P76 LED COM3 24 P63/CMP2_P CMP2_P OverVoltage Reference Input 25 P64/CMP2_N CMP2_N OverVoltage Compare Input 26 P65/CMP3_O/UO P65 LED COM0 27 P66/CMP3_P CMP3_P Surge Reference Input 28 P67/CMP3_N CMP3_N Surge Compare Input 29 PF2/RSTX PF2 Reset 30 PF0/X0 X0 oscillator 31 PF1/X1 X1 oscillator 32 VSS VSS Vss 8 / 21

5. System Function 5.1. Global Variable Variable Description Note BYTE dval[4]; Display for 4-bit digital. Used in Display function. BYTE dled; Display for 8 led. Used in Display function. 5.2. Function List Prototype Description Note void InitSys(void) Initalize system. call in the system at first int GetKey(void) int ParseKey(int key) void EventProc(int evt) void Display() Get the user pushed key. Get the system event. Process the event by the event value. Display process 5.3. Function Prototype 5.3.1. InitSys () Prototype void InitSys(void) Description Initalize system. 5.3.2. GetKey () Prototype int GetKey(void) Output int, return the key value. Description Get the user pushed key. 5.3.3. ParseKey () Prototype int ParseKey(int key) Output int, return the event value. Input key, the user pushed key. Description Get the system event. 5.3.4. EventProc () Prototype void EventProc(int evt) Input evt, the system event. Description Process the event by the event value. 5.3.5. Display () Prototype void Display(). Description Display. 9 / 21

6. Event Function 6.1. Function List Prototype Description Note void ModeCaoCai(void) void ModeHuoGuo(void) void ModeDunCai(void) void ModeBaoTang(void) void ModeBaoWen(void) void WattInc(void) void WattDec(void) void TmrInc(void) void TmrDec(void) void TmrRst(void) void TempInc(void) void TempDec(void) void ConstTempProc(void) Change mode to CaoCai. Change mode to HuoGuo. Change mode to DunCai. Change mode to BaoTang. Change mode to BaoWen. Increase the watt. Decrease the watt. Increase the timer s value. Increase the timer s value. Reset and turn off the timer or start the timer. Increase the temperature in stew mode. Decrease the temperature in stew mode. Constant temperature heating process. It is used in empty event. 6.2. Function Prototype 6.2.1. ModeCaoCai () Prototype void ModeCaoCai(void) Description Change mode to CaoCai. 6.2.2. ModeHuoGuo () Prototype void ModeHuoGuo(void) Description Change mode to HuoGuo. 6.2.3. ModeDunCai () Prototype void ModeDunCai(void) Description Change mode to DunCai. 6.2.4. ModeBaoTang () Prototype void ModeBaoTang(void) Description Change mode to BaoTang. 10 / 21

6.2.5. ModeBaoWen () Prototype void ModeBaoWen(void) Description Change mode to BaoWen. 6.2.6. WattInc () Prototype void WattInc(void) Description Increase the watt 100w. Range is from 200w to 2100w. 6.2.7. WattDec () Prototype void WattDec(void) Description Decrease the watt 100w. Range is from 200w to 2100w. 6.2.8. TmrInc () Prototype void TmrInc(void) Description Increase the timer s value 1 minute. Range is from 1 to 180. 6.2.9. TmrDec () Prototype void TmrDec(void) Description Increase the timer s value 1 minute. Range is from 1 to 180. 6.2.10. TmrRst () Prototype void TmrRst(void) Description Reset and turn off the timer or start the timer. 6.2.11. TempInc () Prototype void TempInc(void) Description Increase the temperature 10. Range is from 60 to 180. 6.2.12. TempDec () Prototype void TempDec(void) Description Decrease the temperature 10. Range is from 60 to 180. 11 / 21

6.2.13. ConstTempProc () Prototype void ConstTempProc(void) Description Constant temperature heating process. It is used in empty event. 12 / 21

7. Driver Function 7.1. Function List Prototype Description Note void GetADC(int chl) void BuzzerOn(void) void BuzzerOff(void) void PowerOn(void) void PowerOff(void) void PWMSet(int cycle,int duty) void PwmOn(void) void PwmOff(void) void FanOn(void) void FanOff(void) void VCInit(void) void OPAMPInit(void) Get the ADC value. Turn on the buzzer. Turn off the buzzer. Turn on the system. Turn off the system. Set the PWM. Turn on the PWM driver. Turn off the PWM driver. Turn on the fan. Turn off the fan. Initialize all the VC. Initialize the OPAMP. 7.2. Function Prototype 7.2.1. GetADC (int chl) Prototype void GetADC(int chl) 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 () Prototype void BuzzerOn(void) Description Turn on the buzzer. 7.2.3. BuzzerOff () Prototype void BuzzerOff(void) Description Turn off the buzzer. 7.2.4. PowerOn () Prototype void PowerOn(void) Description Turn on the system, and set in the braise mode. 13 / 21

7.2.5. PowerOff () Prototype void PowerOff(void) Description Turn off the system. 7.2.6. PWMSet (int cycle,int duty) Prototype void PWMSet(int cycle,int duty) Input Cycle,duty Description Set the PWM. The cycle must be greater than the duty. 7.2.7. PwmOn () Prototype void PwmOn(void) Description Turn on the PWM driver. 7.2.8. PwmOff () Prototype void PwmOff(void) Description Turn off the PWM driver. 7.2.9. FanOn () Prototype void FanOn(void) Description Turn on the fan. 7.2.10. FanOff () Prototype void FanOff(void) Description Turn off the fan. 7.2.11. VCInit () Prototype void VCInit(void) Description Initialize all the VC. 7.2.12. OPAMPInit () Prototype void OPAMPInit(void) Description Initialize the OPAMP. 14 / 21

8. Interrupt Function 8.1. Function List Prototype Description Note void Keyboard(void) Sample keyboard and parse key value. It is used in 10ms timer interrupt. void ProtectIGBT(void) Detect IGBT temp and start the fan. It is used in 10ms timer interrupt. void ProtectSys(void) Detect error and protect system. It is used in 10ms timer interrupt. void IntCurOver(void) void IntVolOver(void) void IntSurge(void) void IntKettle(void) External interrupt service for over current. External interrupt service for over voltage. External interrupt service for surging. External interrupt service for no kettle. 8.2. Function Prototype 8.2.1. Keyboard () Prototype void Keyboard(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) Description Detect IGBT temp and start the fan. It is used in 10ms timer interrupt. Use 16bit timer 1 channel. 8.2.3. ProtectSys () Prototype void ProtectSys(void) Description Detect error and protect system. It is used in 10ms timer interrupt. Use 16bit timer 1 channel. 8.2.4. IntCurOver () Prototype void IntCurOver(void) Description External interrupt service for over current. Use VC 1 channel. 8.2.5. IntVolOver () Prototype void IntVolOver(void) 15 / 21

Description External interrupt service for over voltage. Use VC 2 channel. 8.2.6. IntSurge () Prototype void IntSurge(void) Description External interrupt service for surging. Use VC 3 channel. 8.2.7. IntKettle () Prototype void IntKettle(void) Description External interrupt service for no kettle. Use VC 0 channel. 16 / 21

9. Demo System 9.1. System Features Power Control Fan Control Fan Delay Off Buzz Control Led Display Keyboard Kettle Detect Kettle Empty Detect Timing Power Off(3Hours) Constant Power Heating Constant Temperature Heating IGBT Temp Detect Plate Temp Detect IGBT Temp Higher Protect(120 ) Plate Temp Higher Protect(300 ) Kettle Empty Protect(300 ) Sensor Open/Short Detection Over 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 raise over 60, the fan must turn on. If the IGBT temperature is raise over 120, the system must stop work. If the kettle is empty, the plate temp will raise. If the temp raise up to 300, the system must stop work. 17 / 21

9.2. Software Design 9.2.1. User Interface The system has six work mode. You can push the M (left) and M (right) to change the work mode. When power on, the system is standby. When you push the 开 / 关, it will work under the 解冻 mode. In any mode, you can push the 开 / 关 to turn off or push the 增加 or 减小 to change the watt or the time when you are setting the timer. When you want to heat food by timer, you can push 定时 to set and start the timer. And you can push the 取消 to cancel the timer. You can push the 显示 to view the timer. If the time is zero, the timer is not started. 9.2.2. System Module 18 / 21

9.2.3. System Main Loop Note: The main loop time is about 10ms. 9.2.4. System Files 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. 19 / 21

9.2.5. System Files Structure 20 / 21

Appendix Display Content Mode Display Content Notes System CaoCai Mode HuoGuo Mode DunCai Mode BaoTang Mode BaoWen Mode JieDong Mode Power Led, Timer Led CaoCai Led, Watt Display HuoGuo Led, Watt Display DunCai Led, Watt Display BaoTang Led, Watt Display BaoWen Led, Temp Display JieDong Led, Temp Display Error Mode Error Code Display, error led. Display such as Er:E3. Error Code Error Code Description Notes 0xE0 0xE1 0xE2 Power under voltage Power over voltage Power over current 0xE3 Main sensor over 300 0xE4 0xE5 0xE6 Main sensor break circuit Main sensor short circuit Main sensor temp not change 0xE7 IGBT temp over 120 0xE8 0xE9 0xF0 0xF1 IGBT sensor break circuit IGBT sensor short circuit Kettle is empty 21 / 21