| ??? 12/08/02 15:06 Read: times |
#34024 - RE: PCA interrupt more |
Yes, you're right, and be sure that now I've wrote my own declarations file and I will not believe the supllier's one.
My initialisation routine is : CMOD = 0x01; CCAPM3 = 0x21; //positive edge capture CCAP3H = 0; CCAP3L = 0; CH = 0; CL = 0; EC = 1; // interrupt on P3 = 0xFF; // P3 as outputs CR = 1; // turn on PCA All is correct since I insert the line CR=1. When writing to CCON (CR bit in this example), the software continues for a few milliseconds and stops. The line after CR=1, I've inserted the line UART_Printf ("PCA initialized") to test. Then, the terminal display "PCA" and my code stops definitively. When removing the line CR=1, all works (excepts the PCA of course) The PCA interrupt routine isn't called. I've also tried to use the others PCA modules without any success. The problem is that as my soft stops, I can't insert some spy variable to see what happens. Do you see a way to investigate ? Stephane |



