Complementary PWM

Function : Avoid the situation that the load is increased due to the problem of switching speed when the previous device is turned off and the next device is turned on at the same time (the latter device is turned on before it is completely closed), especially when the current is too large, it is easy to cause short circuits, etc. damaged equipment

 

Principle : TRDIOB0 output to Q1

         TRDIOD0 output to Q4

         

         The high level of the mos tube is turned on, and the low level is turned off

         If Q1 and Q4 are both high level, then the two mos tubes will be turned on at the same time, and the current will be very large. In order to avoid this situation, it is necessary to ensure that at the same time, only one output is at an active level (sometimes high Active level, sometimes active low)

 



 

 Register settings:

 
Dead time: p, p is determined by the difference between the initial values ​​of the two counters


 

 


When counting up, TRD0 and TRDGRA0 compare the size, if they are equal, TRD0 and TRD1 count down at the same time; when counting down, the TRD1 register changes from "0000H" to "FFFFH", and both TRD0 and TRD1 count up at the same time.


 
 TRD0 and TRD1 change in the same direction,

1. When TRD0 grows, first compare with TRDGRB1, if equal, TRDIOD1 jumps

2. When TRD1 grows, first compare with TRDGRB1, if equal, TRDIOB1 jumps

3. When TRD0 continues to grow, compare it with TRDGRA1, if it is equal, TRDIOC1 jumps

4. When TRD1 continues to grow, compare it with TRDGRA1, if it is equal, TRDIOA1 jumps

5. When TRD0 continues to grow, it is finally compared with TRDGRB0, if equal, TRDIOD0 jumps

6. When TRD1 continues to grow, it is finally compared with TRDGRB0, if equal, TRDIOB0 jumps

 

When TRD0 and TRD1 count down, the principle is similar to the above, which ensures that the mos tubes of the upper and lower bridge arms will not be turned on at the same time.



 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326521851&siteId=291194637