Page 2 of 6

Re: Timer Calculator Application Released!

Posted: 15 Aug 2012 14:13
by marko.curcic
New version of Timer Calculator you can find on this location:

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

Re: Timer Calculator Application Released!

Posted: 16 Aug 2012 12:55
by chimimic
Hello,

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

Re: Timer Calculator Application Released!

Posted: 06 Sep 2012 10:04
by Jardik
Hallo,

excelent calculator.

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

Thank you

Re: Timer Calculator Application Released!

Posted: 07 Sep 2012 09:40
by filip
Hi,

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

Regards,
Filip.

Re: Timer Calculator Application Released!

Posted: 09 Sep 2012 18:43
by Dany
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 ).

Re: Timer Calculator Application Released!

Posted: 12 Sep 2012 12:39
by mvisnja69
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,

Re: Timer Calculator Application Released!

Posted: 18 Sep 2012 09:07
by marko.curcic
Hi,

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

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

Re: Timer Calculator Application Released!

Posted: 18 Sep 2012 12:37
by Dany
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

Re: Timer Calculator Application Released!

Posted: 19 Sep 2012 09:26
by anikolic
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.

Re: Timer Calculator Application Released!

Posted: 19 Sep 2012 13:39
by chimimic
Thanks ! :D

Re: Timer Calculator Application Released!

Posted: 19 Sep 2012 20:18
by Jardik
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

Re: Timer Calculator Application Released!

Posted: 20 Oct 2012 05:24
by mandar
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

Re: Timer Calculator Application Released!

Posted: 22 Oct 2012 08:54
by filip
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.

Re: Timer Calculator Application Released!

Posted: 13 Jan 2013 04:23
by Mark-
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

Re: Timer Calculator Application Released!

Posted: 14 Jan 2013 12:54
by filip
Hi,

Thank you for this information, we will inspect it.

Regards,
Filip.