Showing posts with label Oric-1. Show all posts
Showing posts with label Oric-1. Show all posts

Sunday, 18 August 2019

Oric Atmos and Oric-1 Repairs

This is an old post, preserved for reference.
The products and services mentioned within are no longer available.

This week, an Oric Atmos was sent it. Couldn't find anything wrong with it. Sent it back.
There you are, nice short blog post. Thank you and good night.

Oh, you want more? OK. Well, here follows a comparison between the Oric Atmos and it's predecessor, the Oric-1, including a couple of repairs that didn't justify a writeup themselves.
When looking at photographs separately, I always thought the Oric Atmos was a larger, more substantial machine. I knew that it used the same board as the Oric-1, but I had thought it was along the lines of the Spectrum and Spectrum+, where the later machine is quite a bit larger than the original. When an Oric Atmos arrived on my desk, the back moulding looked very familiar.
It appeared to be the same as the Oric-1, only a tasteful orange colour rather than beige. I dug out an Oric-1 for comparison, and indeed they are the same size.
The front is different though. The Atmos has larger, nicer looking keys, although side by side, the Oric-1 was actually nicer to type on. Hands down looses to the Atmos on looks though. If you are going to call your company Tangerine, why not go for it!
Inside you would be hard pushed to spot the difference, both are issue 4 Oric-1 boards, one mid 1983, one late 1983.
With the boards removed, the keyboards beneath look different, but use the same connector. The Atmos has one extra key (FCTN) sitting at an unused position in the keyboard matrix.
Looking a the boards, the main difference is the Oric-1 has ORIC BASIC V1.0 ROM.
The Oric Atmos has ORIC BASIC V1.1 ROM.
The only other noticeable difference is the inverter chip which forms the main oscillator is socketed on the Atmos board, and a 74F04 is fitted.
This looks factory, so maybe they were in the process of changing that from the 74LS04 on the slightly earlier board.
The first of these repairs turned out to be quite straightforward. The problem was it was giving an intermittent picture via the RF output. When I tried it, I found the modulator was wiggling up and down quite a bit
Looking at the board, it was clear the solder around the two mounting posts had cracked and was making intermittent contact. A bit of flux and fresh solder and we're back in service.
The second repair was a little more complicated. This one wasn't booting. That can be many things, the CPU hasn't made it as far as clearing the screen and putting up the ready prompt. It could be the RAM, if there is no stack or zero page, the CPU couldn't complete the boot process. There are eight 64Kx1 chips, although only 48K is used as the top 16K is used for the ROM and there is no paging mechanism.
It could be the ROM, if no instructions or faulty instructions are read, the CPU won't know what to do. This was an earlier board with dual 8K EPROMs rather than the later 16K mask ROMs seen above. The EPROMs were socketed, so I took those off and verified their contents, and they were fine.
Or it could be the CPU was bad, or badly fed. I normally start by checking power, clock and reset. Power was there, and even though the Oric has a pretty poor reset circuit (see a previous repair where I fit a 'better' one), there was a brief reset pulse.  The clock appeared to be running, although it looked a bit rough. I traced it back to the 74LS04 which formed the main 12MHz oscillator, and as soon as I touched the pin with the oscilloscope probe, it came to life and I got a ready screen.
I had seen this same thing happen before on a Harlequin ZX Spectrum clone. I power cycled it and again got nothing, probed pin 13 on the chip and it booted. Rather than a 74LS04, I replaced it with a 74HCT04, as I had found those were good for use in oscillators when I tested various chips for my CPU / Clock / Reset board for the RC2014.
With that replaced, it is now working fine. I wonder if there had been similar problems in the field in 1983 which had caused them to change the chip to a 74F04 seen on the Atmos board?
I installed a diagnostics ROM and gave the machine a bit of a run through and it passed with flying colours. All eight of them.
All that was left was to load up a selection of games and do a bit of testing.
Oh, and the Atmos, well, I suggested a Retro Computer Shack SCART cable, as I think the problem was down to them being unable to tune into the RF on whatever modern TV set they were using.
(note the neatly labelled connectors on those leads, would have helped if the owner of the Amstrad CPC 6128 from last week had got one of them instead)

Sunday, 22 April 2018

Oric-1 Repair Part 2 - Power and Video

This is an old post, preserved for reference.
The products and services mentioned within are no longer available.

A slightly belated follow up to my previous Oric 1 Repair post, which covered replacing some faulty parts and fixing the reset circuitry.
That Oric-1 had arrived with the power supply regulator bypassed, so the input was 5V DC only.
The arrangement on the Oric is unusual, in that to take 9V DC down to 5V DC it uses a 7905 regulator, rather than the usual 7805. The 7905 is a negative regulator, so is inserted in the 0V line.

