| ??? 05/30/03 05:07 Read: times |
#46975 - New philips 89C60X2 problem |
Hi there,
I have recently got a philips 89C60X2 which has 512 bytes of ram, 6/12 clock option and i am using it as a controller and a CLOCL generator for my A/D 7135. for reading A/D out put i am anding clock with 7135's busy and as busy goes low i subtract 10001 counts from received counts to get my required counts (as per datasheet) and a clock out pin (programmable) here i can make pin 1 (P1.0) as my clock out pin by making TR2 ( bit of T2CON) =0 C/t (----"--------) =1 T20E(in T2MOD) = 1 and then the pin is outputting a clock pulse as per the value in timer2 capture registers formula for fout= oscillator freq. ----------------------- n(65536-RCAP2H,RCAP2L) Here RCAP2H,RCAP2L makes a 16 bit register of RCAP2 n=2 in 6 clock mode and 4 in 12 clock mode now i assign highest priority to timer2 for giving me a continous clock (actually clock means continous but still) and when i enable the timer2 interrupt according to this theory it should continously executing timer2 interrupt after it executes the enabling and setting statements in main() but now the problem is when i simulate it i find it is executing the interrupt for sertain number of itterations and then it goes to main and execute a statement and again come back for some itterations on timer2. with such a operation i am not able to get continous freq clock well i have not yet tried a hard ware observation only s/w simulation this will create a definate problem in my A/D reading can somebody help me about it regards sachin |
| Topic | Author | Date |
| New philips 89C60X2 problem | 01/01/70 00:00 | |
| RE: New philips 89C60X2 problem | 01/01/70 00:00 | |
| RE: New philips 89C60X2 problem | 01/01/70 00:00 | |
| RE: New philips 89C60X2 problem | 01/01/70 00:00 | |
| RE: New philips 89C60X2 problem | 01/01/70 00:00 | |
RE: New philips 89C60X2 problem | 01/01/70 00:00 |



