| ??? 10/14/02 15:47 Read: times |
#30758 - Timer 2 Output |
I am trying to get a clock output on P1.0 of the T89C51AC2 using Timer 2 in Programmable Clock-Output Mode.
Following the Datasheet I have initialized the timer with: // Optic Clock output on pin P1_0 for @ 625mhz T2MOD |= 0x02; // T20E Set T2CON = 0x00; // Clear C/T2 RCAP2H = 0xFF; RCAP2L = 0xF8; // 65536 - 8 for timer count TH2 = 0xFF; TL2 = 0xF8; // Repeat in Timer T2CON |= 0x04; // TR2 Run control But, when this is run, the state of P1.0 does not change at all. In debug, the TH2 & TL2 are going through the correct loop... Any ideas on what I am missing here to get the clock output on P1.0? |
| Topic | Author | Date |
| Timer 2 Output | 01/01/70 00:00 | |
| RE: Timer 2 Output | 01/01/70 00:00 | |
| RE: Timer 2 Output | 01/01/70 00:00 | |
| RE: Timer 2 Output | 01/01/70 00:00 | |
| RE: Timer 2 Output | 01/01/70 00:00 | |
RE: Timer 2 Output | 01/01/70 00:00 |



