Hello Unregistered ,
Originally Posted by Kamikaze47 At 128uS per tick of the timer, i'd expect a result of about 8, however I get 95. At 48Mhz... Each MCU instruction cycle = .083us ( 1/ (48mhz/4) ) .083us * 256 for the Timer 0 prescaler = 21.3us 2048 us pause / 21.3 us per T0 tick = 96
*slaps forehead* I'm not sure how I ended up with 128uS/tick... I must have worked it out on a 8Mhz clock instead of 48Mhz. thanks skimask
"I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams
Forum Rules
Bookmarks