We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
hello all,
I am working with AT89C51CC01.I want to see o/p of PWM using PCA. The code is as follows.
void main() { CMOD = 0x02; // Setup PCA timer CL = 0x00; CH = 0x00; CCAP0L = 0x40; // Initial value same as CCAP0H CCAP0H = 0x40; // 75% Duty Cycle CCAPM0 = 0x42; // PCA module 0 in PWM mode. CR = 1; // Start PCA Timer. while (1) {} }
I test this program last week that time this was working, but when i test today then it´s not gives o/p of PWM signals. I don´t understand wht is the problem? please give me ur suggetion for this problem. Thanks in advance.