Other than maybe an economic reason, there doesn't seem to be a good technical reason for this. Indeed, there are several against it. This arrangement means that with 9V DC input, the ground rail of the Oric is around 4V DC relative to the input, and if the power supply used happened to be grounded to mains earth, and you plugged it into a TV or cassette recorder which was also grounded, you would be shorting out the regulator and feeding the logic with 9V. The same could happen if you used a power supply splitter to split your 9V supply to drive a cassette recorder or small TV as well as the Oric. Not an unreasonable thing to do, but again it would be shorting out the ground rail.
Normally, the 7905 (or a 2905 which is the same thing) is mounted with a small heatsink. This runs very warm, so it is a good idea to add more metalwork to help dissipate the heat, or replace it with a DC-DC converter.
There are many 7805 replacements to choose from, and on things like the ZX Spectrum, these are a worth while upgrade. Here using the Traco Power TSR-1-2450. The Oric is a little more complicated, as it needs the 7905 version. There aren't as many to choose from, so I got a TSN 1-2450, the N being the import part of the name, meaning negative.
When I ordered those (which was a year or two ago), I couldn't get one with right angled legs, but I think they are available now. Being less common, these were about three times the price of the positive version, but I wanted to avoid cutting tracks and messing up the board to try to fit a positive version.
To fit that, I soldered it to some 0.1" header and laid it flat on the board. With that fitted, I could remove the '5V DC' warning stickers I had placed on the Oric and connect a 9V DC centre positive supply to it. That's not ideal, as I use a lot of centre negative supplies, for the ZX Spectrum, Commodore 16, Minstrel ZX80 clone etc.
Next to be addressed was the video output. I had been using a temporary composite video modification, but I wanted to use the RGB output. As usual in these cases, rather than mess around trying to work out pinouts and if resistors are required etc. I ordered a lead from Retro Computer Shack.
This one handled the SCART RGB switching voltage required by tapping into the Oric power, the power supply plugging into a short cable connected to the DIN plug, and another short cable going off to power the Oric.
I took the opportunity to make a small change to the lead. Since the power supply was connected to this lead, I swapped the wires around on the DIN plug, and made the input jack 9V DC centre negative. I updated the label on the DC input jack to make it clear.
This meant that without having to modify the Oric, I could use my normal 9V DC centre negative supplies, such as the ones I get from The Future Was 8 Bit.
I did a similar thing to use these power supplies with ZX81s and Atari 2600s, I made a short 3.5mm jack to 2.1mm DC jack socket lead, wired centre negative.
OK, that the power and video side sorted. Time for some testing. Firstly with the test ROM I used last time.
That's looking very nice, now to try some games out. The Oric uses the same 7 pin DIN cassette connector as the BBC and the Acorn Electron, so I wired that up to an Acorn cassette deck.
Time to try loading, fingers crossed....
Surprisingly for an Oric, it loaded first time. Time to do some testing on Rodmän.

Sunday, 22 May 2016

Oric-1 Repair Part 1 - Reset circuitry

This is an old post, preserved for reference.
The products and services mentioned within are no longer available.

