[?] Subscribe To This Site

XML RSS
Add to Google
Add to My Yahoo!
Add to My MSN
Add to Newsgator
Subscribe with Bloglines


Custom Search

Sign up for MicroZine:
''The'' Microcontroller Newsletter


:
:
Don't worry -- your e-mail address is totally secure. I promise to use it only to send you MicroZine
Enter your first Name and primary email address in the form above:

And receive absolutely FREE a full project for:


"Measuring Analogue Voltages
Without An ADC"

(Using only one pin).

Instant Download:
You Can
Get It Right Now

Warning: This project could be Removed
at any time.  

It will NOT be
available indefinitely SO

To avoid
disappointment get it:

Now



Remember this is a project with full description and fully debugged C Source code - and it's not available from the main website.

You can only get it through this newsletter.


To get exclusive access Enter your first name Name and primary email address Now in the form above.:

But wait !

There's more...

You'll receive more
free and exclusive reports as well as site information and site product updates.

Scroll up to the form above and sign up NOW.  Don't forget it's FREE and if you don't like it you can unsubscribe at any time.

Click Here Now to use the form above to get your Valuable information absolutely free.



Social Bookmarking
Click & Add:
add to BlinkBlink
add to Del.icio.usDel.icio.us
add to DiggDigg
add to FurlFurl
add to GoogleGoogle
add to SimpySimpy
add to SpurlSpurl
Bookmark at TechnoratiTechnorati
add to YahooY! MyWeb
Readers comments

"I wanted to thank
you so so so much
for all the information
you have provided in
your site it's

SUPERB and FANTASTIC."


- Ranish Pottath


"This site really is
the best and my favorite.
I find here many useful
projects and tips."

- Milan

bursach<at>gmail.com

Learn PIC C Now
Wondering how to program your next project using C and need a great start?


"Awesome site,
very, very easy and nice
to navigate!"


- Matt
matt_tr<at>
wolf359.cjb.net


"I am a newbie to PIC
and I wanted to say
 how great your
site has been for me."


- Dave

de_scott<at>bellsouth.net

Learn Microcontrollers
"Interested in
Microcontrollers?"


Sign up for The
Free 7 day guide:

FREE GUIDE : CLICK HERE

"Your site is a great
and perfect work.
congratulations."


- Suresh

integratredinfosys<at>
yahoo.com

"I couldn't find the correct
words to define
yourweb site.

Very useful, uncovered,
honest and clear.

Thanks so much for
your time and works.
Regards."


- Anon





PIC Timer 0 calculator

With the PIC Timer 0 calculator you can see the resulting frequencies and periods when you enter three bits of information. These are :
  • Frequency (default is 4MHz).
  • Prescaler ratio.
  • Timer 0 offset. 
Jump to PIC Timer 1 calculator.
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 block diagram 33023a.pdf

PIC Timer 0 registers [from 16F88 datasheet DS30487B.pdf]
(Note these may be different in other devices)

PIC Timer 0 registers


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 :

A Tcl/Tk applet (called "tclet") is very compact compared to a similar Java implementation. A tclet can be produced in a few broad strokes, whereas Java insists that the applet designer spend considerably more time on the details of the interface and implementation.
Tclets are now easy to find and remarkable for their economy. A tclet underlines the difference in approach between Tcl and Java. The tclets are generally implemented with only about 150 lines of code; they leverage Tk's simplicity of expression effectively, and completely ignore the deeper software engineering that would be needed to construct a similar Java applet.
[source http://www.chez.com/chu/tcl.htm]

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

PIC Timer 0 calculator



Jump from PIC Timer 0 calculator to
Best-Microcontroller-Projects Home Page




Don't forget to Sign Up for your

Microcontroller Newsletter

With "Essential tips and techniques",

..."New Site Info" and more...

Including a free project :

How to drive an LCD and 12key keypad using "Only One 8 Bit Port" with no interface logic!...

(Works for any microcontroller)

This costs you : Nothing...
Just fill out the form below and you'll get full C source code and project schematic and description.



:
:
Don't worry -- your e-mail address is totally secure. I promise to use it only to send you MicroZine
Google

  Best Microcontroller projects.