The Datasheet Archive - 100 Million Datasheets from 7500 Manufacturers.    


Datasheet Search Engine   
 
Part # or Description: • 5V RS232 Driver • 2SC5066* • "Real Time Clock" • "USB connector" • "blue led" 5mm • 10 watt zener diode • 2N3055* motorola
 
Search Tip: Try entering the part number only. Include a wildcard (eg. lm317* or 1n4148*)

 

 

AP082211.EXE available additional files Generating sinusoida


Datasheet Thumbnail

  

Download PDF



Top Searches for this datasheet



AP082211
AP082211.EXE available
additional files
Generating sinusoidal 3-Phase-Currents Induction Machines with time-optimized algorithm C504 C508 Capture Compare Unit
This application note proposes time optimized algorithm three-phase induction drive control using Infineon microcontrollers C504 C508. Three sinewave phase currents easily generated controlled on-chip Capture Compare Unit (CCU), requiring very computing time (about 20kHz frequency open-loop mode).
Authors: Scheibert Seth Hollmann Update/Changes: Wong Main
1999-10, Rel.
Generating sinusoidal 3-Phase-Currents Induction Machines with time-optimized algorithm C504 C508 Capture Compare Unit
Contents Introduction Comparison C508 with C504 Fundamentals Operation
Controlling Three-Phase Induction Motors Generating Variable Motor Currents Using Pulse Width Modulation (PWM) Power Amplification Controller Output Signals Semiconductor Bridges Sinusoidal Weighted Half Bridge Driving with Dead Time Control.10 Principle Generating Sinusoidal Weighted Signals with C504 C508 Hardware Description Three-Phase Motor.13 Motor Interface.14 Open Loop Motor Control C504 Software Description.16 Fundamental Considerations.16 Calculation Period- Offset-Values Compare Timer Considerations concerning Resolution Sine Table Pointers.17 Changing Amplitude without using Multiplication-Instruction Generating Memory Sine Tables Compare Timer Interrupt Service Routine Tasks.24 Main Program Task Differences between C504 code C508 code Flow-Charts Conclusion.31
AP0822 Rel. 10.99
Generating sinusoidal 3-Phase-Currents Induction Machines with time-optimized algorithm C504 C508 Capture Compare Unit
AP0822 ApNote Revision History Actual Revision Rel. Previous Revison: Rel. Page Page Subjects changes since last release Actual Rel. prev. Rel. Inclusion C508-related information Included comparison table C508 C504 More description generating sinusoidal weighted signals with C504 C508 Chapter comparing C504 code C508 code
AP0822 Rel. 10.99
Generating sinusoidal 3-Phase-Currents Induction Machines with time-optimized algorithm C504 C508 Capture Compare Unit
Introduction
Generating three-phase sine wave currents induction machines with microcontrollers requires CPU-time, depending PWM-frequency desired resolution. order minimize CPU-load, Infineon provides C504 C508 microcontrollers with special peripheral on-chip Capture Compare Unit (CCU). Chapter provides comparison between C508 C504 CCU. With unit, three independent pulse width modulated output signals generated with minimum CPU-load. This application note introduces algorithm generating three-phase signals, whereby multiplications avoided (chapter With this algorithm, there been realized resolution 7-bit 20kHz period (50µs between different consecutive PWM-values) amplitude resolution 6-bit between 100%. load calculation compare values three phases induction machine within period 50µs (20kHz) about 15µs, which corresponds calculation time. sinewave frequency chosen steps both rotation directions. frequency below output switched avoid feeding DC-current into machine. frequency change desired, second algorithm, also written assembler code, handles acceleration deceleration, which choosen between Hz/sec Hz/sec Hz/sec steps. communication between C504 C508 host realized serial interface (USART). algorithm written language. motor speed (frequency), output amplitude (0.100%, steps) acceleration/deceleration-speed chosen with host software programmed modular CPU-load only percent, additional sw-tasks (e.g. sw.-control algorithms closedloop system) readily realized.
AP0822 Rel. 10.99
Generating sinusoidal 3-Phase-Currents Induction Machines with time-optimized algorithm C504 C508 Capture Compare Unit
Comparison C508 with C504
C508 enhanced version C504. Table illustrates this. Table C508-C504 Feature Comparison Hardware Phase Delay Timer Trap Function C508 Available Block Commutation Mode Compare outputs driven well-defined levels trap event through additional register COTRAP table 'rotate right', tables 'rotate left': degrees phase shift degrees phase shift Reload both period zero match modes C504 available Compare outputs according COINI register trap event table 'rotate right', table 'rotate left': degrees phase shift Mode Reload period match Mode Reload zero match Standard
Block Commutation Table
Writing CAPCOM related registers onthe-fly Reset CAPCOM output port during power-on 100% duty cycle when CT1OF>0
Accelerated
Possible software
possible
AP0822 Rel. 10.99
Generating sinusoidal 3-Phase-Currents Induction Machines with time-optimized algorithm C504 C508 Capture Compare Unit
Fundamentals Operation
Controlling Three-Phase Induction Motors Usually, induction machines supplied directly from 50/60Hz three-phase voltage line, where amplitude frequency constant.
Diagram
Period Time (1/f) Amplitude
(120°)
Phase
Phase
Phase
Figure Three-Phase Sine Wave Currents Induction Motors
AP0822 Rel. 10.99
Generating sinusoidal 3-Phase-Currents Induction Machines with time-optimized algorithm C504 C508 Capture Compare Unit
Using supply from line, drive cannot regulated simple way. delivered torque speed induction machine determined amplitude frequency driving voltage. Rotation speed shaft strongly depends frequency, torque strongly depends current amplitude. Knowing this, proper working open loop control realized applying three sine waves with constant electrical phase shift 120° each other with variable amplitude frequency. rotor slip (difference between rotor frequency stator frequency) vary function these parameters, difficult regulate exactly rotation speed. many applications, where rotor frequency deviation cents does matter (e.g. fan, driven three-phase induction machine), proposed open loop control cost very powerful solution. Generating Variable Motor Currents Using Pulse Width Modulation (PWM) There different ways generating variable actor currents with microcontroller. generate pulse width modulated rectangle voltage integrate with large time constant, e.g. low-pass filtering. result constant voltage proportional ratio high time (duty cycle) period. application this principle electric motors leads
Voltage
Motor Integrates
Motor Winding Current
Figure Variable Current efficiency whole power circuit much higher with switched power transistor drivers than with analog power amplifiers. integrating effect standard motor with high frequency (about 20kHz, which beyond audible range) allows switching patterns, which easily generated Capture Compare Unit (CCU) Infineon C504 C508 8-bit microcontrollers.
AP0822 Rel. 10.99
Generating sinusoidal 3-Phase-Currents Induction Machines with time-optimized algorithm C504 C508 Capture Compare Unit
Power Amplification Controller Output Signals Semiconductor Bridges Each phase motor driven independent half bridge that amplifies controllers output signal. single half bridge consists switching elements (MOSFETs, IGBTs, etc.), which connected shown figure
High Side
Output
Side
Figure Single Half Bridge high side transistor switched other turned off, positive supply voltage (+Vb) applied output. side transistor switched high side off, output voltage will negative (-Vb). average output voltage will directly depend duty cycle both transistors activated alternately (push-pull-driving). this microcontroller unit able generate low-frequency signal shape, e.g. sine wave.
AP0822 Rel. 10.99
Generating sinusoidal 3-Phase-Currents Induction Machines with time-optimized algorithm C504 C508 Capture Compare Unit
Sinusoidal Weighted Three-phase induction motors need three sinusoidal phase currents with 120° phase shift each other adequate smooth rotating. Therefore, called `sine wave weighted PWM' used this application. phase angle, duty cycle each signal generated function desired sine value.
Voltage (High Side)
Sinusoidal Phase Current
Motor Integrates
Voltage (Low Side)
Figure Sine Wave Weighted Voltage generates Sinusoidal Phase Current
AP0822 Rel. 10.99
Generating sinusoidal 3-Phase-Currents Induction Machines with time-optimized algorithm C504 C508 Capture Compare Unit
Half Bridge Driving with Dead Time Control this application, both transistors half bridge switched alternately (push-pulldriving). average output voltage varied between plus minus rectified line voltage, depending applied duty cycle. However, transistor's switching times must taken into account. order prevent half bridge from conducting short circuit current when transistor already switched other quite switched called between these events must implemented.
Half Bridge Switching without Dead Time Control
Control Voltage
Half Bridge Switching with Dead Time Control
Uoff Uoff Transistor Conductance Goff Goff Supply Current Short Circuit! Dead Time
Figure Half Bridge Switching with without Dead Time Control
AP0822 Rel. 10.99
Generating sinusoidal 3-Phase-Currents Induction Machines with time-optimized algorithm C504 C508 Capture Compare Unit
Principle Generating Sinusoidal Weighted Signals with C504 C508 microcontroller easily programmed provide three independent sine waves using capability on-chip Capture Compare Unit (CCU). center aligned (symmetrical) three channels with dead time generated 16-bit wide compare timer follows: up/down counter counts from programmable 16-bit period value stored special function register (SFR) CCPx. When reaching period value, count direction changed from up-counting down-counting. When count value becomes count direction will switched upwards again. This similar function triangle generator. Additionally, compare timer over/underflow interrupt requests activated. output signals three phases induction machine specified three compare values stored three independent 16-bit compare registers CCHx CCLx where x=0-2. When compare timer oversteps 16-bit compare values three output signals, corresponding outputs toggle compare match interrupts requests three signals activated. result, three digital rectangle signals generated (the duty cycle channel corresponds position compare value between offset period value). switching frequency identical counter underflow frequency (e.g. 20kHz). These signals control high side transistors single half bridges. Furthermore, output signals generated COUTx pins, which control side switches. passive levels COUTx pins default based values written COINI therefore, each COUTx complement CCx. global programmable dead time each channel, which both switches turned programmed additional 16-bit offset value stored SFRs CT1OFH CT10FL. principle channel shown figure
AP0822 Rel. 10.99
Generating sinusoidal 3-Phase-Currents Induction Machines with time-optimized algorithm C504 C508 Capture Compare Unit
counter value
overflow interrupt request
Period Value
compare match interrupt request
Compare Value
Offset Value
underflow interrupt request
Output High Side Signal (Active Low) high
Side Signal (Active Low)
high
Dead Time
Figure Principle Signal Generation with Dead Time Once parameters period value, offset value, three compare values start compare timer set, requires access running permanently generating three independent rectangle signals with constant pulse widths. motor sine wave currents, periodically three compare values CCU, that necessary sinusoidal output signals (refer figure after each period. This done corresponding compare timer underflow interrupt service routine. interrupt flag must cleared software.
AP0822 Rel. 10.99
Generating sinusoidal 3-Phase-Currents Induction Machines with time-optimized algorithm C504 C508 Capture Compare Unit
Hardware Description
This application consists four functional units:
standard open loop motor control (with C504 C508 8-bit microcontroller) motor interface three-phase induction motor
User Interface
Open Loop Control
Motor Interface
Three Phase Motor
Async. Serial Link
C504/ C508
Digital Signals
Three Phase Inverter
Three Phases
Figure Hardware Block Diagram Open Loop Configuration Three-Phase Motor motor three-phase induction synchronous machine. nominal motor power vary wide range, restricted this application only power capability driver transistors. hardware software this application works with number motor pole pairs.
AP0822 Rel. 10.99
Generating sinusoidal 3-Phase-Currents Induction Machines with time-optimized algorithm C504 C508 Capture Compare Unit
Motor Interface motor interface consists motor signal amplifier power supply. converter used this application, being adequate drive threephase motors. build three IGBT (insulated gate bipolar transistor) single half bridges, which driven outputs C504 C508 optocouplers. This structure needs link voltage ability generate sine waves with variable frequency. DC-link large capacitor necessary supplying IGBTs 230V 50/60Hz line. capacitor value high enough minimizing ripple, which appears when rectifying line voltage. Additionally, impedance buffer switching bridge.
DC-Link Capacitor
Three Phase Bridge (IGBT's)
Line
Motor
Opto Couplers
Udrive DigitalCCU Control Signals from C504 C508 (PWM)
O1.O6
Figure Simplified Converter Schematic Diagram
AP0822 Rel. 10.99
Generating sinusoidal 3-Phase-Currents Induction Machines with time-optimized algorithm C504 C508 Capture Compare Unit
Open Loop Motor Control following block diagram shows digital control unit C504 C508 three-phase motor control. this application following internal peripheral resources used:
USART RS232 host computer communication timer (C504) dedicated baud rate generator (C508) baud rate generator (Capture Compare Unit) output timer interrupt generation
C504 C508 Microcontroller
Settings
Bridge:
P1.2 P1.3 P1.4 P1.5 P1.6 P1.7 COUT0
Interrupts
COUT1 COUT2
High High High
Host RS232
P3.0 P3.1
Timer USART
Figure Open Loop Motor Control with C504 C508, using
AP0822 Rel. 10.99
Generating sinusoidal 3-Phase-Currents Induction Machines with time-optimized algorithm C504 C508 Capture Compare Unit
C504 Software Description
software description this chapter made with reference C504 code. Since C508 code generated based C504 code with some modifications, C504 software description generally applicable C508 software. Fundamental Considerations most important task microcontroller generate three sine waves with variable frequency amplitude very short time frames. This chapter describes microcontroller software basically meets this requirement. Calculation Period- Offset-Values Compare Timer compute period value compare timer conditions have match: First: this application pulse width modulation frequency been choosen
This means that every compare timer generate interrupt. Second: compare registers needs time-dependent different compare values refering desired sine waves (see page page These compare values cannot computed microcontroller reasonable time, therefore values periodically read from sine table memory which means, that compare values 8-bit. Therefore, period value compare timer offset value should exceed ensure that whole duty-cycle used (see page fOSC prescaler 420kHz2
PERIOD
match both conditions prescaler divide system oscillator signal (The factor necessary because compare timer operates mode up/down counting). With prescaler counter increased every fosc/prescaler With required dead time offset value
dead time fOSC 1µs40 prescaler
OFFSET
AP0822 Rel. 10.99
Generating sinusoidal 3-Phase-Currents Induction Machines with time-optimized algorithm C504 C508 Capture Compare Unit
Considerations concerning Resolution Sine Table Pointers accessing look-up table values short time, sine table should longer than bytes period because pointer (named angle variable) 8-bit value easily handled 8-bit microcontroller. generate sine waves, angle variable increased every interrupt points value sine table which read moved compare value register. lowest frequency generated angle variable being increased every pointing another compare value sine table, frequency output signal will
78.125 25650µs
frequency
That means lower frequencies pointing same sine table value more than time e.g. about times. best solution this problem take 16-bit pointer angle variable with only high byte being pointer sine table. Supposing 16-bit angle variable will increased every takes
6553650µs 3.27
access every value table once, that means lowest frequency then results 0.305Hz (which corresponds minimum value 16-bit resolution electrical rotating field induction machine). generate other frequency every 50µs certain delta value added angle variable computed follows: frequency frequency65536 frequency6553650µs 0.305
delta
angle angle delta
figure simplified model generation sine wave output signal using above described mechanism shown.
AP0822 Rel. 10.99
Generating sinusoidal 3-Phase-Currents Induction Machines with time-optimized algorithm C504 C508 Capture Compare Unit
memory contents (decimal)
Memory Sine Table
offset value
x254 x255 memory address (decimal)
every angle angle delta 8-bit (HB) 8-bit (LB) angle
period value compare value
Pointer 8-bit
delta angle
output voltage Vmax
50µs
time period
e.g. =00000010
output time
output voltage Vmax
signal-shape after pass filter
50µs
time
Figure Simplified Model Generation Sine Wave Output Signal; model shows amplitude adjusted
AP0822 Rel. 10.99
Generating sinusoidal 3-Phase-Currents Induction Machines with time-optimized algorithm C504 C508 Capture Compare Unit
Changing Amplitude without using Multiplication-Instruction With 8-bit microcontroller, signed 8-bit 8-bit multiplication takes cycles. This leads relatively long execution time, which cannot tolerated cases. Furthermore, higher resolution shall used, even more computing power needed. proposed algorithm based addition theorem sine waves. used reduce computing time signed multiplication. following equation describes desired three-phase sine waves induction machine:
sinB
corresponds angle variable high byte, corresponds value sine table multiplied with amplitude corresponds value moved compare register. avoid multiplication, following equation shows solution:
sinB cos(arccosA) sinB cosA' sinB [sin( sin(
with:
arccos
sin(b sin(b (addition theorem)
multiplication sinB transfered with addition theorem into operations B-A' B+A' sine table accesses. Figure gives impression equation used. examples addition sine waves shown. first case sine wave have phase shift. second case sine waves 180° phase shifted. this addition, desired amplitude between obtained adapting phase shift between sine waves. factor necessary transfer range 0.1.
AP0822 Rel. 10.99
Generating sinusoidal 3-Phase-Currents Induction Machines with time-optimized algorithm C504 C508 Capture Compare Unit
2*sin
sin(X+180°)
Figure Examples Addition Sine Waves
AP0822 Rel. 10.99
Generating sinusoidal 3-Phase-Currents Induction Machines with time-optimized algorithm C504 C508 Capture Compare Unit
procedure generating sinusoidal frequency works follows: host sends desired amplitude frequency MCU. delta angle variables computed like mentioned above. arccos calculated better taken from look-up table like sine values. Then added substract from angle variable high byte (=B) yielding pointers sine table. Both values table added then divided two. result (=U) moved compare register directly corresponds amplitude. (Hint: division saved appropriate sine table values, next page). Some considerations about amplitude resolution: angle variable high byte identical covers range 360° with 8-bit 0.255 (memory space sine table). amplitude covers range 0.100% therefore arccos only covers range from 0.90° which fourth 360°. Compared with 0.255, only varies between 0.64 (memory space arccos table) which means resolution amplitude maximum 6-bit. result amplitude resolution 100%/64 1,56%. disadvantage this procedure that memory space sine table amplitude-resolution linked directly. enhance resolution, sine table length extended above 8-bit either pointer part angle variable. pointer with more than more difficult handle with 8-bit microcontroller, results increase CPU-time. other hand, obtained resolution angle amplitude without doubt high enough meet requirements midrange control algorithms induction machines. Increasing resolution will lead unproportional higher load. Better results achieved remaining time used closed-loop current control. proposed 8-bit solution shows interesting compromise between required computing power resolution.
AP0822 Rel. 10.99
Generating sinusoidal 3-Phase-Currents Induction Machines with time-optimized algorithm C504 C508 Capture Compare Unit
Generating Memory Sine Tables sine table computed sine wave part stored field variable sine_src (include file sine.h). this field range 0°.90° represented memory bytes which means whole sine period would take 1024 bytes space memory 10-bit pointer variable. this application, only byte long sine table desired according pointer, algorithm (function init_sine_tbl) takes only every fourth value generate memory sine table. Additionally, algorithm multiplicates contents every memory place with adds offset value. result, data range compare values within sine table gets resolution 7-bit. These measures made once before microcontroller starts communicate with host save some instructions during time. following equation gives reasons multiplication with 0.5. addition offset value neccesary ensure dead time (see page [sin( sin( sin( sin(
finally generated memory sine tables consist bytes, each byte with data range between offset value (dez.). fastest generate three 120° phase shifted sine waves provide three 120° shifted sine tables memory. That means same angle variable points different tables with different values three compare registers CCU. Figure shows generation three sine waves with arccos table three phase-shifted sine tables. procedure executed every within compare timer interrupt service routine takes about calculation time (which corresponds load).
AP0822 Rel. 10.99
Generating sinusoidal 3-Phase-Currents Induction Machines with time-optimized algorithm C504 C508 Capture Compare Unit
Arccos Table
Angle Pointer
these values moved compare registers
B-A'
B+A'
0.5*sin(B+A')
desired amplitude from host e.g. (75%)
Sine Table
0.5*sin (B-A')
Sine Table
Sine Table
Figure Generation three Sine Waves with three 120° Phase-Shifted Sine Tables Arccos Table Memory
AP0822 Rel. 10.99
Generating sinusoidal 3-Phase-Currents Induction Machines with time-optimized algorithm C504 C508 Capture Compare Unit
Compare Timer Interrupt Service Routine Tasks compare register values updated periodically every 50µs compare timer underflow interrupt service routine. This task takes about 15µs, which corresponds CPU-load. frequency change required, second task started. accelerate decelerate induction machine, electrical rotating field induction machine increased decreased with certain adjustable rate. handle this task, every period (depending desired acceleration deceleration speed), delta value increased decreased until frequency rotating field reached. With regard rotation direction change, frequency decreased down zero. avoid feeding current machine, delta variable observed output switched delta below 1Hz. During acceleration/deceleration task, CPU-load temporally extended every (30µs calculation time) period.
AP0822 Rel. 10.99
Generating sinusoidal 3-Phase-Currents Induction Machines with time-optimized algorithm C504 C508 Capture Compare Unit
Main Program Task main program, first, initializes on-chip peripherals, then, runs endless loop. This loop serves interface between user commands from host compare timer interrupt routine. Table gives list used command codes affected variables. Table List Command Codes Command Description Code 0x80 send identification byte host 0x81 send actual frequency host 0x82 send amplitude host 0xC0 frequency rotation from host 0xC1 frequency CCW* rotation from host 0xC2 amplitude from host 0xC3 acceleration value from host 0xC4 deceleration value from host 0xC5 rotation flag from host clockwise counterclockwise
Corresponding Variables delta value, rotate power delta value delta value power up_step down_step rotate
AP0822 Rel. 10.99
Generating sinusoidal 3-Phase-Currents Induction Machines with time-optimized algorithm C504 C508 Capture Compare Unit
Differences between C504 code C508 code modifications made C504 code generate C508 code includes change C508, definition changes, serial communication USART using dedicated baud rate generator baud rate generation, change operating (CPU) frequency 20MHz) microcontroller feature, external trap, /CTRAP, enabled. Baud rate generation using dedicated baud rate generator C508 microcontroller leaves timer free other functions. maximum frequency C508 microcontroller 20MHz while that C504 microcontroller 40MHz. Each code written each microcontroller their respective maximum frequency. these frequencies, both microcontrollers will with same instruction cycle time 300ns. Therefore, desired revolution min, frequency sinusoidal waves generated COUTx outputs same both C508 C504. Besides emergency stop that user activate host software anytime, there additional interrupt that activated incoming signal /CTRAP microcontroller which puts levels COUTx outputs immediately that defined COTRAP. Trap State enabled outputs setting corresponding bits TRCON. code written with assumption that three phase bridge made same transistor type both high side, when trap occurs, outputs initialised remain same passive level. been programmed such that after release /CTRAP, will only resume operation reset microcontroller. Flow-Charts flow-charts following figures applicable both C504 C508 software controlling three-phase induction machine. Figure shows RS232 interrupt service routine, which necessary receiving bytes serial link from host (sending bytes serial link performed directly main program) first part main program flow-chart. Figure contains remaining main program flow-charts. Figure timer interrupt flow-chart found.
AP0822 Rel. 10.99
Generating sinusoidal 3-Phase-Currents Induction Machines with time-optimized algorithm C504 C508 Capture Compare Unit
Start
RS232 Transmit/ Receive Interrupt
Initialize sine tabel
Clear RS232 Transmit Interrupt
RS232 Receive Interr.
Initialize RS232 Interface
Latch Received Byte Receive Buffer
Initialize Capture Compare Unit
Clear RS232 Receive Interrupt
Initialize Interrupt Handling
RS232 Receive Flag
RS232 Receive Flag
Leave Interrupt
Clear RS232 Receive Flag
Receive Buffer 0x80
Send Identification Byte 0x5A RS232
Figure Controller Program Flow-Chart RS232 Interrupt Service Routine
AP0822 Rel. 10.99
Generating sinusoidal 3-Phase-Currents Induction Machines with time-optimized algorithm C504 C508 Capture Compare Unit
Receive Buffer 0x81
Motor Rotation Switched
Send Actual Frequency [Hz] RS232
Send 0x00 [Hz] RS232
Receive Buffer 0x82
Wave Generation Enabled
Send Power Value RS232
Send 0x00 RS232
Receive Buffer 0xC0
RS232 Receive Flag
Clear RS232 Receive Flag
Frequency (for Rotating) from Receive Buffer Indicate frequency change Decide acceler. deceler. Clear RS232 Receive Flag
Receive Buffer 0xC1
RS232 Receive Flag
Frequency Rotating) from Receive Buffer Indicate frequency change Decide acceler. deceler.
Receive Buffer 0xC2
RS232 Receive Flag
Clear RS232 Receive Flag
Power from Receive Buffer fetch arccos value
Figure Controller Program Flow-Chart (continued)
AP0822 Rel. 10.99
Generating sinusoidal 3-Phase-Currents Induction Machines with time-optimized algorithm C504 C508 Capture Compare Unit
Receive Buffer 0xC3
RS232 Receive Flag
Clear RS232 Receive Flag
Acceleretion Value from Receive Buffer
Receive Buffer 0xC4
RS232 Receive Flag
Clear RS232 Receive Flag
Deceleration Value from Receive Buffer
Receive Buffer 0xC5
RS232 Receive Flag
Clear RS232 Receive Flag
Rotation Flag from Receive Buffer
Rotate Flag
Motor Frequency
Figure Controller Program Flow-Chart (continued)
AP0822 Rel. 10.99
Generating sinusoidal 3-Phase-Currents Induction Machines with time-optimized algorithm C504 C508 Capture Compare Unit
Compare Timer Interrupt
anlge angle delta
calculate angle arccos(power)
calculate angle arccos(power) load with sine wave values
decrement interrupt counter
frequency change
decrease frequency
15µs
interrupt counter
16.17µs
increase frequency delta delta_new
Decrea. frequency delta delta_new?
frequency change finished
delta delta up_step
frequency change finished
delta delta down_step
dissable power output 30µs
(frequency)
enable power output
leave interrupt
Figure Controller Program Flow-Chart Compare Timer Interrupt Service Routine
AP0822 Rel. 10.99
Generating sinusoidal 3-Phase-Currents Induction Machines with time-optimized algorithm C504 C508 Capture Compare Unit
Conclusion
versatile structure on-chip Capture Compare Unit Infineon microcontrollers C504 C508 allows easy generation three sine wave currents, dedicated control inductance drives. Thanks time-optimized algorithm, control tasks handled very efficient way, requiring only CPU-computing time. proposed communication protocol (via serial channel) with host shows flexibility combination well known C500 family with powerful Capture Compare Unit. This application note proposes structure dedicated drive control. integrated peripherals C504 C508, very external components necessary, total system costs reduced. implementation this open-loop induction drive control algorithms with load shows first step towards closed-loop control solutions mid-range applications. adapted structure C504 C508 leads very interesting compromise between system costs performance.
AP0822 Rel. 10.99

Other recent searches


XH-F3128 - XH-F3128   XH-F3128 Datasheet
uPC2539 - uPC2539   uPC2539 Datasheet
SMC0204 - SMC0204   SMC0204 Datasheet
SMC0207 - SMC0207   SMC0207 Datasheet
PMC-1401T - PMC-1401T   PMC-1401T Datasheet
PDB-C114 - PDB-C114   PDB-C114 Datasheet
NJM2794 - NJM2794   NJM2794 Datasheet
CPL2508 - CPL2508   CPL2508 Datasheet
AM8TW-IZ - AM8TW-IZ   AM8TW-IZ Datasheet
2SC3937G - 2SC3937G   2SC3937G Datasheet
1793720000 - 1793720000   1793720000 Datasheet

 

Privacy Policy | Disclaimer
© 2012 Datasheet Archive