Freescale Semiconductor, I

Size: px
Start display at page:

Download "Freescale Semiconductor, I"

Transcription

1 Application Note Rev., 5/3 3Sin with Dead-ime Correction XOR version PU Function Set (3SinDtXor) By Milan Brejl, Ph.D. Functional Overview A1 A AB1 AB B1 B he 3-Phase Sine Wave Generator with Dead-ime Correction XOR version (3SinDtXor) is a version of the 3-Phase Sine Wave Generator with Dead-ime Correction (3SinDt) function that uses two PU channels to generate one PWM output channel. he PU channel outputs are to be connected to a XOR gate whose output is the required PWM signal. See Figure 1. An advantage of this solution is that it provides the full range % to 1% of PWM duty-cycle ratios. here is no MPW (minimum pulse width) parameter to limit the edge duty-cycle ratios in this version, unlike in the 3SinDt. A disadvantage is that the number of assigned PU channels is doubled. XOR XOR XOR Phase A - top Phase A - bottom Phase B - top BB1 BB XOR Phase B - bottom C1 C XOR Phase C - top CB1 CB XOR Figure 1. Functionality of XOR version illustration Phase C - bottom Motorola, Inc., 3

2 he dead-time correction technique requires knowledge of the instantaneous direction of phase currents. In the case of positive phase current the top channel high-time is equal to the calculated high-time, and the bottom channel has to control the dead-time. In case of negative phase current the bottom channel low-time is equal to the calculated high-time, and the top channel has to control the dead-time. See Figure. calculated high-time In case of positive current: In case of negative current: D D Figure. Dead-ime Correction echnique he function set consists of 5 PU functions: 3-Phase Sine Wave Generator with Dead-ime Correction XOR version R channels (3SinDtXor_R) 3-Phase Sine Wave Generator with Dead-ime Correction XOR version channels (3SinDtXor_) Synchronization Signal for 3-Phase Sine Wave Generator with Dead- ime Correction XOR version (3SinDtXor_sync) Resolver Reference Signal for 3-Phase Sine Wave Generator with Dead-ime Correction XOR version (3SinDtXor_res) D D top channel bottom channel top channel bottom channel Fault Input for 3-Phase Sine Wave Generator with Dead-ime Correction XOR version (3SinDtXor_fault) he 3SinDtXor_R and 3SinDtXor_ PU functions work together to generate 6 pairs of XOR gate inputs. he XOR gate outputs then produce a 6-channel 3-phase center-aligned PWM signal with dead-time between the top and bottom channels. he Synchronization Signal for the 3SinDtXor function can be used to generate one adjustable signal for a wide range of uses, which is synchronized to the PWM, and tracks changes in the PWM period. he 3Sin with Dead-ime Correction XOR version PU Function Set (3SinDtXor)

3 Function Set Configuration Resolver Reference Signal for the 3SinDtXor function can be used to generate one 5% duty-cycle adjustable signal, which is also synchronized to the PWM. he Fault Input for the 3SinDtXor function is a PU input function that sets all XOR gate outputs low when the input signal goes low. Function Set Configuration None of the PU functions in the 3-Phase Sine Wave Generator with Dead- ime Correction XOR version PU function set can be used separately. he 3SinDtXor_R and 3SinDtXor_ functions have to be used together. he 3SinDtXor_R runs on pins AB1, BB1, CB1 see Figure 1. 3SinDtXor_ runs on the other pins. he 3SinDtXor_R and 3SinDtXor_ functions use a table of 3 cosine function values. he table is placed in the parameter space of four consecutive channels. One channel running Synchronization Signal for 3SinDtXor and one channel running Resolver Reference Signal for 3SinDtXor functions can be added to the 3SinDtXor_R and 3SinDtXor_ functions. hey can run on one of the channels where the cosine table values are placed, because the 3SinDtXor_sync and 3SinDtXor_res parameters are placed on two 3SinDtXor_ channels. he function Fault Input for 3SinDtXor can also be added to the 3SinDtXor_R and 3SinDtXor_ functions. It is recommended to use it on channel 15, and to set the hardware option that disables all PU output pins when the channel 15 input signal is low (DPU bit = 1). his ensures that the hardware reacts quickly to a pin fault state. Note that it is not only the PWM channels, but all PU output channels, including the synchronization and resolver reference signals, that are disabled in this configuration. he function 3SinDtXor_fault can run on one of the four channels where the table of cosine function values is placed, because the 3SinDtXor_fault function does not have any parameters. able 1 shows the configuration options and restrictions. able 1. 3SinDtXor PU function set configuration options and restrictions PU function Optional/ How many Mandatory channels Assignable channels 3SinDtXor_R mandatory 3 any 3 channels 3SinDtXor_ mandatory 9 any 9 channels Cosine table mandatory 4 any 4 consecutive channels 3SinDtXor_sync optional 1 one of Cosine able channels 3SinDtXor_res optional 1 one of Cosine able channels 3SinDtXor_fault optional 1 one of Cosine able channels, recommended is 15 and DPU bit set 3Sin with Dead-ime Correction XOR version PU Function Set (3SinDtXor) 3

4 able shows an example of configuration. Configuration Order able. Example of configuration Channel PU function Priority 3SinDtXor_ middle 1 3SinDtXor_ middle 3SinDtXor_R middle 3 3SinDtXor_ middle 4 3SinDtXor_ middle 5 3SinDtXor_ middle 6 3SinDtXor_R middle 7 3SinDtXor_ middle 8 3SinDtXor_ middle 9 3SinDtXor_ middle 1 3SinDtXor_R middle 11 3SinDtXor_ middle 1 Cosine table 1 none 13 3SinDtXor_sync, Cosine table low 14 3SinDtXor_res, Cosine table 3 low 15 3SinDtXor_fault, Cosine table 4 high able 3 shows the PU function code sizes. PU function 3SinDtXor_R 3SinDtXor_ 3SinDtXor_sync 3SinDtXor_res 3SinDtXor_fault able 3. PU function code sizes he CPU configures the PU as follows. Code size 317 µ instructions + 8 entries = 35 long words 3 µ instructions + 8 entries = 11 long words 3 µ instructions + 8 entries = 38 long words 41 µ instructions + 8 entries = 49 long words 9 µ instructions + 8 entries = 17 long words 1. Disables the channels by clearing the two channel priority bits on each channel used (not necessary after reset).. Selects the channel functions on all used channels by writing the function numbers to the channel function select bits. 3. Initializes function parameters. he parameters, prescaler, D, heta_h, heta_l and sync_presc_addr must be set before initialization. 3 cosine table values must be set. If an 3SinDt_sync channel or an 3SinDt_res channel is used, then its parameters must also be set before initialization. 4 3Sin with Dead-ime Correction XOR version PU Function Set (3SinDtXor)

5 Detailed Function Description NOE: Detailed Function Description 3-Phase Sine Wave Generator with Dead-ime Correction XOR version R channels (3SinDtXor_R) and 3-Phase Sine Wave Generator with Dead-ime Correction XOR version channels (3SinDtXor_) 4. Issues an HSR (Host Service Request) type %1 to one of the 3SinDtXor_R channels to initialize all 3SinDtXor_R and 3SinDtXor_ channels. Issues an HSR type %1 to the 3SinDtXor_sync channel, 3SinDtXor_res channel and 3SinDtXor_fault channel, if used. 5. Enables servicing by assigning a high, middle or low priority to the channel priority bits. All 3SinDtXor_R and 3SinDtXor_ channels must be assigned the same priority to ensure correct operation. he CPU must ensure that the 3SinDtXor_sync or 3SinDtXor_res channels are initialized after the initialization of 3SinDtXor_R and 3SinDtXor_ channels: assign a priority to the 3SinDtXor_R and 3SinDtXor_ channels to enable their initialization if a Synchronization Signal or a Resolver Reference Signal channel is used, wait until the HSR bits are cleared to indicate that initialization of the 3SinDtXor_R and 3SinDtXor_ channels has completed and assign a priority to the 3SinDtXor_sync or 3SinDtXor_res channels to enable their initialization A CPU routine that configures the PU can be generated automatically using the MPC5_Quick_Start Graphical Configuration ool. he 3SinDtXor_R and 3SinDtXor_ PU functions work together to generate 6 pairs of XOR gate inputs. he XOR gate outputs then produce a 6-channel 3-phase center-aligned PWM signal with dead-time between the top and bottom channels. In order to charge the bootstrap transistors, the PWM signals start to run 1.6ms after their initialization (at MHz CR1 clock). he functions generate signals corresponding to Reference Voltage Vector Amplitude of (5% duty-cycle) until the first reloaded values are processed. he CPU controls the PWM output by setting the PU parameters. he Stator Reference Voltage Vector Amplitude Ampl, the Stator Reference Voltage Vector angle heta (3-bit) and the angle increment dheta (3-bit), can be adjusted during run time. he PWM period and the prescaler the number of PWM periods per reload of new values are also read at each reload, so these parameters can be changed during run time. Conversely, the dead-time (D) is not supposed to be changed during run time. he phase currents currenta, currentb and currentc are read by the PU asynchronously to the PWM parameters reload. hey are read in the last part of the edge-time calculation to reflect the latest state of the phase currents. he CPU notifies the PU that the new reload values are prepared by setting the LD_OK parameter. he PU 3Sin with Dead-ime Correction XOR version PU Function Set (3SinDtXor) 5

6 notifies the CPU that the reload values have been read and new values can be written by clearing the LD_OK parameter. he PU function rotates the Stator Reference Voltage Vector by dheta angle each period so that the PU can drive the motor with constant amplitude and constant speed independently of the CPU. he CPU can adjust the Ampl parameter to change the Stator Reference Voltage Vector amplitude, the dheta parameter to change the rotation speed. he CPU can also set the absolute value of Stator Reference Voltage Vector angle heta. o notify the PU that the heta parameter should be loaded instead of using the buffered value, the CPU must set LD_OK = $81 instead of $1. he following equations describe how the 3-phase sine wave PWM signal hightimes ht A, ht B, ht C and transition times t trans of each channel are calculated: heta = heta + s dheta = A cos( heta ) = cos( 1 ) C = ( s A s B ) s B heta s + he function cos is calculated using a table of 3 values from the first quadrant of one cosine wave period. he function parameter is mirrored in the first quadrant. he function value is obtained by linear interpolation between the two closest table values. Figure 3 shows the error of the cosine function value calculation. he maximum error is 7 in the amplitude range < 3768, 3767>, that is.1%. 6 3Sin with Dead-ime Correction XOR version PU Function Set (3SinDtXor)

7 Detailed Function Description function error ht ht ht A B C angle [deg] Figure 3. Cosine function value error Ampl s = Ampl s = Ampl s = positive current ht A A B C ht A 8 9 A1 A AB1 AB XOR XOR top channel bottom channel D D D D 3Sin with Dead-ime Correction XOR version PU Function Set (3SinDtXor) 7

8 negative current ht A ht A A1 A AB1 AB XOR XOR top channel bottom channel D D D D Host Interface Phase A: Positive current 1 channel t trans = ht A Negative current 1 channel hta t trans = + D channel channel ht A hta t trans = + t trans = + D B1 channel B1 channel ht ht A A t = D t trans trans = B channel B channel hta hta t trans = + + D t trans = + Phase B and Phase C similarly with ht B and ht C substituted to ht A. Written By CPU Written By PU Written by both CPU and PU Not Used able 4. 3SinDtXor_ Control Bits Name Channel Function Select Channel Priority Options 3SinDtXor_ function number (Assigned during assembly the DPRAM code from library PU functions) Channel Disabled 1 Low Priority 1 Middle Priority 11 High Priority 8 3Sin with Dead-ime Correction XOR version PU Function Set (3SinDtXor)

9 Detailed Function Description 1 1 able 4. 3SinDtXor_ Control Bits Name Host Service Bits (HSR) Host Sequence Bits (HSQ) Options No Host Service Request 1 Not used 1 Not used 11 Not used xx Not used Channel Interrupt Enable x Not used Channel Interrupt Status x Not used able 5. 3SinDtXor_R Control Bits Name Channel Function Select Channel Priority Host Service Bits (HSR) Host Sequence Bits (HSQ) Channel Interrupt Enable Options 3SinDtXor_R function number (Assigned during assembly the DPRAM code from library PU functions) Channel Disabled 1 Low Priority 1 Middle Priority 11 High Priority No Host Service Request 1 Not used 1 Initialization 11 Stop xx Not used Channel Interrupt Disabled 1 Channel Interrupt Enabled Channel Interrupt Status Interrupt Not Asserted 1 Interrupt Asserted PU function 3SinDtXor_R generates an interrupt when the current values of Ampl, dheta (optionaly also heta), and prescaler have been read by the PU and indicates to the CPU that it can write new variables. he CPU program can 3Sin with Dead-ime Correction XOR version PU Function Set (3SinDtXor) 9

10 either wait for this interrupt to occur, or poll the LD_OK parameter to check it has cleared. he interrupt is generated at each reload by one of the R channels. he channels do not generate any interrupts. Phase A 1 channel able 6. 3SinDtXor_ and 3SinDtXor_R Parameter RAM Channel Parameter time_a1 1 state 3 prsc_copy 4 LD_OK 5 prescaler 6 7 fault_pinstate Phase A channel Phase A B1 channel Phase A B channel time_a 1 max_ht 3 dec 4 heta_h 5 heta_l 6 7 hta 1 B_chan_A 1_chan_A 3 _chan_a 4 B1a_chan_A 5 B1b_chan_A 6 currenta 7 time_ab 1 3 A_buf 4 heta_buf_h 5 heta_buf_l Sin with Dead-ime Correction XOR version PU Function Set (3SinDtXor)

11 Detailed Function Description Channel Parameter time_b1 1 F_chan 3 _copy 4 Ampl time_b 1 dheta_buf_h 3 dheta_buf_l 4 dheta_h 5 dheta_l 6 7 htb 1 B_chan_B 1_chan_B 3 _chan_b 4 B1a_chan_B 5 B1b_chan_B 6 currentb 7 time_bb CPU time_c D Phase B 1 channel Phase B channel Phase B B1 channel Phase B B channel Phase C 1 channel able 6. 3SinDtXor_ and 3SinDtXor_R Parameter RAM 3Sin with Dead-ime Correction XOR version PU Function Set (3SinDtXor) 11

12 Channel Parameter time_c 1 move_res 3 presc_addr_res 4 prescaler_res 5 time_res 6 dec_res 7 _copy_res htc 1 B_chan_C 1_chan_C 3 _chan_c 4 B1a_chan_C 5 B1b_chan_C 6 currentc 7 time_cb 1 move_sync pw_sync 3 prescaler_sync 4 presc_copy_sync 5 time_sync 6 dec_sync 7 _copy_sync Phase C channel Phase C B1 channel Phase C B channel Ampl able 6. 3SinDtXor_ and 3SinDtXor_R Parameter RAM able 7. 3SinDtXor_ and 3SinDtXor_R parameter description Parameter Format Description Parameters written by CPU 16-bit fractional Stator Reference Voltage Vector amplitude, positive values only! currenta or 1 currentb or 1 currentc or 1... positive current on phase A 1... negative current on phasea... positive current on phase B 1... negative current on phaseb... positive current on phase C 1... negative current on phasec 1 3Sin with Dead-ime Correction XOR version PU Function Set (3SinDtXor)

13 Detailed Function Description able 7. 3SinDtXor_ and 3SinDtXor_R parameter description Parameter Format Description heta dheta 3-bit fractional 3-bit fractional Stator Ref. Voltage Vector angle range < 1, 1) corresponds to < 18, 18 ) Stator Reference Voltage Vector angle increment range < 1, 1) corresponds to < 18, 18 ) prescaler D CPU14 LD_OK fault_pinstate or 1 heta_buf 16-bit unsigned integer 16-bit unsigned integer 16-bit unsigned integer 16-bit unsigned integer Parameters written by both PU and CPU 16-bit unsigned integer Parameters written by PU 3-bit fractional PWM period in number of CR1 PU cycles he number of PWM periods per reload of new values Dead-time in number of CR1 PU cycles ime of 14 IMB clocks in CR1 clocks.... CPU can update variables <>.. PU can read variables: $1... load Ampl, dheta, and prescaler only $81... load also heta CPU sets $1 or $81, PU sets If fault channel is used, state of fault pin:... low 1... high Actual Stator Reference Voltage Vector angle range < 1, 1) corresponds to < 18, 18 ) Other parameters are just for PU function inner use. Performance he maximum PWM frequency is 38kHz (PWM period = 55). his can be achieved when only 3SinDtXor_R and 3SinDtXor_ run on the PU and the IMB clock is 4MHz. When other functions run on the same PU the minimum 3Sin with Dead-ime Correction XOR version PU Function Set (3SinDtXor) 13

