PDA

View Full Version : New PIC Utility. PICMultiCalc



mister_e
- 7th November 2006, 14:33
Hi all,
Few times ago i did this little utility to help in Timer, Usart, Eusart and PWM calc. It have been tested by some user here and there. Thanks to them ;)

'till now, it's seems to be bug free. It assume a minimum of knowledge on your side so far.

I plan to do another version wich will be more complete. It will include more code generation tool. It's still a work in progress but once i'm fixed on the whole idea, i'll post a Trial version.

It will create code for PBP, Swordfish and probably some other compiler.

You have to know it's a tedious job to read all datasheet and be sure everything is correct. For this reason, there's no release date.

Any wish, comments, suggestions are welcome.

Enjoy!


EDIT: Mister Es site is down, get v1.3.1 down at Alain's post:
http://www.picbasic.co.uk/forum/showthread.php?t=4994&p=65639#post65639

Darrel Taylor
- 7th November 2006, 22:39
I can Highly Recommend this program for anyone using PIC's.

It does a fantastic job of calculating those tedious formulas that look so complicated in the datasheet.

Need to know what value to load in a Timer for a specific frequency or period?
Want to know which prescaler will give the best results?
Do you know the reload value but want to find out what frequency it will produce?
Want to use the USART without HSERIN/OUT
Want to use 10-bit PWM?

It's all there, and more.

Everyone should have a copy of this sitting in their QuickLaunch toolbar.

mister_e
- 7th November 2006, 23:16
Woohooo! Thanks Darrel! It's a comment/endorsement i can be proud of.
As you know, your inputs have been valuable for some features. Thanks for that too.

Glad to hear you like it!

sayzer
- 8th November 2006, 10:57
For sure this will save me a lot of time.

Thanks a lot Steve.

BTW; nice main screen :D


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

mister_e
- 8th November 2006, 20:17
Hehe ;)

Thanks Sayzer!

mat janssen
- 8th November 2006, 21:03
Also a thanks from me from Holland.

mister_e
- 9th November 2006, 03:28
Thanks mat.

Enjoy!

Mike, K8LH
- 11th November 2006, 12:01
Hi mister_e,

Thanks for tracking me down and directing me here.

Yes, I remember asking you about a stand-alone application some time ago. I ended up writing something using the free JustBASIC app'.

Take care. Regards, Mike

mister_e
- 11th November 2006, 19:16
Looks good to me! Well done!

I still hope my calc will be handy for you one day.

Archangel
- 12th November 2006, 01:25
Thank You Mister_E
I use Win98SE and it works like a champ . . thanks!

I had to get a dll, actually, MSSTDFMT.DLL off the internet.
I dropped it into my windows/system directory
then from the run command ran the following to make it work:
regsvr32.exe msstdfmt.dll
Xp users probably will not have to do that.

Finally, Thank You Again
JS

mister_e
- 12th November 2006, 02:18
mmm interesting. Thanks for reporting.

Nice to hear you got it working now.

chai98a
- 14th November 2006, 14:43
Here is pic calculator

mister_e
- 14th November 2006, 14:49
Woohoo a blast from the past, it's my first one... posted awhile back
http://www.picbasic.co.uk/forum/showthread.php?t=1843&highlight=spbrg+calc

I think that the actual is by far better :D

mister_e
- 17th November 2006, 06:34
The calc is now added to my website.
http://mister-e.org/pages/utilitiespag.html

'Till now, it's all the same.

Everytime i will add/modify it, i'll report it here.

I'm still open to suggestion.

@Acetronics... je te confirme qu'il y aura ta suggestion dans la prochaine version.

rwskinner
- 5th December 2006, 01:34
Mister-e
That link is broken....
http://mister-e.org/piccalc/picmulticalc.zip

mister_e
- 5th December 2006, 07:08
Problem fixed... seems the last website update screwed something.

Thanks and enjoy!

rwskinner
- 6th December 2006, 00:44
Thanks for such a useful tool!!!

mister_e
- 6th December 2006, 01:21
You're welcome. You'll like the next version as well. No release date... i need spare time to finish it and send it to the tester team for approval first.

