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)
/*EvaRegs.ACTRA.bit.CMP1ACT=1;//PWM1 comparison match is low and effective
EvaRegs.ACTRA.bit.CMP2ACT=2;//PWM2 comparison match is highly effective
EvaRegs.ACTRA.bit.CMP3ACT=1;//PWM3 comparison matching is low and effective
EvaRegs.ACTRA.bit.CMP4ACT=2;//The PWM4 is relatively matched and highly effective
EvaRegs.ACTRA.bit.CMP5ACT=1;//PWM5 match is low and effective
EvaRegs.ACTRA.bit.CMP6ACT=2;//PWM6 is relatively matched and highly effective
EvaRegs.ACTRA.bit.D=0;
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
I have a problem with the comparison unit of f2812 to realize pwm output. My initialization code for the register is shown below. Here, I use the comparison unit to output pwm waves, and also use the comparison output of the general timer 1. When running the program, the comparison output of the general timer is normal, but the pwm output pin of the comparison unit is normal!Depressed, please give me some advice, isn't it
The rising edge and falling edge of the PWM waveform measured by the oscilloscope are very slow. I uploaded and downloaded the attachment 2 hours ago (43.95KB). I measured the square wave sent by the signal generator. I found the phenomenon about the possible cause of the waveform distortion: the DSP board was powered down, and I measured the pin PWM1. According to reason, I can send you a copy of the correct PWM routine. com Thank you
The development board with power supply that is designed and proofed by individuals, the private chat that is idle at home and needs, the development board, if its own power supply is not suitable for the development board, it can be used as light control, temperature control, and display with digital tube,
On September 27, it was announced by the China Academy of Information and Communications today that the China Academy of Information and Communications, Beijing University of Posts and Telecommunications and Tsinghua University jointly launched a tangible intelligent operating system for intelligent robots out of the box - tangible tangible intelligent operating system, English name: Embodied
On September 27, it was reported that the Linux circle exposed a serious remote code execution (RCE) vulnerability, which has existed for more than 10 years and affected almost all GNU/Linux distributions. At present, there is no fix, but it can be alleviated.Software developer Simon
On September 27, it was reported that Tata Electronics announced yesterday in New Delhi local time that it had reached a final agreement on technology transfer with Taiwan wafer foundry company Li Jidian (Li Jicheng Electronics Manufacturing Co., Ltd., PSMC).Tata Electronics plans to invest INR 910 billion (when
The annual industrial event - ST Industrial Summit 2024 is open for registration! Time: October 29 (Tuesday) all dayPlace: Shenzhen (address to be sent after seat confirmation)
We sincerely invite you to fill in the application according to the actual situation!MPS reviews the application information and sends samples to users who have passed the application.(Maximum 5 tablets per person) Netizens who have received samples can participate in the third evaluation activity!Many prizes~Come and apply for free modules!
On October 11, 2024 (Friday), NXP sincerely invites you to meet in Beijing to participate in the "NXP Industry and Internet of Things Technology Summit", to insight into technology development trends and jointly promote future market development! The forecast is fast. Good gifts are waiting for you~
This week's short edition brings you a super simple and super dry e-book - Dummies, the basics of power management!The content is easy to understand, the layout is comfortable and simple, and you can get the core knowledge of power management every minute.