YakYak

Llamasoft baanter and moosings - It's like Deliverance with Sheep
It is currently Tue Feb 09, 2010 4:28 am 0

All times are UTC




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: .. and after 20 years or so .. (updated with some new stuff)
PostPosted: Sun Jan 06, 2008 12:02 pm 0 
Offline
Sheepie Whore
Sheepie Whore
User avatar

Joined: Wed Sep 03, 2003 6:54 am 0
Posts: 11221
Location: Monfalcone, Italy
[edit] - ( see below for the previous stuff )

.. and "because I need a loader" ( or something ) then the "idea number 2"
( in reality in plan since beginning ) came out.

"Let's use two spare bits to implement a serial port".

So take a 3 state buffer and a level converter and voila' all you have
to do is to write some software polling those bits and doing things ...

Because this kind of stuff in the past was "my speciality" ( like to
implement protocols on stuff not done for communications at all )
that thing "it has to be done" came in.

.. the amount of swearing, nuttyness and all this SW made me .. well ..
.. a bit beyond what I was expecting ..

Actually .. I had only 3 bugs .. and it's a definitive proof that "coding
for fun" during the night aroun 1.00 AM before to go bed and such is
not totally sane nor devoid of risks.

So it took me two days to find out :

- a semicolon in a place that had not to be
- that "bit 7 reset" is 7FH and NOT EFH
- consider the baudrates can have a certain error and are not uS precise

I should also add that "dump on the screen should take for account of
non printable carachters that are there but that you can't see with a print" :?

After lot of swearing, oscilloscope and such .. here .. in all its glory ..

Image

And that cable goes connected to the glorious VT220 :)

Image

Now you have a kind of "mini shell" ( that is studied also to be
"simple" so to allow me to write a PC "uploader" program ).

All the idea was to have a "minimalist system" that can do "cool things".

So the "shell" supports those commands :


Insert byte(s) starting from address <address>

I <address> <byte> [byte] [byte] [ .... ]

Display Hex/ASCII dump starting from address <address>

Z <address>

Jump and run code at <address> ( RET brings back to shell )

J <address>


And that's it, here a screenshot :)

Image

Now the final thing is .. that unforunately I did not manage to reach
"goal 0" so I had to go for "goal 1".

Remember all this is made by sampling a bit, it communcates in
Half Duplex mode at 9600 Baud, 8 Bits, Parity None, 1 Stop bit and
you need to use local echo ( for now ).

All the code is "with counted clock cycles".

It handles buffer overflow and backspace too.

Now the "goal 0" was 256 bytes .. I failed it but I am withing "goal 1"
all this program fits in 452 bytes( so less than 512 ), I mean really
everything including the welcome message and such.

Now I have something "interesting" to play with a quite a nice set of
"bios routines" debugged I can work with ;)

Next, shell 2.0 probably 8) :wink:

== original post follows ==



I finally made it :!:

So .. "back in the days" ( 1984 or so ) I think everyone at some point
dreamt/said "one day I'll build up my small computer" ...

Lot of ideas/things sketched on papers during the nights ... always for
one reason or another ending up in "one day I will .. ".

So two weeks ago .. it was there on ebay .. we were fixing all those old
consoles and such and I tought "well, we could make some cartridges too "
and "ok fuck off, take those 25 pounds" I bought an Eprom/Flash/Pic a bit of mix programmer.

Then I had that box with those OLD chips .. SO long time those chips been
collected a bit there and there and been there .. waiting .. or just getting
dust with time passing by ..

I had this piece of board .. a bit of things on the desk .. so two nights ago
"just for fun" I tried to put together a 4 Mhz clock oscillator, despite it
may seem "a silly frequency" let me tell you it's NOT .. not really so silly ..

After two nights of fiddling it was looking a reasonably good wave ..

But still "the impulse was not there" ..

But then .. I was looking at it .. and thinking .. and .. "well .. maybe I could
put together this chip and that one " ..

Sunday .. after 20 years or so .. "something clicked right" .. after a
previous night of a bit of sketching while "meditating" I had this mad
idea to start doing this thing "a little piece at time" testing part by part
as it was going ..

I did not know what I was going into but at some point I was in that
"full electronics love mode :wub: " .. I've been soldering and testing stuff
on my desk for 12 hours solid without moving .. every piece that I
was putting up was tested ..

All done "with just all I had in the desk" .. most notably that "crap red
wire" that is multi-pole TINY wire I had to piece by piece to strip just using scissors
( I don't have a cable stripper for that ) and all made by hand ( I don't have small pliers ) .. :roll:

Literally those moments "I can't eat, I can't drink I can't sleep, it's just the love .. ".

So after 12 hours .. it was finished .. but there was a problem .. I don't
have yet a proper UV lamp so I was trying to use another PCB UV lamp
I have to clean that 2764 .. it did not work well but I found out the upper
4 Kb of ram was still blank by its own so with a trick I "shifted" it one
page and I overprogrammed .. it worked ..

And then .. the moment of truth .. will all that mess of wires work ?

YES IT WORKS ! :D :D :D

So what's all this thing about ?

Here my MINI Z80 computer system, it could have been done with one
chip less but I was missing another 74LS138 so I did a thing with a
couple of OR/NOR ports.

Specifications :

CPU Z80A 4 Mhz
CLOCK 4 Mhz
ROM 8K ( 4K in this moment )
RAM 8K static ram
1 8 bit I/O port
( will be added a serial port using 2 bits left )

here in its beauty :

Top view ( looks nice )

Image

Bottom view ( looks a mess :lol: )

Image

