background image

32094B–AVR32–05/09

Headquarters

International

Atmel Corporation

2325 Orchard Parkway
San Jose, CA 95131
USA
Tel: 1(408) 441-0311
Fax: 1(408) 487-2600

Atmel Asia

Unit 1-5 & 16, 19/F
BEA Tower, Millennium City 5
418 Kwun Tong Road
Kwun Tong, Kowloon
Hong Kong
Tel: (852) 2245-6100
Fax: (852) 2722-1369

Atmel Europe

Le Krebs
8, Rue Jean-Pierre Timbaud
BP 309
78054 Saint-Quentin-en-
Yvelines Cedex
France
Tel: (33) 1-30-60-70-00 
Fax: (33) 1-30-60-71-11

Atmel 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

Product Contact

Web Site

www.atmel.com

Technical Support

avr32@atmel.com

Sales Contact

www.atmel.com/contacts

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 provided
otherwise, 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.

© 2009 Atmel Corporation. All rights reserved. 

Atmel

®

, Atmel logo and combinations thereof, AVR

®

32 and others are registered trademarks or

trademarks of Atmel Corporation or its subsidiaries. Other terms and product names may be trademarks of others.

Summary of Contents for AT32UC3 Series

Page 1: ...Motor The Space Vector Modulation technique is described in application note AVR435 available on www atmel com This application is designed to work with the EVK1100 evaluation kit therefore all the f...

Page 2: ...of AVR32 development tools for embedded systems compiler assembler linker debugger http www iar com EVK1100 The EVK1100 is an evaluation kit and development system for the AVR32 AT32UC3A microcontrol...

Page 3: ...32 05 09 AVR32710 4 Abbreviations BLDC Brushless Direct Current SVPWM Space Vector Pulse Width Modulation CW Clockwise direction CCW Counter Clockwise direction FCPU CPU frequency FPBA Peripheral Bus...

Page 4: ...o implement BLDC motor control algorithm on AVR32 UC3 devices 5 2 Space Vector Pulse Width Modulation Principle 5 2 1 Phase Switching Figure 5 1 Typical structure of the application Figure 5 1 shows t...

Page 5: ...ages combinations Table 5 1 Switching configurations and output voltages of a 3 phase inverter WH VH UH Van Vbn Vcn 0 0 0 0 0 0 0 0 1 Vdc 3 Vdc 3 2Vdc 3 0 1 0 Vdc 3 2Vdc 3 Vdc 3 0 1 1 2Vdc 3 Vdc 3 Vdc...

Page 6: ...rs These 3 phases voltage combinations are converted by Clarke transformation and could be expressed in complex form In sector 1 for example So 1 2 3 4 5 6 d q V1 V2 V3 V4 V5 V6 j sm s e V V 1 V dx 2...

Page 7: ...n cycles sec The Ftick is defined as the sampling frequency or the basic frequency of the application n is the angle stepping increment from the range For example with a frequence of tick equal to 20K...

Page 8: ...nation at every hall sensors interrupt a new sector position is reached So that means that this interrupt should trigger a task that compute Sector Determination Algorithm electrical position of stato...

Page 9: ...use DSP library for cosinus and sinus computation Once dx and dy are calulated a set of 3 compare values Ta Tb and Tc need to be calculated every PWM period to generate this pattern Figure 6 2 PWM out...

Page 10: ...ults with SVPWM computation Sector Number q direction CCW direction CW 1 PWM0 T dx dy 2 PWM1 T dx dy 2 PWM2 T dx dy 2 PWM0 T dx dy PWM1 T dx dy PWM2 T dx dy 2 PWM0 T dx dy 2 PWM1 T dx dy 2 PWM2 T dx d...

Page 11: ...fixed value The PWM module has its own global prescaler PREA PREB bitfield in PWM MR register Each PWM channels has its own prescaler as well It is possible to define a different period for a given c...

Page 12: ...r reset and restart from 0x0000 It is possible to generate an interrupt upon RC compare match This inter rupt occurs every tick period Figure 6 4 Tick generation The Timer Counter module has its clock...

Page 13: ...tion In order to determine rotor speed we need to determine time elapsed between two interrupts The AVR32 UC3 microcontroller is able to measure time elapsed between two events using a dedicated timer...

Page 14: ...ue of amplitude and a new motor speed value each period regulation clock The SVPWM uses the motor_position and the amplitude to update all duty cycles These new duty cycles values are used to update t...

Page 15: ...or MOTOR_DRIVER BLDC_MOTOR This directory contains the service for low level drive of PWM channels SVPWM This directory contains the Space Vector computation algorithm APPLICATIONS EVK110x MOTOR CONTR...

Page 16: ...entation The power bridge board is made up of standard complementary MOSFETs IRF3504 A adapta tion stage is used to convert digital signals into analog signals to correctly adress MOSFETs In this case...

Page 17: ...lug the USB cable between the PC and the EVK1100 using the USB connector Open a Cygwin or a Linux shell go to the APPLICATIONS EVK110x MOTOR CONTORL AT32UC3A0512ES GCC directory and type make rebuild...

Page 18: ...e LCD displays State of the motor Run or Stop Speed Motor value In percent of maximum value Direction Forward or Backward Push Up the Joystick The motor starts to run Push Right the Joystick The motor...

Page 19: ...ED 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 L...

Reviews: