Timer Calculator Application Released!
- marko.curcic
- Posts: 3
- Joined: 27 Jul 2012 10:03
Re: Timer Calculator Application Released!
New version of Timer Calculator you can find on this location:
http://www.libstock.com/projects/view/3 ... calculator
http://www.libstock.com/projects/view/3 ... calculator
Re: Timer Calculator Application Released!
Hello,
file error on starting corrected, all is OK for me now, thanks !
file error on starting corrected, all is OK for me now, thanks !
Re: Timer Calculator Application Released!
Hallo,
excelent calculator.
Are you planning such calculator also PIC32 and ARM compiler?
If yes, when we get one?
Thank you
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!
Hi,
Implementation of PIC32 timer modules is underway, and we have in plans to implement the ARM timers also.
Regards,
Filip.
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!
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):
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: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 ).
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;
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;
See the reason for this idea: http://www.mikroe.com/forum/viewtopic.p ... 7&start=14 (Thanks Oblique ).
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)
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)
Re: Timer Calculator Application Released!
Hello,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):
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,
- marko.curcic
- Posts: 3
- Joined: 27 Jul 2012 10:03
Re: Timer Calculator Application Released!
Hi,
Thanks for the suggestions. New version can be found at this location:
http://www.libstock.com/projects/view/3 ... calculator
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!
Thanks for the changes!marko.curcic wrote:Hi,
Thanks for the suggestions. New version can be found at this location:
http://www.libstock.com/projects/view/3 ... calculator
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)
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)
Re: Timer Calculator Application Released!
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.
Go check it out! Application is exclusively shared on Libstock.
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.
Go check it out! Application is exclusively shared on Libstock.
Web Department Manager
Re: Timer Calculator Application Released!
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
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!
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
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!
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.
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!
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
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!
Hi,
Thank you for this information, we will inspect it.
Regards,
Filip.
Thank you for this information, we will inspect it.
Regards,
Filip.