mister_e
- 3rd January 2007, 01:53
Hi again,
a new version is now available. click here (http://www.mister-e.org/pages/utilitiespag.html) to download and see what's new in.

Enjoy.

mat janssen
- 3rd January 2007, 07:50
Best wishes for 2007, and thanks for this one.
Regards from Holland.
Mat

mister_e
- 5th January 2007, 21:05
Yeah, still growing a little bit...

v 1.2.0 (January 5, 2007)
A/D Calc: Add a ‘copy PBP ADC DEFINEs to clipboard’ button.

Comparator Vref : Calculate and show all Vref results according to Vdd and CVRR values.


http://www.mister-e.org/pages/utilitiespag.html

Archilochus
- 11th January 2007, 18:07
Thanks mister_e! That's a great program - sure to used often :-)

Arch

mister_e
- 11th January 2007, 18:15
Thanks Arch. Hope you get the last version 1.2.0?

Yup it's handy, save us some headaches for sure.

Enjoy!

mister_e
- 28th January 2007, 22:34
v 1.3.0 (January 28, 2007)
Add LCD custom character: Create custom character definitions for Hitachi HD44780 or compatible controller.
Also allow to generate all related hardware DEFINEs

PWM Calc: Fix duty scroll bar events.

http://www.mister-e.org/pages/utilitiespag.html

mat janssen
- 29th January 2007, 08:35
Thanks, I will use it. (When the time is there )

mister_e
- 29th January 2007, 16:02
There's no good reason to not using it :D

mat janssen
- 29th January 2007, 17:44
That can be true, but normaly i do that kind of things "my way".
Mostly I get it working, sometimes not, but afterwards it was always "my fault" :D

mister_e
- 29th January 2007, 21:12
:D yeah i understand.

So the rules apply to me perfectly. I did it, i use it. 'Till now, it's working, i didn't get too much bad issue with... as i said... 'Till now ;)

bbarney
- 30th January 2007, 00:20
Your Program keep's getting better all the time Steve,BUT how do you get it to do all that and be so much smaller than VISTA is :)

mister_e
- 30th January 2007, 04:00
Thanks bbarney.

PicMultiCalc is really not code efficient... that's what happen when you add feature and you didn't think about it first http://www.picbasic.co.uk/forum/images/icons/icon8.gif Bah, it's still less than a Meg...

'Till now VISTA is the worst piece of crap i never ever see in my whole life. As many other, i'm afraid, i'll have to do the move and use it daily one day. For now, i leave all the fun and problems to others ;)

bbarney
- 30th January 2007, 14:47
I'll wait for their security update no. 9,877 should be ok by then :)

mister_e
- 6th March 2007, 01:13
As suggested in another thread

v 1.3.1 (March 5, 2007)
EUSART Calc: Change SPBR<G:H> annotation to SPBRG and SPBRGH.

