Tuesday, July 9, 2013

SID-Boy Cartridge Continuation

I could easily have written this post yesterday immediately after the last one because I was up working all night but so many components, arrangements, etc. changed. Now, I only minored in engineering at Central Michigan University but I plan on mastering in it eventually once my bills are caught up...anyhow, I decided to remove the RAM for the time being because it will make for an easier memory mapping. Both the SID and RAM are to be written to and there is no room for a battery backup, so whats the point of RAM at all? At least at this point in time.

Image Hosted by ImageShack.us
Currently I have the SwinSID, ROM, MBC5 mapper chip, components  and ICSP all placed. The TDA1543 DAC IC will remain through-hole because these chips are difficult to locate and the SMT version happens to be larger because of 8 unused pins! I have replaced the massive crystal with a tiny surface mounted one and will replace the resistors with SMT resistors as well. The PLCC socket will be removed because it is too large to fit inside of a gameboy but for the time being, I could only locate a 29f040/49f040 library file as through-hole.

Shortly, I will remove the logic chip that was never utilized and move the headphone jack to the other side because "if" the Audio-IN pin works as I hope it does, the traces would need to be on the other side.

If design goes as planned (for future versions) I will be able to support up to 64MegaBits of ROM! can you imagine a program that large!? However, RAM will probably be placed once I figure out how to add both the SID and RAM into the same 64Kbit addressing space. I may even decide to use a memory module that requires no battery backing, which would be a little more costly but less consuming of space.Hell, my program could easily be modified to support a YM2612 version if the project pans out. Just keep reading!

Also, if I manage to create a working prototype, I will be starting a kickstarter page for this project.

Monday, July 8, 2013

Gameboy and SID Interfacing Theory: Why Not?

Driving home after visiting the family on holiday and I had a wonderful idea. I was thinking about the computer that I am working on (and will post about extensively later on) and came up with another project I should be working on. "Why hasn't anyone else began this project," I thought to myself. So I quickly tore apart the box of candy bottle caps I had finished off and drew a quick size-representation of what one such device would look like on the dusty sugar-covered cardboard.

The gameboy is an 8-bit computer in the purest of form; ROM, RAM and simple I/O communication. Other devices have been designed for use with the gameboy both officially and unofficially, by Nintendo and by other devs. Adding any device should be as simple as hooking up the Address bus, data bus and placing said device somewhere in the existing memory map.

I have also been looking into pin 31 on the gameboy cartridge slot. This particular pin as far as I know has never been implemented in an official device and just goes to waste. It is referred to as the Audio-IN pin. All I know is that it connects to the z80 uP...I do not know which direction transfers occur nor do I know what kind of audio the trace can handle, amplified or otherwise. I will get back to this pin later on, now we shall discuss the connections and board layout.

My first sketch was simply to arrange the components without worrying about logic, power, or anything else.
Image Hosted by ImageShack.us
The second sketch realized the need to map the SID's address with logic, power the SID at +12v and add an audio ouput.
Image Hosted by ImageShack.us
Sketch three was made when I remembered that SwinSID would be a more reasonable build. The size and power supply will both more easily be designed.
Image Hosted by ImageShack.us
Sketch four, or version 2.1 is the board I will start to design in Eagle PCB. as you can see, I added mostly SMT components due to size restrictions. ROM will be in a socket as a PLCC. RAM and MBC (the memory mapping chip) will be the ordinary SOIC that comes in most GBC cartridges. I have yet to realize a battery backup because I have yet to determine how the ROM will be programmed; hence the socket.
Image Hosted by ImageShack.us

I believe 4Mbits (512Kbytes) will be sufficient size for the ROM to begin with. I only have 49f040 EEPROMs on hand right now anyhow. With the MBC5 chip, I can be a little more sloppy with the glue logic since there will be plenty of addressable bits left over. And lastly if the audio-IN pin works as I hope, there will be no need for an extra 1/8" headphone jack. How annoying would that be, amirite!

A few notes about SwinSID that make it choice for my project it is drop-in, pin-compatible with the original SID; both 6581 and 8581. It also runs on +5v rather than the 12 or 9 that the SIDs run on. It does however require its very own xtal but the gameboy has a clock pin running through the cartridge slot which is very slow. I will look into whether the speed is sufficient to run the SwinSid (probably not though).

More updates soon!

Tuesday, July 2, 2013

Update: Jul-2-13

Since my last post, I have not only acquired an Apple IIe but have set myself on a journey of self-betterment and creation. (Im gonna build something)


Image Hosted by ImageShack.us

Clearly my Apple is beaten up with keys missing and ... a makeshift floppy drive but it is one of the coolest things I have ever owned. The internals are simple enough to follow myself and the features are incredible. For the longest time I had been planning a new device to engineer and produce, but if it wasn't for the Apple II, I may still be at square one.

To begin with, the uP inside is the 6502. Quite powerful for its time and variants are still being produced today! For the device I am designing, I have chosen the 65c816 which is a higher processing faster uP than the 6502. It still keeps a certain amount of backwards compatibility too which may or may not come into play with my computer.

I am now studying the 65c816, latching process, addressing methods, etc. The thing can address up to 16Mbytes which is absolutely astounding! I have started looking into I/O options such as the DUART which I may use for MIDI and controlling an LCD module for serial output. This lead me to find the TellyMate which converts serial data to composite video. The TellyMate is in such a small package, that I have decided to fit one into the shell so that it can be put onto a television.

As for the main purpose, I am designing a computer to cater to the chiptune artist. There will be at least two synth chips (vintage of course) and an expansion port for other software. The expansion port I have decided will be not only used for software, but for addressing custom hardware devices designed by other people in the future. Gotta love them modders. I may design a docking system to connect a control board with buttons, pots and other components to control filtering, looping, controlled interference and other attributes of individual sound channels.

If you're a fan of LSDj and the DMG-01, then you may want to follow my blog. I will be starting a kickstarter eventually which will have all of the information and replace the gameboy entirely. My handheld computer will not only have more sound channels, but built-in midi control and the main focus is the modder. I will create the very most mod able toy ever.

Tuesday, June 18, 2013

Macintosh LC Repair Part 4 - Final

You're all wondering how the repair went, right? (I hope at least) Lets review the process:

Remove caps
Clean board
Order new caps
Replace caps
???
Profit!

The parts I ordered all came nicely packaged in separate, marked baggies and an invoice. The one mistake I made was ordering no pins for my D-Sub 9 connector! Its a shame, but I have already located a replacement. The good news is that my chance-purchase of the 26 pin connector fits the Apple IIe card perfectly!


Image Hosted by ImageShack.us Image Hosted by ImageShack.us Image Hosted by ImageShack.us Image Hosted by ImageShack.us

I will not build the cable in this post because I do not have any software to test it with, but be sure that I will in the near future. Anyhow, back to the board. My first repair was of the Power supply. The power supply was the first problem to arise when I powered up the computer.

Image Hosted by ImageShack.us Image Hosted by ImageShack.us

The first picture is of the clean board ready for new caps. You will note that the caps are not the same size as the original, but I only needed to match the pin distance. Most caps today are smaller than old ones if not at least in height, so diameter was not an issue. Through hole capacitors are very easy to replace as long as you have cleaned the hole of residual solder. Simply match the negative pin to that on the board and slide them in. The Negative pin is always denoted by either a stripe down the side or by a dark half circle on the SMT caps which follow below.

Immediately after closing the metal housing on the PSU, I plugged it in and tested the voltages. +5v, +12v and -3v...It should be a -5v, not -3. Also, the clicking was still present. Very disappointing. However I read that the TDK power supply happened to be "smart" in a way. It was able to notice load on the outputs so I hoped for the best and proceeded onward with the motherboard.

Clearly the motherboard would take the longest of all, but all I have on a day off is free time. I began on the cap furthest from the board's edge as would prove to be the easiest to reach. If I started on the outside, each following pin would be more difficult to solder. Because I recorded each cap's value, all I needed to do was check my list to ensure a proper replacement. One after the other, I replaced caps and the few soic-8 integrated circuits and the other misc. components. Oddly enough, the most difficult component to replace was the LM3080 because of the size. Once I tacked one pin in place, the other side wanted to rise up! Even the large PLCC type chip was easier to replace. Have a close look at the final board:

Image Hosted by ImageShack.us Image Hosted by ImageShack.us Image Hosted by ImageShack.us

The most valuable item I use during solder jobs is my flux. I have a small jar with a needle used to apply it. I place a dab on each contact to ensure a clean and evenly heated joint every time. It may be messy, but isopropyl (rubbing) alcohol cleans nearly anything from a board without damaging silk screens or plastic components. Never use "Goo gone" or "goof off." These both contain turpentine and will eat away nearly everything...

All that is left is two more caps; the caps on the Apple IIe card of course. Remember that one pad was damaged? This was relatively easy to fix. All that I needed to do was scrape up the silk screen on top of the trace that led from the missing pad and solder the cap on sideways. With both caps replaced I assumed that the card would function properly, but I later read that it requires a boot disk which I do not own.

Image Hosted by ImageShack.us

We are now at the point of closing her up. The Mac LC's simple clipping design means that nothing is secured with a screw and each component snaps in place. I wish more devices were designed this way today. LETS BOOT IT UP!

Image Hosted by ImageShack.us Image Hosted by ImageShack.us Image Hosted by ImageShack.us

System software 7.0
4,096 Kbits of RAM
Macintosh Name: Zombie LC (brought back to life in pursuit of BRAINS!) ;)

Image Hosted by ImageShack.us Image Hosted by ImageShack.us Image Hosted by ImageShack.us

Our new kitten Elsie approves. Cute name, eh?
All that is left is to play some terrible games, finish that cable and find some software so I can run 'real' games from the Apple IIe. Text adventures, HERE I COME!

Thank you for all reading. This has been a repair by Jazz.
Stay Tuned for some circuit bending, more dissassemblies and a top secret Jazz-invention!

Friday, June 14, 2013

Macintosh LC Repair Part 3

With a list like the one I made in my last post, you would think that writing up an order would be simple. Well, it certainly could not have been more time consuming! Finding the value of capacitors I needed was simple enough with Mouser's filter at my disposal, but locating a cap of the perfect pin distance and a reasonable diameter by a reputable brand...now that takes time. The caps I chose are all from either Nichikon or Panasonic as recommended on the Bad-Caps forum. Luckily, each one of them was only a few cents more than a bad brand of caps, so no loss.

All of my parts arrived today, but first allow for me to supply links to the parts that I purchased:

Caps:

https://www.mouser.com/Search/ProductDetail.aspx?R=UPM1A271MED1TDvirtualkey64700000virtualkey647-UPM1A271MED1TD

https://www.mouser.com/Search/ProductDetail.aspx?R=EEU-FR1E470Bvirtualkey66720000virtualkey667-EEU-FR1E470B

https://www.mouser.com/Search/ProductDetail.aspx?R=UPJ1E271MPDvirtualkey64700000virtualkey647-UPJ1E271MPD

https://www.mouser.com/Search/ProductDetail.aspx?R=UPJ1E560MED1TDvirtualkey64700000virtualkey647-UPJ1E560MED1TD

https://www.mouser.com/Search/ProductDetail.aspx?R=UVZ1A102MPD1TDvirtualkey64700000virtualkey647-UVZ1A102MPD1TD

https://www.mouser.com/Search/ProductDetail.aspx?R=EEE-1VA220WRvirtualkey66720000virtualkey667-EEE-1VA220WR

https://www.mouser.com/Search/ProductDetail.aspx?R=UCD1H010MCL1GSvirtualkey64700000virtualkey647-UCD1H010MCL1GS

https://www.mouser.com/Search/ProductDetail.aspx?R=UCD0J101MCL1GSvirtualkey64700000virtualkey647-UCD0J101MCL1GS

https://www.mouser.com/Search/ProductDetail.aspx?R=UUD1C470MCL1GSvirtualkey64700000virtualkey647-UUD1C470MCL

https://www.mouser.com/Search/ProductDetail.aspx?R=UWF1C100MCL1GBvirtualkey64700000virtualkey647-UWF1C100MCL1GB

Connectors:

https://www.mouser.com/Search/ProductDetail.aspx?R=L777RRE09Pvirtualkey52350000virtualkey523-L777RRE09P

https://www.mouser.com/Search/ProductDetail.aspx?R=10090769-P264ALFvirtualkey64910000virtualkey649-10090769-P264ALF

Hoods:

https://www.mouser.com/Search/ProductDetail.aspx?R=40-9709Hvirtualkey60140000virtualkey601-40-9709H

https://www.mouser.com/Search/ProductDetail.aspx?R=40-9715Hvirtualkey60140000virtualkey601-40-9715H

You will notice that I ordered two connectors and hoods. This is what I will use to make the proprietary Apple Y-cable for connecting a floppy drive and joystick. I do not plan on supporting a floppy drive though as I will probably never get one, but I will need a joystick for games!

Anyhow, if I plan on putting these caps on the board then I have to remove the old first! My personal favorite devices of choice: one radioshack desoldering iron and chip quik solder. I have used the same desoldering iron for several years now and have only needed to replace the $1.99 tip a couple of times, it just depends on how rough you treat it.

Chip Quik solder on the other hand is a special 63/37 Tin/Lead solder which has an incredibly low melting point. This low melting point makes it ideal for removing surface mount components such as PLCC chips, SMT caps, soic chips and more; I sometimes use it on pesky through-hole parts. The solder will remain molten for nearly a minute after applying it, so the component can be plucked right off the board without damaging contacts. It also cleans nicely from the board when you need to use ordinary solder for putting chips back on your boards.


I could not have removed any of these components from the boards without these items. I started with the Power Supply which has all through-hole caps:


Image Hosted by ImageShack.us Image Hosted by ImageShack.us Image Hosted by ImageShack.us

The first picture is of the filthy board after removal. Several of the caps had leaked and left a thick goo behind. The second pic is after I cleaned the board and the last picture is of all of the caps. Notice that some have a crusty residue, but others do not. Even though some of them had not leaked, they are all the same age and it is in my best interest to replace all of them.


Image Hosted by ImageShack.us Image Hosted by ImageShack.us Image Hosted by ImageShack.us

I started removing components as you can see above and the finished removing them and then cleaned the board. This was the most corroded area on the board and I lost none of the pads! Even the LM3080 which looked irreparable may be useable after removing the corrosion.

Image Hosted by ImageShack.us Image Hosted by ImageShack.us Image Hosted by ImageShack.us

Last of all as the Apple IIe card. This turned out to be the most difficult because the components are much closer together and I certainly could remove the PDS connector! One cap lost a pad, so I will have to make a repair...but only one trace out of a hundred seems to be a success! The Third is a picture of everything I removed from the motherboard. Caps, IC's and even the through-hole audio jacks. I felt that I had to remove more than was afflicted to access all of the caps.

In my final part of these posts, I will populate the board with all of my new caps and the old IC's. With any luck, we will have a fully functioning Macintosh LC!

Wednesday, June 12, 2013

Macintosh LC Repair Part 2

If I plan on making this function, I will have to replace all of the corroded and leaking capacitors as well as replace any non-functioning components that were damaged in the 20 something years of storage.

Below, I have drawn up a few quick diagrams of the board layouts and recorded all top-side capacitor values. I have not recorded any bottom-side capacitors because they do not need to be replaced. My board is marked: "APPLE COMPUTER INC. AP1455-03 © 1990 630-?3?9 - "

Image Hosted by ImageShack.us

Apple Macintosh LC Motherboard:

C1: Electro: 10uF/16v
C2: Tantalum: 3.3uF/16v
C3: Electro:10uF/16v
C4: Electro: 47uF/16v
C5: Electro: 10uF/16v
C6: Electro: 10uF/16v
C7: Electro: 10uF/16v
C8: Electro: 100uF/6v
C9: Electro: 47uF/16v
C10: Tantalum: 3.3uF/16v
C11: Tantalum: 3.3uF/16v
C12: Tantalum: 3.3uF/16v
C13: Electro: 47uF/16v
C14: Electro: 47uF/16v
C15: Electro: 47uF/16v
C16: Tantalum: 3.3uF/16v
C17: Tantalum: 3.3uF/16v
...
C19: Tantalum: 3.3uF/16v
...
...
...
C100: Electro: 1uF/50v
...
C105: Electro: 10uF/16v
...
C108: Electro: 10uF/16v
...
C111: Electro: 10uF/16v
...
...
...
C890: Tantalum: 3.3uF/16v


