Read two thousand four hundred and eighty-three | return zero

fifty-nine

Posts

zero

TA resources

A grain of gold sand (medium)

Building owner
 

DSP2812 full comparison PWM output problem [Copy Link]

I use 2812 full comparison unit to generate PWM. In the interim, PWM1, PWM3, and PWM5 output 1KHz PWM waves with a duty cycle of 40%, and PWM2, PWM4, and PWM6 output complementary waveforms. Now I find two problems:
(1) Oscilloscope measurement shows that the output waveform amplitude of PWM1 and PWM2 is about 3V, but the output waveform amplitude of other four PWM channels is about 1.5V
(2)
  1. /*EvaRegs. ACTRA.bit.CMP1ACT=1; //PWM1 comparison match is low and effective
  2.         EvaRegs. ACTRA.bit.CMP2ACT=2; //PWM2 comparison match is highly effective
  3.         EvaRegs. ACTRA.bit.CMP3ACT=1; //PWM3 comparison matching is low and effective
  4.         EvaRegs. ACTRA.bit.CMP4ACT=2; //The PWM4 is relatively matched and highly effective
  5.         EvaRegs. ACTRA.bit.CMP5ACT=1; //PWM5 match is low and effective
  6.         EvaRegs. ACTRA.bit.CMP6ACT=2; //PWM6 is relatively matched and highly effective
  7.         EvaRegs. ACTRA.bit.D=0;
  8.         EvaRegs. ACTRA.bit.SVRDIR=0;*/
Copy Code
If the ACTRA register is assigned by bit operation, there is no PWM output, but if the overall assignment is adopted, there is PWM output
  1. EvaRegs.ACTRA.all=0x0999;
Copy Code


give the thumbs-up follow
 

reply
report
You need to log in before you can reply Sign in | register

Guess you like it
look around
Find Data Book?

EEWorld Datasheet Technical Support

Related articles More>>
close
Recommended by webmaster Previous one /10  Next

 
EEWorld subscription number

 
EEWorld Service Number

 
Automobile development circle

Copyright Electronic Engineering World Beijing B2-20211791 Jing ICP Bei 10001474-1 TSSP [2006] No. 258 Jinggong Network Anbei No. 11010802033920 Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved
Quick reply Back to top Back to list