Programmer's Calculator for Non-programmer
info
Posts: 31
I was looking online for some calculator or unit converter, but I couldn't find one that has functions for programmers.
The obvious would be Dec. Hex. Bin. convertion, Boolean algebra truth tables, etc. The part I was looking for is converting MHz to nanoseconds, microseconds, etc. Many of you can do that in your head without even writing it down. I'm not the one. My school years ended decades ago and I forgot all we learned and I have no idea what's 1E6 or some weird scientific expressions.
When dealing with memory access time, flash and eeprom delays, i2c, spi, rs232, rs485 baud rates and the many other timing issues, I'm banging my head.
I think, calculator or unit converter that says in plain English 80MHz=12.5 nanoseconds or so, would help me.
Then I could use the defined clock
CON
_clkmode = xtal1 + pll16x
_xinfreq = 5_000_000
and write calculation routine which would always get the access timing right, based on that given clock frequency and instruction execution time.
OR... I can just blindly copy the code in OBEX.
Naah. I would rather learn how thing work.
Anybody wanna write and sell online some good calculator program for Windows and some other common operating systems or browsers? Anything that can be sold to pay for your time.
The obvious would be Dec. Hex. Bin. convertion, Boolean algebra truth tables, etc. The part I was looking for is converting MHz to nanoseconds, microseconds, etc. Many of you can do that in your head without even writing it down. I'm not the one. My school years ended decades ago and I forgot all we learned and I have no idea what's 1E6 or some weird scientific expressions.
When dealing with memory access time, flash and eeprom delays, i2c, spi, rs232, rs485 baud rates and the many other timing issues, I'm banging my head.
I think, calculator or unit converter that says in plain English 80MHz=12.5 nanoseconds or so, would help me.
Then I could use the defined clock
CON
_clkmode = xtal1 + pll16x
_xinfreq = 5_000_000
and write calculation routine which would always get the access timing right, based on that given clock frequency and instruction execution time.
OR... I can just blindly copy the code in OBEX.
Naah. I would rather learn how thing work.
Anybody wanna write and sell online some good calculator program for Windows and some other common operating systems or browsers? Anything that can be sold to pay for your time.
Comments
-Phil
This is the one I use, I think it is brilliant. Free download, shareware registered.
http://www.zoesoft.com/console-calculator/
it knows numkM so 1/80M is == 12.5n, 'thinks' like a text editor, and can do simple repeats
eg
N=0;;N=N+1;N/80M
does the code before double ;; once, and repeats code after on every CR
so 8 CR's gives
N=0;;N=N+1;N/80M
ans = 1.25e-8
ans = 2.5e-8
ans = 3.75e-8
ans = 5.0e-8
ans = 6.25e-8
ans = 7.5e-8
https://play.google.com/store/apps/details?id=it.android.demi.elettronica
You can choose the frequency or period, and there are many options. This is just one of many calculators included in this app.
But the truth is that Windows and Linux do have a programmer's mode for the calculators they provide within their OSes. And there are even HP RPN emulators that do nicely.
At one time, HP made a specific model for programmers, but those days have gone by... the HP16c.
These days calculators are disappearing like the paper soda straw and wooden pencil sharpeners.
So you may have to source an application for your iPad or laptop.
http://en.wikipedia.org/wiki/HP-16C
http://www.hpmuseum.org/simulate/simulate.htm
http://en.wikipedia.org/wiki/HP_50g#HP_50g
http://www.walmart.com/ip/HP-50G-Graphing-Calculator/5155437
mono555 calculator
resistor calculator
voltage divider calculator
RCtime calculator
LM317 calculator
Binary-Hex-Decimal calculator
Resistor color matrix
Series LED resistance calculator
And a OHMS LAW calculator.
http://forums.parallax.com/showthread.php/81449-E-Tools-HTML-java-script-electronic-design-tools-free-for-YOU.
ETools.zip
The HP16c is a great calculator. I still have mine right here, although in the drawer. I used it a lot back in the days of assembly coding, but admittedly not at all for a long time now. I believe that is because most of the time I used just its hexadecimal/binary conversion functions, and after some time you start doing that in your head anyway. But the calculator is still probably the best machine language programmer's calculator ever, and I'm never going to get rid of mine.
-Tor