This is the first part of an Oric-1 repair. I'll describe it's initial condition again, and cut down that section in the previous article. The repair starts after that.
This Oric-1 was 'untested' in ebay terminology - i.e. broken. I never plug anything in before checking it out. This is a case in point as to why that is a good policy.
Inside there is a 3 terminal regulator missing. Not the usual 7805 I was expecting, but for some reason the Oric-1 uses a 7905 regulator. The 7905 is designed to take -9V DC and generate -5V. Here it's wired slightly oddly to take +9V and generate +5V. Why they didn't use the normal version I don't know.
This arrangement means that in normal operation the 0V rail inside the Oric is about 4V above the 0V rail of the power supply. If you happened to have a power supply where 0V was tied to mains earth (which is not unreasonable), and you plugged it into a TV or monitor with it's ground referenced to mains earth (which is quite possible), it would short out the 4V differential and the board would be running at 9V?
Anyway, it turns out a previous owner had bypassed the 7905 making it a 5V DC input  That would make more sense, as long as it is clearly labelled, which it wasn't. There are also a few other suspicious mods, various extra capacitors scattered around the board, and some strange resistor and capacitor mod to the power feed to the modulator.
The Oric-1 originally had two 8K ROM chips. Later models had a single 16k chip. The board was designed for either arrangement, it was fitted with either two 8K ROMs and IC11, a 74LS00, or a single ROM and LK2 jumper link. This looks to have started as the two ROM version and been modified to a single ROM. The ROM fitted is an Oric-1 BASIC 1.0 mask ROM, so another machine has been involved. That may now be running with the two original ROM chips from this board.
The CPU is also not original and I'd hazard a guess it came from a mark 1 VIC20, as it is a 1980's date code MOS part, and I've seen blue stickers like that on many VICs. Looking again at these pictures, the date codes are all over the place, from 1980 to 1984. Many of the chips look to have been replaced at some point.
Feeding the board with 5V directly, it is not working, there is a nice pattern on the TV though. In these sort of situations, I tend not to trust previous repair work, when there is flux residue on lots of chips on the back of the board, you know someone has been messing around in there.
When chips have been removed and resoldered without sockets, it is sometimes difficult to know if any tracks or through hole vias have been damaged. These is some damage around where the 74LS00 was removed and not replaced, so I decided the best option was to remove the other chips which had been replaced in the past and check out the board.
Once the board was cleaned up, it was actually in reasonable condition, so I fitted sockets for the larger chips. I tested and replaced the TTL chips that had been removed, all were fine. I also removed the two ROM sockets and fitted a single socket since I would never be using a pair of 8K ROMs.
There were only meant to be a few electrolytic capacitors on the board, so I replaced those. I may install a 7905 (with additional heatsinking) or a switch mode replacement, but at this point I just tidied up the 7905 bypass. A large label will be attached to the case if I leave it like that.
I installed a set of known working set of chips (thanks to @futurewas8bit for the ROM images).
Retesting again it was still just showing the black and white boxes.
Back to first principles, power, reset, clock. The power is OK, 5V getting to all the chips, a bit of ripple, but not much. I tried adding some additional capacitance, but it didn't change that much and still showed the black and white bars. Slightly better now, with a temporary composite video modification.
The clock was also fine, 1MHz into and out of the 6502. The reset pulse didn't seem to be there, it was going high too fast and the CPU was not resetting. I shorted out the reset pin and it booted up!
I tried many times, but could not get it to start up itself without forcing a reset. The reset circuitry on the Oric-1 is as basic as you can get, a capacitor is charged up by a resistor and the voltage across it should initially be low enough to start the reset cycle, and after a second or so be high enough to complete it and start the chip running.
This wasn't working. I had already replaced the 1uF capacitor, but that and the original had tested fine. I did manage to get it partially working with a 10uF capacitor, sometimes it would start after about 5 seconds, other times it wouldn't. I tried several versions of the 6502 and with both the 6522 and AY-3-8912 removed as they both have reset connections, but it wouldn't start up without a kick.
Most of the other 6502 based systems I can think of use a 555 timer based reset circuit. The same RC circuit is used to trigger the 555 and generate a clean reset pulse of a defined period. As far as I can see all the Commodore 65xx based systems from the very first KIM-1 through to the Commodore 128 all used a 555, or half of a 556 to generate a clean reset pulse.
The BBC micro also uses a similar circuit. It is only the original Atari 2600 I can think of that used the RC circuit. In the later 2600 Jr and 400/800 series at least they use a logic gate to buffer the R/C signal.
Apparently the original design for the Commodore 264 series (plus/4, C16 etc.) used an RC, but the 555 circuit was reinstated when Bil Herd took over that project. Given the 555 one shot timer circuit had survived through so many machines and cost reduction exercises in Commodore, a company not known for extravagant additional circuitry, it must be necessary?
But the Oric-1 only has an RC on the reset pin. It seemed the thing to do was to fit a 555 based one-shot time circuit to generate a reset pulse. The output of the 555 is high during the pulse, then low, so the plan was to use a transistor on the output to pull the reset line low, connected where the capacitor was, leaving the resistor in place to pull it high in normal operation.
I tried to think of a way of adding that neatly. but one 8 pin chip, three resistors, three capacitor and a transistor are a little difficult to hide. I then decided to cheat.
It's still an 8 pin chip, an ATtiny25 microcontroller, but doesn't need all the other items, I've added a decoupling capacitor, force of habit. That will be setup to enable pin PB1 as an output, and drive it low. Wait 100mS then set it as an input. The existing 2K2 pullup resistor will then pull reset line high, the CPU will start up and the microcontroller will go to sleep. I've set it as an input rather than driving it high so that reset can still be pulled low by an external add on or reset switch.
I think it took longer to write that description than it did to write the code itself. With the chip programmed and the fuses set for brown out detection and the low power internal 128KHz RC oscillator divided by 8, it shouldn't draw much power or create any noise. To fit it to the board, I looked to the pads left when IC11 was removed.
IC11 was a 74LS00 quad two input NAND gate used to derive the chip select for the ROM chips when two 8K ROMs were used. It has 5V and ground, and several connections that just connect to other gates in the same chip. Only three pins on the microcontroller are need. The two power pins, pin 4 is ground, pin 8 is VCC, are fixed, but of the remaining six, any could be used as the output, and the rest set as high impedance inputs.
Ground is in the right place with the chip aligned to the right and the other two pins are connected to pads that were wired only to other pins on IC11. No tracks to cut, just 5V to apply to pin 8 and I can use pin 6 as reset, which I wired directly to pin 40 on the 6502. I added the decoupling capacitor on the back, directly across the chip.
I did try to use a ATtiny44, a 14 pin chip that would have fitted the original footprint, but the pins were in the wrong placed and I didn't want to cut any tracks. I don't think you would spot it unless you were looking for it, fits in quite nicely. The original capacitor on the reset circuit (C21) is removed.
With that fitted, it is now starting up every time. I initially used a 1 second delay, and dropped it down to the 100mS shown above, and it still seems fine. That is about what the BBC used, the Commodore PET had 1 second, and the C64 500mS.
Next step is to try to reinstate the original chips, fix the power supply and improve the video output with a permanent composite video modification or RGB to SCART.

Update - see Part 2.