Timer Calculator Application Released!

Timer Calculator is a free software development tool used for easier calculation of timer interrupts.
Author
Message
User avatar
marko.curcic
Posts: 3
Joined: 27 Jul 2012 10:03

Re: Timer Calculator Application Released!

#16 Post by marko.curcic » 15 Aug 2012 14:13

New version of Timer Calculator you can find on this location:

http://www.libstock.com/projects/view/3 ... calculator

chimimic
Posts: 178
Joined: 29 Sep 2007 14:35
Location: France
Contact:

Re: Timer Calculator Application Released!

#17 Post by chimimic » 16 Aug 2012 12:55

Hello,

file error on starting corrected, all is OK for me now, thanks !

Jardik
Posts: 60
Joined: 06 Jan 2010 18:28

Re: Timer Calculator Application Released!

#18 Post by Jardik » 06 Sep 2012 10:04

Hallo,

excelent calculator.

Are you planning such calculator also PIC32 and ARM compiler?
If yes, when we get one?

Thank you

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Timer Calculator Application Released!

#19 Post by filip » 07 Sep 2012 09:40

Hi,

Implementation of PIC32 timer modules is underway, and we have in plans to implement the ARM timers also.

Regards,
Filip.

Dany
Posts: 3854
Joined: 18 Jun 2008 11:43
Location: Nieuwpoort, Belgium
Contact:

Re: Timer Calculator Application Released!

#20 Post by Dany » 09 Sep 2012 18:43

Hi, I could not help noticing that timers that have to be reloaded are reloaded at the end if the ISR in the "generated code", e.g. (P18F Timer0, 1 ms time):

Code: Select all

procedure Interrupt();
begin
  if (TMR0IF_bit) then
  begin
    //Enter your code here  <---------------------- here
    TMR0IF_bit := 0;
    TMR0H	 := 0xF0;
    TMR0L	 := 0x5F;
  end;
end;
Acting that way, the time between interrupts will be the time spent in the user code (the "Enter your code here" part) plus the time specified by the timer settings. This is usually not what is wanted if the timer calculator is used, usually the user wants a time between interrupts as specified in the timer calculations/settings.

So, I would like to suggest to change the "generated code" in this way:

Code: Select all

procedure Interrupt();
begin
  if (TMR0IF_bit) then
  begin
    TMR0IF_bit := 0;
    TMR0H	 := 0xF0;
    TMR0L	 := 0x5F;
    //Enter your code here  <---------------------- here
  end;
end;
Acting as above the timer is "restarted" before the user code, and the interruption time will be the one calculated (unless of course the user code takes more time that the timer to overflow...).

See the reason for this idea: http://www.mikroe.com/forum/viewtopic.p ... 7&start=14 (Thanks Oblique :D ).
Kind regards, Dany.
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)

mvisnja69
Posts: 9
Joined: 05 Jun 2012 22:41

Re: Timer Calculator Application Released!

#21 Post by mvisnja69 » 12 Sep 2012 12:39

Dany wrote:Hi, I could not help noticing that timers that have to be reloaded are reloaded at the end if the ISR in the "generated code", e.g. (P18F Timer0, 1 ms time):
Hello,
first think that comes to my mind also.

To make it more accurate, workaround would be to save timer value just before putting timer to our calculated defaults.
After that, add saved value to calculated defaults and update timer.
Doing it as suggested, would not really matter where is your custom code before or after timer update code block.

Best regards,

User avatar
marko.curcic
Posts: 3
Joined: 27 Jul 2012 10:03

Re: Timer Calculator Application Released!

#22 Post by marko.curcic » 18 Sep 2012 09:07

Hi,

Thanks for the suggestions. New version can be found at this location:

http://www.libstock.com/projects/view/3 ... calculator

Dany
Posts: 3854
Joined: 18 Jun 2008 11:43
Location: Nieuwpoort, Belgium
Contact:

Re: Timer Calculator Application Released!

#23 Post by Dany » 18 Sep 2012 12:37

marko.curcic wrote:Hi,

Thanks for the suggestions. New version can be found at this location:

http://www.libstock.com/projects/view/3 ... calculator
Thanks for the changes! :D :D
Kind regards, Dany.
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)

User avatar
anikolic
mikroElektronika team
Posts: 1775
Joined: 17 Aug 2009 16:51
Location: Belgrade
Contact:

Re: Timer Calculator Application Released!

#24 Post by anikolic » 19 Sep 2012 09:26

Timer Calculator 1.50 Now Supports dsPIC, PIC24 and PIC32!

Many of you asked for it, so we made sure to fulfill your wish - New version of Timer Calculator Application
now supports code generation for dsPIC30/33, PIC24 and PIC32 microcontrollers.

Image

Go check it out! Application is exclusively shared on Libstock.
Web Department Manager

chimimic
Posts: 178
Joined: 29 Sep 2007 14:35
Location: France
Contact:

Re: Timer Calculator Application Released!

#25 Post by chimimic » 19 Sep 2012 13:39

Thanks ! :D

Jardik
Posts: 60
Joined: 06 Jan 2010 18:28

Re: Timer Calculator Application Released!

#26 Post by Jardik » 19 Sep 2012 20:18

Hallo,

I have two suggestions for improvements Timer Calculator

1.
be possible the timer calculator expand to function of counter calculator including a code generator ?

2.
be possible the timer calculator expand to function of code generator for capture and compare function ?

it would be possible ???

Thank you


Report this post

mandar
Posts: 1
Joined: 20 Oct 2012 05:16

Re: Timer Calculator Application Released!

#27 Post by mandar » 20 Oct 2012 05:24

Hello. Congrats about the great tool. I m quit new to the 8051 programming and it is because of the Mikrobasic IDE I dare to start the development. I am using Atmel 8051 micro controller and I could not find the timer code for the same mc.

Even i found some equivalent of PIC model, but the generated code from timer calculator when pasted in the program gives compilation error like

"39 303 Identifier "T1CON" was not declared .........."

please help.

Thanks

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Timer Calculator Application Released!

#28 Post by filip » 22 Oct 2012 08:54

Hi,

As the Timer calculator currently doesn't support 8051 MCUs, I can suggest that you take a look at the Timer example that we have provided in the compiler
as a starting point for your project.

Regards,
Filip.

Mark-
Posts: 105
Joined: 05 Mar 2009 15:03

Re: Timer Calculator Application Released!

#29 Post by Mark- » 13 Jan 2013 04:23

Hi,

Thanks for the great tool.

FYI, on dual monitor computers, main monitor on the bottom, secondary monitor on the top, the windows open split between the two monitors.

Regards,

Mark

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Timer Calculator Application Released!

#30 Post by filip » 14 Jan 2013 12:54

Hi,

Thank you for this information, we will inspect it.

Regards,
Filip.

Post Reply

Return to “Timer Calculator”