TOP Contributors

  1. MIKROE (2779 codes)
  2. Alcides Ramos (376 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (97 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (139559 times)
  2. FAT32 Library (72041 times)
  3. Network Ethernet Library (57254 times)
  4. USB Device Library (47607 times)
  5. Network WiFi Library (43219 times)
  6. FT800 Library (42551 times)
  7. GSM click (29930 times)
  8. mikroSDK (28292 times)
  9. PID Library (26930 times)
  10. microSD click (26309 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
Project

Tool: Timer-Prescaler

Rating:

5

Author: dany

Last Updated: 2013-12-23

Package Version: 5.0.0.0

Category: Timers (Real time clock)

Downloaded: 2042 times

Not followed.

License: MIT license  

Tool (excel workbook) to help with the choice of the prescaler and settings of a timer. For PIC16/18, PIC24, dsPIC33 and PIC32.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Tool: Timer-Prescaler" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Tool: Timer-Prescaler" changes.

Do you want to report abuse regarding "Tool: Timer-Prescaler".

  • Information
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
Other Compiler
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

Project Blog

Timer-Prescaler tool for PIC16/18, PIC24, dsPIC33 and PIC32.

This Excel sheet provides some tools to choose the prescaler value of a timer.

It provides the following tables/functionalities:

1. A "Calculator": calculates the prescaler and the needed # of timer steps, given the MCU frequency, the time wanted in how many steps. Also manual entry for the prescaler is possible.

2. The calculation of the input frequency of a timer (both in MegaHertz and KiloHertz), given the MCU clock in Mhz and the value of the Prescaler.

3. The calculation of the step time of a timer (both in microSeconds and milliseconds), given the MCU clock in Mhz and the value of the Prescaler.

4. The "Range" of the 8 bits timers (both in microSeconds and milliseconds), given the MCU clock in Mhz and the value of the Prescaler.

5. The "Range" of the 16 bits timers (both in microSeconds and milliseconds), given the MCU clock in Mhz and the value of the Prescaler.

6. The "Time" a timer needs to make "x" steps. For 8 bit timers "x" is 0..255, for 16 bit timers "x" is 0..65535.

Have fun!

Timer-Prescaler

Timer-Prescaler

The Calculator sheet of the Timer-Prescaler Excel workbook.

View full image

---------------------------------------------------------------------------------------------------------------------------------------

2013-09-17: Added a "Calculator" sheet: calculates the prescaler and the needed # of timer steps, given the MCU frequency, the time wanted in how many steps.

---------------------------------------------------------------------------------------------------------------------------------------

Version 3.0, 2013-09-18: Added timers with other prescaler values to the "calculator".

--------------------------------------------------------------------------------------------------------------------------------------

2013-09-18: added a manual prescaler selection to the "calculator".

--------------------------------------------------------------------------------------------------------------------------------------

2013-09-19: corrected a small error in the "% error" in the "Calculator" sheet.

---------------------------------------------------------------------------------------------------------------------------------------

Version 4.0, 2013-09-20: added the calculations for PIC24m dsPIC33 and PIC32.

---------------------------------------------------------------------------------------------------------------------------------------

2013-09-21: Made clearer how to use the calculator output with timers generating an interrupt on overflow.

--------------------------------------------------------------------------------------------------------------------------------------

Version 5.0 (2013-09-26): added the postscaler value to the Calculator sheet.

-------------------------------------------------------------------------------------------------------------------------------------- 2013-12-23: Corrected an error in the "Calculator" sheet (gave an excel error).

ALSO FROM THIS AUTHOR

C RTOS for mP and mB (P18 and P24)

10

CRTOS stands for Cooperative Real Time Operating System; designed for and written specifically in mP/mB from mikroElektronika. The system uses cooperative as opposed to pre-emptive scheduling which means that the application code you write has to voluntarily release back to the operating system at appropriate times.

[Learn More]

Fat

24

Several libraries for Fat16 and Fat32: - Fat16Dir (findfirst, findnext) (only P18) - Fat16DirLFN (Fat16Dir for long filenames) (only P18) - Fat32_,1 Fat32_2; single and multiple Fat32 device(s) for P18, PIC24, dsPIC and PIC32 - IDE for P18, PIC24 and dsPIC.

[Learn More]

PIC Command Line Editor

5

Capable of, like a modem, receiving, editing and executing one (command) line of input. The code in this example project shows a command line editor that can be used in servers (big word) you build, based on PICs.

[Learn More]