Professional Documents
Culture Documents
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
Introduction .......................................................................1 Touch sensor technology has existed for many years
Induction Cooker: Working Principle .................................1 because it is suitable for harsh environments. Capacitance
CY8C22x45 Overview .......................................................2 based touch sensors are now widely applied in consumer
electronics. Touch sensors appear stylish, and products
System Features ...............................................................3 based on touch sensors are attractive. In home appliances
System Hardware ..............................................................3 such as the microwave oven, induction cooker, and rice
Dual-Channel CapSense Scan.....................................5 cooker, there is a growing demand for the CapSense
I/O Expansion by 74HC164 ..........................................6 button and slider for high-end designs. Typically, there are
Low-Pass Filter for Analog Signal ................................6 two microcontrollers in these designs: one for the kernel
tasks control, and the other for the CapSense button/slider
Board Connector Definition and Description.................6
control. CY8C22x45 is a new PSoC product family that
System Firmware ..............................................................6 simplifies the design and reduces the system cost. This
PSoC Digital Block and Analog Resources Consumed 8 application note uses the induction cooker as an example
LEDs and 7-Segment Digital LED Display Refresh ......8 to discuss the integration design of CapSense and system
IIR Low-Pass Digital Filter ............................................9 control in the CY8C22x45.
PI Close Loop Control Algorithm ..................................9
Appendix A ...................................................................... 11 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
electric energy into heat energy, while overcoming the CY8C22x45 Overview
internal impedance stream. The generated joule heat is
the heat source for cooking. CY8C22x45 is a product of the PSoC family. It is an
Figure 1. Induction Cooker 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
2
resources such as I 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
The major controls of the induction cooker include: Port 4 Port 3 Port 2 Port 1 Port 0
PSoC Core
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
Global Digital Interconnect
cost and rigid parameters, IGBT is designed with Global Analog Interconnect
several conditions. Any of the following factors can SRAM SROM Flash 16K
destroy IGBT: excess voltage, instantaneous 1K
impingement generated when power is switched on or CPU Core (M8C) Sleep and
Interrupt Watchdog
Controller
off, proliferated current and excess temperature. IGBT
can be damaged even when the iron pan is removed Multiple Clock Sources
from the ceramic panel or if no pan is placed on the (Includes IMO, ILO, PLL, and ECO)
2. Temperature Control in the Iron Pan Bottom: The heat Digital Block Array
Analog Input Analog
in the iron pan bottom is directly transferred to the DBC DBC DCC DCC Muxing Ref =
SCE SCE
3. Stable Power Control: The output power of the
System Bus
the system clock resource VC1/VC2/VC3 and digital CapSense sensor failure detection
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.
System Hardware
The new CSD user module in CY8C22x45 is capable of There are two PCB boards in the design viz. power control
simultaneous scanning on dual CSD channel input to board and main controller board. They are connected by
reduce the total scanning time in an application. an 11-pin ripple cable.
Power Control Board
System Features
The power control board uses a quasi resonant converter
In addition to the features that CY8C22x45 provides for to create a magnetic field that induces a vortex in iron and
CapSense control, the induction cooker design also stainless steel pan bottoms. Figure 3 shows a typical
contains the system control. It has common features that quasi resonant converter, Figure 4 shows the equivalent of
are found in existing products. The features are: the resonant circuit, and Figure 5 shows the waveforms of
each block of the main power circuit in a cycle.
AC 220 V/50 Hz power supply
Figure 3. Quasi Resonant Converter
1800 W rated power
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
Figure 5. Waveforms of Each Block of the Main Power MODE II: t1-t4
Circuit in a Cycle
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).
The switching circuit is turned off when the resonant The power control board is close to the electrified coil on
the bottom of the cooker. It includes the AC power input
current flowing through the circuit is at its peak, i.e. at
t0. In this process, a turn-off switching loss occurs. rectifier, choke, IGBT for DC/AC conversion, the zero-
The Vce level is rapidly increased by the capacitor voltage switching control circuit for IGBT, current sensing
(Cr) to become DC-LINK (Vdc) at t1. and other high voltage components, DC power supply, fan
and buzzer driver, and more. Figure 7 shows the block
Even when the switch is turned off at t0, the current diagram of the power module board. All the components
keeps incrementing to reach its peak at t1, when Vce on this board are discrete components.
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.
Vcc
It has two separated CSD logic and can support dual-
channel CSD scan.
CMP
CMP
Over-Vol
Dedicated clock resource frees the VC1/VC2/VC3
Pan NTC
Syn-Control
Over-Current
clocks for other system control.
CMP
Temperature
Vcc
Vref Control
IGBT Block
NTC
Temperature
PWM Duty Ref M8C needs to respond to only one interrupt for each
(20KHz PWM
Coil
Temperature
NTC PWM Enable and
Protection )
CapSense button scan.
5v
Driver Figure 9. Block Diagram of CSD2X
GND
1 2 3 4 5 6 7 8 9 10 11
FAN
Board Connector
LEDs
LED Segments
The temperatures sensors are used to measure PAN, Figure 13. Flow Chart of Firmware
IGBT and Coil temperature. The limiting values for PAN,
IGBT and Coil temperatures are 300, 80, and 80 °C.
Start
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. Hardware/Register Initialization
Figure 12. Power Board
Protection Module
PSoC Digital Block and Analog Resources LEDs and 7-Segment Digital LED Display
Consumed Refresh
The following table lists the digital blocks, analog blocks, The user interface of the induction cooker is important,
and other resources consumed in the induction cooker because the end user exchanges all information through it.
system. In the design, the 74HC164 is used to expand the I/O to
drive the four 7-segment LED display. Any delay in
Table 2. PSoC Digital Block and Analog Resources refreshing results in the blinking of the LED. So an 8-bit
timer is used in the firmware, and the interrupt of the timer
Name Description requests the LEDs to be refreshed. A display buffer,
whose value is set in main loop, is also used to refresh
DBC00 PWM8 for IGBT power control
The LEDs. In the Timer8 IRQ, the contents of this buffer
DBC01 PWM8 for buzzer control are sent out through the SPI user module, which is
cascaded with the 74HC164 for LED driving. The LEDs
DCC02 Timer8 for internal click are grouped by 6, and each group is turned on in
DCC03 SPIM for 74HCT164 driving sequence. The scan interval is set as 2 ms or 3 ms, so the
refresh rate is around 55 Hz to 83 Hz.
DBC10 PWM8 for fan control
The following firmware shows the scan of the LED display:
DBC11 Counter8 for UART clock (Optional)
BYTE baLedBuf[6];
DCC12 UART TX for system debug (Optional) // display buffer
DCC13 UART RX for system debug (Optional)
The refreshing code in the Timer8 IRQ is:
ACE02 Used be CSD2X for button scan
ACE 03 Used be CSD2X for button scan void Timer8_ISR( void )
{
CSD2X Button scan static BYTE bLedTimer;
RTC System timer wTick++;
// global for tick
SAR10 Analog signals sampling
if( wTick - bLedTimer > LEDONTIME )
// period is 2ms
Figure 14. System Interconnection {
bLedTimer = wTick;
bComInx ++;
if( bComInx>=LEDCOMNUM)
bComInx = 0;
switch( bComInx )
{
case 0:
LED_COM5_OFF;
SPIM_TX_BUFFER_REG =
baLedBuf[0];
LED_COM0_ON;
break;
case 1:
LED_COM0_OFF;
SPIM_TX_BUFFER_REG =
baLedBuf[1];
LED_COM1_ON;
break;
case 2:
LED_COM1_OFF;
SPIM_TX_BUFFER_REG =
baLedBuf[2];
LED_COM2_ON;
break;
case 3:
LED_COM2_OFF;
is the filter coefficient. The output of this formula is the increment value, and
with firmware protection there is less chance for
is the current sampling value. errors.
is the current output of filter.
The complexity of increment mode PI algorithm is less
is the last output of filter. than that of absolute mode. It can save more PSoC
system resources.
To finish the calculation, the multiplication and addition
operations need two times. Considering the PSoC CPU Figure 15 shows the block diagram of PI algorithm power
resources, the calculation is still complicated. To achieve control for fixed power cooking mode.
the low-pass filter and simplify this algorithm, the special Figure 15. Block Diagram of PI Algorithm Power Control
filter coefficient is required. For example, using
the following formula is obtained: Control Board Power Board
Appendix A
Figure 16. Board Schematic
J41
5V_IN
R84 560R
1
1 1 SEN1
2 R41 47k TXP COM1 Button
2
COM2
3 R44 47k TIGBT
3 VCC
R48 47k R83 560R
4 TMB 1
4 Button SEN2
R51 0
CMODR
PWM
CMODL
5
TIGBT
5
TXP
CUR
TMB
R82 560R
VIN
COM2
COM1
6 R46 47k VIN
6 1 SEN3
7 R47 47k CUR Button
7
R49 0 U1
44
43
42
41
40
39
38
37
36
35
34
8 GJ_INT R81 560R
8
9 R52 0 FAN 1 SEN4
P2.7
P0.1
P0.3
P0.5
P0.7
Vdd2
P0.6
P0.4
P0.2
P0.0
P2.6
9 Button
10 R53 0 PAN
10 1 33 BUZ
P2.5 P2.4 R80 560R
11
11 C12 C14 C16 C17 C19 GJ_INT 2 32 FAN 1 SEN5
P2.3 P2.2 Button
VCC
Connect 0.1u 0.1u 0.1u 0.1u 0.1u PWM 3 31 PAN
P2.1 P2.0
R79 560R
4 30
Vdd1 Vss1 1 SEN6
SEN11 5 29 SEN12 Button
P4.5 P4.4
5V_IN
SEN9 6 28 SEN10
P4.3 P4.2 R78 560R
SEN7 7
CY8C22545-TQFP 27 SEN8 1 SEN7
L1 VCC P4.1 P4.0 Button
8 26
Vss2 XRES
SEN5 SEN6 R77 560R
9 25
P3.7 P3.6 1 SEN8
SEN3 10 24 SEN4 Button
+ + P3.5 P3.4
C15 C5 BEAD C6 C18
100u/16v SEN1 11 23 SEN2
0.1u 0.1u 100u/16v P3.3 P3.2 R76 560R
1 SEN9
Vss3
P3.1
P1.7
P1.5
P1.3
P1.1
P1.0
P1.2
P1.4
P1.6
P3.0
Button
12
13
14
15
16
17
18
19
20
21
22
R75 560R
1 SEN10
COM3
COM5
COM4 Button
SPI_IO
COM6
VCC R74 560R
1 SEN11
SPI_CLK Button
COM3 COM5
SPI_IO
C7
VCC
LS1 CMODL
BUZ 4.7n
VCC C11
CMODR
SPEAKER J7
1
2 1 4.7n
3 2
I2C_SCL 4 3
I2C_SDA 5 4
5
5 PIN HDR
Cypress Semiconductor
Title
Induction Cooker Demo Kit
Size Document Number Rev
B 1.0
U4 Numerical LED
1 14 SEG1
ANODE1 CATHODE_A 16 SEG2
2 CATHODE_B 13 SEG3
ANODE2 CATHODE_C 3 SEG4
6 CATHODE_D 5 SEG5
ANODE3 CATHODE_E 11 SEG6
8 CATHODE_F 15 SEG7
ANODE4 CATHODE_G 7 SEG8
CATHODE_DP
NC2
NC3
NC4
NC
4
10
12
COM1 R72 4.7K Q4
R71 4.7K Q1
COM2 R70 4.7K Q3 Q2
COM3 R69 4.7K
COM4
SS9014
SS9014
SS9014
SS9014
SEG1
SEG2
SEG3
SEG4
SEG5
SEG6
VCC VCC
U3
C13 0.1uF SEG7
R20 10K 9 14
8 RESET VDD
SPI_CLK CLK
6
1
QF 12 R86 200R SEG7
7 QG 13 R85 200R SEG8
GND QH
LED1 LED2 LED3 LED4
LED5 LED6 LED7
MC74HC164ADT LED1 LED2 LED3 LED4
LED5 LED6 LED7
2
1
1
1
LED11
LED9 LED10 LED12 LED13
LED8 LED9 LED10 LED11 LED12 LED13
LED8
2
2
Q6
R67 4.7K
COM5
SS9014
Q5
R68 4.7K
COM6
SS9014
Cypress Semiconductor
Title
Induction Cooker Demo Kit
Size Document Number Rev
C 1.0
Start Start
Hardware/Register Initialization
Tick++
LED Refreshing
LED Diaplay Module
Protection Module
Document History
®
Document Title: Induction Cooker Design with CapSense - AN50475
Document Number: 001-50475
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 Corporation, 2009-2015. 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.