Hi! I used F28069 MCU
I have a problem. How to control the eCap module?
Here's the code:
ECap1Regs.ECCTL2.bit.CAP_APWM = 1; // Enable APWM mode
ECap1Regs.TSCTR = 0;
ECap1Regs.CAP1 = 3000;//1500;//0x01312D00; // Set Period value // 90,000,000/3,000 = 300,000
ECap1Regs.CAP2 = i;//0x00989680; // Set Compare value
// Start counters
ECap1Regs.ECCTL2.bit.TSCTRSTOP = 1;
When this code execute, I can see the waveform in Oscilloscope.
But when I want the waveform to always low level.
I set
ECap1Regs.CAP1 = 0;
ECap1Regs.CAP2 = 0;
The waveform dosen't happen.
How to set the value and it can make waveform always low.
Can anyone help me?
Thanks!