Ian Malcolm ha scritto:
> 13.56 * 3 / 2 = 20.34
>
> Overclocking the PIC this much should be possible, Substitute a PLL
> based clock for the PIC's crystal, locked to 1.5 * the front end clock.
> Your timer 2 period register could now be loaded with 96. (I haven't
> checked the data sheet, I just scaled your values . . .)
the idea si not bad, though I wish I would keep hardware modifications
to minimum (a schematic has been drawn already and a A-sample PC-B is
being printed)..
As an alternativa I was considering a dirty trick like reloading the
period register with 94 and 95 alternatively at every timer2 service
routine.. This would add just a little "jitter" between an interrupt
and the next one, but would make a long.term period of 94.5, very close
to needed 94.4 theoretical time.
In normal condition, Timer 2 can work without any reload, this is its
nain advantage over the other timers, but in any case I think that
touching PR2 "on the fly" should be legal and bringing no adverse side
effect.... what do you think?
Adolfo Melilli - ****denone - Italy


|