And as for my Apple IIe Card:

Image Hosted by ImageShack.us

C1: Electro: 22uF/35v C2: Electro: 22uF/35v

TDK Power Supply:

Image Hosted by ImageShack.us

...
C5: Electro: 180uF/385v
C8: Electro: 8.2uF/50v
...
C51: Electro: 1000uF/10v
C52: Electro: 1000uF/10v
C53: Electro: 270uF/25v
C54: Electro: 270uF/25v
C55: Electro: 1000uF/10v
C56: Electro: 56uF/25v
...
C60: Electro: 47uF/25v
...
C64: Electro: 270uF/10v
...
...


My plan is to purchase every capacitor that I need to replace these, keeping as close to the same values to stay safe. I may also attempt to make the Apple IIe card's proprietary cable which was originally design to hook up an original Apple II floppy drive and joystick. Apparently I am able to stored games and other software for the Apple IIe card on the internal HDD, so all I need is a joystick connector. All of the appropriate pin connections are listed here:
http://www.vintagemacworld.com/lc_card_faq.html

"Joystick (9 pin) to IIe card connector

01 01
02 21
03 02
04 20
05 12
06 19
07 10
08 03
09 11

Disk drive (19 pin) to IIe card connector

01 04
02 04
03 13
04 14
05 NC
06 05
07 22
08 23
09 06
10 15
11 24
12 07
13 16
14 25
15 08
16 17
17 26
18 09
19 18"

Ignoring the Disk Drive portion, I should be able to wire a joystick very easily; given I find the appropriate 3-row, 26-pin D-sub connector for a reasonable price.

Tuesday, June 11, 2013

Macintosh LC Repair Part 1

A generation of video gaming that I missed out on was the Apple II.Text adventures especially are something that I have always found interesting but had no means to explore. Now you may wonder "The title of your post is Mac LC not Apple II, silly" and you're right but I will get to that shortly.

This past week, I was scouring good old Craigslist for my next project and came across a cheap and complete Macintosh LC. This is one of, if not the first in the line of Low-cost-color computers around the time when Jobs was booted and the company moved exclusively to high-end expensive machines. This computer was released in 1990, the year I was born so by the time I entered middle school, they had already been replaced by IBM PCs. A shame really.

Back to the point. After picking up the computer and hearing the oh so common phrase, "It worked when we packed it up", I rushed home to find that it did in fact ... not work. Which is totally fine for me! I paid very little in my opinion and was just happy to find a new project that I knew could be repaired.

Once powered on, nothing; only a quite hum and click from the power supply area. The Floppy drive does not power up and the Hard disk drive does not spin up, so it must be an issue with the power supply. Inside I found the very most exciting component that I could have hoped for: The Apple IIe card! This particular daughter card is used to emulate an Apple IIe and an array of other daughter cards that an Apple IIe owner may install. Together with the upgraded processor and extra RAM, this machine will emulate an Apple IIe better than one itself can!...Once working of course.

It turns out that after exploring the more obvious issue, the power supply only measures voltages of +0.5v, +0.7v and -0.5v when it must supply +5v, +12v and -5v. It would seem that I now know the reason why none of the drives power on. Inspecting the motherboard though .. proved to be even more disappointing. All of the SMT capacitors are leaking and have corroded many contacts and pins of surrounding components. Even if I get the power supply running at full power, the board may not work!


Image Hosted by ImageShack.us Image Hosted by ImageShack.us Image Hosted by ImageShack.us

The second image is of the Apple IIe card which has two caps which are also leaking. Luckily they have done less damage than the others. Each one of these will have to be replaced if I intend on having it last another 23 years. I will also have to get it working if I plan on doing a proper 'disassembly' on it.