Abstract:
The invention relates to a method and a device for the production of two-channel or multi-channel pulse-width-modulated rectangular pulses. According to the invention, exactly one pulse is discharged within a period in each channel. The inception of a pulse in relation to the moment of inception is delayed by an actual dead time. The dead time is respectively kept constant for at least one period and a new value for the dead time is produced for a modulation of the pulse width and/or a new value is produced for the duration of the period and the actual dead time and/or the actual duration of the period is set at the beginning of the desired period according to the new value of the dead time and/or duration of the period.

Description:
CROSS REFERENCE TO RELATED APPLICATIONS  
       [0001]     This application is the US National Stage of International Application No. PCT/EP03/10867, filed Oct. 1, 2003 and claims the benefit thereof. The International Application claims the benefits of German application No. 10248304.3 filed Oct. 16, 2002, both of the applications are incorporated by reference herein in their entirety.  
       FIELD OF INVENTION  
       [0002]     The invention relates to a method for the production of two-channel or multi-channel pulse-width modulated rectangular phases.  
         [0003]     The invention also relates to a device for the production of two-channel or multi-channel pulse-width modulated rectangular pulses.  
       BACKGROUND OF INVENTION  
       [0004]     For the control of specific forms of circuit, e.g. transformers, multiphase motors etc. it is often necessary, if two or more pulse-width modulated activation signals are used, for these signals to have a specific waveform, in order to avoid such a transformer becoming saturated, and is thereby damaged or destroyed.  
         [0005]     Previously such control signals have been produced by using two or more pulse-width modulated signals which must have the same switch-on time in consecutive time segments. In addition the other control output must be blanked in each second phase in each case.  
         [0006]     This procedure is complex and time consuming however, and if a microcontroller is used for control, in some cases up to 80% of the resources of the microcontroller are used just for the production of symmetrical, pulse-width modulated control signals, so that only a few of the microcontroller&#39;s resources are available for other tasks.  
         [0007]     For the control of multi-phase motors for example, such as 5-phase motors, which is possible with the signals mentioned at the start, high transition losses occur with the conventional method of changing the speed of the motor.  
       SUMMARY OF INVENTION  
       [0008]     An object of the invention is to produce two or more pulse-width modulated signals in a simple way which preserves resources.  
         [0009]     It is a further object of the invention to produce two-channel or multi-channel pulse-width modulated signals which allow high transition losses to be avoided.  
         [0010]     These objects are achieved with the method mentioned at the start or with the device mentioned at the start in that, in accordance with the invention, exactly one pulse is discharged within a period in each channel and that the inception of a pulse in relation to the moment of inception is delayed by an actual dead time, the dead time is kept constant in each case for at least one period, and for a modulation of the pulse width, a new value for the dead time and/or a new value for the duration of the period is produced and the current dead time and/or the current duration of the period is set at the beginning of the desired period to the new value of the dead time and/or the period duration.  
         [0011]     Through this “block mode”, in which each channel is activated and then deactivated for a specific time, the frequent switching on and switching off in the operation of a multiphase motor for example, which leads to high transition losses when changing the speed of the motor, is avoided.  
         [0012]     In addition, the effect of changing the dead time and the duration of the period—which can be used as an alternative or in addition—is that the signals, i.e. the rectangular pulses of the signals of a period widen or narrow all channels to the same extent, thus producing a “symmetrical” pulse width modulation under certain circumstances. The invention can easily be implemented since only one or two parameters—the dead time and/or the period duration—must be altered accordingly.  
         [0013]     Non-overlapping symmetrical signals are especially easy to produce when two consecutive pulses on different channels are each separated from each other in time by an actual dead time.  
         [0014]     To reliably ensure that a change to one of the parameters does not take effect during a current period but at the earliest during the next period, the new value of the dead time and/or the duration of the period is buffered independently of the current value of the dead time and/or the duration of the period and the actual value is overwritten with the new value at the beginning of the desired period.  
         [0015]     The invention is especially easy to implement when the dead time and/or the duration of the period is set to the new value at the beginning of each period. The presetting means that the current value is overwritten with the buffered value at the beginning of each period, even if these have not changed in the interim. This means that the complicated programming which only executes this type of update if the parameters dead time or duration of the period have actually changed is not necessary so that simple implementation is possible.  
         [0016]     Symmetrical signals are particularly simple to obtain if the maximum pulse width for a channel is set to the duration of the period divided by the number of channels.  
         [0017]     In particular there is provision here that with two channels the maximum pulse width is set to half the duration of a period.  
         [0018]     There is further provision that with n channels, after the duration of the maximum pulse width has elapsed for the first to the (n- 1 ) channel in each case, an interrupt signal is generated and the beginning of the dead time for the next channel is displayed as well as at the end of the period an interrupt signal is generated with which the beginning of the dead time for the first channel or the beginning of a new period is marked.  
         [0019]     It is useful in this case for the overwriting of the current dead time and/or the actual period duration with the new value for the dead time and/or the period duration to be initiated with the interrupt signal since in this way it is ensured that these changes have no effect on the current period.  
         [0020]     It is generally true to say that both pulse width and period duration as well as dead time can be updated using an interrupt. Therefore the corresponding registers are also double buffered.  
         [0021]     In order for a double buffering of the dead time to be possible so that at each change of the dead time, i.e. a generation or a second value for the dead time without affecting the current period is possible, the control in accordance with the invention features two dead time registers, a dead time master register and a dead time slave register and a new value for the dead time is buffered independently of the current value of the dead time stored in the dead time slave register.  
         [0022]     Likewise the control for a double buffering of the period duration additionally or alternatively features two period registers, a period master register and a period slave register, and the new value for the period duration is buffered independently of the current value stored for the period duration in the period slave register.  
         [0023]     To reliably enure that no influence is exerted on the current period the control is set up so as to overwrite the value stored in a slave register with the value buffered in a master register at the beginning of the desired period.  
         [0024]     The control can be especially simply implemented if it is set up to overwrite the value stored in a slave register with the value buffered in a master register at the beginning of each period. 
     
    
     BRIEF DESCRIPTION OF THE DRAWINGS  
       [0025]     The invention is explained below in more detail on the basis of the drawing. The Figures show  
         [0026]      FIG. 1 a  transformer with a control unit,  
         [0027]      FIG. 2 a  timing diagram for the two outputs of the control unit  1 ,  
         [0028]      FIG. 3 a  further timing diagram,  
         [0029]      FIG. 4 a  block diagram of the hardware on which the invention is based,  
         [0030]      FIG. 5 a  timing diagram of the pulse width modulation in accordance with invention, and  
         [0031]      FIG. 6 a  timing diagram for a 5-phase control.  
     
    
     DETAILED DESCRIPTION OF INVENTION  
       [0032]      FIG. 1  shows of a transformer UET with a primary winding W 1  consisting of two halves W 11 , W 12  and of a secondary winding W 2 . A dc input voltage LE, e.g. 12 V, lies with its plus pole in the center of the primary winding W 1  and is directed with its minus pole via a first separate switch S 1  to the start of the first winding half W 11  and via a second controlled switch S 2  to the end of the second winding half W 12 . The two controlled switches S 1 , S 2 , field effect transistors in this case, can be controlled by a control circuit STA. The secondary voltage of the transformer produced is designated U sec .  
         [0033]     As can be seen from  FIG. 2 , two opposed-polarity pulse-width-modulated rectangular pulses are applied to the primary winding W 1 , with each pulse being modulated in accordance with a half wave of the alternating current to be generated. In this case the impulses of the two pulses are offset in relation to each other in each case so that the impulses of one pulse fall in the gaps of the other pulse.  
         [0034]     These activation impulses, i.e. the voltages US 1  and US 2 , are shown under “A” and “B” in  FIG. 2  for the two controlled switches S 1 , S 2 . The opposed polarity of the pulses is achieved here by alternately switching the input voltage UE to one of the two winding halves W 11 , W 12 . For a one-piece primary winding W 1  four controlled switches would have to be used to obtain this opposed polarity.  
         [0035]     A transformer solution such as the one shown in  FIG. 1  needs so-called “symmetrical” pulse sequences “A” and “B”, i.e. symmetrical voltage forms US 1 , US 2  at the outputs of the control circuit STA to prevent the transformer becoming saturated which would lead to the transformer being damaged or destroyed.  
         [0036]     Such “symmetrical” pulse sequences are shown in  FIG. 2 . During a period PE which is divided into a first time area ZE 1  for the first output A and into a further time area ZE 2  for the second output B, the pulse A here has in the first time area ZE 1  at the first output of the control STA the same width as the pulse B in the second time area ZE 2  at the second output. The time areas ZE 1 , ZE 2  in this case simultaneously represent the maximum pulse width of a signal at one of the outputs A, B.  
         [0037]     With such a pulse sequence the pulse width can be simply set by changing the width of the pulse to the new value. With two or more such signals as shown in  FIG. 2  an increase of the pulse width of the first pulse A however leads to a corresponding reduction in the width of the second pulse B, in a this case there are then no longer any symmetrical pulse sequences present, the transformer goes into saturation, which is to be prevented.  
         [0038]     In principle it is possible for the pulse width of signal A to make up the entire duration of the time area ZE 1  and the pulse width of the signal B to make up the duration of time area ZE 2 . As can be seen from  FIG. 2  and in even greater detail  FIG. 3 , what is referred to as a “dead time” td is further provided and a pulse begins in a period PE only after this dead time td has elapsed. The pulse of signal B only begins after signal A has elapsed and here too only after the dead time td has elapsed.  
         [0039]     The generation of a dead time for half-bridge or full-bridge operation normally has the sense of preventing a bridge crossover current which would destroy the power transistors and which occurs it the two semiconductors present in the bridge are simultaneously conductive (in series).  
         [0040]     This dead time is mostly set to a fixed value on initialization of controls, such as microcontrollers, and adapted to the power semiconductors and their driver circuits. The pulse width for each of the power semiconductors such as transistors can assume a value of between 0% and 100% of the duration of the time area ZE 1  or ZE 2  in each case.  
         [0041]     The invention now makes use of this dead time td in that, by changing the dead time td, it also changes the pulse width PW of the relevant signals A, B. As can be seen from  FIG. 3 , an increase in the dead time td to a new value td′ (td′&gt;td) leads to a corresponding reduction in the pulse width PW of the signals A, B to a new value PW′. A reduction of the dead time td leads to the same extent to an increase in the pulse width (see  FIG. 2 ).  
         [0042]     The advantage of this process is that the pulse widths are symmetrically modulated, i.e. a pulse width change of a first signal leads to the same extent to changes in the pulse width of the second or further output signals.  
         [0043]     By looking at  FIG. 3  it can be seen at that without double buffering of the dead time essentially only a small time segment Δt remains in which the dead time, or a dead time register, for example of a microcontroller in which the value for the dead time is stored, may be changed.  
         [0044]     The dead time td may only be changed in the second half of the period, i.e. during the time area ZE 2  and only then to the new value td′ when the dead time td has already elapsed. In addition the-dead time must be prevented from switching off the outputs by being loaded with a new value, e.g. if one were to sharply increase the dead time this would lead to output B switching off.  
         [0045]     If the pulse width PW is very small (almost 0%), it is also possible to load the dead time for the next period. The result is a missing pulse, non-symmetrical pulse-width-modulated signals or double pulses at an output.  
         [0046]     By contrast to the production of a conventional pulse-width-modulated signal by means of a pulse width register in a microcontroller CON, there is thus provision in accordance with the invention, for generating symmetrical pulse-width-modulated signals, for a double-buffered dead time register with the corresponding resolution (10 bits and greater) to be used.  
         [0047]     In this case two further dead time registers, a master and a slave register, as explained in greater detail below, are added to the dead time register which is present in any event at the microcontroller CON, or the dead time register already present at the microcontroller CON is supplemented by a further additional register.  
         [0048]     The first case is useful if the microcontroller CON is expanded for the invention by a further hardware module. The second case is useful for developing a new microcontroller.  
         [0049]     As can be seen from  FIG. 4  the inventive device, here in the form of a microcontroller CON, features two or more outputs A, B, C, D, . . . which are switched alternately in a chronological sequence. The main clock here comes from output Q, the timer TIM is the clock generator.  
         [0050]     The detailed explanation below starts from the assumption that there are two outputs A, B. So that two consecutive pulses at the two outputs A, B of the controller CON are exactly the same, 
    a) the desired frequency (period) is first set,     b) the (maximum) pulse width, i.e. the duration of a time area ZE 1 , ZE 2 , which is output alternately at output A and output B, is set to exactly 50% of the period duration, and     c) the dead time register is modulated instead of the pulse width register in accordance with the curve form desired on the secondary side of the transformer. A change in the dead time td here has the effect of making the two pulses at the outputs A and B larger or smaller by the same value and thus of symmetrically modulating the signals.    
 
         [0054]     This update of the dead time td can advantageously be performed under interrupt control, since in this case the normal execution sequence of a program is interrupted by a high-priority event and this event is processed (in this case the update of the dead time), and subsequently there will be a return to the normal execution sequence in the program. Double buffering is necessary so that an update of the dead time only occurs in the next period and not during the current pulse, as will be explained in more detail below with reference to  FIGS. 4 and 5 .  
         [0055]     In  FIG. 4  the hardware components used and the way that they interact is explained with reference to a block diagram in greater detail.  
         [0056]     The clock is specified with the Clock Source CLK which is aligned to the desired resolution and frequency of the pulse width modulated signals to be produced. Mostly the clock is derived from a master oscillator of the microcontroller used Various prescalers and postscalers which can be executed under program controlled ensure that there is great flexibility in the programming of the desired scaler ratio. This is advantageous for a reason that the master oscillator as a rule runs in the MHz range which would be too high to produce a symmetrical pulse-width-modulated signal of for example 20 kHz.  
         [0057]     Naturally it is also possible to use a clock generator which can produce oscillations itself and which is not connected to the master clock. This has the advantage that the microcontroller can switch off its master clock (sleep mode, power saving mode) and the pulse width modulation can still continue to run.  
         [0058]     In the example shown, the timer TIM supplied by the Clock Source CLK is an automatically resettable count register with appropriate resolution (e.g. 16 bit) and creates with its count the basis for comparison with the period and pulse width registers explained in greater detail below. On incrementation it produces a waveform as shown in  FIG. 5 , with the timer waveform being shown as tim. The curve depicted as almost a straight line is in reality naturally a step function (a count state is held for a defined time before it is increased or reset to zero).  
         [0059]     Furthermore a Duty Cycle Master Register DCM can be seen in  FIG. 4 . The duty cycle is set with this register DCM, i.e. the ratio of the switch-on time to the period duration or the switch-on ratio in the time area ZE 1  or in the time area ZE 2  to the overall duration of the time area ZE 1 , ZE 2  (0%-100% of the time section ZE 1 , ZE 2 ). When the appropriate counter status is reached for a period the value is transferred from the Duty Cycle Master DCM into a Duty Cycle Slave DCS register.  
         [0060]     This Duty Cycle Slave Register DCS is directly involved in the generation of the pulse width ratio.  
         [0061]     This double buffering of the duty cycle register by use of a master DCM and of a slave DCS makes it possible to change the duty cycle at basically any given time since a change of the duty cycle at a given time initially only leads to a change in the corresponding value in the master DCM and thereby still has no effects on the actual duty cycle. The effects on the duty cycle are only produced in the next or the desired following period for which the change is to be effective in that then the master updates the duty cycle slave DCS with the corresponding value which then leads to a corresponding change of the settings of the duty cycle. Effects of the change at the duty cycle register in a specific period thus take effect at the earliest in the following period.  
         [0062]     Furthermore in  FIG. 4 a  first comparator CO 1  can be seen which compares the counter status of the timer TIM with the value of the duty cycle slave DCS register. If the counts are the same a reset signal rset is output and is forwarded to the Output Control Block OCB. A signal dint is generated which can the further processed as an interrupt and the dead time td 1  for the output B begins to run.  
         [0063]     With a second comparator CO 2  the status of the timer TIM is further compared with the value of a period slave register PSR in which the period duration is stored. If these counts are the same a set signal is activated and this signal set: is forwarded to the Output Control Block OCB. A signal is generated which can be further processed as an interrupt pint. In this way the end of the period is displayed.  
         [0064]     In addition the timer TIM is reset to a value of “0” the values from the master registers, such as for example the Period Master Register, but also those in the master registers listed below, are transferred into the slave registers and the dead time for the output “A” begins to elapse.  
         [0065]     The Period Master PMR is used for setting the period duration of the pulse-width modulated signals. Any resolutions of the pulse width up to the maximum resolution of the timer TIM can thus be set. The timer TIM will be incremented up to this value before being reset to “0”.  
         [0066]     When the time for a period is reached the value is transferred from the Period Master Register PMR into the Period Slave Register PSR. This Slave Register PSR is directly involved in the creation of the period duration as described above.  
         [0067]     In its turn double buffering through use of Master PMR and Slave PSR generally allows the period to be changed at any given point in time. The effects of change are not felt until the subsequent period at the earliest. It is thus possible to change very easily between different frequencies without influencing the current period duration.  
         [0068]     The components of importance for the invention are described below. By contrast with conventional microcontrollers, in which only one dead time register is provided, there is double buffering of the dead time register with the invention. In this case the register Dead Time Master DTM contains the dead time td, i.e. the value for the time between switching off channel A and switching on channel B and vice versa.  
         [0069]     Through the double buffering, i.e. through the additionally present register Dead Time Slave DTS, it now becomes possible for the value of the dead time td in the Master Register DTM to be changed at any given time without this having direct undesired effects on the signals at the outputs on the microcontroller. Only once a complete period has elapsed at the earliest will the value be transmitted into the Slave Register DTS and only at this point in time will the signals then be correspondingly symmetrically changed at the output A, B.  
         [0070]     As described, the Dead Time Slave Register DTS is directly involved in creating the dead time. In  FIG. 5  further down the effect of a dead time change for two outputs on a microcontroller CON will also be explained in more detail.  
         [0071]     Basically with such a type of double-buffered dead time register not just two but also a number of outputs can be correspondingly activated.  
         [0072]     If a number of dead time registers or pairs of dead time registers are used (e.g. five independent dead time registers are needed for a 5-phase motor) a separate dead time can naturally be set for each output or for each start point or for a number of contiguous output groups in each case and these times can be changed independently of each other.  
         [0073]     The Reset Block RES finally serves to generate the pulse width, i.e. the switch-on and switch-off time of the individual outputs for the Output Control Block OCB, with this pulse width being created from the period duration and the duty cycle, as has been explained above.  
         [0074]     The Output Control Block OCB finally includes items such as one or more Dead Time Counters DT with which or with the aid of which the dead time modulation corresponding to the values set in the dead time registers is performed. In this case one such Dead Time Counter is needed for each dead time to be created.  
         [0075]     In addition in this control block OCB the control for one, two or more outputs can occur (with and without dead time modulation), and different bridge configurations can be set (half bridge, full bridge, ac bridge, 5-phase bridge, . . . ).  
         [0076]      FIG. 4  finally shows Status Lines STL as well as Input Lines for bridge control, with INL indicating Interrupt Lines.  
         [0077]     After this general explanation of the components involved, the invention will be described in greater detail for various signals with reference to the signal sequences shown in  FIG. 5  in conjunction with the block diagram in accordance with  FIG. 4 .  
         [0078]     The designations on the diagram are to be viewed in conjunction with the block diagram.  
         [0079]     A 8-bit resolution has been selected for the example, i.e. the counts run from 0 through 255 (2 8 =256).  
         [0080]     To obtain a maximum pulse width of the signals to be modulated of 50% of the period duration which is advantageous for the invention, the limit of the count for the pulse width lies at 128.  
         [0081]     This value—the actual time specified is only produced by the clock source and prescalers for the timer TIM—is stored in the Duty Cycle Slave Register DCS. The comparator CO 1  compares the status of the timer TIM with the value set in the register DCS, and as soon as this is reached, a reset signal rset is generated and forwarded via the Reset Block RES to the Output Control Block OCB. The signal generated at the output Q of the Set/Reset Block RES has the timing sequence shown in  FIG. 5 , i.e. after the timer bar of the timer TIM has reached the value set in the Register DCS, the signal Q goes from “high” to “low”.  
         [0082]     “Q” designates the output from the Set/Reset block RES and shows a signal duty cycle with 50%, i.e. the signal at the output Q of the block RES is thus on “high” for the first half of the period PE and on “low” for the second half, which means a duration of 50% of the period PE of the time area ZE 1  at output A and 50% of the period PE of the time area ZE 2  at the output B.  
         [0083]     As already explained above, Dead Time Counter DTC in the Output Control Block OCB indicates a counter which delays the switching on of the corresponding outputs by the dead time td, with this counter being loaded with the value for the dead time stored in the Dead Time Slave Register. Basically, depending on how many outputs are to be controlled independently of each other, a number of such counters can be provided.  
         [0084]     The Dead Time Counter DTC is loaded at the beginning of each full period with the value of the Dead Time Slave and subsequently counts down to zero. Only then are the corresponding outputs enabled. if the pulse width, i.e. the time area ZE 1  at output Q for example, is less than the specified dead time, the corresponding output is never set and always remains switched off.  
         [0085]     It should be noted that to create the maximum possible switch-on time of an output the maximum pulse width, i.e. 100% of the time area ZE 1 , as well as the minimum dead time, i.e. a value of zero, is to be set. The dead time value and the pulse width thus have the opposite effect, a maximum value dead time means a pulse width of zero in the time areas ZE 1 , ZE 2 .  
         [0086]     As can be seen from  FIG. 5  the pulse width is exactly symmetrical, viewed over each period. A and B here indicate the two outputs of the microcontroller, a, b, c the three different modulation sections (t 0 -t 5 : section a, t 5 -t 14 : section b, t 14 -t 19 : section c, . . . ).  
         [0087]     The update of master to slave registers and the writing of the Dead Time Counter or Counters DTC always only ever occurs at the end of a full period. This avoids the pulse-width modulated signals becoming asymmetrical or pulses getting lost or being changed during a period.  
         [0088]     The individual time sections in  FIG. 5  are explained in more detail below.  
         [0089]     t 0 -t 1 :  
         [0090]     The Dead Time Slave is set with a specific value dts=td 1 , accordingly the Dead Time Counter DTC begins to count down from this value dts to zero at point t 0 , as can be seen from the signal form in  FIG. 5 . (time t 0  is thus the earliest possible time for channel A at which the signal at output A would go to “high” if a dead time had been set to zero.) The value zero for the signal dtc is reached at point t 1 , at this point the dead time (with the duration td 1 =t 1 -t 0 ) has elapsed, and the output signal at output A is set to “high” (signal Aa) for the rest of the time area ZE 1 .  
         [0091]     t 2 :  
         [0092]     At this point, by program for example, the Master Register DTM is changed for the dead time. As can be seen from the signal form dtm the current value of the signal dtm=td 1 , which corresponds to the value of the signal dts is increased by a specific value (or reduced, not shown), i.e. the dead time is set to the current value of the signal dtm=td 2 . This change only effects the Dead Time Master DTM and thus has no effect on the current period. There can thus be a relatively free choice of the point in time at which the change is made and it should merely be chosen to be well before the current period elapses, so that any computations are completed in good time before the period elapses.  
         [0093]     t 3 :  
         [0094]     At this point output A is switched off since its switch-on time (=duration of the time area ZE 1  minus the dead time td 1 ) has elapsed (t 3 =“earliest” point in time for the signal at output B). At each end of the pulse width set within a period PE, i.e. here of the end of the switch-on time for the output A, the dead time count register dtc is set to the value for dts set in the Dead Time Slave,. i.e. to td 1 . Thus in this case the dead time td 1  for is started for output B, which in its turn is exactly the same size as that for output A.  
         [0095]     t 4 :  
         [0096]     At this point t 4  the dead time td 1  has elapsed, the output B is switched on and a pulse Ba is produced.  
         [0097]     t 5 :  
         [0098]     The time t 5  designates the end of a period PE, in this case the first period shown, and the output B is switched off.  
         [0099]     In addition, the new, current value of the Dead Time Master register DTM is loaded into the corresponding Slave Register DTS, as can also be seen from the change in the signal form of the curve dts, and simultaneously the new value for the dead time td 2  corresponding to the new value for dts in the dead time counter DTC is loaded into the Output Control Block OCB.  
         [0100]     t 5 -t 11 :  
         [0101]     Starting at t 5 , the counter DTC counts down from the new value for dts to zero (t 6 ), output A generates a corresponding signal Ab. At point t 7  the signal Ab at output A is at an end, the dead time is counted down for the output B, and the Signal B is set at point t 8  to “high” (signal Bb), corresponding to the new value of the dead time td 2 . The two sequences Ab and Bb repeat in the next period.  
         [0102]     At point t 11  the Master Register for the dead time is again changed (new dead time td 3 ), in the example it is set to an even higher value dtm. The change only takes effect in the Dead Time Master DTM and thus has no effect on the current period, corresponding to behavior at point t 2 .  
         [0103]     t 11 -t 14 :  
         [0104]     The outputs A and B continue to generate pulse-width modulated signals corresponding to the set dead time td 2  for the time b.  
         [0105]     t 14 :  
         [0106]     The point t 14  again signifies the end of a period, and output B is switched off.  
         [0107]     The value of the Dead Time Master register td 3  is loaded into the corresponding Slave register and simultaneously into the counter of the Output Control Block.  
         [0108]     t 14 -t 19 :  
         [0109]     In accordance with this newly loaded dead time td 3 , outputs A and B again create corresponding signals, such as shown in  FIG. 5 , where, after the dead time td 3  has elapsed, at points t 15  or t 17 , the signal at the output A is set to “high” (signal Ac) or the signal at the output B to “high” (signal Bc).  
         [0110]     In order to now be able to produce a corresponding curve form with the transformer, e.g. a sine-wave curve for rectifier applications, the resolution must be made large.  
         [0111]     The 8-bit resolutions shown are only to be seen as examples. In order for example to be able to perform a mains power feed, a resolution of 10-12 bits or more should be used.  
         [0112]     In accordance with  FIG. 5 , with the two-channel signals A, B the pulses of the one signal fall into the gaps of the second signal. However this is not required.  
         [0113]     Alternatively or additionally, for pulse width modulation, the period duration can also be changed, which also produces a symmetrical change of the pulse widths. In addition to the change in the period duration, the duty cycle must then also be changed using the Duty Cycle Register in order to obtain a duty cycle of 50%.  
         [0114]     In this way a modulation method such as for example FSK (Frequency Shift Keying) is possible. Naturally this alternative or additional variation option to changing the dead time is only to be used if a change of the period duration is desired or at least has no adverse effects.  
         [0115]     The principle procedure for changing the period duration is again the same as changing the dead time, namely double buffering of the period duration by using a Period Master and a Period Slave Register PMR, PSR, where it is possible to first generate a new period duration and to buffer it in the Master PMR, without causing any unwelcome changes to the period duration during the current period. At the beginning of the next period or the required period the current value of the period duration is then overwritten in the Slave Register PMR with the new value of the Master register and this value is then changed to the currently applicable value for the period duration up to the next change.  
         [0116]     Finally  FIG. 6  shows the signal form for a  5 -phase control of a motor for example. In accordance with  FIG. 6 , a period a cycle PER comprises  5  phases or time areas a, b, c, d, e. According to the example the maximum switch-on duration for a channel extends over two time sections, i.e. for channel A over the time sections a+b (channel B: b+c; channel C: c+d; channel D: d+e; channel E: e+a, with this last time section a already lying in the new period).  
         [0117]     The current dead time td begins to run for each channel at the beginning of a specific time section, e.g. for channel A in the period shown at point t 1 , for channel C e.g. at point t 3 , etc.  
         [0118]     As can be seen from this exemplary embodiment, overlapping areas are thus also possible for the maximum pulse width, and basically it would also then be possible to select the dead time so that high signals of different channels overlap in time, and thus the signal form can no longer be “symmetrical”.  
         [0119]     At point t 1  the slave registers for the dead time are loaded with the current “value td for the dead time; the master can the if desired be loaded during the period t 1 -t 6  with a new value for the dead time, which is then written at point t 6 , i.e. the beginning of the new cycle, into the slave register. As a result of overlapping areas it is necessary here for each channel A-E to be supplied via a separate slave register for the dead time, thus for the master to update 5 slave-registers which then “execute” in turn. Were the signals, i.e. the maximum possible pulse durations (a+b; b+c; etc.) of the signals not to overlap, only one slave register would be necessary within the framework of double buffering.  
         [0120]     With the method shown in accordance with the invention for pulse-width modulation an important aspect is that the center of the modulated pulse of the signal is shifted as well in each case. Other methods are known where modulation is around the center, i.e. the position of the center remains unchanged during a modulation. Trials and calculations have shown however that such methods have major disadvantages as regards the electromagnetic compatibility in major frequency ranges compared to the existing method and thus make it necessary to use filters, which are not used in the present invention.  
         [0121]     The additional effort arising with the invention compared to a conventional microcontroller from the double buffering of the corresponding registers in the PWM part is very small compared to the benefit of the present invention.  
         [0122]     The chip surface is only increased by a few registers, this does not produce any noticeable increase in costs in the end product since the surface area only increases by a few um 2 .  
         [0123]     Naturally with the new concept a “normal” PWM can be created, without having to change the existing programs or circuits.  
         [0124]     If this type of hardware is implemented on the chip 90% of the program resources can be saved. This available program time in the microprocessor is then free for additional control and regulation tasks. It enables a switch to be made to a better controller for a product while retaining the same performance.  
         [0125]     The invention is suitable for example for use in clocked power supplies, for inverters, solar inverters, mains-controlled inverter applications, e.g. feeding power back into the public power network in which a direct current or a rectified alternating current is to be converted into another alternating current, preferably at lower frequency. In addition the invention is also suitable for clocked current and voltage supplies and for motor control.