Application Note. 8-Bit Microcontrollers. AVR433: Power Factor Corrector (PFC) with AT90PWM2 Re-triggable High Speed PSC

Similar documents
ATA6140. Flasher Application Module. Application Note. ATA Flasher Application Module. 1. Description

Flasher, 18-mΩ Shunt, Frequency Doubling Disabling U6433B

Flasher, 30 mω Shunt, Pilot Lamp to GND or V Batt U2043B

Current Monitor IC U4793B

Flasher IC with U643B

Zero-voltage Switch with Adjustable Ramp T2117

Digital Window Watchdog Timer U5021M

PWM Power Control IC with Interference Suppression U6083B

AVR443: Sensor-based control of three phase Brushless DC motor. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

Rear Window Heating Timer/ Long-term Timer U6046B

Low-power Flasher IC with 18-m Shunt U6432B

8-bit Microcontroller. Application Note. AVR400: Low Cost A/D Converter

Low-cost Phase-control IC with Soft Start U2008B

Transceiver Base Station Board ATAB542x-x-B. Application Note. Bill of Materials and Implementation of the Transceiver Base Station Board ATAB542x-x-B

IR Receiver for Data Communication U2538B

Zero-voltage Switch with Adjustable Ramp T2117

300-MHz Quadrature Modulator U2793B

8-bit RISC Microcontroller. Application Note. AVR182: Zero Cross Detector

Transceiver Base Station Board ATAB5823-x-B/ ATAB5824-x-B. Application Note

Two-relay Flasher ATA6140

AVR443: Sensorbased control of three phase Brushless DC motor. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

Read/Write Crypto Transponder for Short Cycle Time TK5561A-PP

Low-power Audio Amplifier for Telephone Applications U4083B

Phase-control IC with Current Feedback and. Overload. Protection U2010B

Application Note. How to Connect C51 Microcontroller to ATR Microcontrollers

Application Note. 8-bit Microcontrollers. AVR092: Replacing ATtiny11/12 by ATtiny13. Features. Introduction

1-Megabit (64K x 16) OTP EPROM AT27C1024

MHz High Linearity SiGe Active Receive Mixer T0782. Preliminary

2-Megabit (128K x 16) OTP EPROM AT27C2048

1-Megabit (128K x 8) OTP EPROM AT27C010

1000-MHz Quadrature Modulator U2790B. Features. Benefits. Description. Electrostatic sensitive device. Observe precautions for handling.

AVR122: Calibration of the AVR's internal temperature reference. 8-bit Microcontrollers. Application Note. Features.

AVR055: Using a 32kHz XTAL for run-time calibration of the internal RC. 8-bit Microcontrollers. Application Note. Features.

UHF ASK Transmitter U2745B

Read-only Transponder TK5530

Standard Read/Write ID Transponder with Anticollision TK5551

Programmable SLI AT94K AT94S. Application Note. DTMF Generator

AVR1311: Using the XMEGA Timer/Counter Extensions. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

8-bit Microcontroller. Application Note. AVR084: Replacing ATmega323 by ATmega32. Features. Introduction. ATmega323 Errata Corrected in ATmega32

128-bit Read-only IDIC for RF Identification. e5530

Flasher IC with 18-mΩ Shunt U6043B

AVR1302: Using the XMEGA Analog Comparator. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

UHF ASK/FSK Transmitter U2741B

Read/Write Base Station U2270B

8-Megabit (1M x 8) OTP EPROM AT27C080. Features. Description. Pin Configurations

ATAVRAUTO User Guide

Multifunction Timer IC U2102B

8-bit. Application Note. Microcontrollers. AVR077: Opto Isolated Emulation for the DebugWIRE

Phase Control IC for Tacho Applications U209B

2.4-GHz SiGe Power Amplifier for b/g WLAN Systems T7031. Preliminary

Application Note. Preliminary. 8-bit Microcontrollers

High-speed CAN Transceiver ATA6660

