A interesting feature is put in Tools menu a screen for calculating TMRs
according clock, prescaler and timing wished...something seems like it
Regards
M.P. Tools -> Add feature for calculating TMRs
-
- Posts: 65
- Joined: 04 Jan 2005 17:00
- Location: Brazil
- Contact:
-
- Posts: 65
- Joined: 04 Jan 2005 17:00
- Location: Brazil
- Contact:
Hi,
If seen this topic in the mikroBasic forum also, so I though I would give it a shot to make a small Timer Calculator.
Here is a picture of it so far.
Working of the program
1. Select the timer module you want to use
2. Select P16 or P18 and the cristal speed
3. Select desired output in ms. (eg 100ms)
4. Click "Generate Code"
5. Now you have code for mikroElektronika compilers
6. Select the compiler code you want. (Pascal, Basic or C)
7. Click "Copy code to clipboard"
8. Paste your code in compiler and compile
Bugs and todo
Only for TMR0 on P18 at the moment and only generating pascal code. I've only had a few minutes today to do this, so will add the other features soon.
Download
http://www.riecktron.za.net/other/timer ... r_v0_1.exe
Anton
If seen this topic in the mikroBasic forum also, so I though I would give it a shot to make a small Timer Calculator.
Here is a picture of it so far.
Working of the program
1. Select the timer module you want to use
2. Select P16 or P18 and the cristal speed
3. Select desired output in ms. (eg 100ms)
4. Click "Generate Code"
5. Now you have code for mikroElektronika compilers
6. Select the compiler code you want. (Pascal, Basic or C)
7. Click "Copy code to clipboard"
8. Paste your code in compiler and compile
Bugs and todo
Only for TMR0 on P18 at the moment and only generating pascal code. I've only had a few minutes today to do this, so will add the other features soon.
Download
http://www.riecktron.za.net/other/timer ... r_v0_1.exe
Anton
Another proud user of LV 24-33A Development System and mikroPascal PRO for dsPIC :)
PortA not working? Add CMCON := 7; PortD not working? Add ADCON1 := 6;
To paste code on the forum, please use the [b] Code [/b] button !! ;)
PortA not working? Add CMCON := 7; PortD not working? Add ADCON1 := 6;
To paste code on the forum, please use the [b] Code [/b] button !! ;)
hi Anton,
Nice work
Im woorking on same kind of thing but include in another project... init tool...
I have saw few time on the forum for request about this kind of tool so im working to make one in Delphi 2K5... If i can find the time ( why day dosent have 200000000 hour .. lol) , that will be good for test in 2 or 3 week...
you can have a screenshot of the projet http://www.automatiz.com/down/idea.jpg
Since im working in pascal, the code generate will be in pascal
happy coding
Nice work
Im woorking on same kind of thing but include in another project... init tool...
I have saw few time on the forum for request about this kind of tool so im working to make one in Delphi 2K5... If i can find the time ( why day dosent have 200000000 hour .. lol) , that will be good for test in 2 or 3 week...
you can have a screenshot of the projet http://www.automatiz.com/down/idea.jpg
Since im working in pascal, the code generate will be in pascal
happy coding
Hi,
A new version is now available that supports mikroPascal, mikroBasic and mikroC on TMR0.
You can download it from here (v0.2) [405kb]
Anton
A new version is now available that supports mikroPascal, mikroBasic and mikroC on TMR0.
You can download it from here (v0.2) [405kb]
Anton
Another proud user of LV 24-33A Development System and mikroPascal PRO for dsPIC :)
PortA not working? Add CMCON := 7; PortD not working? Add ADCON1 := 6;
To paste code on the forum, please use the [b] Code [/b] button !! ;)
PortA not working? Add CMCON := 7; PortD not working? Add ADCON1 := 6;
To paste code on the forum, please use the [b] Code [/b] button !! ;)