Best Microcontroller Projects


XML RSS
What is this?
Add to My Yahoo!
Add to My MSN
Add to Google

Home
LCD-KEYS OnePort
C Course
Schematic Tool
PIC Introduction
PIC Programming
PIC Programmers
PIC Compilers
PIC BASIC
Tips & Techniques
PIC Tutorials
PIC Projects
Store
My SECRET
Oscilloscopes
Web Directory
MicroBlog
Problem?-Solution
Books
Wish List
Contact Me
About Me
Terms of Use
Search This Site
Freebies
Articles
Resource Links
Site Map
Your Projects
Rant/Rave
Video du Jour
Privacy Policy

I use and
recommend Firefox
for the best internet
browsing experience. Click below for your
free copy today:

CLICK THE IMAGE:


Note: I find it faster
and easier to use and
it has great plugins.  

It even imports all your current
browser settings!

There's no risk as your existing browser is not affected in any way - you can just choose which one to use.

Google

Find Out How This
Site Works
Like any engineering problem with the right tools it's Easy.
CLICK HERE 

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
Find out Why social bookmarking is
Useful For You.

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


Sidebar : Installing the tcl plugin

To operate the program below you need to install the tcl plugin - this is similar to the Java environment and once done you wont need to install it again to use the program on this page (or any other web page that has a tclet on it).

Note: I had forgotten how difficult Internet Explorer is to use and you can set up the tcl plugin manually if you want to but....

The easiest method is to install Firefox and then the tcl plugin through Firefox - Firefox is an excellent browser - and so much faster.  

Note after installation you can use either browser.

After you install Firefox you can find the tcl plugin here [opens new window].

Note: If the download does not start then you can get the XPI plugin (for windows only) here - save the xpi file to a temporary location.

Then once you have installed Firefox just open the .XPI file (from within the Firefox browser: File->Open file) this will also set up Internet explorer for you (so you can use either browser).

Doing it this way is a push button process - extremely easy - plus you get a much better browser with tabbed browsing and easy plugin management plus a host of other features - it's free and it's faster.



Here's the actual program that you can use in this page:  (If you don't see the program running 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.



Email

Name

Then

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