??? 12/15/08 04:29 Read: times |
#160930 - How to initialise PCA in P89C669 |
Good Morning to All,
Please tell me the code to initialise PCA in PWM mode in P89C669.I have already written the code for it but it cant run properly.My code is like this: void init_pwm(void) { Pwm=1; // For alternate function CMOD=0x2; // Clock input 4 250 nsec at 16 MHz CL=0; //Frequency of output 4 15.6 KHz CH=0; CCAPM3=0x42; // ; Module 0 in PWM mode CCAP0L=0; CCAP0H=0x80; // 50 percent duty cycle CR=1; // Turn on PCA timer } On CRO i will get only 0 to 1 pulse when i swithed on my unit. Is there are any changes in code please suggest. Thanks & regards Mayur Sonawane. |
Topic | Author | Date |
How to initialise PCA in P89C669 | 01/01/70 00:00 | |
PCAs Were From Intel | 01/01/70 00:00 | |
Thanks Michael | 01/01/70 00:00 |