6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sat Nov 23, 2024 6:19 pm

All times are UTC




Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: Fri Feb 03, 2012 10:20 pm 
Offline

Joined: Tue Jul 05, 2005 7:08 pm
Posts: 1043
Location: near Heidelberg, Germany
Mike Chambers wrote:
but when phase 2 goes low, the correct data is still on the bus isn't it? i'm am using both phase 2 and the condition of the correct address of the 373 latch being on the lines, through an AND gate to qualify the latch to grab whats on the bus.

i have yet to see any incorrect data get sent out to the parallel port.


The problem is not when phi2 goes low, it is when phi2 goes high. The data bus is NOT valid at this time. The '373 reads incorrect data from the bus, outputs it. Then before phi2 gets low again, the cpu outputs correct data, the '373 fetches it and displays it of course. So with a static measurement (after the cycle) you will never see the wrong data.
But look at it with a 'scope, you will see the glitches.

You could check that with a simple flip-flop: take a '74, connect its /Q to D so it toggles its state on every clock transition (IIRC low-high). Then connect its clock input to a '373 output. Now repeatedly write the same(!) value to the '373. You would expect that the '74 output will not change. However, you will notice that some times the '74 output changes. This is because the it gets a glitch from when phi2 goes high until the cpu puts the correct data on the bus.

These glitches are horribly hard to find and I would try to avoid them at all cost actually.

Of course, if all you do is light some LEDs, and not try to control something else, you should be ok.

André


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Feb 07, 2012 12:55 am 
Offline

Joined: Mon Dec 12, 2011 12:57 am
Posts: 12
ah, i see. i'll have to do that then. thanks for the info. and i'm not using LEDs to test anymore, i've actually using monitor firmware i've been writing and i connect to a laptop's parallel port as an I/O terminal. i guess i've been lucky so far, i haven't seen any problems but i will use an LS74 on there.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2

All times are UTC


Who is online

Users browsing this forum: BillO and 17 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: