Sunteți pe pagina 1din 16

www.cypress.com Document No. 001-50475 Rev.

*B 1
AN50475
Induction Cooker Design with CapSense


Aut hor: Robi n Chen, Jemmey Huang, Vi ncent Cai
Associ at ed Proj ect : Yes
Associ at ed Part Fami l y: CY8C22x45
Sof tware Ver si on: PSoC

Desi gner 5.2 SP1


Rel at ed Appl i cat i on Not es: None


Abstract
AN50475 discusses the implementation of an induction cooker with CapSense

control based on CY8C22x45. The


working principles of an induction cooker and the CY8C22x45 are also described.

Contents
Introduction ....................................................................... 1
Induction Cooker: Working Principle ................................. 1
CY8C22x45 Overview ....................................................... 2
System Features ............................................................... 3
System Hardware .............................................................. 3
Dual-Channel CapSense Scan ..................................... 5
I/O Expansion by 74HC164 .......................................... 6
Low-Pass Filter for Analog Signal ................................ 6
Board Connector Definition and Description................. 6
System Firmware .............................................................. 6
PSoC Digital Block and Analog Resources Consumed 8
LEDs and 7-Segment Digital LED Display Refresh ...... 8
IIR Low-Pass Digital Filter ............................................ 9
PI Close Loop Control Algorithm .................................. 9
Appendix A ...................................................................... 11

Introduction
Touch sensor technology has existed for many years
because it is suitable for harsh environments. Capacitance
based touch sensors are now widely applied in consumer
electronics. Touch sensors appear stylish, and products
based on touch sensors are attractive. In home appliances
such as the microwave oven, induction cooker, and rice
cooker, there is a growing demand for the CapSense
button and slider for high-end designs. Typically, there are
two microcontrollers in these designs: one for the kernel
tasks control, and the other for the CapSense button/slider
control. CY8C22x45 is a new PSoC product family that
simplifies the design and reduces the system cost. This
application note uses the induction cooker as an example
to discuss the integration design of CapSense and system
control in the CY8C22x45.
Induction Cooker: Working Principle
The induction cooker is a modern electric cooker that uses
the electromagnetic induction principle to heat vessels.
The induction cooker has a heatproof ceramic panel,
which is used as the cooker plane. Through the electrified
coil under the plane, the AC current creates a magnetic
field that induces a vortex in iron and stainless steel pan
bottoms. This heats the pan bottom quickly, and then
conducts the heat to food.
This section describes the working principle of the
induction cooker. First, the AC current is converted into
DC by a rectifier. Next, the DC current is converted into
ultrasonic high frequency AC current by a high frequency
electric power conversion device. By connecting the high
frequency AC current to the flat, hollow, helical heating
coil, a high frequency alternating magnetic field is
generated. Under the ceramic panel, the electrified coil
creates a magnetic field that breaks through the panel and
induces a vortex in the iron pan bottom. This converts



Induction Cooker Design with CapSense


www.cypress.com Document No. 001-50475 Rev. *B 2
electric energy into heat energy, while overcoming the
internal impedance stream. The generated joule heat is
the heat source for cooking.
Figure 1. Induction Cooker

The major controls of the induction cooker include:
1. IGBT Automatic Self Protection: Insulated-Gate
Bipolar Transistor (IGBT) is the key component of the
induction cooker. IGBT works under high voltage and
high power conditions. However, considering the high
cost and rigid parameters, IGBT is designed with
several conditions. Any of the following factors can
destroy IGBT: excess voltage, instantaneous
impingement generated when power is switched on or
off, proliferated current and excess temperature. IGBT
can be damaged even when the iron pan is removed
from the ceramic panel or if no pan is placed on the
panel. It is necessary to protect the IGBT from these
factors.
2. Temperature Control in the Iron Pan Bottom: The heat
in the iron pan bottom is directly transferred to the
ceramic panel. The ceramic panel is the heat
conducting material, so thermal sensors are often
fixed in the panel bottom to detect the temperature of
the iron pan bottom.
3. Stable Power Control: The output power of the
induction cooker can be automatically regulated to
improve the adjustment of the power supply and load.
4. User Interface Control: Collect the customer input
from the CapSense button or slider, then decide the
working mode and display it on relevant light emitting
diode (LED).
In this example, CY8C22x45 handles the input of twelve
CapSense buttons. It is also responsible for the entire
system control, including current, voltage and temperature
sampling, PWM generation for the MOSFET control,
induction cooker power control, and system status display.
CY8C22x45 Overview
CY8C22x45 is a product of the PSoC family. It is an
enhancement of CY8C21xxx PSoC family, and is targeted
at applications that integrate both system control and
CapSense control. CY8C22x45 is compatible with other
PSoC device architecture, as shown in Figure 2.
CY8C22x45 is a Mixed-Signal Array with On-Chip
Controller device. Each CY8C22x45 PSoC device
includes eight digital blocks and six analog blocks.
Depending on the PSoC package, CY8C22x45 provides
up to 38 general-purpose I/Os (GPIO), 16 K flash memory,
and a 1 K SRAM data memory. Following other PSoC
products, CY8C22x45 has fixed function on-chip
resources such as I
2
C, MAC, and more. In addition,
CY8C22x45 includes optimized modules such as 10-bit
SAR ADC, dedicated CSD digital logic, and dedicated
RTC.
Figure 2. CY8C22x45 Block Diagram
DIGITAL SYSTEM
Digital Block Array
DBC DBC DCC DCC
ROW 0
CSD Digital Resource
DBC DBC DCC DCC
ROW 1
SRAM
1K
Interrupt
Controller
Sleep and
Watchdog
Multiple Clock Sources
(Includes IMO, ILO, PLL, and ECO)
Global Digital Interconnect
Global Analog Interconnect
CPU Core (M8C)
SROM Flash 16K
MAC
Internal
Voltage
Ref.
Digital
Clocks
POR and LVD
SystemResets
SYSTEM RESOURCES
ANALOG SYSTEM
Analog
Ref
Analog Input
Muxing =
Port 2 Port 1 Port 0
10-bit SAR
ADC
Port 3 Port 4
PSoC Core
I
2
C
S
y
s
t
e
m

B
u
s
CTE CTE
Analog Block Array
CTE CTE
SCE SCE

To reflect the change in digital blocks, the new digital
block for basic functions is renamed as DBC from DBB,
and the communication block is renamed as DCC. The
digital block adds another data path to implement the
enhanced features in DBC or DCC, such as synchronous
triggering, kill function, and more. However, even if no



Induction Cooker Design with CapSense


www.cypress.com Document No. 001-50475 Rev. *B 3
enhanced feature is used in the user module, the digital
block is fully compatible with the existing PSoC product.
Compared to CY8C21xxx, CY8C22x45 provides two
additional CT blocks for general-purpose applications.
These analog blocks can be configured as an enhanced
feature comparator with flexible input and output choices.
CY8C22x45 also provides a set of digital resources to
address the CapSense design. These resources are
optimized for CSD implementation. With these resources,
the system clock resource VC1/VC2/VC3 and digital
blocks are not needed to configure a CSD user module.
The CY8C22x45 also keeps a compatible configuration,
which helps the customer code migrate from CY8C21xxx.
The new CSD user module in CY8C22x45 is capable of
simultaneous scanning on dual CSD channel input to
reduce the total scanning time in an application.
System Features
In addition to the features that CY8C22x45 provides for
CapSense control, the induction cooker design also
contains the system control. It has common features that
are found in existing products. The features are:

AC 220 V/50 Hz power supply

1800 W rated power

Resonant circuit for induction cooker control

More than ten LEDs and four digital LED segment
display

Buzzer for alarm

Fan On/Off and PWM control

Adjustable fixed temperature cooking mode that
Supports 60, 80, 100, 120, 140, 160, 180, 200, 220,
240, and 260 C.

Multilevel of firepower selection (200 W, 400 W,
600 W 800 W,1000 W, 1200 W, 1400 W, 1600 W and
1800 W) and Stable Power Control

Cooking Pan Auto Detect

Multi Cooking Mode Selection

Multiple protection
Auto Power Off When Not Cooking on Pans
AC Over Voltage and Under Voltage Protection
AC Over Current Protection
Pan Overheat Protection
IGBT Overheat Protection

Time-switch cooking function

12 CapSense buttons for Menu Selection
More advanced CapSense features are to be included in
future designs. These functions include:

CapSense Slider for Menu Selection

Waterproofing CapSense button

Boil over detection

CapSense sensor failure detection
System Hardware
There are two PCB boards in the design viz. power control
board and main controller board. They are connected by
an 11-pin ripple cable.
Power Control Board
The power control board uses a quasi resonant converter
to create a magnetic field that induces a vortex in iron and
stainless steel pan bottoms. Figure 3 shows a typical
quasi resonant converter, Figure 4 shows the equivalent of
the resonant circuit, and Figure 5 shows the waveforms of
each block of the main power circuit in a cycle.
Figure 3. Quasi Resonant Converter

Figure 4. The Equivalent of the Resonant Circuit










Induction Cooker Design with CapSense


www.cypress.com Document No. 001-50475 Rev. *B 4
Figure 5. Waveforms of Each Block of the Main Power
Circuit in a Cycle


Initially, S1 is turned off by the control circuit when the
current flowing through L* and S1 reaches its peak.

At this point, Vc(0) = 0 V. There are four modes
available, as shown in Figure 6.
Figure 6. Modes in Quasi-Resonant Converter


MODE I: t0-t1

The switching circuit is turned off when the resonant
current flowing through the circuit is at its peak, i.e. at
t0. In this process, a turn-off switching loss occurs.
The Vce level is rapidly increased by the capacitor
(Cr) to become DC-LINK (Vdc) at t1.

Even when the switch is turned off at t0, the current
keeps incrementing to reach its peak at t1, when Vce
becomes equal to Vdc, as DC-LINK is higher than the
resonant voltage. At this point, the energy stored in
the inductor begins to be transferred to the capacitor.


MODE II: t1-t4

As Vdc is lower than Vce after t1, the current
decreases to zero at t2, when the resonant voltage
reaches its maximum. This is also the point where the
transfer of the energy stored in the inductor to the
capacitor is completed. The peak level of the resonant
voltage has a direct relationship with the turn-on time
of the switch (MODE IV: t5-t6).

After t2, the capacitor starts discharging the energy to
the inductor, which causes the voltage and the current
flowing in inverse to decrement and at t6, the
switching circuit is turned off, returning to MODE I. As
the peak level of the voltage is in direct relationship
with the on-duty frequency, one can manipulate this
level, i.e. output energy, by adding or reducing the on-
duty frequency. Reach its minimum level at t3, i.e.
Vce=Vdc, respectively. Passing t3, the resonant
current increases as Vce<Vdc and the discharge is
completed at t4.
MODE III: t4-t5

After t4, the energy sent by the capacitor and stored in
the inductor, is converted to DC-LINK as the D1 diode
is forward biased. The resonant current is flowing
through D1 during the time S1 is turned ON.
MODE IV: t5-t6

As the switching circuit remains turned on while the
current is freewheeling through D1, the current flows
in the right direction through the circuit and the
inductor starts to store the energy, which makes it
possible to do a zero voltage turn-on switching.

At t6, the switching circuit is turned off, returning to
MODE I. As the peak level of the voltage is in direct
relationship with the on-duty frequency, one can
manipulate this level, i.e. output energy, by adding or
reducing the on-duty frequency.
From the above description, we can understand that the
peak current produced i.e. power delivered to the pan by
means of induction depends on duty cycle of the IGBT
PWM.
The power control board is close to the electrified coil on
the bottom of the cooker. It includes the AC power input
rectifier, choke, IGBT for DC/AC conversion, the zero-
voltage switching control circuit for IGBT, current sensing
and other high voltage components, DC power supply, fan
and buzzer driver, and more. Figure 7 shows the block
diagram of the power module board. All the components
on this board are discrete components.






Induction Cooker Design with CapSense


www.cypress.com Document No. 001-50475 Rev. *B 5
Figure 7. Power Control Board
AC IGBT
Power
Supply
5V 12V 20V
Choker
Rectifier
PAN
Control
Block NTC
IGBT
Driver
NTC
IGBT
Temperature
Pan
Temperature
CMP CMP
Driver
BoardConnector
5v
GND
FAN
1 2 3 4 5 6 7 8 9 10 11
PWMDutyRef
PWMEnable
C
M
P
Vref
POWERBOARD

Vcc
Over-Current
Syn-Control

Vcc
Over-Vol
(20KHzPWM
and
Protection)
Coil
Temperature
NTC


Main controller board
The second PCB board is the main controller board based
on CY8C22x45. This board is responsible for system
control and user interface control, and the board is
mounted on the top side of the cooker. This board handles
the scanning of CapSense buttons and the LED displaying
control. It is also responsible for the entire system control,
including current, voltage, and temperature sampling,
generating PWM duty cycle for the induction cooker power
control, over-current, over voltage, and over temperature
protection, menu operation control, and system status
display. A real-time clock provided by CY8C22x45 is also
applied for the timer in the cooker. Figure 8 shows the
block diagram of the main controller board.
Figure 8. Main Controller Board
MUX
Dual-chanel
CSDModule
M8CCore
CY8C22x45
LEDs
SPI
LEDSegments
BoardConnector
5v
1 2 3 4 5 6 7 8 9 10 11
Controller
BOARD
74LS164IO
Expansion
5V
I/O
I/O I/O
10bit
SARADC
8-bitPWM

8-bitPWM
8-bitPWM
12Buttons

Dual-Channel CapSense Scan
Dual-channel CSD scanning is a new feature of
CY8C22x45. It has the following advantages over the old
CSD logic:

The dual-channel CSD logic does not consume any
digital block resource.

It has two separated CSD logic and can support dual-
channel CSD scan.

Dedicated clock resource frees the VC1/VC2/VC3
clocks for other system control.

M8C needs to respond to only one interrupt for each
CapSense button scan.
Figure 9. Block Diagram of CSD2X


Figure 9 shows the block diagram of a single channel CSD
in CY8C22x45. An internal IDAC is used to charge the
external capacitor Cmod. The value in counter represents
the duty the IDAC is turned on. The counter data
increases with the capacitance of CapSense. The clock to
drive IO_MUX can be fixed frequency clock or PRS output
to reduce the EMI and noise effect. The Vref comes from
Vbg or VDAC. Digital blocks and VC1/VC2/VC3 are not
used, and they are free for other customer functions, for
example, UART or SPI.
When the user module runs, only one interrupt can
happen at the end of the scan. This allows the CPU to
release more MIPS, and allows multisource interrupts. The
analog bus is split into two separate sections: left analog
bus and right analog bus. As a result, it can
simultaneously support dual-channel CSD scan.
The dual-channel CSD user module consumes only CSD
logic, two analog columns, left and right analog bus, and
dual-channel IDAC. The following figure shows the
consumption.







Induction Cooker Design with CapSense


www.cypress.com Document No. 001-50475 Rev. *B 6
Figure 10. Resource of CSD2X

I/O Expansion by 74HC164
I/O expansion is necessary in many home appliance
applications. Typically, a serial-parallel converter logic
chip, such as 74HC164, is applied to the system for LED
control. 74HCT164 are 8-bit edge-triggered shift registers
with serial data entry and output from each of the eight
stages. As a result, the system can consume less I/Os
than the solution that drives the LED directly. The input
signals of 74HCT164 are Data and Clock. This is in
compliance with the SPI bus. See the Appendix Board
Schematics (Figure 16 and Figure 17) for more
information.
Low-Pass Filter for Analog Signal
There are four analog signals in the control board. They
are all voltage signals, including the AC RMS voltage, AC
average current, and the temperatures of the pan and
IGBT. The range of these signals is from 0 to 5 V.
Because these signals are the output from the noise
power board, a capacitive low-pass filter is designed
before the signal enters PSoC. Figure 11 shows the
typical circuit.
Figure 11. Capacitive Low-Pass Filter
R C
Vout Vin

The cutoff frequency is:
f
cutoff
=1/2RC Equation 1
In Equation 1, assuming the value of R is 47 k and the
value of C is 0.1 f, then the circuit gets a cutoff frequency
at 33.9 Hz. This is because these signals change very
slowly, especially the temperature signals of the pan and
IGBT. The parameters of this capacitive low-pass filter can
meet the system design requirement.


Board Connector Definition and Descri ption
The following table indicates the board connector
definition and description.
Table 1. Board Connector Definition
Pin Type Description
1 Power Power Supply of 5 V
2 Analog Input Temperature of Coil
3 Analog Input Temperature of IGBT
4 Analog Input Temperature of Pan
5 Digital Output PWM Output Signal for Power Control
6 Analog Input AC RSM Voltage
7 Analog Input AC Average Current
8 Digital Output PWM Output Enable Signal
9 Digital Output Fan Output
10 Digital Input Zero-crossing Signal of Resonance
Circuit.
11 Ground Ground
System Firmware
The system firmware is relatively complicated. Because
the system functions include the user interface control,
such as the CapSense button scan and LED display, it
also includes the analog signals sampling and internal
timer. In addition, the control algorithm implementation
such as fixed temperature control algorithm, stable power
control algorithm, multiple protections, and induction
cooker kernel functions are also included. Figure 13
shows the high-level flow chart of the firmware.
For each cooking mode the firmware uses either constant
temperature or constant power. For both power or
temperature control, the ON time of the IGBT PWM is
controlled. A PI controller is used for the same which is
explained in the section PI Close Loop Control Algorithm.
When the pan is placed on the cooker top, the inductance
of the resonant converter (L*) is increased. This effectively
decreases the switching frequency. The sync control
signal shown in Figure 11 is the zero crossing signal of the
resonant converter voltage. The sync control pulses are
counted for a fixed period. Thus the number of sync
control pulses would thus be less when the pan is present
compared to when the pan is absent. If the Pan is not
present the IGBT is turned OFF.
The CT is used to measure the current from the AC mains.
We limit the IGBT PWM maximum duty cycle such that the
peak current is less than 10 A.



Induction Cooker Design with CapSense


www.cypress.com Document No. 001-50475 Rev. *B 7
The temperatures sensors are used to measure PAN,
IGBT and Coil temperature. The limiting values for PAN,
IGBT and Coil temperatures are 300, 80, and 80 C.
Fan is used to cool the IGBT and quasi resonant converter
coil. PWM signal for driving the fan is generated by the
Main controller board.
Figure 12. Power Board


Figure 13. Flow Chart of Firmware
WorkingModeControlModule
ButtonScan(CSD)Module
Start
ADCModule(ACvoltage,current,NTC
Pan,NTCIGBT)
IGBTControlModule
(ActualPowerCalculation,
PanAuto-detect
fixedtemperaturecontrolalgorithm
stablepowercontrolalgorithm)
BuzzerControlModule
ProtectionModule
Hardware/RegisterInitialization
LEDDiaplayModule
FanControlModule





Induction Cooker Design with CapSense


www.cypress.com Document No. 001-50475 Rev. *B 8

PSoC Digital Block and Anal og Resources
Consumed
The following table lists the digital blocks, analog blocks,
and other resources consumed in the induction cooker
system.
Table 2. PSoC Digital Block and Analog Resources
Name Description
DBC00 PWM8 for IGBT power control
DBC01 PWM8 for buzzer control
DCC02 Timer8 for internal click
DCC03 SPIM for 74HCT164 driving
DBC10 PWM8 for fan control
DBC11 Counter8 for UART clock (Optional)
DCC12 UART TX for system debug (Optional)
DCC13 UART RX for system debug (Optional)
ACE02 Used be CSD2X for button scan
ACE 03 Used be CSD2X for button scan
CSD2X Button scan
RTC System timer
SAR10 Analog signals sampling

Figure 14. System Interconnection


LEDs and 7-Segment Digital LED Di splay
Refresh
The user interface of the induction cooker is important,
because the end user exchanges all information through it.
In the design, the 74HC164 is used to expand the I/O to
drive the four 7-segment LED display. Any delay in
refreshing results in the blinking of the LED. So an 8-bit
timer is used in the firmware, and the interrupt of the timer
requests the LEDs to be refreshed. A display buffer,
whose value is set in main loop, is also used to refresh
The LEDs. In the Timer8 IRQ, the contents of this buffer
are sent out through the SPI user module, which is
cascaded with the 74HC164 for LED driving. The LEDs
are grouped by 6, and each group is turned on in
sequence. The scan interval is set as 2 ms or 3 ms, so the
refresh rate is around 55 Hz to 83 Hz.
The following firmware shows the scan of the LED display:
BYTE baLedBuf [ 6] ;
/ / di spl ay buf f er

The r ef r eshi ng code i n t he Ti mer 8 I RQ i s:

voi d Ti mer 8_I SR( voi d )
{
st at i c BYTE bLedTi mer ;
wTi ck++;
/ / gl obal f or t i ck

i f ( wTi ck - bLedTi mer > LEDONTI ME )
/ / per i od i s 2ms
{
bLedTi mer = wTi ck;
bComI nx ++;
i f ( bComI nx>=LEDCOMNUM)
bComI nx = 0;
swi t ch( bComI nx )
{
case 0:
LED_COM5_OFF;
SPI M_TX_BUFFER_REG =
baLedBuf [ 0] ;
LED_COM0_ON;
br eak;
case 1:
LED_COM0_OFF;
SPI M_TX_BUFFER_REG =
baLedBuf [ 1] ;
LED_COM1_ON;
br eak;
case 2:
LED_COM1_OFF;
SPI M_TX_BUFFER_REG =
baLedBuf [ 2] ;
LED_COM2_ON;
br eak;
case 3:
LED_COM2_OFF;



Induction Cooker Design with CapSense


www.cypress.com Document No. 001-50475 Rev. *B 9
SPI M_TX_BUFFER_REG =
baLedBuf [ 3] ;
LED_COM3_ON;
br eak;
case 4:
LED_COM3_OFF;
SPI M_TX_BUFFER_REG =
baLedBuf [ 4] ;
LED_COM4_ON;
br eak;
case 5:
LED_COM4_OFF;
SPI M_TX_BUFFER_REG =
baLedBuf [ 5] ;
LED_COM5_ON;
br eak;
IIR Low-Pass Digital Fil ter
The digital filter is widely used in the control. However, not
all digital filters can be implemented on the PSoC,
because many digital filters need enhanced MAC units to
speed the calculation. In this system, a simple one order
IIR low-pass digital filter is introduced, and the IIR filter is
used for all analog input signal processing. The algorithm
is shown in the following formula.
yn =a * xn +(1 a) * yn-1 Equation 2
In Equation 2:
is the filter coefficient.
is the current sampling value.
is the current output of filter.
is the last output of filter.
To finish the calculation, the multiplication and addition
operations need two times. Considering the PSoC CPU
resources, the calculation is still complicated. To achieve
the low-pass filter and simplify this algorithm, the special
filter coefficient is required. For example, using
the following formula is obtained:
yn =0.25 * xn +0.75 * y(n-1) Equation 3
Replacing multiplication operation with bit-shifting
operation, the formula can be changed to:
y
n
=x
n
2 +y
(n-1)
1+y
(n-1)
2 Equation 4
With this equation, only three bit-shifting operations and
three addition operations are need for the calculation. In
this system, the value of is 0.25. The cutoff frequency of
this filter is 1.33 Hz, according to the following formula with
a sampling period of 40 ms.
f
cutoff
= a/2T(1-a) Equation 5
In Equation 5, is the sampling period.
PI Close Loop Control Al gorithm
The induction cooker can support fixed power cooking and
fixed temperature cooking modes. PI close loop control is
applied in both the fixed power cooking mode and the
fixed temperature cooking mode. The PI control algorithm
is very useful in a continuous control system. There are
two basic PI control algorithms: absolute mode and
increment mode PI control algorithm. The following
equation is a discrete expression of the position mode of
the PI algorithm.
u
k
=K
P
*e
k
+K
I
*

(i=1)
(k-1)
e
i
+u
0
Equation 6
In Equation 6:
is power error.
is the integration coefficient.
is the proportional coefficient.
Another mode of PI algorithm is the increment mode, and
the formula is:
u
k
=u
k
- u
(k-1)
=K
P
*(e
k
- e
(k-1)
) +K
I
* e
k
Equation 7

Compared to the absolute mode PI algorithm, the
increment mode PI algorithm has the following
advantages:

There is no accumulation using this formula, and the
result can be obtained by the last two sample values.

The output of this formula is the increment value, and
with firmware protection there is less chance for
errors.

The complexity of increment mode PI algorithm is less
than that of absolute mode. It can save more PSoC
system resources.
Figure 15 shows the block diagram of PI algorithm power
control for fixed power cooking mode.
Figure 15. Block Diagram of PI Algorithm Power Control

+
-
PI
PWM
Controller
LowPass
Filter
IGBTController
andDriver
MainResonant
Circuit
CurrentSample
VoltageSample
PowerCaculation
Power
Ref
PowerBoard ControlBoard

The PWM output is the control signal of the main resonant
power. Through a low-pass filter in the power control
board, a reference voltage is achieved. The reference
voltage is the input signal of IGBT control logical circuits,
which has functions of pulse generation, synchronization,
protection and IBGT driver. The main resonant circuit
output increases with the reference voltage. As a result,
the induction cooker power can be adjusted by changing
the duty of PWM.



Induction Cooker Design with CapSense


www.cypress.com Document No. 001-50475 Rev. *B 10
If the induction cooker works in fixed power cooking mode,
the close loop is implemented in the following steps:
sample RSM value of voltage and RSM value of current of
main resonant circuit; calculate current power; compare
with reference power and get error; adjust the duty of the
PWM output according to the PI algorithm.
Summary
This application note describes induction cooker control
system based on PSoC chip CY8C22x45. With the
assistance of PSoC device, all the functions of the control
board can be integrated into one chip. With few external
components and optimized algorithm, this design
incorporates all the kernel functions of the induction
cooker, CapSense button scan, stable power close loop
control, and fixed temperature close loop control.
About the Author
Name: Robin Chen
Title: Application Engineer Staff
Contact: robc@cypress.com
Name: J emmey Huang
Title: Product Apps Manager Sr.
Name: Vincent Cai
Title: Application Engineer Sr.
Contact: wcai@cypress.com







Induction Cooker Design with CapSense


www.cypress.com Document No. 001-50475 Rev. *B 11
Title
Size Document Number Rev
Date: Sheet of
Induction Cooker Demo Kit
1.0
Cypress Semiconductor
B
1 1 Tuesday, December 02, 2008
R51 0
VCC
C11
4.7n
CMODR
5V_IN
R52 0
GJ _INT
C19
0.1u
PWM
FAN
PAN R53 0
TMB
COM3
R44 47k
BUZ
TIGBT
L1
BEAD
C
O
M
3
I2C_SDA
I2C_SCL
J 7
5 PIN HDR
1
1
2
2
3
3
4
4
5
5
VCC
TXP
VIN
CUR
VCC
COM2
GJ _INT
SEN7
FAN
VCC
SEN9
T
I
G
B
T
VCC
C
O
M
1
PAN
T
M
B
+
C18
100u/16v
SEN1
SEN3
SEN5
R46 47k
SEN7
+
C15
100u/16v
R47 47k
C
U
R
C8
0.1u
V
I
N
C
O
M
2
COM4
COM6
C9
0.1u
R48 47k
C10
0.1u
C12
0.1u
C7
4.7n
R73 560R
SEN12
SEN4
SEN8
SEN11 SEN12
SEN10
SPI_CLK
VCC
U1
CY8C22545-TQFP
P2.5
1
P2.3
2
P2.1
3
Vdd1
4
P4.5
5
P4.3
6
P4.1
7
Vss2
8
P3.7
9
P3.5
10
P3.3
11
P
3
.
1
1
2
P
1
.
7
1
3
P
1
.
5
1
4
P
1
.
3
1
5
P
1
.
1
1
6
V
s
s
3
1
7
P
1
.
0
1
8
P
1
.
2
1
9
P
1
.
4
2
0
P
1
.
6
2
1
P
3
.
0
2
2
P3.2
23
P3.4
24
P3.6
25
XRES
26
P4.0
27
P4.2
28
P4.4
29
Vss1
30
P2.0
31
P2.2
32
P2.4
33
P
2
.
6
3
4
P
0
.
0
3
5
P
0
.
2
3
6
P
0
.
4
3
7
P
0
.
6
3
8
V
d
d
2
3
9
P
0
.
7
4
0
P
0
.
5
4
1
P
0
.
3
4
2
P
0
.
1
4
3
P
2
.
7
4
4
BUZ
SEN2
5V_IN
C
M
O
D
R
SEN1
SEN2
SEN3
SEN4
SEN5
SEN8
R74 560R
C5
0.1u
C6
0.1u
R75 560R
SEN6
R41 47k
R76 560R
T
X
P
R77 560R
C
M
O
D
L
R78 560R
C
O
M
5
R79 560R
R80 560R
SEN9
SEN11
1
Button
1
Button
I2C_SCL
1
Button
SEN10
1
Button
R81 560R
I2C_SDA
1
Button
1
Button
1
Button
1
Button
1
Button
1
Button
1
Button
1
Button
R82 560R
R49 0
PWM
J 41
Connect
1
1
2
2
3
3
4
4
5
5
6
6
7
7
8
8
9
9
10
10
11
11
R83 560R
SPI_IO
R84 560R
S
P
I
_
I
O
C14
0.1u
COM1
SEN6
C16
0.1u
LS1
SPEAKER
C17
0.1u
CMODL
COM5
Appendix A
Figure 16. Board Schematic












































Induction Cooker Design with CapSense


www.cypress.com Document No. 001-50475 Rev. *B 12
SEG3
SEG4
SEG5
SEG6
SEG7
SEG8
R86 200R
COM1
SPI_IO
SPI_CLK
COM2
COM3
Q6
SS9014
R68 4.7K
R87 200R
R88 200R
SEG8
R89 200R
SEG4
R90 200R
SEG3
SEG2
R91 200R
R92 200R
R69 4.7K
R70 4.7K
R71 4.7K
R72 4.7K
SEG1
Q4
SS9014
Title
Size Document Number Rev
Date: Sheet of
Induction Cooker Demo Kit
1.0
Cypress Semiconductor
C
1 1 Tuesday, December 02, 2008
Q5
SS9014
Q1
SS9014
Q2
SS9014
R85 200R
Q3
SS9014
LED1
LED1
1
2
COM6
SEG7
LED2
LED2
1
2
SEG6
LED3
LED3
1
2
LED4
LED4
1
2
SEG5
LED5
LED5
1
2
LED6
LED6
1
2
LED7
LED7
1
2
R67 4.7K
COM4
Numerical LED
U4
CATHODE_A
14
CATHODE_B
16
CATHODE_C
13
CATHODE_D
3
CATHODE_E
5
CATHODE_F
11
CATHODE_G
15
CATHODE_DP
7
ANODE1
1
ANODE2
2
ANODE3
6
ANODE4
8
N
C
4
N
C
2
9
N
C
3
1
0
N
C
4
1
2
SEG1
SEG4
SEG3
SEG2
SEG7
SEG6
SEG5
SEG8
LED8
LED8
1
2
LED9
LED9
1
2
LED10
LED10
1
2
LED11
LED11
1
2
LED12
LED12
1
2
LED13
LED13
1
2
COM5
U3
MC74HC164ADT
RESET
9
CLK
8
A
1
B
2
QA
3
QB
4
QC
5
QD
6
QE
10
QF
11
QG
12
QH
13
VDD
14
GND
7
VCC
6
R20 10K
SPI_CLK
SPI_IO
C13 0.1uF
VCC
SEG1
SEG2


Figure 17. Schematic Drawing of Induction Cooker Evaluation Kit


































Induction Cooker Design with CapSense


www.cypress.com Document No. 001-50475 Rev. *B 13

Figure 18. Photograph of Induction Cooker Evaluation Kit






Induction Cooker Design with CapSense


www.cypress.com Document No. 001-50475 Rev. *B 14
Figure 19. Induction Cooker FW Architecture Flow Chart
duct o Coo e c tectu e o c a t
Tick++
LEDRefreshing
Start
MainLoop TimerISR
End
WorkingModeControlModule
ButtonScan(CSD)Module
Start
ADCModule(ACvoltage,current,NTC
Pan,NTCIGBT)
IGBTControlModule
(ActualPowerCalculation,
PanAuto-detect
fixedtemperaturecontrolalgorithm
stablepowercontrolalgorithm)
BuzzerControlModule
ProtectionModule
Hardware/RegisterInitialization
LEDDiaplayModule
FanControlModule





Induction Cooker Design with CapSense


www.cypress.com Document No. 001-50475 Rev. *B 15

Document History
Document Title: Induction Cooker Design with CapSense

- AN50475
Document Number: 001-50475
Revision ECN Orig. of
Change
Submission
Date
Description of Change
** 2616863 J HU/AESA 01/07/2009 New application note.
*A 3197603 SSHH 03/16/2011 Changed the default compiler to Image craft from Hi-tech in the PSoC Designer
setting.
*B 3604206 BLJ I 04/30/2012 Added details about Quasi-resonant converter.
Updated project to PSoC Designer 5.2 SP1.
Updated template.



Induction Cooker Design with CapSense


www.cypress.com Document No. 001-50475 Rev. *B 16
Worldwide Sales and Design Support
Cypress maintains a worldwide network of offices, solution centers, manufacturers representatives, and distributors. To find
the office closest to you, visit us at Cypress Locations.

Products
Automotive cypress.com/go/automotive
Clocks & Buffers cypress.com/go/clocks
Interface cypress.com/go/interface
Lighting & Power Control cypress.com/go/powerpsoc
cypress.com/go/plc
Memory cypress.com/go/memory
Optical Navigation Sensors cypress.com/go/ons
PSoC cypress.com/go/psoc
Touch Sensing cypress.com/go/touch
USB Controllers cypress.com/go/usb
Wireless/RF cypress.com/go/wireless

PSoC

Solutions
psoc.cypress.com/solutions
PSoC 1 | PSoC 3 | PSoC 5
Cypress Developer Community
Community | Forums | Blogs | Video | Training
Technical Support
cypress.com/go/support




PSoC is a registered trademark of Cypress Semiconductor Corp. "Programmable System-on-Chip," PSoC Designer, and CapSense are trademarks of
Cypress Semiconductor Corp. All other trademarks or registered trademarks referenced herein are the property of their respective owners.

Cypress Semiconductor
198 Champion Court
San J ose, CA 95134-1709
Phone : 408-943-2600
Fax : 408-943-4730
Website : www.cypress.com

Cypress Semiconductor Corporation, 2009-2012. The information contained herein is subject to change without notice. Cypress Semiconductor
Corporation assumes no responsibility for the use of any circuitry other than circuitry embodied in a Cypress product. Nor does it convey or imply any
license under patent or other rights. Cypress products are not warranted nor intended to be used for medical, life support, life saving, critical control or
safety applications, unless pursuant to an express written agreement with Cypress. Furthermore, Cypress does not authorize its products for use as
critical components in life-support systems where a malfunction or failure may reasonably be expected to result in significant injury to the user. The
inclusion of Cypress products in life-support systems application implies that the manufacturer assumes all risk of such use and in doing so indemnifies
Cypress against all charges.
This Source Code (software and/or firmware) is owned by Cypress Semiconductor Corporation (Cypress) and is protected by and subject to worldwide
patent protection (United States and foreign), United States copyright laws and international treaty provisions. Cypress hereby grants to licensee a
personal, non-exclusive, non-transferable license to copy, use, modify, create derivative works of, and compile the Cypress Source Code and derivative
works for the sole purpose of creating custom software and or firmware in support of licensee product to be used only in conjunction with a Cypress
integrated circuit as specified in the applicable agreement. Any reproduction, modification, translation, compilation, or representation of this Source
Code except as specified above is prohibited without the express written permission of Cypress.
Disclaimer: CYPRESS MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS MATERIAL, INCLUDING, BUT
NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Cypress reserves the
right to make changes without further notice to the materials described herein. Cypress does not assume any liability arising out of the application or
use of any product or circuit described herein. Cypress does not authorize its products for use as critical components in life-support systems where a
malfunction or failure may reasonably be expected to result in significant injury to the user. The inclusion of Cypress product in a life-support systems
application implies that the manufacturer assumes all risk of such use and in doing so indemnifies Cypress against all charges.
Use may be limited by and subject to the applicable Cypress software license agreement.

S-ar putea să vă placă și