Hi
Mister e has very kindly provided a calculator PICMultiCalc for just this sort of thing.
not quite sure how to provide link to a previous post on this forum, but a quick search should get you there
HTH
Duncan
Hi
Mister e has very kindly provided a calculator PICMultiCalc for just this sort of thing.
not quite sure how to provide link to a previous post on this forum, but a quick search should get you there
HTH
Duncan
This section...
' Set TMR0 to interrupt every 16.384 milliseconds
OPTION_REG = $55 ' Set TMR0 configuration and enable PORTB pullups
INTCON = $a0 ' Enable TMR0 interrupts
On Interrupt Goto tickint
...sets the interrupt frequency, based on a clock timer. When you change the clock speed, the interrupts still happen at the same number of clock cycles. The multicalc program that Mr. E has will help you calculate how often it is going now (documented at 16mS), and help you get there with the clock * 5.
Steve's Multi-Calc program is at;
http://www.mister-e.org/pages/utilitiespag.html
Just click on the download button and follow the directions. Then join the rest of us in saying 'Thanks Steve!'
Jerry.
If your oscilloscope costs more than your car...
Bookmarks