Special Fail-safe IC U6808B

UHF ASK/FSK Receiver ATA5721 ATA5722. Features

Power Management AT73C211

Highperformance EE PLD ATF16LV8C

8-bit Microcontroller. Application Note. AVR083: Replacing ATmega163 by ATmega16

8-bit RISC Microcontroller. Application Note. AVR314: DTMF Generator

UHF ASK/FSK. Transmitter T5754

Smart RF AT86RF401-EK1. Application Note. AT86RF401-EK1 Smart RF MicroTransmitter Evaluation Kit Application Note. Functional Description

3-wire Serial EEPROM AT93C86. Features. Description. Pin Configurations. 16K (2048 x 8 or 1024 x 16)

ATAK57xx Software Description. Application Note. Preliminary. Software Description RF Design Kit ATAK57xx. Description

Atmel ATA6629/ Atmel ATA6631 Development Board V2.2. Application Note. Atmel ATA6629/ATA6631 Development Board V

3-wire Serial EEPROM AT93C86. Features. Description. Pin Configurations 8-lead PDIP. 16K (2048 x 8 or 1024 x 16)

4-Megabit (256K x 16) OTP EPROM AT27C4096

1-Megabit (64K x 16) OTP EPROM AT27C1024

AT91 ARM Thumb Microcontroller s. AT91R40807 Electrical Characteristics

8-bit Microcontroller. Application Note. AVR085: Replacing AT90S8515 by ATmega8515. Features. Introduction. AT90S8515 Errata Corrected in ATmega8515

8-bit Microcontroller with 2K Bytes In-System Programmable Flash. ATtiny261A. Appendix A. Appendix A ATtiny261A Specification at 105 C

Low-cost Phase-control IC with Soft Start

AT91 ARM Thumb Microcontrollers. AT91R40008 Electrical Characteristics

Low-noise, High-dynamicrange. Antenna Amplifier IC ATR4251. Preliminary

Power Meter Front End Design: The Delta Connection. Application Note. Power Meter Front End Design: The Delta Connection. Three-Phase Basics

3-wire Serial EEPROM AT93C86A. Preliminary. Features. Description. Pin Configurations. 16K (2048 x 8 or 1024 x 16) VCC DC ORG GND CS SK DI DO

256K (32K x 8) Unregulated Battery-Voltage High-Speed OTP EPROM AT27BV256

Atmel U6032B. Automotive Toggle Switch IC DATASHEET. Features. Description

Time-code Receiver T4227

Standard Read/Write Crypto Identification IC. e5561

Rad Hard 128K x volt Very Low Power CMOS SRAM M65609E

AT91 ARM Thumb Microcontrollers. AT91R40008 Electrical Characteristics. Features. Description

2-megabit (256K x 8) Unregulated Battery-Voltage High-speed OTP EPROM AT27BV020

L-band Down-converter for DAB Receivers U2730B-N. Preliminary

8-bit RISC Microcontroller. Application Note. AVR042: AVR Hardware Design Considerations

Very Highresolution. Linear CCD Image Sensor (12000 Pixels) TH7834C. Features. Description

Read/Write Base Station U2270B

Rad Hard 16 MegaBit SRAM Multi Chip Module AT68166F AT68166FT. Preliminary

Read/Write Transponder TK5552

Rad. Tolerant 8K x 8-5 volts Very Low Power CMOS SRAM AT65609EHW

APPLICATION NOTE. Atmel AVR127: Understanding ADC Parameters. Atmel 8-bit Microcontroller. Features. Introduction

Standard R/W IDIC (264 Bit) with Integrated Capacitance T5554. Preliminary. Features. Description. System Block Diagram

Can Transceiver IC B10011S

125 khz Transmitter IC for TPM ATA5275

AVR053: Calibration of the internal RC oscillator. 8-bit Microcontrollers. Application Note. Features. Introduction

Rad. Tolerant 128Kx8, 5-Volt Very Low Power CMOS SRAM M65608E

8-bit Microcontroller. Application Note. AVR086: Replacing AT90S8535 by ATmega8535

AVR440: Sensorless Control of Two-Phase Brushless DC Motor. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR1606: XMEGA Internal RC Oscillator Calibration. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

8-bit Microcontroller. Application Note. AVR040: EMC Design Considerations. Scope. Introduction

AVR1003: Using the XMEGA Clock System. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

4-Megabit (512K x 8) OTP EPROM AT27C040. Features. Description. Pin Configurations

Transcription:

AVR433: Power Factor Corrector (PFC) with AT90PWM2 Re-triggable High Speed PSC Features: Boost Architecture High Power Factor and low Total Harmonic Distortion Use few CPU time and few microcontroller resources: 2 ADC input channels 1 Analog comparator 1 PCS channel with re-trigger function and fault protection 1 optional timer base time 1. Introduction This application note explains how to develop a stand alone PFC (Power Factor Corrector) with the AT90PWM2. 8-Bit Microcontrollers Application Note A PFC, often required by standards (Example EN 61000-3-2), requires to keep current and voltage in phase in a sinusoidal power supply while also keeping the total harmonic distortion to a minimum. Implementing a PFC with the AT90PWM2 leaves most peripherals and memory space free for the application (Lighting, motor control...) Among the many ways to implement a PFC, the solution briefly explained here is based on a current boost topology.

2. Theory of Operation The current drawn from the line must be sinusoidal and in phase with the line voltage. The PFC designed with the AT90PWM2 accomplishes this using a boost converter operating at critical conduction so that the current waveform is triangular. Figure 2-1 shows a block diagram of the PFC (without all detailed discrete components). The magnetic includes a main winding L for PFC and an auxiliary winding for Zero Crossing Detection (ZCD). Figure 2-1. PFC Boost Regulator Block Diagram PFC BOOST REGULATOR PFC Inductor POWER VOLTAGE AT90PWMX UC_SUPPLY Vcc PFC_ZCD PSCIN0/PD1 V_HAVERSINE PSCOUT00/PD0 ADC4/PB7 ADC5/PB2 OVER_I_PROT ACMP0/PD7 PFC Output DRIVER BULK CAPACITOR The boost switch ON time is maintained constant over each half cycle of the input sinusoidal voltage. Therefore the peak current for each switching cycle is proportional to the line voltage which is nearly constant during TON. (IPEAK = VIN x TON/L). Since the average value of a triangular waveform is half its peak value, the average current drawn is also proportional to the line voltage. See Figure 2-2. 2

Figure 2-2. Main Supply Voltage Ipeak = Vin x Ton / L Imean = Ipeak/2 PFC main voltage chopping Actual switching frequency is higher than shown Ion Ioff True PSC Output Zero Crossing Detection Auto triggering triggered from Zero Crossing Detection The adjustment is automatically done by hardware zero crossing detection while the TON adjustment is done by software each time the main voltage reaches zero Volts (once each half period of the main supply voltage). 3. Hardware Design The implementation of such a PFC needs the input measurements described below. 3.1 Main Voltage Supply measurement (V_HAVERSINE) At start-up, the main voltage value is necessary to determine the maximum TON applicable taking into account the maximum current of the PFC transistor. Moreover, when the PFC is running, this measurement allows to detect when the main supply voltage reaches zero Volt, in order to update the TON. This measurement is done with an ADC input channel connected to a voltage divider right after the rectifier. 3.2 Current Zero Crossing Detection (ZCD) The Zero Crossing Detection is necessary to make the PFC run in Critical Conduction Mode. The Zero Crossing Detection is done thanks to a secondary winding on the PFC coil. This secondary winding allows to detect when the current into the coil reaches zero. The secondary winding is connected to PSCIN0 pin which directly acts on AT90PWM2 Power Stage Controller 0 (PSC0). Thanks to a special retrig mode on the PSC, as soon as a ZCD is detected, the is aborted and a new cycle with the TON programmed for the entire main half period cycle is started. 3