so now it looks like THIS (http://www.picbasic.co.uk/forum/attachment.php?attachmentid=1448&d=1173141909)

http://www.mister-e.org/pages/utilitiespag.html

precision
- 6th March 2007, 05:23
Thanks mister_e.

There are error '713' and '339', How i clear this error ?

Runtime error '7'
outof memory

I using windows 2000 pro



.

mister_e
- 6th March 2007, 15:56
:eek: ah man, sorry i have no idea, i don't have windows 2000.

Anyone else have this problem or suggestions to solve it?

EDIT: have a look bellow
http://support.microsoft.com/kb/296088

maybe it's like Joe S's problem
http://www.picbasic.co.uk/forum/showpost.php?p=27992&postcount=10

also look at
http://www.raob.com/Questions.htm#Run-Time_Error_339

Ingvar
- 6th March 2007, 16:35
I had problems when i tried to use the brandspankin' new "LCD custom character generator", windows complained about missing FM20.DLL. I downloaded it from the net and got a new error "out of memory". Took a look at Microsoft and found out that this is a problem due to the fact that i don't have MicrosoftOffice installed on my computer. Microsofts solution to this is wonderful, don't use FM20.DLL. They did however have another suggestion, apart from installing Office. Download and install the Microsoft ActiveX Control Pad, which also installs the Fm20.dll. I did, and after a reboot it all worked.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaxctrl/html/cpad.asp

BTW. Thankyou Steve for a very nice and useful tool.

/Ingvar

mister_e
- 6th March 2007, 22:19
Dear micro$oft...

bcd
- 1st November 2008, 07:52
Steve,

Tried to find PicMultiCalc latest version for my rebuilt machine, but the website is not around anymore ??

Quick Google didn't find it either - do you have a working site, or could you email it to me ?
Thanks,
Bill.

Acetronics2
- 1st November 2008, 14:39
Hi, Bill

Here it is

Enjoy ...

Alain

rxforspeed
- 1st November 2008, 19:03
Great job, Mister e! I'm glad somebody brought this thread back-I've downloaded and installed it on my XP-equipped notebook with no problems at all...

mister_e
- 1st November 2008, 19:17
Thanks Alain!

bcd
- 1st November 2008, 21:56
Thanks guys,

I knew someone would have it !

Now to work out how to to 10mS int's on a 18f2550 running at 48MHz !!

Bill

Glenn
- 2nd November 2008, 14:31
Stuopid me, athat didnt read all posts before replying.. :/

Acetronics2
- 2nd November 2008, 14:44
Thanks Alain!

No,No ... Steve

Thanks are for you !!!

Best regards

Alain

Normnet
- 4th April 2011, 04:53
PICMultiCalc gets runtime errors in windows 7.
Is their a newer version than 1.3.1?
This is a much used utility and an update would be appreciated.

Norm

HenrikOlsson
- 4th April 2011, 06:21
Hi Norm,
I run it on Win7-64bit and don't get any runtime (or other) errors. I don't know what version I'm running but I can check tonight. If you haven't already tried it, try running it as administrator and see if that help. I've had several apps where doing that is neccessary for it to work.

Normnet
- 4th April 2011, 08:11
Hi Norm,
...try running it as administrator and see if that help. I've had several apps where doing that is neccessary for it to work.
Running as administrator didn't help in 32 bit windows 7 professional.

I have the following NET's installed by default in case this is a Microsoft VB supportive files issue:
Microsoft® .NET Framework Version 2.0.50727.4927
Microsoft® .NET Framework Version 3.0.6920.4902

Norm

Archangel
- 4th April 2011, 08:51
Hi Norm,
I had problems installing on win98 required a file not in win98, got it off the net.

Have you tried to run in compatibility mode ?

Normnet
- 4th April 2011, 11:44
Tried compatibility mode, no luck.
Tried installing missing files found in XP but no luck.

Norm

HenrikOlsson
- 4th April 2011, 15:51
Hi Norm,
I'm running 1.3.0.1 and, like I said, I don't have any problems with on Win7 64bit. It's been over a year since I installed this machine so I'm not sure if I HAD any problems getting it running but I don't think I did.

I know it's not much help but anyway....

/Henrik.

Normnet
- 4th April 2011, 21:12
Maybe I could try copy and paste of the missing MSSTDFMT.DLL
In XP it's located in X:\Windows\System32
Is the same true in Windows7?

Norm

mackrackit
- 5th April 2011, 16:01
Win7 64 bit using PicMultiCalc just fine.

When I searched my system for MSSTDFMT.DLL all I got was
tweak_xp.xml
it has this line


%SYSTEM%\CPUINFO2.DLL %SYSTEM%\hxphk.ocx %SYSTEM%\MSGHOO32.OCX %SYSTEM%\MSINET.OCX %SYSTEM%\msstdfmt.dll %SYSTEM%\MSWINSCK.OCX

the file is located here on my machine.
C:\Program Files (x86)\Common Files\Seagate\BackupScripts
???

HenrikOlsson
- 5th April 2011, 16:50
Hi,
On my system that file is located in the WOW64 folder but mine is 64-bit as well. Unfortunately I don't know where it would default to on a 32-bit Win-7 installation. I feel your pain Norm and I'm sorry I can't be of more help.

/Henrik.

Demon
- 27th April 2011, 03:11
I had to download & install Microsoft ActiveX control Pad to get LCD tool working.

I had to download & register MSSTDFMT.DLL to get Timer tool working.

All tools worked after that.

Nice utility, I had the old SPBRG version.

Demon
- 18th March 2012, 14:04
If you get this in Win 7 64bit:

ActiveX Control Pad Setup:
the app was unable to start correctly (0xc0000142)

Run in XP compatibility mode.



To register MSSTDFMT.DLL in Win 7 64bit:

- download the file from microsoft.
- copy to C:\Windows\SysWOW64 folder
- RUN REGSVR32 C:\Windows\SysWOW64\MSSTDFMT.DLL

Robert

Ioannis
- 19th March 2012, 11:06
It is surprising, but on my new and fresh Win7-64Bit system, with no VB studio installation if that matters, I did nothing special. Just executed the Steves nice job. It runs with no error messages!

Lucky me :)

Ioannis

Demon
- 19th March 2012, 18:06
I don't have VB6, MCSP, PBP or anything else programming-oriented on the Win 7 64-bit system yet either; just FS-X, PSP-XI, Open Office and Turbocad 11.

I bet you have software that already have those DLL included.

Robert

Ioannis
- 19th March 2012, 19:33
But cannot tell which...

Ioannis

enauman
- 12th April 2012, 23:43
When I try to run the calculator, I get a 'runtime error 7' out of memory

mackrackit
- 13th April 2012, 00:13
And the OS is?

Demon
- 13th April 2012, 18:58
Some reading for the error from google here:

http://ezinearticles.com/?How-to-Fix-Runtime-Error-7---Out-of-Memory&id=4867634

Robert

mister_e
- 15th April 2012, 18:58
I may still have the full installation package. Just PM me your e-mail.

HenrikOlsson
- 12th October 2017, 20:50
I just stumbled upon this problem on my Windows10 machine, ie where PICMultiCalc wouldn't run due to missing MSSTDFMT.DLL
It's very strange because I've had this machine up and running for several months and can't Believe I've not had to use PICMultiCalc on all this time. Anyway, the fix is as above but it took some additional steps to get it to work on my machine.

* I had to start Windows10 in fail safe mode in order to be able to actually copy MSSTDFMT.DLL to the SysWoW64 folder.
* Run the command prompt as Administrator
* Exectute the command %systemroot%\SysWow64\regsvr32 c:\Windows\syswow64\msstdfmt.dll

This succesfully registred MSSTDFMT.DLL and PICMultiCalc works again.

/Henrik.

richard
- 13th October 2017, 03:16
can you get the PICMultiCalc-lcd custom lcd generator to work . that has issues too
wants fm20.dll .

works on the 32 bit w10 laptop but not on the 64 bit machine

sayzer
- 13th October 2017, 12:22
can you get the PICMultiCalc-lcd custom lcd generator to work . that has issues too
wants fm20.dll .

works on the 32 bit w10 laptop but not on the 64 bit machine

Steve's LCD custom char generator works on my 64-bit Win10 here.

Must be something else.

HenrikOlsson
- 13th October 2017, 16:25
On my system everything in PICMultiCalc works - except the LCD character generator (which I've never used). It throws the same error as Richard reports.

Do you have FM20.dll on your system Sayzer?
If you do, would you mind posting it (I know it might not be 100% kosher doing so but anyway...)

Or, to Richard, if you have the FM20.dll file on your 32bit system would you mind posting it?

I'm reluctant to download such file from random sites on the internet.

/Henrik.

richard
- 13th October 2017, 23:23
My 64 bit pc has file in windows\system32 folder but it does not want to know about it ,
might try copying it to syswow64 later , it might load up if registered there

can't upload it to forum it exceeds upload limit

sayzer
- 14th October 2017, 08:48
On my system everything in PICMultiCalc works - except the LCD character generator (which I've never used). It throws the same error as Richard reports.

Do you have FM20.dll on your system Sayzer?
If you do, would you mind posting it (I know it might not be 100% kosher doing so but anyway...)

Or, to Richard, if you have the FM20.dll file on your 32bit system would you mind posting it?

I'm reluctant to download such file from random sites on the internet.

/Henrik.

There are two files, FM20 and FM20ENU.
MultiCalc needs both.

It appears that my FM20 files came from MS Office XP installation; yours might come from somehwere else.

Attached is a rar file; just rename txt to rar.
Includes both files.

HenrikOlsson
- 14th October 2017, 11:32
Thank you Sayzer for uploading the files. I managed to get it working by basically doing the same things as with MSSTDFMT.dll, namely this:

Copy the files to the SysWow64 folder (again I had to revert to safe mode in order to be able to do this).
Run a command prompt as adminstrator and register the fm20.dll using the 32bit version of regsrv32 (which, sort of conunterintuitively, is the one residing in the SysWow64 folder and not the one in the System32 folder) by executing the command:
%systemroot%\SysWow64\regsvr32 c:\Windows\syswow64\fm20.dll


After doing this the LCD portion of PICMultiCalc seems to work as expected which either means that I already had an registred version of FM20ENU.dll somewhere on my system or it isn't actually needed for some other reason - or there might still be some feature in PICMultiCalc that doesn't work which I have not discovered yet. I'll just leave it alone for now.

/Henrik.

boroko
- 12th November 2017, 05:52
Thank you for the guidance. MSSTDFMT.dll seems to make everything happy again. Registering the .dll was especially helpful.

Once again, the forum to the rescue.

bo