Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion?

Reply
 
LinkBack Thread Tools Display Modes
Old 19th June 2006, 11:27 PM   (permalink)
Default Very strange problem with a crystal oscillator

Hello

I've been hours trying to solve a problem, with no luck.
I've got a 6502 CPU system feed by a 27MHz clock.
I bought a 32MHz crystal oscillator to raise the speed (something I already did some time ago with another 32MHz oscillator sucessfully) , the one with 4 pins; power, GND and output, with the orher one not conected.

The strange thing is it does not work now with this new oscillator.
Well, it is strange because it DOES work when I hook a logic probe of my logic analyzer to its output. System runs fine. 100%
As soon as I disconect the probe, it crashes...
When the logic probe is conected, it measures 32MHz exactly.

I'm really stuck.. please, any help!?
patroclus is offline  
Old 20th June 2006, 12:32 AM   (permalink)
Default

Did you check the soldering? Or was it a plug in device? Sounds like a dry joint but if you did not have to solder it, make sure all the pins are contacting correctly........ Thats all I can think off for now.............. Maybe you need a decupling cap on it, and the prob makes it work because it sees a capacitance
__________________
I Think!! Therefore I get a head-ache and drain bamage........
rigdoctor99 is offline  
Old 20th June 2006, 04:14 AM   (permalink)
Default

Sounds like it doesn't have sufficient load capacitance. Check the datasheet for the oscillator. Or simply try swapping out whats there already for something slightly more.
tulit is offline  
Old 20th June 2006, 04:51 AM   (permalink)
Default

Umm isn't the 6502 a 2MHz cpu (using a 4MHz crystal)? The 8088 only ran at 4.58 (using a 14MHz crystal) and the 8088 was a much newer CPU at the time.

Heck a 80486 maxed out at 100MHz and that was clock doubled.

27MHz sound way too fast for a stock 6502
__________________
Bill
Home of the
Firefly PIC Tutor
Inchworm ICD2

http://www.blueroomelectronics.com
William At MyBlueRoom is offline  
Old 20th June 2006, 08:34 AM   (permalink)
Default

The oscillator does seem a bit fast for a 6502!!!

But regarding the stopping and starting, some of those 4pin oscillators use the 4th pin as an enable.
Could it be (dont ask me how) that when the logic probe is connected to the output, the 4th pin drifts to the enabled state and the oscillator gives an output?

JimB
__________________
Experience is directly proportional to the value of the equipment ruined.
JimB is online now  
Old 20th June 2006, 09:25 AM   (permalink)
Default

This 6502 feed from an external clock and then divides internally by 12.
So, stock 27MHz is 2,25MHz
I try to pull it up to 2,66MHz. It's OK, as I've done it previosly with great results.

But this oscillator does not seem to be working properly.
I tried to put a 10pF capacitor between clk output and ground.
I tried to put a 100kohm resistor between clk output and ground.
Nothing changed.
The output is enabled.

Why the hell should it work 100% fine when a logic probe is conected to ANY of its pins (power, ground or output??)


I don't know what else to try, and I have no replacement here now..
patroclus is offline  
Old 20th June 2006, 09:38 AM   (permalink)
Default

Quote:
Originally Posted by patroclus
This 6502 feed from an external clock and then divides internally by 12.
As I recall the 6502 divided by a MUCH lower value, four seems to sound vaguely familiar? - although perhaps I'm thinking PIC?.

The divide by 12 sounds more like a Z80, which was why a 6502 was as fast as a Z80 while using a much lower clock crystal.

I'll check when I get home, I still have all my old Mictotan 65 gear!.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Old 20th June 2006, 09:44 AM   (permalink)
Default

this 6502 is a slight modification used in Nintendo NES videogame console.
The stock NES clock is 21MHz, and 6502 runs at 1.75MHz according to specs docs.
patroclus is offline  
Old 20th June 2006, 10:36 AM   (permalink)
Default

Right, so it's NOT actually a 6502! - unless the clock is divided down before it's fed to the processor?.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Old 20th June 2006, 10:43 AM   (permalink)
Default

It sounds like your logic probe is changing the functioning of the board, probably changing the potential of the pin, i don't really know much about crystal oscillators, you could try to measure the potential of your logic probe with a digital volt meter, and then apply the same potential to the crystal (through a large resistor)

hope this helps.
ZIGGY_DAN is offline  
Old 20th June 2006, 10:43 AM   (permalink)
Default

It is a 6502, but this version internally divides clock by 12.
I know it is 6502 as I made some programs for it.
patroclus is offline  
Old 20th June 2006, 10:54 AM   (permalink)
Default

Quote:
Originally Posted by patroclus
It is a 6502, but this version internally divides clock by 12.
I know it is 6502 as I made some programs for it.
You mean it runs 6502 code! - this doesn't mean it's a 6502, does it say 6502 on the chip?.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Old 20th June 2006, 12:22 PM   (permalink)
Default

It isn't a standar 6502. It is a slightly modified version.
But the problem is that last time I did this it worked just fine. same circuit, same board, just different oscillator, but both of them 32MHz...
Why does it work well only when probe is conected???!!
patroclus is offline  
Old 20th June 2006, 12:43 PM   (permalink)
Default

As suggested, perhaps the extra capacitance?, perhaps injecting noise into the oscillator?, perhaps it's loading the circuit?.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Old 20th June 2006, 01:26 PM   (permalink)
Default

I'm not sure if I understand. should I try to add capacitance or something?? I already tried to add 10pF parallel capacitor between output and GND...
patroclus is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 11:54 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

eXTReMe Tracker