3.3 Output Voltage Measurement () The output voltage value is necessary to handle the software PFC control loop. When the main supply voltage reaches zero, PSC parameters are updated in order to get the most stable and accurate output voltage. This measurement is done thanks to an ADC input channel connected to a voltage divider on the haversine. 3.4 Overcurrent Protection (OVER_I_PROT) The overcurrent protection allows to switch off by hardware the PSC0 in case of overcurrent in the PFC MOSFET. A shunt resistor connected between the source of the MOS and the ground is connected at one input of the analog comparator 0. In case the current becomes higher than the transistor can tolerate, the analog comparator output directly switch the AT90PWM2 Power Stage Controller 0 (PSC0) to its predefined dead time value until a software action restarts it. 3.5 MOS Driver Command The MOSFET driver is controlled thanks to the Power Stage Controller 0 (PSC0). As shown in the datasheet on the PSC block diagram, a PSC has two output generators (Waveform generators A and B). Regardless, in order to control the PFC MOSFET, only one output stage is necessary (Stage A), the waveform generator A allows to control the TON while the waveform generator B allows to control the. Thus, in order to adjust the, the retrig mode 8 is programmed to the waveform generator B even if the output stage B is not used. The adjustment by the mode 8 auto-retrig is shown on Figure 3-1. Figure 3-1. The PSC input mode 8 allows to start a new cycle each time a ZCD occurs OCR0RB OCR0RA PSCCounter PSCOUT00 TON TON TON TON TON PSCOUT01 PSC0InputB In order to stop the output in case of overcurrent, fault mode 7 is programmed to the waveform generator A. Indeed, this fault mode acts on both PSC waveform generators and outputs. An example of combined mode 8 auto-retrig and mode 7 fault mode is shown on Figure 3-2. 4

Figure 3-2. OCR0RB The PSC input mode 7 Allows to stop the PSC in case off overcurrent OCR0RA PSCCounter TON TON TON TON PSCOUT00 PSCOUT01 PSC0InputB (Retrigger) PSC0InputA (Fault) Over current event 4. Software Design In order to start, the PFC needs a few pre-defined pulses until a zero crossing is detected. Shortly after, the PFC can run automatically with only few CPU resources. The adjustment of the PFC TON and is down as follows: - The is automatically adjusted by hardware at each PFC inductor current zero crossing detection, - The TON is adjusted by software accordingly to the Vout measurement each time the main supply voltage reach zero (Each half period of the main voltage supply). The software can run as follow: - First all peripherals are initialized, then the ADC is started to run automatically in interrupt mode to capture all necessary values. Then the PFC can be started and run in quasi stand alone mode. 5

5. Example of complete PFC block diagram On Figure 5-1, there is an example of block diagram of a complete PFC application. In this example, a second PSC is used in order to control a variable load (lamp). Figure 5-1. POWER VOLTAGE Complete PFC block diagram example PFC BOOST REGULATOR R9 & R13 R35 UVLO R2 IXTP02N50D Q1 D3 PFC Inductor IX859 Regulators 15V 3.3V PFC Driver D4 BULK CAPACITOR R10 & R14 C9 R39 OPTIONAL LOAD INVERTER 15V IXD611 IXTP3N50P Driver Q4 Driver Q5 D2 Q3 R28 3V AT90PWMX OVER_I_PROT ACMP0/PD7 PFC_ZCD PSCIN0/PD1 PSCOUT00/PD0 ADC5/PB2 V_HAVERSINE ADC4/PB7 PFC Output I_LOAD ADC7/PB6 PSCOUT20/PB0 AMP0+/PB4 PSCOUT21/PB1 AMP0-/PB3 Inverter High Inverter Low A complete PFC application has been developed on the dimmable fluorescent lamp demonstrator (ATAVRFBKIT / EVLB001). On this document you can find a complete PFC design (including the microcontroller supply). All information and software are available on the ATMEL web site. 6

Atmel Corporation 2325 Orchard Parkway San Jose, CA 95131, USA Tel: 1(408) 441-0311 Fax: 1(408) 487-2600 Regional Headquarters Europe Atmel Sarl Route des Arsenaux 41 Case Postale 80 CH-1705 Fribourg Switzerland Tel: (41) 26-426-5555 Fax: (41) 26-426-5500 Asia Room 1219 Chinachem Golden Plaza 77 Mody Road Tsimshatsui East Kowloon Hong Kong Tel: (852) 2721-9778 Fax: (852) 2722-1369 Japan 9F, Tonetsu Shinkawa Bldg. 1-24-8 Shinkawa Chuo-ku, Tokyo 104-0033 Japan Tel: (81) 3-3523-3551 Fax: (81) 3-3523-7581 Atmel Operations Memory 2325 Orchard Parkway San Jose, CA 95131, USA Tel: 1(408) 441-0311 Fax: 1(408) 436-4314 Microcontrollers 2325 Orchard Parkway San Jose, CA 95131, USA Tel: 1(408) 441-0311 Fax: 1(408) 436-4314 La Chantrerie BP 70602 44306 Nantes Cedex 3, France Tel: (33) 2-40-18-18-18 Fax: (33) 2-40-18-19-60 ASIC/ASSP/Smart Cards Zone Industrielle 13106 Rousset Cedex, France Tel: (33) 4-42-53-60-00 Fax: (33) 4-42-53-60-01 1150 East Cheyenne Mtn. Blvd. Colorado Springs, CO 80906, USA Tel: 1(719) 576-3300 Fax: 1(719) 540-1759 Scottish Enterprise Technology Park Maxwell Building East Kilbride G75 0QR, Scotland Tel: (44) 1355-803-000 Fax: (44) 1355-242-743 RF/Automotive Theresienstrasse 2 Postfach 3535 74025 Heilbronn, Germany Tel: (49) 71-31-67-0 Fax: (49) 71-31-67-2340 1150 East Cheyenne Mtn. Blvd. Colorado Springs, CO 80906, USA Tel: 1(719) 576-3300 Fax: 1(719) 540-1759 Biometrics/Imaging/Hi-Rel MPU/ High Speed Converters/RF Datacom Avenue de Rochepleine BP 123 38521 Saint-Egreve Cedex, France Tel: (33) 4-76-58-30-00 Fax: (33) 4-76-58-34-80 Literature Requests www.atmel.com/literature Disclaimer: The information in this document is provided in connection with Atmel products. No license, express or implied, by estoppel or otherwise, to any intellectual property right is granted by this document or in connection with the sale of Atmel products. EXCEPT AS SET FORTH IN ATMEL S TERMS AND CONDI- TIONS OF SALE LOCATED ON ATMEL S WEB SITE, ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED OR STATUTORY WARRANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE, SPECIAL OR INCIDEN- TAL DAMAGES (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF PROFITS, BUSINESS INTERRUPTION, OR LOSS OF INFORMATION) ARISING OUT OF THE USE OR INABILITY TO USE THIS DOCUMENT, EVEN IF ATMEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Atmel makes no representations or warranties with respect to the accuracy or completeness of the contents of this document and reserves the right to make changes to specifications and product descriptions at any time without notice. Atmel does not make any commitment to update the information contained herein. Unless specifically providedotherwise, Atmel products are not suitable for, and shall not be used in, automotive applications. Atmel s products are not intended, authorized, or warranted for use as components in applications intended to support or sustain life. Atmel Corporation 2006. All rights reserved. Atmel, logo and combinations thereof, are registered trademarks, AVR and Everywhere You Are are the trademarks of Atmel Corporation or its subsidiaries. Other terms and product names may be trademarks of others. Printed on recycled paper.