| View previous topic :: View next topic |
| Author |
Message |
iPromise Grandmaster Cheater
Reputation: -1
Joined: 27 Jun 2009 Posts: 529 Location: Canada
|
Posted: Sun Feb 24, 2013 1:24 am Post subject: Couple questions |
|
|
Lets say I wanted to create my own device from scratch and that device would be my own personal physical calculator that has buttons and what not.
The first thing i'd do is create a driver to support the input system (catch each button click) so that I can send it to my main code which handles all the calculations.
even if i'm wrong about what I said above, lets put it aside. How would I send my code to my new device?
Other then a power source, what will need to be in my circuit? would it be like a computer with a CPU and RAM?
how will I transfer my code? where will I transfer it to?
how do you make your code helpful when you decide to use your code to create new computers (or mini computers like a calculator)
also, what programming language was used in the 1930's-1940's. im sure back then when the allied forces were creating weapons and devices to fight world war two, they simply couldn't open their computer and type up some code.
i'm so stumped on this topic. can you sends a link explaining how it all works? how to get your code onto a circuit?
|
|
| Back to top |
|
 |
Chris12 Expert Cheater
Reputation: 1
Joined: 27 Apr 2012 Posts: 103
|
Posted: Sun Feb 24, 2013 2:21 am Post subject: |
|
|
for the first couple of questions. Take a look at the "raspberry pi". No need to make your own device.
If you want to, then you decide if it actually needs an processor and ram. You could also just build some static circuits. It all depends on what you want to do.
those real mini-calculators (the ones that dont accept formulas, only +-*/ and no brackets) are usually only circuits without a real processor.
in essence a processor is just an HUGE array of circurits. And depending on how its built, it reacts to its input. A real processor reacts in such complex ways that the assembly language was "invented" (more or less, it was more of a side product. without it a processor wouldn't be useable. The opcodes that a processor uses are created first actually, then the actual circuit system is created and made into chips...)
In the 30's they mostly used static circuits. They didnt have stuff like aviation-control systems or similar stuff.
The actions that such circuits could do were much more limited.
Most of the stuff (for example in radio-systems) was sort of hardcoded. The devices at that time didn't work on code.
Ok, there were some semi-processor things like the enigma (google it!)
but they were mechanical computers.
did that answer your questions? if not please explain what i misunderstood.
|
|
| Back to top |
|
 |
justa_dude Grandmaster Cheater
Reputation: 23
Joined: 29 Jun 2010 Posts: 893
|
Posted: Sun Feb 24, 2013 5:04 pm Post subject: Re: Couple questions |
|
|
| iPromise wrote: | | How would I send my code to my new device? |
| iPromise wrote: | | Other then a power source, what will need to be in my circuit? would it be like a computer with a CPU and RAM? |
| iPromise wrote: | | how will I transfer my code? where will I transfer it to? |
| iPromise wrote: | | how do you make your code helpful when you decide to use your code to create new computers (or mini computers like a calculator) |
Depends on the device.
| iPromise wrote: | | i'm so stumped on this topic. can you sends a link explaining how it all works? how to get your code onto a circuit? |
You should start by deciding what platform you want to use. It's possible to build a basic binary adder with some logic gates on a breadboard. You're talking about keypads and displays and such, so I think you're best off using some sort of pic chip. When I was in school, we played with something similar in a couple of classes. Back then, we had to use "eprom burners" to push (machine) code to the device. Now, I think there are Arduino chips and stuff that use flash that you can write to with the built-in micro USB ports. That should make the barrier of entry cheap enough that you can get what you need to tinker. I'd do some Google searches for Arduino calculators and see what I could find.
|
|
| Back to top |
|
 |
iPromise Grandmaster Cheater
Reputation: -1
Joined: 27 Jun 2009 Posts: 529 Location: Canada
|
Posted: Mon Feb 25, 2013 12:35 am Post subject: |
|
|
Hmm okay I understood the majority of what both of you said right now.
I took apart a calculator that I have handy and I observed it for a moment. It uses solar energy to power up but other then that, its just a green motherboard with no visible attachments attached to the screen with a tape like material. I'll post a picture later, but how did they put their code in there?
|
|
| Back to top |
|
 |
|