6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sun Nov 24, 2024 4:03 am

All times are UTC




Post new topic Reply to topic  [ 212 posts ]  Go to page Previous  1 ... 5, 6, 7, 8, 9, 10, 11 ... 15  Next
Author Message
 Post subject:
PostPosted: Mon Apr 18, 2011 3:17 pm 
Offline

Joined: Thu Mar 31, 2011 8:09 pm
Posts: 85
Datasheets - indeed, I'll check when I get the part..

I have ordered one from an ebay supplier (does not specify the model number so I can't tell what it really is), and some more 74LS04 ICs (cheap) becuae I reckon that is the very last thing it could be.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Apr 18, 2011 3:26 pm 
Offline

Joined: Mon Mar 02, 2009 7:27 pm
Posts: 3258
Location: NC, USA
470 ohms seems very low, doesn't it?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Apr 18, 2011 3:33 pm 
Offline

Joined: Thu Mar 31, 2011 8:09 pm
Posts: 85
ElEctric_EyE wrote:
470 ohms seems very low, doesn't it?


That is what it says on the schematic... and we know it works, someone else built one (well, two) without problems.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Apr 18, 2011 3:37 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10986
Location: England
I notice two things: all the Vcc and Vss/Gnd connections are missing from the diagrams, except for signal tie-offs, and also the pins are labelled Vss or Gnd according to the part conventions, which has certainly tripped me up in the past (confusing Vcc and Vss)

Now, that shouldn't affect the oscillator. The only thing that could be wrong there is putting in the '04 the wrong way around. Which again, is an easy enough mistake.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Apr 18, 2011 3:52 pm 
Offline

Joined: Thu Mar 31, 2011 8:09 pm
Posts: 85
Here are pictures of the clock circuit on veroboard. If you see any mistakes, let me know.


UK101 Clock gen top
Image

UK101 clock gen bottom
Image


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Apr 18, 2011 4:02 pm 
Offline

Joined: Thu Mar 31, 2011 8:09 pm
Posts: 85
Another question. When the 74LS04 inverter gate is not connected, should it output low, high or anything? As far as I can tell, this one is OK, but it seems to output low when there's no input. However, when high or low is applied to the inputs, all are inverting correctly.

And another one, what should the inverter inputs be when this circuit is connected? They should be high or low, right? So if I test this without the IC in place, I should get an initial signal on the input.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Apr 18, 2011 4:03 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10986
Location: England
barring shorts between adjacent tracks, I think you're fine. Which is somewhat baffling. Unless of course it turns out that the circuit is "obviously" wrong! leeeeee could confirm or deny that.

I did find a pdf [previously] which had a crystal and a pair of inverters (because after all a pair of inverters is an odd number if you're building an oscillator) and it placed a capacitor between the inverters:

Attachment:
File comment: From: AN-400 A Study Of The Crystal Oscillator For CMOS-COPS
xtalosc2inv-B.png
xtalosc2inv-B.png [ 23.61 KiB | Viewed 1408 times ]


[previously, dead image:
Image
]

Edit: looking at this diagram, it's clear that depending on where you probe for the clock, you might be loading up the crystal, which might kill the oscillation. So try to probe after the buffer.


Last edited by BigEd on Thu Sep 15, 2016 6:44 am, edited 2 times in total.

Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Apr 18, 2011 4:23 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10986
Location: England
For reference, here's the oscillator circuit from a scan of the original uk101 manual - it's rather like the micro-uk101 as you might expect:

Attachment:
File comment: Compukit UK101 oscillator circuit
xtalosc2invuk101-B.png
xtalosc2invuk101-B.png [ 27.51 KiB | Viewed 1408 times ]


[previously, dead image:
Image
]


Last edited by BigEd on Thu Sep 15, 2016 6:44 am, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Apr 18, 2011 4:25 pm 
Offline

Joined: Thu Mar 31, 2011 8:09 pm
Posts: 85
Ed, the first circuit "CMOS 2 inverter oscillator" is giving me 23.94mhz at the (buffered) output, is that correct? It's supposed to be 8. How can it oscillate faster than the crystal?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Apr 18, 2011 4:32 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10986
Location: England
You mean something is actually oscillating? That's got to be a success, at any frequency!

It is a bit on the high side though. Presumably the third harmonic, or something like that.

You could use the '93 as a divide-by-16 readily enough, but that still leaves you with 1.5MHz, presumably too fast for this computer to compute? Or did you have the headroom in place for 2MHz?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Apr 18, 2011 4:36 pm 
Offline

Joined: Thu Mar 31, 2011 8:09 pm
Posts: 85
BigEd wrote:
You mean something is actually oscillating? That's got to be a success, at any frequency!

It is a bit on the high side though. Presumably the third harmonic, or something like that.

You could use the '93 as a divide-by-16 readily enough, but that still leaves you with 1.5MHz, presumably too fast for this computer to compute? Or did you have the headroom in place for 2MHz?


Well, the CPU is rated 2Mhz but I'm not sure about all the other components. And the ACIA needs a certain frquency to get 19200 baud - this will not work as it is being driven by the divider circuit (itself derived from the crystal).


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Apr 18, 2011 4:58 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10986
Location: England
All is not lost... The 4-bit counter presently is fed by 4MHz and resets at a count of 12. If instead it is fed by 3MHz and reset at a count of 9 then you get 18750 baud which is about 2.5% adrift - might be OK.

Before that though you could presumably check out the trusty NOP generator with a 1.5MHz clock and then perhaps some test code in a ROM?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Apr 18, 2011 5:00 pm 
Offline

Joined: Thu Mar 31, 2011 8:09 pm
Posts: 85
Well, I measured 3Mhz at the CPU's PhiIn so I think it will not work.

The only other solution I can think of (apart from getting the clock to work properly) would be to use the unused counter in the LS93. At the moment, the first divider is unused (that's why InA is unconnected). If I feed the clock signal to InA and connect the Qa output to InB that would divide by 2 and give me 1.5Mhz.

What do you reckon?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Apr 18, 2011 5:12 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10986
Location: England
Indeed, you need to rejig the use of the '93. You need to feed in the clock signal at pin 14 (InA/CKA), and then take pin 12(QA) to pin 1(InB/CKB) instead. That gives you an extra divide by 2. (Check a datasheet for 74LS93 - I'm referring to this one, third part shown.)


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Apr 18, 2011 5:14 pm 
Offline

Joined: Thu Mar 31, 2011 8:09 pm
Posts: 85
BigEd wrote:
Indeed, you need to rejig the use of the '93. You need to feed in the clock signal at pin 14 (InA/CKA), and then take pin 12(QA) to pin 1(InB/CKB) instead. That gives you an extra divide by 2. (Check a datasheet for 74LS93 - I'm referring to this one, third part shown.)


YAY!

I got it right!

:D


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 212 posts ]  Go to page Previous  1 ... 5, 6, 7, 8, 9, 10, 11 ... 15  Next

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 38 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: