This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

PWM using PCA in AT89C51CC01

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.