Sorry, its a 9s12xdt512, using low power pierce oscillator at 4MHz. I have set the prescaler to the 128 max and set an LED to flash when the timer is over 0xF000. I was curious to see if i understood the timer so i timed how long the LED cycle took, it turned out to be 4.2 seconds. I thought it should be 1/ 4,000,000(clock) / 65536 (max timer value) all * 128 = 2.1 second
register wise i set TSCR2 to 0x07 and TSCR1 to 0x80
Message Edited by ernestsnaith on 05-02-200603:10 PM