14 PWM period has to be greater. Get all the other running function states that can be served during one PWM period. Get their lengths (number of IMB clock cycles) and add a time slot transition of 1 IMB clock cycles to each one. Sum all the states lengths including the time slot transition. Convert the result from IMB clock cycles to CR1 clock cycles according to CR1 prescaler settings. he result indicates how much greater than the minimum value of 55 has to be for that particular case. NOE: able 8. 3SinDtXor_ State Statistics State Max IMB Clock Cycles RAM Accesses by PU S 1 able 9. 3SinDtXor_R State Statistics State Max IMB Clock Cycles RAM Accesses by PU INI SOP R 6 1 R 64 4 C C 6 1 C C 96 1 C C C C Execution times do not include the time slot transition time (S = 1 or 14 IMB clocks) 14 3Sin with Dead-ime Correction XOR version PU Function Set (3SinDtXor)

15 Detailed Function Description A1 S S A S S Phase A AB1 R C7 R C7 AB S S B1 S S Phase B Phase C B BB1 BB C1 C CB1 CB R flag1 = 1 flag = 1 link service request NOE: CCCC R C7 not a reload period C7 S S S Figure 4. 3SinDtXor_ and 3SinDtXor_R timing S S a reload period he R channel with the momentary earliest transition within the PWM period is marked by a flag1 and runs the R and C states. R R C CCC C C7 C7 S S S S S 3Sin with Dead-ime Correction XOR version PU Function Set (3SinDtXor) 15

16 S S NOE: S S flag = 1 link Figure 5. 3SinDtXor_ state diagram and 3 cases of timing he case that happens is determined by the time when the link comes. 16 3Sin with Dead-ime Correction XOR version PU Function Set (3SinDtXor)

17 Detailed Function Description R C 6 th -time C7 5-times INI SOP Synchronization signal for 3-Phase Sine Wave Generator with Dead-ime Correction XOR version (3SinDtXor_sync) HSR = 1 flag1 = C R flag1 = 1 channel with momentary longest high-time Figure 6. 3SinDtXor_R state diagram he 3SinDtXor_sync PU function uses information obtained from 3SinDtXor_R and 3SinDtXor_ functions, the actual PWM center times and the PWM periods. his allows a signal to be generated, which tracks the changes in the PWM period and is always synchronized with the PWM. he synchronization signal is a positive pulse generated repeatedly after the prescaler PWM periods. he low to high transition of the pulse can be adjusted by a parameter, either negative or positive, to go a number of CR1 PU cycles before or after the PWM period center time. he pulse width pw is another synchronization signal parameter. he 3SinDtXor_sync parameters are placed on the CB channel to keep the channel parameter space free, available for the table of cosine values. C7 HSR = 11 3Sin with Dead-ime Correction XOR version PU Function Set (3SinDtXor) 17

18 move > prescaler = 1 pw move move < prescaler = pw Synchronized Change of PWM Prescaler And Synchronization Signal Prescaler Host Interface move Figure 7. Synchronization signal adjustment examples he 3SinDtXor_sync PU function actually uses the presc_copy parameter instead of the prescaler parameter. he prescaler parameter holds the prescaler value that is copied to the presc_copy by the 3SinDtXor_R function at the time the PWM parameters are reloaded. his ensures that new prescaler values for the PWM signals, as well as the synchronization signal, are applied at the same time. 3 1 Written By CPU Written By PU 1 1 able 1. 3SinDtXor_sync Control Bits Name Channel Function Select Channel Priority Host Service Bits (HSR) Written by both CPU and PU Not Used Options 3SinDtXor_sync function number (Assigned during assembly the DPRAM code from library PU functions) Channel Disabled 1 Low Priority 1 Middle Priority 11 High Priority No Host Service Request 1 Not used 1 Initialization 11 Not used 18 3Sin with Dead-ime Correction XOR version PU Function Set (3SinDtXor)

19 Detailed Function Description 1 able 1. 3SinDtXor_sync Control Bits Name Options Host Sequence Bits (HSQ) xx Not used Channel Interrupt Enable Channel Interrupt Status Channel Interrupt Disabled 1 Channel Interrupt Enabled Interrupt Not Asserted 1 Interrupt Asserted PU function 3SinDtXor_sync generates an interrupt after each low to high transition. able 11. 3SinDtXor_sync Parameter RAM Channel Parameter Synchronization channel 7 able 1. 3SinDtXor_sync parameter description Parameter Format Description Parameters written by CPU move pw prescaler 16-bit signed integer 16-bit unsigned integer 16-bit unsigned integer he number of CR1 PU cycles to forego (negative) or come after (positive) the PWM period center time Synchronization pulse width in number of CR1 PU cycles. he number of PWM periods per synchronization pulse Parameters written by PU 3Sin with Dead-ime Correction XOR version PU Function Set (3SinDtXor) 19

20 able 1. 3SinDtXor_sync parameter description Parameter Format Description Other parameters are just for PU function inner use. Performance here is one limitation. he absolute value of parameter move has to be less than a quarter of the PWM period. move < 4 NOE: able 13. 3SinDtXor_sync State Statistics State Max IMB Clock Cycles RAM Accesses by PU INI 14 5 S S 1 3 S Execution times do not include the time slot transition time (S = 1 or 14 IMB clocks) S1 S S3 S1 S Figure 8. 3SinDtXor_sync timing 3Sin with Dead-ime Correction XOR version PU Function Set (3SinDtXor)

21 Detailed Function Description HSR = 1 INI S1 S S3 Resolver Reference Signal for 3-Phase Sine Wave Generator with Dead-ime Correction XOR version (3SinDtXor_res) Figure 9. 3SinDtXor_sync state diagram he 3SinDtXor_res PU function uses information read from the 3SinDtXor_R and 3SinDtXor_ functions, the actual PWM center times and the PWM periods. his allows a signal to be generated, which tracks the changes of the PWM period and is always synchronized with the PWM. he resolver reference signal is a 5% duty-cycle signal with a period equal to prescaler or synchronization channel presc_copy PWM periods (see next paragraph). he low to high transition of the pulse can be adjusted by a parameter, either negative or positive, to go a number of CR1 PU cycles before or after the PWM period center time. he 3SinDtXor_res parameters are placed on the C channel to keep the channel parameter space free, available for the table of cosine values. 3Sin with Dead-ime Correction XOR version PU Function Set (3SinDtXor) 1

22 move > prescaler = 1 move move < prescaler = Synchronized Change of PWM Prescaler And Resolver Reference Signal Prescaler Host Interface move Figure 1. Resolver reference signal adjustment examples he 3SinDtXor_res PU function can inherit the Synchronization Signal prescaler that is synchronously changed with the PWM prescaler. Write the synchronization signals presc_copy parameter address to the presc_addr parameter to enable this mechanism. Write to disable it, and in this case set the prescaler parameter to directly specify prescaler value. 3 1 Written By CPU Written By PU 1 1 able 14. 3SinDtXor_res Control Bits Name Channel Function Select Channel Priority Host Service Bits (HSR) Written by both CPU and PU Not Used Options 3SinDtXor_res function number (Assigned during assembly the DPRAM code from library PU functions) Channel Disabled 1 Low Priority 1 Middle Priority 11 High Priority No Host Service Request 1 Not used 1 Initialization 11 Not used 3Sin with Dead-ime Correction XOR version PU Function Set (3SinDtXor)

23 Detailed Function Description 1 able 14. 3SinDtXor_res Control Bits Name Options Host Sequence Bits (HSQ) xx Not used Channel Interrupt Enable x Not used Channel Interrupt Status x Not used able 15. 3SinDtXor_res Parameter RAM Channel Parameter Resolver able 16. 3SinDtXor_res parameter description Parameter Format Description move Parameters written by CPU 16-bit signed integer he number of CR1 PU cycles to forego (negative) or come after (positive) the PWM period center time presc_addr 16-bit unsigned integer $X8, where X is a number of CB channel, to inherit Sync. channel prescaler or $ to enable direct specification of prescaler value in prescaler parameter 3Sin with Dead-ime Correction XOR version PU Function Set (3SinDtXor) 3

24 able 16. 3SinDtXor_res parameter description Parameter Format Description prescaler 1,, 4, 6, 8, 1, 1, 14,... he number of PWM periods per synchronization pulse use when presc_addr = Parameters written by PU Other parameters are just for PU function inner use. Performance NOE: S1 here is one limitation. he absolute value of parameter move has to be less than a quarter of the PWM period. move < 4 able 17. 3SinDtXor_res State Statistics State Max IMB Clock Cycles RAM Accesses by PU INI 14 5 S1 8 9 S3 7 Execution times do not include the time slot transition time (S = 1 or 14 IMB clocks) S3 S1 Figure 11. 3SinDtXor_res timing 4 3Sin with Dead-ime Correction XOR version PU Function Set (3SinDtXor)

25 Detailed Function Description HSR = 1 INI S1 S3 Fault Input for 3- Phase Sine Wave Generator with Dead-ime Correction XOR version (3SinDtXor_fault) Host Interface Figure 1. 3SinDtXor_res state diagram he 3SinDtXor_fault is an input PU function that monitors the pin, and if a high to low transition occurs, immediately sets all PWM channels low and cancels all further transitions on them. he PWM channels, as well as the synchronization and resolver reference signal channels (if used), have to be initialized again to start them running. he function returns the actual pinstate as a value of (low) or 1 (high) in the parameter fault_pinstate. he parameter is placed on the A1 channel to keep the fault channel parameter space free. 3 1 Written By CPU Written By PU 1 able 18. 3SinDtXor_fault Control Bits Name Channel Function Select Channel Priority Written by both CPU and PU Not Used Options 3SinDtXor_fault function number (Assigned during assembly the DPRAM code from library PU functions) Channel Disabled 1 Low Priority 1 Middle Priority 11 High Priority 3Sin with Dead-ime Correction XOR version PU Function Set (3SinDtXor) 5

26 1 1 able 18. 3SinDtXor_fault Control Bits Name Host Service Bits (HSR) Host Sequence Bits (HSQ) Options No Host Service Request 1 Not used 1 Initialization 11 Not used xx Not used Channel Interrupt Enable Channel Interrupt Disabled 1 Channel Interrupt Enabled Channel Interrupt Status Interrupt Not Asserted 1 Interrupt Asserted PU function 3SinDtXor_fault generates an interrupt when a high to low transition appears. able 19. 3SinDtXor_fault Parameter RAM Channel Parameter Fault input able. 3SinDtXor_fault parameter description Parameter Format Description Parameters written by PU fault_pinstate or 1 State of fault pin:... low 1... high 6 3Sin with Dead-ime Correction XOR version PU Function Set (3SinDtXor)

27 Detailed Function Description Performance able 1. 3SinDtXor_fault State Statistics State Max IMB Clock Cycles RAM Accesses by PU INI 8 FAUL 17 5 NO_FAUL 4 1 NOE: Execution times do not include the time slot transition time (S = 1 or 14 IMB clocks) FAUL NO_FAUL HSR = 1 INI Figure 13. 3SinDtXor_fault timing FAUL NO_FAUL Figure 14. 3SinDtXor_fault state diagram 3Sin with Dead-ime Correction XOR version PU Function Set (3SinDtXor) 7

28 Rev. 5/3

Freescale Semiconductor, I

Freescale Semiconductor, I Application Note Rev. 0, 5/2003 Standard Space Vector Modulation with Dead-ime Correction PU Function Set (svmstddt) By Milan Brejl, Ph.D. Functional Overview he Standard Space Vector Modulation with Dead-ime

More information

Freescale Semiconductor, I

Freescale Semiconductor, I nc. Application Note Rev. 0, 5/2003 DC Motor XOR version PU Function Set (DCmXor) By Milan Brejl, Ph.D. Functional Overview SW1_1 SW1_2 SW2_1 SW2_2 SW3_1 SW3_2 he DC Motor XOR version (DCmXor) PU function

More information

Freescale Semiconductor, I

Freescale Semiconductor, I Application Note Rev., 5/23 DC Motor 2 outputs version XOR version PU Function Set (DCm2Xor) By Milan Brejl, Ph.D. Functional Overview SW1_1 SW1_2 SW3_1 SW3_2 he DC Motor 2 outputs version XOR version

More information

nc. Function Set Configuration The 32LQD is the main function of the set. It can be used either alone, with one of the supporting functions, or with b

nc. Function Set Configuration The 32LQD is the main function of the set. It can be used either alone, with one of the supporting functions, or with b nc. Rev. 0, 5/2003 32-bit Linear Quadrature Decoder TPU Function Set (32LQD) By Milan Brejl, Ph.D. Functional Overview 32-bit Linear Quadrature Decoder (32LQD) TPU Function Set is useful for decoding position,

More information

Freescale Semiconductor, I

Freescale Semiconductor, I Application Note Rev. 0, 5/2003 16-bit Quadrature Decoder TPU Function Set (16QD) By Milan Brejl, Ph.D. Functional Overview The 16-bit Quadrature Decoder (16QD) TPU Function Set is useful for decoding

More information

Multichannel PWM TPU Function (MCPWM)

Multichannel PWM TPU Function (MCPWM) APPLICATION NOTE Order this document by TPUPN05/D Multichannel PWM TPU Function (MCPWM) by Jeff Wright 1 Functional Overview This TPU output function uses externally-gated multiple channels to produce

More information

Freescale Semiconductor, I SECTION 11 TIME PROCESSOR UNIT

Freescale Semiconductor, I SECTION 11 TIME PROCESSOR UNIT nc. SECTION 11 TIME PROCESSOR UNIT The time processor unit (TPU) is an intelligent, semi-autonomous microcontroller designed for timing control. Operating simultaneously with the CPU32, the TPU schedules

More information

Period/Pulse-Width Accumulator TPU Function (PPWA)

Period/Pulse-Width Accumulator TPU Function (PPWA) SEMICONDUCTOR PROGRAMMING NOTE Order this document by TPUPN/D Period/Pulse-Width Accumulator TPU Function (PPWA) by Mark Maiolani and Sharon Darley Function Overview The period/pulse-width accumulator

More information

Course Introduction. Content 20 pages 3 questions. Learning Time 30 minutes

Course Introduction. Content 20 pages 3 questions. Learning Time 30 minutes Purpose The intent of this course is to provide you with information about the main features of the S08 Timer/PWM (TPM) interface module and how to configure and use it in common applications. Objectives

More information

VORAGO Timer (TIM) subsystem application note

VORAGO Timer (TIM) subsystem application note AN1202 VORAGO Timer (TIM) subsystem application note Feb 24, 2017, Version 1.2 VA10800/VA10820 Abstract This application note reviews the Timer (TIM) subsystem on the VA108xx family of MCUs and provides

More information

PWM System. Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff

PWM System. Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff PWM System 1 Pulse Width Modulation (PWM) Pulses are continuously generated which have different widths but the same period between leading edges Duty cycle (% high) controls the average analog voltage

More information

PAK-VIIIa Pulse Coprocessor Data Sheet by AWC

PAK-VIIIa Pulse Coprocessor Data Sheet by AWC PAK-VIIIa Pulse Coprocessor Data Sheet 2000-2003 by AWC AWC 310 Ivy Glen League City, TX 77573 (281) 334-4341 http://www.al-williams.com/awce.htm V1.6 30 Aug 2003 Table of Contents Overview...1 If You

More information

CHAPTER 4 CONTROL ALGORITHM FOR PROPOSED H-BRIDGE MULTILEVEL INVERTER

CHAPTER 4 CONTROL ALGORITHM FOR PROPOSED H-BRIDGE MULTILEVEL INVERTER 65 CHAPTER 4 CONTROL ALGORITHM FOR PROPOSED H-BRIDGE MULTILEVEL INVERTER 4.1 INTRODUCTION Many control strategies are available for the control of IMs. The Direct Torque Control (DTC) is one of the most

More information

Hardware Flags. and the RTI system. Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff

Hardware Flags. and the RTI system. Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff Hardware Flags and the RTI system 1 Need for hardware flag Often a microcontroller needs to test whether some event has occurred, and then take an action For example A sensor outputs a pulse when a model

More information

EIE/ENE 334 Microprocessors

EIE/ENE 334 Microprocessors EIE/ENE 334 Microprocessors Lecture 13: NuMicro NUC140 (cont.) Week #13 : Dejwoot KHAWPARISUTH Adapted from http://webstaff.kmutt.ac.th/~dejwoot.kha/ NuMicro NUC140: Technical Ref. Page 2 Week #13 NuMicro

More information

Using the HCS08 TPM Module In Motor Control Applications

Using the HCS08 TPM Module In Motor Control Applications Pavel Grasblum Using the HCS08 TPM Module In Motor Control Applications Designers can choose from a wide range of microcontrollers to provide digital control for variable speed drives. Microcontrollers

More information

Hello, and welcome to this presentation of the FlexTimer or FTM module for Kinetis K series MCUs. In this session, you ll learn about the FTM, its

Hello, and welcome to this presentation of the FlexTimer or FTM module for Kinetis K series MCUs. In this session, you ll learn about the FTM, its Hello, and welcome to this presentation of the FlexTimer or FTM module for Kinetis K series MCUs. In this session, you ll learn about the FTM, its main features and the application benefits of leveraging

More information

High Resolution Pulse Generation

High Resolution Pulse Generation High Resolution Pulse Generation An Application Note for the NS9360 Processor www.digi.com 90001138 2009 Digi International Inc. All Rights Reserved. Digi, Digi International, and the Digi logo are trademarks

More information

Timer A (0 and 1) and PWM EE3376

Timer A (0 and 1) and PWM EE3376 Timer A (0 and 1) and PWM EE3376 General Peripheral Programming Model l l l l Each peripheral has a range of addresses in the memory map peripheral has base address (i.e. 0x00A0) each register used in

More information

Fixed-function (FF) implementation for PSoC 3 and PSoC 5 devices

Fixed-function (FF) implementation for PSoC 3 and PSoC 5 devices 2.40 Features 8- or 16-bit resolution Multiple pulse width output modes Configurable trigger Configurable capture Configurable hardware/software enable Configurable dead band Multiple configurable kill

More information

MTY (81)

MTY (81) This manual describes the option "d" of the SMT-BD1 amplifier: Master/slave electronic gearing. The general information about the digital amplifier commissioning are described in the standard SMT-BD1 manual.

More information

EEL 4744C: Microprocessor Applications Lecture 8 Timer Dr. Tao Li

EEL 4744C: Microprocessor Applications Lecture 8 Timer Dr. Tao Li EEL 4744C: Microprocessor Applications Lecture 8 Timer Reading Assignment Software and Hardware Engineering (new version): Chapter 14 SHE (old version): Chapter 10 HC12 Data Sheet: Chapters 12, 13, 11,

More information

Reading Assignment. Timer. Introduction. Timer Overview. Programming HC12 Timer. An Overview of HC12 Timer. EEL 4744C: Microprocessor Applications

Reading Assignment. Timer. Introduction. Timer Overview. Programming HC12 Timer. An Overview of HC12 Timer. EEL 4744C: Microprocessor Applications Reading Assignment EEL 4744C: Microprocessor Applications Lecture 8 Timer Software and Hardware Engineering (new version): Chapter 4 SHE (old version): Chapter 0 HC Data Sheet: Chapters,,, 0 Introduction

More information

AP08022 C504 / C508. Generating sinusoidal 3-Phase- Currents for Induction Maschines with a time-optimezed algorithm for the Capture Compare Unit

AP08022 C504 / C508. Generating sinusoidal 3-Phase- Currents for Induction Maschines with a time-optimezed algorithm for the Capture Compare Unit C504 / C508 Application te, V 1.1, Feb. 2004 Generating sinusoidal 3-Phase- Currents for Induction Maschines with a time-optimezed algorithm for the Capture Compare Unit. AP08022 Microcontrollers Never

More information

For reference only Refer to the latest documents for details

For reference only Refer to the latest documents for details STM32F3 Technical Training For reference only Refer to the latest documents for details General Purpose Timers (TIM2/3/4/5 - TIM12/13/14 - TIM15/16/17 - TIM6/7/18) TIM2/5 TIM3/4/19 TIM12 TIM15 TIM13/14

More information

Grundlagen Microcontroller Counter/Timer. Günther Gridling Bettina Weiss

Grundlagen Microcontroller Counter/Timer. Günther Gridling Bettina Weiss Grundlagen Microcontroller Counter/Timer Günther Gridling Bettina Weiss 1 Counter/Timer Lecture Overview Counter Timer Prescaler Input Capture Output Compare PWM 2 important feature of microcontroller

More information

dspic30f Quadrature Encoder Interface Module

dspic30f Quadrature Encoder Interface Module DS Digital Signal Controller dspic30f Quadrature Encoder Interface Module 2005 Microchip Technology Incorporated. All Rights Reserved. dspic30f Quadrature Encoder Interface Module 1 Welcome to the dspic30f

More information

Using the Z8 Encore! XP Timer

Using the Z8 Encore! XP Timer Application Note Using the Z8 Encore! XP Timer AN013104-1207 Abstract Zilog s Z8 Encore! XP microcontroller consists of four 16-bit reloadable timers that can be used for timing, event counting or for

More information

Real-time Math Function of DL850 ScopeCorder

Real-time Math Function of DL850 ScopeCorder Real-time Math Function of DL850 ScopeCorder Etsurou Nakayama *1 Chiaki Yamamoto *1 In recent years, energy-saving instruments including inverters have been actively developed. Researchers in R&D sections

More information

Course Introduction. Purpose. Objectives. Content 26 pages 4 questions. Learning Time 40 minutes

Course Introduction. Purpose. Objectives. Content 26 pages 4 questions. Learning Time 40 minutes Course Introduction Purpose This module provides an overview of sophisticated peripheral functions provided by the MCUs in the M32C series, devices at the top end of the M16C family. Objectives Gain a

More information

Nicolò Antonante Kristian Bergaplass Mumba Collins

Nicolò Antonante Kristian Bergaplass Mumba Collins Norwegian University of Science and Technology TET4190 Power Electronics for Renewable Energy Mini-project 19 Power Electronics in Motor Drive Application Nicolò Antonante Kristian Bergaplass Mumba Collins

More information

Migrate PWM from MC56F8013 to MC How to set up the PWM peripheral on the MC56F8247 using the setting of the PWM on the MC56F8013

Migrate PWM from MC56F8013 to MC How to set up the PWM peripheral on the MC56F8247 using the setting of the PWM on the MC56F8013 Freescale Semiconductor Application Note Document Number: AN4319 Rev. 0, 06/2011 Migrate PWM from MC56F8013 to MC568247 How to set up the PWM peripheral on the MC56F8247 using the setting of the PWM on

More information

Hello and welcome to this Renesas Interactive Course that provides an overview of the timers found on RL78 MCUs.

Hello and welcome to this Renesas Interactive Course that provides an overview of the timers found on RL78 MCUs. Hello and welcome to this Renesas Interactive Course that provides an overview of the timers found on RL78 MCUs. 1 The purpose of this course is to provide an introduction to the RL78 timer Architecture.

More information

Motor Control using NXP s LPC2900

Motor Control using NXP s LPC2900 Motor Control using NXP s LPC2900 Agenda LPC2900 Overview and Development tools Control of BLDC Motors using the LPC2900 CPU Load of BLDCM and PMSM Enhancing performance LPC2900 Demo BLDC motor 2 LPC2900

More information

16-Bit Hardware Pulse Width Modulator Data Sheet

16-Bit Hardware Pulse Width Modulator Data Sheet 48. 16-Bit Hardware Pulse Width Modulator User Module Data Sheet 16-Bit Hardware Pulse Width Modulator Data Sheet PWM16HW PWM16HW Copyright 2009 Cypress Semiconductor Corporation. All Rights Reserved.

More information

Unit-6 PROGRAMMABLE INTERRUPT CONTROLLERS 8259A-PROGRAMMABLE INTERRUPT CONTROLLER (PIC) INTRODUCTION

Unit-6 PROGRAMMABLE INTERRUPT CONTROLLERS 8259A-PROGRAMMABLE INTERRUPT CONTROLLER (PIC) INTRODUCTION M i c r o p r o c e s s o r s a n d M i c r o c o n t r o l l e r s P a g e 1 PROGRAMMABLE INTERRUPT CONTROLLERS 8259A-PROGRAMMABLE INTERRUPT CONTROLLER (PIC) INTRODUCTION Microcomputer system design requires

More information

Fixed-function (FF) implementation for PSoC 3 and PSoC 5LP devices

Fixed-function (FF) implementation for PSoC 3 and PSoC 5LP devices 3.30 Features 8- or 16-bit resolution Multiple pulse width output modes Configurable trigger Configurable capture Configurable hardware/software enable Configurable dead band Multiple configurable kill

More information

Iowa State University Electrical and Computer Engineering. E E 452. Electric Machines and Power Electronic Drives

Iowa State University Electrical and Computer Engineering. E E 452. Electric Machines and Power Electronic Drives Electrical and Computer Engineering E E 452. Electric Machines and Power Electronic Drives Laboratory #5 Buck Converter Embedded Code Generation Summary In this lab, you will design the control application

More information

AC Induction Motor (ACIM) Control using a Digital Signal Controller (DSC)

AC Induction Motor (ACIM) Control using a Digital Signal Controller (DSC) Research Journal of Applied Sciences, Engineering and Technology 4(19): 3740-3745, 2012 ISSN: 2040-7467 Maxwell Scientific Organization, 2012 Submitted: March 07, 2012 Accepted: March 30, 2012 Published:

More information

AP XC866. Optimized Space Vector Modulation and Over-modulation with the XC866. Microcontrollers. Application Note, V 2.0, Sept.

AP XC866. Optimized Space Vector Modulation and Over-modulation with the XC866. Microcontrollers. Application Note, V 2.0, Sept. Application Note, V 2.0, Sept. 2005 AP0803620 XC866 Optimized Space Vector Modulation and Over-modulation with the XC866 Microcontrollers Never stop thinking. XC866 Revision History: 2005-09 V 2.0 Previous

More information

Select the single most appropriate response for each question.

Select the single most appropriate response for each question. ECE 362 Final Lab Practical - 1 - Practice Exam / Solution PART 1: Multiple Choice Select the single most appropriate response for each question. Note that none of the above MAY be a VALID ANSWER. (Solution

More information

Chapter 6 PROGRAMMING THE TIMERS

Chapter 6 PROGRAMMING THE TIMERS Chapter 6 PROGRAMMING THE TIMERS Force Outputs on Outcompare Input Captures Programmabl e Prescaling Prescaling Internal clock inputs Timer-counter Device Free Running Outcompares Lesson 2 Free Running

More information

Lab 5 Timer Module PWM ReadMeFirst

Lab 5 Timer Module PWM ReadMeFirst Lab 5 Timer Module PWM ReadMeFirst Lab Folder Content 1) ReadMeFirst 2) Interrupt Vector Table 3) Pin out Summary 4) DriverLib API 5) SineTable Overview In this lab, we are going to use the output hardware

More information

INTERFACING WITH INTERRUPTS AND SYNCHRONIZATION TECHNIQUES

INTERFACING WITH INTERRUPTS AND SYNCHRONIZATION TECHNIQUES Faculty of Engineering INTERFACING WITH INTERRUPTS AND SYNCHRONIZATION TECHNIQUES Lab 1 Prepared by Kevin Premrl & Pavel Shering ID # 20517153 20523043 3a Mechatronics Engineering June 8, 2016 1 Phase

More information

Generating DTMF Tones Using Z8 Encore! MCU

Generating DTMF Tones Using Z8 Encore! MCU Application Note Generating DTMF Tones Using Z8 Encore! MCU AN024802-0608 Abstract This Application Note describes how Zilog s Z8 Encore! MCU is used as a Dual-Tone Multi- (DTMF) signal encoder to generate

More information

AC Drive Technology. An Overview for the Converting Industry. Siemens Industry, Inc All rights reserved.

AC Drive Technology. An Overview for the Converting Industry.  Siemens Industry, Inc All rights reserved. AC Drive Technology An Overview for the Converting Industry www.usa.siemens.com/converting Siemens Industry, Inc. 2016 All rights reserved. Answers for industry. AC Drive Technology Drive Systems AC Motors

More information

DS1075 EconOscillator/Divider

DS1075 EconOscillator/Divider EconOscillator/Divider www.dalsemi.com FEATURES Dual Fixed frequency outputs (30 KHz - 100 MHz) User-programmable on-chip dividers (from 1-513) User-programmable on-chip prescaler (1, 2, 4) No external

More information

16-Bit PWM Dead Band Generator Data Sheet

16-Bit PWM Dead Band Generator Data Sheet 44. 16-Bit PWM Dead Band Generator 16-Bit PWM Dead Band Generator Data Sheet Copyright 2002-2009 Cypress Semiconductor Corporation. All Rights Reserved. PWMDB16 PSoC Blocks API Memory (Bytes) Pins (per

More information

Design and Construction of Synchronizing Check Relay

Design and Construction of Synchronizing Check Relay Design and Construction of Synchronizing Check Relay M.J.A.A.I.Jayawardene,, R.W.Jayawickrama, M.D.R.K.Karunarathna,S.A.P.U.Karunaratne, W.S.Lakmal Abstract This document contains an introduction about

More information

User Guide Introduction. IRMCS3043 System Overview/Guide. International Rectifier s imotion Team. Table of Contents

User Guide Introduction. IRMCS3043 System Overview/Guide. International Rectifier s imotion Team. Table of Contents User Guide 08092 IRMCS3043 System Overview/Guide By International Rectifier s imotion Team Table of Contents IRMCS3043 System Overview/Guide... 1 Introduction... 1 IRMCF343 Application Circuit... 2 Power

More information

Rochester Institute of Technology Real Time and Embedded Systems: Project 2a

Rochester Institute of Technology Real Time and Embedded Systems: Project 2a Rochester Institute of Technology Real Time and Embedded Systems: Project 2a Overview: Design and implement a STM32 Discovery board program exhibiting multitasking characteristics in simultaneously controlling

More information

Hello, and welcome to this presentation of the STM32 Infrared Timer. Features of this interface allowing the generation of various IR remote control

Hello, and welcome to this presentation of the STM32 Infrared Timer. Features of this interface allowing the generation of various IR remote control Hello, and welcome to this presentation of the STM32 Infrared Timer. Features of this interface allowing the generation of various IR remote control protocols will be presented. 1 The Infrared Timer peripheral

More information

Design of Joint Controller Circuit for PA10 Robot Arm

Design of Joint Controller Circuit for PA10 Robot Arm Design of Joint Controller Circuit for PA10 Robot Arm Sereiratha Phal and Manop Wongsaisuwan Department of Electrical Engineering, Faculty of Engineering, Chulalongkorn University, Bangkok, 10330, Thailand.

More information

Counter/Timers in the Mega8

Counter/Timers in the Mega8 Counter/Timers in the Mega8 The mega8 incorporates three counter/timer devices. These can: Be used to count the number of events that have occurred (either external or internal) Act as a clock Trigger

More information

DS1073 3V EconOscillator/Divider

DS1073 3V EconOscillator/Divider 3V EconOscillator/Divider wwwmaxim-iccom FEATURES Dual fixed-frequency outputs (30kHz to 100MHz) User-programmable on-chip dividers (from 1 to 513) User-programmable on-chip prescaler (1, 2, 4) No external

More information

CprE 288 Introduction to Embedded Systems (Output Compare and PWM) Instructors: Dr. Phillip Jones

CprE 288 Introduction to Embedded Systems (Output Compare and PWM) Instructors: Dr. Phillip Jones CprE 288 Introduction to Embedded Systems (Output Compare and PWM) Instructors: Dr. Phillip Jones 1 Announcements HW8: Due Sunday 10/29 (midnight) Exam 2: In class Thursday 11/9 This object detection lab

More information

High speed bus transfer function block description Operation Manual

High speed bus transfer function block description Operation Manual Operation anual FDE Rev.A Page 2 sur 27 User s manual version information Version Date odification Compiled by Version 1.0 30.06.2016. First edition Kiss - Petri A 15/06/2017 Change cover and diffusion

More information

User Guide IRMCS3041 System Overview/Guide. Aengus Murray. Table of Contents. Introduction

User Guide IRMCS3041 System Overview/Guide. Aengus Murray. Table of Contents. Introduction User Guide 0607 IRMCS3041 System Overview/Guide By Aengus Murray Table of Contents Introduction... 1 IRMCF341 Application Circuit... 2 Sensorless Control Algorithm... 4 Velocity and Current Control...

More information

354 Facta Universitatis ser.: Elec. and Energ. vol. 13, No.3, December 2000 in the audio frequency band. There are many reasons for moving towards a c

354 Facta Universitatis ser.: Elec. and Energ. vol. 13, No.3, December 2000 in the audio frequency band. There are many reasons for moving towards a c FACTA UNIVERSITATIS (NI» S) Series: Electronics and Energetics vol. 13, No. 3, December 2000, 353-364 GENERATING DRIVING SIGNALS FOR THREE PHASES INVERTER BY DIGITAL TIMING FUNCTIONS Miroslav Lazić, Miodrag

More information

EE 314 Spring 2003 Microprocessor Systems

EE 314 Spring 2003 Microprocessor Systems EE 314 Spring 2003 Microprocessor Systems Laboratory Project #9 Closed Loop Control Overview and Introduction This project will bring together several pieces of software and draw on knowledge gained in

More information

CSCI1600 Lab 4: Sound

CSCI1600 Lab 4: Sound CSCI1600 Lab 4: Sound November 1, 2017 1 Objectives By the end of this lab, you will: Connect a speaker and play a tone Use the speaker to play a simple melody Materials: We will be providing the parts

More information

EE 308 Spring 2013 The MC9S12 Pulse Width Modulation System

EE 308 Spring 2013 The MC9S12 Pulse Width Modulation System The MC9S12 Pulse Width Modulation System o Introduction to PWM o Review of the Output Compare Function o Using Output Compare to generate a PWM signal o Registers used to enable the Output Capture Function

More information

Low Energy Timer. AN Application Note. Introduction

Low Energy Timer. AN Application Note. Introduction ...the world's most energy friendly microcontrollers Low Energy Timer AN0026 - Application Note Introduction This application note gives an overview of the Low Energy Timer (LETIMER) and demonstrates how

More information

µtasker Document µtasker Hardware Timers

µtasker Document µtasker Hardware Timers Embedding it better... µtasker Document utaskerhwtimers.doc/0.07 Copyright 2016 M.J.Butcher Consulting Table of Contents 1. Introduction...3 2. Timer Control Interface...3 3. Configuring a Single-Shot

More information

The MC9S12 Pulse Width Modulation System. Pulse Width Modulation

The MC9S12 Pulse Width Modulation System. Pulse Width Modulation The MC9S12 Pulse Width Modulation System o Introduction to PWM o Review of the Output Compare Function o Using Output Compare to generate a PWM signal o Registers used to enable the Output Capture Function

More information

Analog-to-Digital Converter. Student's name & ID (1): Partner's name & ID (2): Your Section number & TA's name

Analog-to-Digital Converter. Student's name & ID (1): Partner's name & ID (2): Your Section number & TA's name MPSD A/D Lab Exercise Analog-to-Digital Converter Student's name & ID (1): Partner's name & ID (2): Your Section number & TA's name Notes: You must work on this assignment with your partner. Hand in a

More information

F²MC-8FX/16LX/16FX/FR FAMILY BLDC DRIVE WITH THE PPG

F²MC-8FX/16LX/16FX/FR FAMILY BLDC DRIVE WITH THE PPG Fujitsu Microelectronics Europe Application Note MCU-AN-300020-E-V10 F²MC-8FX/16LX/16FX/FR FAMILY 8/16/32-BIT MICROCONTROLLER ALL SERIES BLDC DRIVE WITH THE PPG APPLICATION NOTE Revision History Revision

More information

DS1075. EconOscillator/Divider PRELIMINARY FEATURES PIN ASSIGNMENT FREQUENCY OPTIONS

DS1075. EconOscillator/Divider PRELIMINARY FEATURES PIN ASSIGNMENT FREQUENCY OPTIONS PRELIMINARY EconOscillator/Divider FEATURES Dual Fixed frequency outputs (200 KHz 100 MHz) User programmable on chip dividers (from 1 513) User programmable on chip prescaler (1, 2, 4) No external components

More information

Section 1. Fundamentals of DDS Technology

Section 1. Fundamentals of DDS Technology Section 1. Fundamentals of DDS Technology Overview Direct digital synthesis (DDS) is a technique for using digital data processing blocks as a means to generate a frequency- and phase-tunable output signal

More information

SECTION 6 SERIAL AUDIO INTERFACE

SECTION 6 SERIAL AUDIO INTERFACE nc. SECTION 6 SERIAL AUDIO INTERFACE MOTOROLA DSP5611 User s Manual 6-1 Serial Audio Interface nc. 6.1 INTRODUCTION.................................. 6-3 6.2 SERIAL AUDIO INTERFACE INTERNAL ARCHITECTURE

More information

Pulse Width Modulation

Pulse Width Modulation ECEn 621" Computer Arithmetic" Project Notes Week 1 Pulse Width Modulation 1 Pulse Width Modulation A method of regulating the amount of voltage delivered to a load. The average value of the voltage fed

More information

Hello, and welcome to this presentation of the STM32 Digital Filter for Sigma-Delta modulators interface. The features of this interface, which

Hello, and welcome to this presentation of the STM32 Digital Filter for Sigma-Delta modulators interface. The features of this interface, which Hello, and welcome to this presentation of the STM32 Digital Filter for Sigma-Delta modulators interface. The features of this interface, which behaves like ADC with external analog part and configurable

More information

STM32 PMSM FOC SDK v3.2. 蒋建国 MCU Application Great China

STM32 PMSM FOC SDK v3.2. 蒋建国 MCU Application Great China STM32 PMSM FOC SDK v3.2 蒋建国 MCU Application Great China Agenda 2 1 st day Morning Overview Key message Basics Feature Performance Hardware support Tools STM32 MC Workbench SDK components Architectural

More information

MICROCONTROLLER TUTORIAL II TIMERS

MICROCONTROLLER TUTORIAL II TIMERS MICROCONTROLLER TUTORIAL II TIMERS WHAT IS A TIMER? We use timers every day - the simplest one can be found on your wrist A simple clock will time the seconds, minutes and hours elapsed in a given day

More information

µchameleon 2 User s Manual

µchameleon 2 User s Manual µchameleon 2 Firmware Rev 4.0 Copyright 2006-2011 Starting Point Systems. - Page 1 - firmware rev 4.0 1. General overview...4 1.1. Features summary... 4 1.2. USB CDC communication drivers... 4 1.3. Command

More information

ATA Memo No. 40 Processing Architectures For Complex Gain Tracking. Larry R. D Addario 2001 October 25

ATA Memo No. 40 Processing Architectures For Complex Gain Tracking. Larry R. D Addario 2001 October 25 ATA Memo No. 40 Processing Architectures For Complex Gain Tracking Larry R. D Addario 2001 October 25 1. Introduction In the baseline design of the IF Processor [1], each beam is provided with separate

More information

RV-8564 Application Manual. Application Manual. Real-Time Clock Module with I 2 C-Bus Interface. October /62 Rev. 2.1

RV-8564 Application Manual. Application Manual. Real-Time Clock Module with I 2 C-Bus Interface. October /62 Rev. 2.1 Application Manual Application Manual Real-Time Clock Module with I 2 C-Bus Interface October 2017 1/62 Rev. 2.1 TABLE OF CONTENTS 1. OVERVIEW... 5 1.1. GENERAL DESCRIPTION... 5 1.2. APPLICATIONS... 5

More information

LM4: The timer unit of the MC9S12DP256B/C

LM4: The timer unit of the MC9S12DP256B/C Objectives - To explore the Enhanced Capture Timer unit (ECT) of the MC9S12DP256B/C - To program a real-time clock signal with a fixed period and display it using the onboard LEDs (flashing light) - To

More information

Course Introduction Purpose: Objectives: Content Learning Time

Course Introduction Purpose: Objectives: Content Learning Time Course Introduction Purpose: The purpose of this course is to give you a brief overview of Freescale s S8 Controller Area Network (mscan) module, including an example for computing the mscan bit time parameters.

More information

Timer 0 Modes of Operation. Normal Mode Clear Timer on Compare Match (CTC) Fast PWM Mode Phase Corrected PWM Mode

Timer 0 Modes of Operation. Normal Mode Clear Timer on Compare Match (CTC) Fast PWM Mode Phase Corrected PWM Mode Timer 0 Modes of Operation Normal Mode Clear Timer on Compare Match (CTC) Fast PWM Mode Phase Corrected PWM Mode PWM - Introduction Recall: PWM = Pulse Width Modulation We will mostly use it for controlling

More information

AN1728. Making Low-Distortion Motor Waveforms with the MC68HC708MP16. Introduction

AN1728. Making Low-Distortion Motor Waveforms with the MC68HC708MP16. Introduction Order this document by AN1728/D Rev. 1 AN1728 Making Low-Distortion Motor Waveforms with the MC68HC708MP16 By David Wilson Freescale Field Applications Milwaukee, WI Introduction As an aspiring 1 musician,

More information

icwaves Inspector Data Sheet

icwaves Inspector Data Sheet Inspector Data Sheet icwaves Advanced pattern-based triggering device for generating time independent pulses to avoid jitter and time-related countermeasures in SCA or FI testing. Riscure icwaves 1/9 Introduction

More information

Pulse Width Modulation TPU Function (PWM)

Pulse Width Modulation TPU Function (PWM) SEMICONDUCTOR PROGRAMMING NOTE Order this document by TPUPN7/D Pulse Width Modulation TPU Function (PWM) By Kevin Anderson Functional Overview This output function generates a pulse-width-modulated waveform

More information

Real time digital audio processing with Arduino

Real time digital audio processing with Arduino Real time digital audio processing with Arduino André J. Bianchi ajb@ime.usp.br Marcelo Queiroz mqz@ime.usp.br Departament of Computer Science Institute of Mathematics and Statistics University of São

More information

Generation of Switching pulses for a 3 x 3 Matrix Converter

Generation of Switching pulses for a 3 x 3 Matrix Converter Generation of Switching pulses for a 3 x 3 Matrix Converter Arpita Banik Assistant Professor, School Of EEE REVA University,Bangalore Karnataka, India Email: arp_2k7@yahoo.co.in Mamatha N Assistant Professor,

More information

AN AT89C52 MICROCONTROLLER BASED HIGH RESOLUTION PWM CONTROLLER FOR 3-PHASE VOLTAGE SOURCE INVERTERS

AN AT89C52 MICROCONTROLLER BASED HIGH RESOLUTION PWM CONTROLLER FOR 3-PHASE VOLTAGE SOURCE INVERTERS IIUM Engineering Journal, Vol. 6, No., 5 AN AT89C5 MICROCONTROLLER BASED HIGH RESOLUTION PWM CONTROLLER FOR 3-PHASE VOLTAGE SOURCE INVERTERS K. M. RAHMAN AND S. J. M. IDRUS Department of Mechatronics Engineering

More information

ECE251: Tuesday October 3 0

ECE251: Tuesday October 3 0 ECE251: Tuesday October 3 0 Timer Module Continued Review Pulse Input Characterization Output Pulses Pulse Count Capture Homework #6 due Thursday Lab 7 (Maskable Interrupts/ SysTick Timer) this week. Significant

More information

Hardware-In-the-Loop simulator for turboprop and turboshaft engine control units

Hardware-In-the-Loop simulator for turboprop and turboshaft engine control units Hardware-In-the-Loop simulator for turboprop and turboshaft engine control units J. Vejlupek, M. Jasanský, V. Lamberský, R. Grepl Abstract This paper presents the development and implementation of the

More information

Copley Amplifier Parameter Dictionary

Copley Amplifier Parameter Dictionary Copley Amplifier Parameter Dictionary Part Number CC95-00716-000 Revision A June 2009 TABLE OF CONTENTS About This Manual...5 1: Introduction...9 1.1: Scope and Purpose of this Book...9 1.2: Organization

More information

3KDVH 6LQH *HQHUDWRU ZLWK 9DULDEOH3KDVH&RQWURO

3KDVH 6LQH *HQHUDWRU ZLWK 9DULDEOH3KDVH&RQWURO Digital Motor Control Library 3KDVH 6LQH *HQHUDWRU ZLWK 9DULDEOH3KDVH&RQWURO Component Name: 2-Phase Sine Generator with Variable Phase Control 2-Phase Sine Generator with Variable Phase Control 0 Inputs

More information

Microcontroller: Timers, ADC

Microcontroller: Timers, ADC Microcontroller: Timers, ADC Amarjeet Singh February 1, 2013 Logistics Please share the JTAG and USB cables for your assignment Lecture tomorrow by Nipun 2 Revision from last class When servicing an interrupt,

More information

Microcontrollers: Lecture 3 Interrupts, Timers. Michele Magno

Microcontrollers: Lecture 3 Interrupts, Timers. Michele Magno Microcontrollers: Lecture 3 Interrupts, Timers Michele Magno 1 Calendar 07.04.2017: Power consumption; Low power States; Buses, Memory, GPIOs 20.04.2017 Serial Communications 21.04.2017 Programming STM32

More information

Low Cost PMSM Sensorless Field-Oriented Control Based on KE02

Low Cost PMSM Sensorless Field-Oriented Control Based on KE02 NXP Semiconductors Document Number: AN5294 Application Note Rev. 1, 05/2017 Low Cost PMSM Sensorless Field-Oriented Control Based on KE02 1. Introduction This application note describes the design of a

More information

Application Note, V1.2, Feb AP TriCore. 3-phase complementary PWM with hardware triggered ADC conversion.

Application Note, V1.2, Feb AP TriCore. 3-phase complementary PWM with hardware triggered ADC conversion. Application Note, V1.2, Feb. 2011 TriCore AP32135 3-phase complementary PWM with hardware triggered ADC conversion Microcontrollers Edition 2011-02 Published by Infineon Technologies AG 81726 München,

More information

APPENDIX B. TMS320LF2407 PERIPHERAL GUIDE for EE757 Control Systems Laboratory

APPENDIX B. TMS320LF2407 PERIPHERAL GUIDE for EE757 Control Systems Laboratory APPENDIX B TMS320LF2407 PERIPHERAL GUIDE for EE757 Control Systems Laboratory Winter Quarter 2002 The Ohio State University Department of Electrical Engineering About This Appendix embedded real-time software

More information

PWM_8B8C. Block User Guide V01.16

PWM_8B8C. Block User Guide V01.16 DOCUMENT NUMBER S12PWM8B8CV1/D PWM_8B8C Block User Guide V01.16 Original Release Date: 12 MAR 1998 Revised: 14 MAR 2002 Motorola Inc. Motorola reserves the right to make changes without further notice

More information

EEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 11 Motor Control

EEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 11 Motor Control EEE34 Microcontroller Applications Department of Electrical Engineering Lecture Motor Control Week 3 EEE34 Microcontroller Applications In this Lecture. Interface 85 with the following output Devices Optoisolator

More information

Section 35. Output Compare with Dedicated Timer

Section 35. Output Compare with Dedicated Timer Section 35. Output Compare with Dedicated Timer HIGHLIGHTS This section of the manual comprises the following major topics: 35.1 Introduction... 35-2 35.2 Output Compare Registers... 35-3 35.3 Modes of

More information

PWMLib PWM Library. Jim Schimpf. Document Number: PAN Revision Number: April Pandora Products. 215 Uschak Road Derry, PA 15627

PWMLib PWM Library. Jim Schimpf. Document Number: PAN Revision Number: April Pandora Products. 215 Uschak Road Derry, PA 15627 PWMLib Jim Schimpf Document Number: Revision Number: 0.8 Pandora Products. 215 Uschak Road Derry, PA 15627 Creative Commons Attribution 4.0 International License 2015 Pandora Products. All other product

More information

EVDP610 IXDP610 Digital PWM Controller IC Evaluation Board

EVDP610 IXDP610 Digital PWM Controller IC Evaluation Board IXDP610 Digital PWM Controller IC Evaluation Board General Description The IXDP610 Digital Pulse Width Modulator (DPWM) is a programmable CMOS LSI device, which accepts digital pulse width data from a

More information