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

Hi,
I was trying to configure the CEX3 of Atmel TSC80251G2D( 80C251). Here follows my initialization code. I dont see a PWM output.
Any one has any comments? If so please help.

void pca_configure()
{
CMOD = 0x0; /* Internal Clock */
CCAPM3 = 0x42; /* PWM ON */
CCAP3H = 128; /* Duty cycle value for 50% */
CCAP3L = 128; /* Duty cycle value for 50% */
IPL0 = 0x40; /* Make PCA interrupt the highest priority */
IPH0 = 0x40; /* Make PCA interrupt the highest priority */

CR = 1; /* Start running */
EC = 1; /* PCA interrupt enable */
EA = 1; /* /* Global interrupt enable */
}


Thanks and Regards
Arun

0