![]() |
||||||||||||||||||
|
[?]
Subscribe To This Site
|
Custom Search
Readers
comments
|
|||||||||||||||||
PIC Timer 0 calculatorWith the PIC Timer 0 calculator you can see the resulting frequencies and periods when you enter three bits of information. These are :
Jump to PIC Timer 2 calculator. Jump to install plugin. To be honest I got fed up with looking at the data sheet to figure out the prescaler and timer offset values - this program lets you get the results easily (There is a screenshot of the program further down the page if the runtime is not installed - and instructions on how to install it are also further down the page). PIC Timer 0 hardware Block
diagram [from 33023a.pdf]
![]() PIC Timer 0 registers [from 16F88 datasheet DS30487B.pdf] (Note these may be different in other devices) ![]() You can find instruction for installing the tclplugin here:Here's the actual program that you can use in this page: (If you don't see the program running below) you need to download the tclet runtime engine as described above - you only need to do this once). PIC Timer 0 calculator
For the last two entries two sliders let you change the values by dragging a control up and down on the screen and the resulting changes are immediately shown in this page. Note: For the example in 'Notes' (setting Timer 1 to count to 100) set 'Counts to OVFL' (overflow) to 100 to get the same result. The program is a tclet (which is comparable to a java applet). You could ask why didn't I write it in Java - well I could have but TCL is a very powerful and easy to use language. A little bit more on this - a reference I found on the Internet quotes :
As an engineer I find these comments extremely relevant - why spend ages looking at extreme detail - engineering is about understanding what you need to know to get the job done - it's not about understanding all the extreme unnecessary detail - this encapsulates the philosophy of TCL and engineering. Screen shot of PIC Timer 0
calculator in action
![]() Jump from PIC Timer 0 calculator to Best-Microcontroller-Projects Home Page
|
||||||||||||||||||
|
||||||||||||||||||