??? 01/19/05 23:34 Read: times |
#85342 - P89C51RD2 to P89C668 PCA problem |
Dear Forum Members,
1. I make a porting from P89C51RD2 to P89C668. Change all Header files #ifdef<> and adapt one of the PCA counters .PCA4 instead of PCA3. (I understanding P89Cc668 doesn't 100% pin compatible). 2. It looks like that the problem is the inability to make the following configuration : void Initial_PCA(void) { CMOD = 0x07; //PCA Counter Mode CCAPM1 = 0x4C; //ÐCA Module 1 CCAPM2 = 0x4C; // PCA Module 2O CCAPM3 = 0x49; //Ç 3 PCA }-> I can do it via a quick PCA program - main() which initialize the PCA - Initial_PCA(void) plus setting CCAP#L= (BYTE)(wTemp); CCAP#H= (BYTE)(wTemp>>8); make PCA activation ,Than catch via CCF#. This is working well). Also If I make a B.P after CCAPM3 I expect to see 0xC9 it's actually 0x49 plus 1 internal msb.Also I can change the CCAPM# value via the Emulator. 3. My big problem is with PCA Initialization above the Operational software !!!. The CCAPM# value after the Initial line is 0xFF.I can't able to make any Change the value. Therefore the PCA's doesn't expired and cause to inaptitude finish porting to P89Cc668. 4. I'll appreciate if u can light up on this issue. Maybe it's some more difference between P89C51RD2 to P89C668 idata, xdata and etc. Maybe I doesn't paid attention to something ... Looking forward to any advice / direction. 10 x Moshe Drori IMG |
Topic | Author | Date |
P89C51RD2 to P89C668 PCA problem | 01/01/70 00:00 | |
pin compatible - yes![]() | 01/01/70 00:00 |