Computer From Scratch

All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
User avatar
Dex
Member
Member
Posts: 1444
Joined: Fri Jan 27, 2006 12:00 am
Contact:

Post by Dex »

A member of "Team DexOS" is building one around the Propeller chip
http://www.parallax.com/dl/docs/prod/pr ... -v1.01.pdf
And here is a nice project using the same chip.
http://ybox.tv/index.php?page=index
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Hmmm.... very interesting........

Post by Combuster »

SandeepMathew wrote:but i am clueless as where to start and i only have an elementry
or u can say moderate ( i know how to set up counters's , differentiators
, small signal amplifiers etc ..... ) Can any one give me some direction.......
get the hardware and anything to mount it.

A possible shopping list:

1x AT90S2313 (or some other AT90Sxxxx)
1x 10MHz oscillator
1x 5V regulator (with cooling fin)
1x power supply 6..9V
8x LED
8x 1K resistor
1x parallel port connector
1x something to build on
and lots of wires

then browse the atmel site for the manual and connect the processor to the regulator, and the clock. connect the 8 leds via a resistor to Port D and wire the parallel port connector to the chip so you can program the flash memory embedded in the controller. Next, write a program emulating Knight Rider's front light and enjoy :D
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
DeletedAccount
Member
Member
Posts: 566
Joined: Tue Jun 20, 2006 9:17 am

Wow .... Coool man.....

Post by DeletedAccount »

That was really helpful......................
Is there any way i can return the favour ...
My Skills are C,C++,Java,Python,C# :- elementry shell scripting ,some x86 experience ... I am working on an unfinished Compiler and an 8085 simulator
are u interested in reading the source ... may i send you .. the source....
May i write a Python based platform indepent installer for Dex Os ...
I wrote (crappy installer)one for bos but didnt submit it ... it's just 45 to
50 lines of code.......
User avatar
Dex
Member
Member
Posts: 1444
Joined: Fri Jan 27, 2006 12:00 am
Contact:

Re: Wow .... Coool man.....

Post by Dex »

SandeepMathew wrote: May i write a Python based platform indepent installer for Dex Os ...
I wrote (crappy installer)one for bos but didnt submit it ... it's just 45 to
50 lines of code.......
That would be very usefull for DexOS, but its not necessary, as i am sure your busy with your projects, but thanks for the offer.
User avatar
binutils
Member
Member
Posts: 214
Joined: Thu Apr 05, 2007 6:07 am

Post by binutils »

User avatar
Zacariaz
Member
Member
Posts: 1069
Joined: Tue May 22, 2007 2:36 pm
Contact:

Post by Zacariaz »

Building a computer/cpu and other simular devices from scratch can be fairly easy depending on what you want and what "scratch" means to you.
Keep in mind that theres severel aproaches to this, fx if you really want to built it from scratch you can use relayes, radio tubes or (of course) transistors. This is not a wise aproach, much too complicated. Next step would be the use of logical gates.
After this "from scratch" would no longer be the right term i think.

I have build an "virtual" 8-bit adder out of 16 XOR, 16 AND and 8 OR gates. It wouldnt have been difficult to enable subtraction too, even multiplying and division would be possible, but somewhat difficult.
By "virtual" i of course mean that i used a piece of software to emulate it. (i never was any good with a soldering iron)

Bottom line, it is possible, and it doesnt have to be that difficult as long as you restraing your self to fair simple devices, but really it is something you do for fun if you ask me.


I dont know how much you actually know about electronics, boolean logic, etc. (i know im a noob about it) but i do know a book that is guarantied to teach the basics, that is no matter how little you might know or think you know. Its a must have for anyone who want to understand how it really works.

title: "CODE"
author: "Petzold, Charles"
isbn: "?"

Do a google search or something, youll find it is quite popular.


Regards
GLneo
Member
Member
Posts: 237
Joined: Wed Dec 20, 2006 7:56 pm

Post by GLneo »

does anyone know any good software to simulate logic, I've tried a lot of them but none are very good :(, something that if i had enough time i could make and test a CPU?

thx!
Pyrofan1
Member
Member
Posts: 234
Joined: Sun Apr 29, 2007 1:13 am

Post by Pyrofan1 »

why don't you make your own it's easy to simulate logic

Code: Select all

bool AND(bool one,bool two)
{
	if(one && two) return true;
	else return false;
}
User avatar
AndrewAPrice
Member
Member
Posts: 2299
Joined: Mon Jun 05, 2006 11:00 pm
Location: USA (and Australia)

Post by AndrewAPrice »

Pyrofan1 wrote:why don't you make your own it's easy to simulate logic

Code: Select all

bool AND(bool one,bool two)
{
	if(one && two) return true;
	else return false;
}
A write an entire processor in C/C++? You could have a linked list of components and a linked list of connections, except it wouldn't be very good for designing, only for implementing, because you'd easily get lost with what does what. There are hardware descriptor languages for this purpose anyway.
My OS is Perception.
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Post by JamesM »

Take a course in digital electronics. Thats where I learned all my electronics knowledge (university!). Last term's project was making a pong games console from a H180 processor (Z80 clone with a few nice extra instructions (like multiply!!) and a serial port) and a lcd screen. It interfaced with RAM and ROM, and used both potentiometers and infrared distance sensors for input (so you can move your hands to move the paddles :P)

I'm going to get some more electronics stuff when my paycheck comes in. I'm also interested in robotics. Does anyone know about any pneumatic (less messy if it all goes tits up) actuators controlled by binary signals? That are small and cheap?

JamesM
Solidus117
Posts: 23
Joined: Sun Dec 03, 2006 5:29 pm

Post by Solidus117 »

JamesM wrote:Does anyone know about any pneumatic (less messy if it all goes tits up) actuators controlled by binary signals? That are small and cheap?
You'd probably have to convert that binary signal to a PWM signal. Most cheap ones like PWM.

Edit: If that uC is decent enough, it probably has a few PWM ports on it somewhere.
draggy
Posts: 9
Joined: Wed Feb 23, 2005 12:00 am

Post by draggy »

Post Reply