That foil is to shield the high freq part of the oscillator.

It's actually running this code happily :)

Code:
;
; Test program to see if the CPU works
;

DI
LD A,0
;
LD SP,2400H
;
Main:
LD DE, Segtable
LD C,16
;
OutSeg:
LD A,(DE)
OUT (254),A
;
LD HL,0

Delay:
DEC HL
LD A,H
OR L
JR NZ,Delay
;
INC DE
DEC C
JR NZ, OutSeg
;
JR Main
;
Segtable:
DB 40H, 79H, 24H, 30H,19H, 12H,02H,78H
DB 00H, 10H, 08H,03H,46H,21H,06H,0EH


Here one more pics with some details

Image

Useless ? Weird ? Nonsense ?

It does not matter, this is a thing that for 20 years I said "one day I will .. "
and finally .. it's HERE .. I've done it !

Now I feel SO happy .. wow .. I can say "I can do it" :D

The most important thing to me is that this is a dream I always had
and now it's true, I can make it all better but the thing is "it's not a dream
any more"..

I'd never imagined that one day I would have done it "all in a day" :)

I feel SO happy .. maybe it's "silly happiness" but to me it's lot :)

It's really :wub: :wub: :wub:

_________________
Giles the billy goat
"Baa"


Last edited by gilesgoat on Sun Jan 13, 2008 9:14 pm 0, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 06, 2008 12:10 pm 0 
Offline
Sheepie Whore
Sheepie Whore
User avatar

Joined: Wed Apr 24, 2002 9:44 am 0
Posts: 20447
Location: Sitting in an English garden waiting for the sun.
That's so cool 8)

No, really it is :)

Now give it the gift of video-out.

_________________
Blog ~ Blog RSS | Programming blog | Photos
You like to click URLs in people's signatures, it's fun to do. Following RSS feeds is even more fun. As is leaving comments.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 06, 2008 12:11 pm 0 
Offline
Baaaaa!
Baaaaa!
User avatar

Joined: Wed Feb 09, 2005 12:17 pm 0
Posts: 1133
Location: Reading, UK and level 691859
Awesome stuff, Giles :D

_________________
OMG (or oligodendrocyte myelin glycoprotein) is a molecule found in your central nervous system.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 06, 2008 12:55 pm 0 
Offline
Baaaaaaa!
Baaaaaaa!
User avatar

Joined: Wed Feb 16, 2005 12:44 pm 0
Posts: 5834
Location: Skegness, England
Wow, nice work!

(And who cares if the underside looks a mess, it works!)

_________________
THE COMMODORE 64 BOOK - OUT NOW!!!

My retro gaming blog

PLEASE NOTE: THE ABOVE MESSAGE WAS RECEIVED FROM THE INTERNET.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 06, 2008 1:22 pm 0 
Offline
Baaaaaaa!
Baaaaaaa!
User avatar

Joined: Tue Feb 17, 2004 3:29 pm 0
Posts: 9668
Location: Sweden
That's really cool stuff, Giles. :)

_________________
http://www.anderssimonsson.com/


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 06, 2008 4:26 pm 0 
Offline
Baaa!
Baaa!
User avatar

Joined: Tue Feb 14, 2006 10:14 am 0
Posts: 210
Location: deep inside my mind
Thanks Giles, your work will help me studying for "Computer Architecture" exam! :)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 07, 2008 8:13 am 0 
Online
Baaaaaaa!
Baaaaaaa!
User avatar

Joined: Fri Mar 28, 2003 8:46 am 0
Posts: 7973
Location: Winland a.k.a. Finland
any plans to modifiy it to support a VGA display or something?

_________________
and Jesus said to his brethren "OMFG I can't see the bullets what the hell is going on WARGLE BLARGH OMFG SEIZURE HEADACHE" and did give us 2/10, yea verily
http://leoartblog.blogspot.com - Art, animations and musings. Please visit :D


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 10, 2008 7:09 am 0 
Offline
Baaaa!
Baaaa!
User avatar

Joined: Sun Dec 12, 2004 1:50 pm 0
Posts: 928
Location: UK
Nice! It's always a joy reading about your love of tech, Giles.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 12, 2008 1:15 pm 0 
Offline
Baaaaa!
Baaaaa!
User avatar

Joined: Fri May 24, 2002 2:31 pm 0
Posts: 1816
Location: Here, there & everywhere
chris_b wrote:
Nice! It's always a joy reading about your love of tech, Giles.

Yep, I love Giles's quirky tech projects :D

_________________
ianholmes.net | Photography Workshops | Xbox Live: Xstreme69


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 12, 2008 10:29 pm 0 
Offline
Baaaa!
Baaaa!
User avatar

Joined: Tue Jun 18, 2002 3:14 am 0
Posts: 707
Location: New Sheepland
Cool Bananas, the soldering of the wires is a true work of art.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 13, 2008 9:28 pm 0 
Offline
Sheepie Whore
Sheepie Whore
User avatar

Joined: Mon May 31, 2004 12:08 pm 0
Posts: 12141
Location: Newcastle UK
Excellent. Takes me back to getting a Z80 running on a breadboard in the electronics labs at uni. That was quite fun, watching the different cycles appearing on the bus...


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 13, 2008 9:50 pm 0 
Offline
Baaaaaa!
Baaaaaa!
User avatar

Joined: Wed May 01, 2002 2:37 pm 0
Posts: 3698
Location: Derbyshire
Nice work.

You've reminded me to take some photos of my Z80 home brew.

Image

Image

To start with it had a two line LCD but I later added a UART and RS232 level shifter but that was about 18 years ago.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group