??? 06/16/04 19:29 Read: times Msg Score: +1 +1 Good Question |
#72604 - P89C51RD2 PCA Interrupts Not working |
Greetings,
I am attempting to use the PCA in the 'RD2 chip in Negative Edge Capture mode. The problem is that the interrupts for the Individual CEXn ports are not firing. The main Rollover interrupt is however. Hardware Configuration ======================= Inputs from the external world are send through an 74LS244, which as you know is a schmitt trigger to clean up the signal. They then connect directly to the CPU CEXn ports. I have confirmed that the signal is passing through to the CPU. I have not looked at them recently with a scope, but in the last month they looked great, As expected with a Schmitt trigger. Software Configuration ======================= I tend to use macros to wrapper the basic 8051 register functions, so my source would just frustrate you guys. But below is the initalization i am performing. I can read the values after, and see that they are set correctly. I use many interrupts T0, SP so i know that portion is ok. And since the main PCA Rollover interrupt works i can assume the vector is fine...and the EC enable is there...(Which i know it is)... I cannot however get the individual CEXn's to generate an interrupt. Below is the config i use for each variable, i can read them back and see that they are actually set... CMOD = 0x01 /* Enable Ints */ CCON = 0x40 /* Enable Counter */ CCAPMn = 0x31 /* Postitive and Negative Edge Capture, Enable Ints */ What am i missing ? Thanks, Lenny |
Topic | Author | Date |
P89C51RD2 PCA Interrupts Not working | 01/01/70 00:00 | |
RE: P89C51RD2 PCA Interrupts Not working | 01/01/70 00:00 | |
RE: P89C51RD2 PCA Interrupts Not working | 01/01/70 00:00 | |
RE: P89C51RD2 PCA Interrupts Not working | 01/01/70 00:00 | |
RE: P89C51RD2 PCA Interrupts Not working | 01/01/70 00:00 | |
RE: P89C51RD2 PCA Interrupts Not working | 01/01/70 00:00 | |
RE: P89C51RD2 PCA Interrupts Not working | 01/01/70 00:00 | |
RE: P89C51RD2 PCA Interrupts Not working | 01/01/70 00:00 | |
RE: P89C51RD2 PCA Interrupts Not working | 01/01/70 00:00 | |
RE: P89C51RD2 PCA Interrupts Not working![]() | 01/01/70 00:00 |