Author Topic: My Home Made Z80 Computers  (Read 22391 times)

0 Members and 1 Guest are viewing this topic.

Offline im_a_human

  • Regular Contributor
  • *
  • Posts: 70
  • Country: gb
Re: My Home Made Z80 Computers
« Reply #25 on: January 23, 2012, 11:52:46 am »
Thanks for the assembler Rufus  :) Its got a few bugs in it but it does work.
 

Offline Rufus

  • Super Contributor
  • ***
  • Posts: 2095
Re: My Home Made Z80 Computers
« Reply #26 on: January 23, 2012, 01:21:22 pm »
Thanks for the assembler Rufus  :) Its got a few bugs in it but it does work.

More bugs than documented?
 

Offline im_a_human

  • Regular Contributor
  • *
  • Posts: 70
  • Country: gb
Re: My Home Made Z80 Computers
« Reply #27 on: January 23, 2012, 08:46:39 pm »
Yeah in afraid so. It dosent output the correct values in the list file for some instructions and the hex file dosent contain the correct bytes always.
 

Offline Rufus

  • Super Contributor
  • ***
  • Posts: 2095
Re: My Home Made Z80 Computers
« Reply #28 on: January 23, 2012, 09:57:38 pm »
Yeah in afraid so. It dosent output the correct values in the list file for some instructions and the hex file dosent contain the correct bytes always.

I haven't looked at it in 25 years but if at the time I documented subtle bugs like  INC (IX+IY) not being detected as invalid syntax I would be surprised if I missed something fundamental like generating incorrect code.
 

Offline im_a_human

  • Regular Contributor
  • *
  • Posts: 70
  • Country: gb
Re: My Home Made Z80 Computers
« Reply #29 on: January 29, 2012, 08:51:54 pm »
Hurray!!!   :D Finally got my dsPIC33F to do something more interesting. A waveform at last! The software simply increments a counter from 0 to 65535 in increments of 255 and outputs the value to the DAC. I tryed just outputting every increment from 0 to 65535 but it made a waveform that had too low a frequency to be displayed on the scope for a photo to be taken. anyway next im gonna try to create an array for a sine table and see how that goes.
 

Offline im_a_human

  • Regular Contributor
  • *
  • Posts: 70
  • Country: gb
Re: My Home Made Z80 Computers
« Reply #30 on: February 23, 2012, 12:57:50 am »
Ive shed much blood sweat and tears getting this thing to work properly but ive got the hang of it now :D

Heres a pic of my dsPIC outputting two sine waves at 2KHz and 4KHz...

http://www.flickr.com/photos/32042005@N05/6921718559/#

and a closer view of the oscilloscope...

http://www.flickr.com/photos/32042005@N05/6921786149/#

and heres a demonstration of summing a 2KHz and a 4KHz sine wave together..

http://www.flickr.com/photos/32042005@N05/6921804251/#

 

Offline steve_w

  • Regular Contributor
  • *
  • Posts: 190
  • Country: au
Re: My Home Made Z80 Computers
« Reply #31 on: February 26, 2012, 12:55:18 am »
Love your work.

I think I was your Australian doppleganger, In the eighties I went to tafe (technical college for non aussies) and did industrial control on z80 among others.  I used the z80 in my final year project and made a plotter where the z80 had a centronics interface and drove x and y stepper motors under a pen.  worked ok for a project but sucked as a plotter.

regards

steve W
So long and thanks for all the fish
 

Offline im_a_human

  • Regular Contributor
  • *
  • Posts: 70
  • Country: gb
Re: My Home Made Z80 Computers
« Reply #32 on: February 26, 2012, 05:31:51 pm »
Projects don't always work out first time, especially at college when your pushed for time. You have to often work in groups and your group members sometimes don't have the same skills or knowledge as you and then you have to compromise because the guy who's part of the project he had to do to isnt how you planned it or it isnt finished or you get side tracked because you spent too much time in the pubs and clubs and ran out of time.
 

Offline steve_w

  • Regular Contributor
  • *
  • Posts: 190
  • Country: au
Re: My Home Made Z80 Computers
« Reply #33 on: February 27, 2012, 08:15:06 am »
You must have been there :)

I'll be following your posts with interest.

regards

SW
So long and thanks for all the fish
 

Offline im_a_human

  • Regular Contributor
  • *
  • Posts: 70
  • Country: gb
Re: My Home Made Z80 Computers
« Reply #34 on: March 05, 2012, 07:53:04 pm »
Hi, and thanks to everyone who is following this post :)

I have a closeup picture of my breadboard with the dsPIC33 on it. I have got the two 16 bit on chip DAC's running perfectly and capable of outputting signals upto 50KHz on each one.
Also i Have the UART running too after about 2 weeks of intense head scratching and datasheet reading. I connected it to the PC with a second USB port and used a Arduino USB to serial converter board to interface to the dsPIC. I have Hyperterminal running in windows and after much trial and error got the communication running very smoothly without any errors and all at the same time as the DAC's sending out audio.

Im over the moon that i have got this far :D
 

Offline Polossatik

  • Frequent Contributor
  • **
  • Posts: 295
  • Country: be
Re: My Home Made Z80 Computers
« Reply #35 on: March 08, 2012, 04:15:19 pm »
congrats!
Real Circuit design time in minutes= (2 + Nscopes) Testim + (40 +120 Kbrewski) Nfriends

Testim = estimated time in minutes Nscopes= number of oscilloscopes present Kbrewski = linear approx of the nonlinear beer effect Nfriends = number of circuit design friends present
 

Offline steve_w

  • Regular Contributor
  • *
  • Posts: 190
  • Country: au
Re: My Home Made Z80 Computers
« Reply #36 on: March 13, 2012, 01:42:37 am »
Keep the posts coming - excellent work.
So long and thanks for all the fish
 

Offline l4rtt-1

  • Contributor
  • Posts: 11
Re: My Home Made Z80 Computers
« Reply #37 on: March 14, 2012, 03:56:45 pm »
Interesting projects!

How do you program the DSPic, can you use pickit?
« Last Edit: March 14, 2012, 03:58:31 pm by l4rtt-1 »
 

Offline im_a_human

  • Regular Contributor
  • *
  • Posts: 70
  • Country: gb
Re: My Home Made Z80 Computers
« Reply #38 on: March 14, 2012, 06:16:52 pm »
Hi,

Yes the pickit 2 and 3 work very well with dsPIC. You have to use MPLAB and install the C30 compiler also. Then you can write your code in 'C'. You can write in assembler also but 'C' is much easier.

Im now writing the code to recieve the MIDI data from the UART and make the ADSR (Attack, Decay, Sustain, Release) type envelope generator that will shape the volume of the notes when played. Its going to be monophonic (only plays one note at a time) for the time being because its an easier goal to achieve. Hope to have that finished in another four weeks. (fingers crossed)
« Last Edit: March 14, 2012, 06:20:00 pm by im_a_human »
 

Offline im_a_human

  • Regular Contributor
  • *
  • Posts: 70
  • Country: gb
Re: My Home Made Z80 Computers
« Reply #39 on: March 26, 2012, 07:16:04 pm »
Hi everyone!

Ive actualy started to build some hardware atlast!

A few photos of stages of build which is by no means complete yet.
I decided to use no less than four dsPIC33 devices in the design of my synth. This will give me alot of processing power and alot of flexibilty to create different patches of oscillators, frequency modulation, envelopes, LFO, filters, and different effect types suchs delay, reverb, chorus, flanger etc.
 

Offline adept

  • Regular Contributor
  • *
  • Posts: 65
Re: My Home Made Z80 Computers
« Reply #40 on: March 26, 2012, 10:21:03 pm »
If you like Z80 computers, have you ever heard about n8vem? It's a google group that all they do is make Z80 computers. They all fit on a single board. They sell the boards, have a parts list, and all the chips are DIP. I was going to build one, but the fact is that they cost a lot of money to build. The EEPROM and the SRAM are the killers. They cost about 10 bucks a piece! Not to mention you can't find them anywhere. I think SRAM is really cool. DRAM takes too much CPU power just to keep the data in the modules. It all is a waste of resources. (though it is WAY cheaper and faster...) Anyway, thought you might find that interesting!
 

Offline l4rtt-1

  • Contributor
  • Posts: 11
Re: My Home Made Z80 Computers
« Reply #41 on: March 27, 2012, 08:03:00 am »
I decided to use no less than four dsPIC33 devices in the design of my synth. This will give me alot of processing power and alot of flexibilty to create different patches of oscillators, frequency modulation, envelopes, LFO, filters, and different effect types suchs delay, reverb, chorus, flanger etc.

Nice! Keep us updated!
 

Offline steve_w

  • Regular Contributor
  • *
  • Posts: 190
  • Country: au
Re: My Home Made Z80 Computers
« Reply #42 on: March 27, 2012, 08:13:30 am »
Nice job, i like how straight you made the wires :-)
So long and thanks for all the fish
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf