6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sun Sep 29, 2024 7:23 am

All times are UTC




Post new topic Reply to topic  [ 50 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
 Post subject:
PostPosted: Tue Oct 11, 2011 10:23 pm 
Offline
User avatar

Joined: Fri Dec 12, 2008 10:40 pm
Posts: 1005
Location: Canada
Dajgoro wrote:
I will try with the complementary circuit, i hope it will work...


I think this would require a minimum of 3 or 4transistors.


However, you could try a DTL circuit which should switch a bit faster:

Image


Or even this:

Image

_________________
Bill


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Oct 12, 2011 1:52 am 
Offline
User avatar

Joined: Mon Aug 08, 2011 2:48 pm
Posts: 808
Location: Croatia
Ill give it a try...


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Oct 12, 2011 5:09 am 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3367
Location: Ontario, Canada
Attachment:
Ideal_resistor_values.gif
Ideal_resistor_values.gif [ 875 Bytes | Viewed 346 times ]

I suspect something like this ought to be sufficient. And, using a FET as BillO suggested, you could even eliminate the base (gate) resistor. But what IC is driving this circuit? CMOS would be preferable, because you need enough voltage to turn on the FET.

Quote:
I replaced the 10k with 300ohm, and it works, but that is around 15ma...
1K is probably more reasonable (drawing about 5 ma). And, looking at the bright side, the current drain is not continuous -- it only happens during the pulse that enables your latch -- or am I mistaken? Is the inverter output normally high or normally low? If the output is normally high then average overall current consumption will be quite low.

-- Jeff


Last edited by Dr Jefyll on Sun Dec 15, 2013 12:19 am, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Oct 12, 2011 5:48 am 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8521
Location: Southern California
and, like bogax said, put a 68pF or so capacitor across that input resistor to speed up the gate (inverter), getting rid of the delay from the RxC time constant there, the "C" being the base capacitance.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Oct 12, 2011 2:53 pm 
Offline
User avatar

Joined: Mon Aug 08, 2011 2:48 pm
Posts: 808
Location: Croatia
Does anyone have an oscilloscope, if yes could you try this circuits and see how they perform... I can test them myself, but without an scope, i can't really determinate how reliable they are...


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Oct 12, 2011 11:14 pm 
Offline
User avatar

Joined: Fri Dec 12, 2008 10:40 pm
Posts: 1005
Location: Canada
It would be difficult for one of us to test as we do not know the full particulars about the drive and load characteristics in your circuit as well as your existing waveform.

_________________
Bill


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Oct 12, 2011 11:42 pm 
Offline
User avatar

Joined: Mon Aug 08, 2011 2:48 pm
Posts: 808
Location: Croatia
The output is generated by glue logic, 4081, and the input goes to the OE* of the latch...
Suppose that the input is an ideal clock... The result of the test should be the the max clock at which toes circuits operate reliable...


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Oct 13, 2011 5:31 am 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8521
Location: Southern California
4081? That one is not in my 4000-series data book; but 4000-series logic is extreeeeeemly slow! It is generally not suitable for glue logic for our home-made computers. If you're running that slowly though, maybe a home-made gate like that with resistors in the circuit could work ok. Computers have even been made with relays!


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Oct 13, 2011 2:12 pm 
Offline
User avatar

Joined: Mon Aug 08, 2011 2:48 pm
Posts: 808
Location: Croatia
GARTHWILSON wrote:
4081? That one is not in my 4000-series data book; but 4000-series logic is extreeeeeemly slow! It is generally not suitable for glue logic for our home-made computers. If you're running that slowly though, maybe a home-made gate like that with resistors in the circuit could work ok. Computers have even been made with relays!


The address decoding is done by 2 x 74LS139, the r/w* and phase 2 logic is done by one CD4069UBE and one HEF4081BE. And there is another one 4081, but just for the latches OE* and LE signas... When i put the UM6502 i can get the thing going up to 4MHz, and it still works(don't know how reliable, but it kinda works...).


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Oct 13, 2011 4:01 pm 
Offline
User avatar

Joined: Fri Dec 12, 2008 10:40 pm
Posts: 1005
Location: Canada
The 4081 is a quad dual input AND gate. Are you using all the gates in this package?

Another alternative would be to add another input diode to the DTL circuit to make a dual input nand gate. That way you could take the and gate from the 4081 out of the circuit altogether, even if you are using the other gates in the package.

Also traditional 4000 series logic is not really compatible with 74LS series. It might be causing some problems

_________________
Bill


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Oct 13, 2011 4:22 pm 
Offline
User avatar

Joined: Mon Aug 08, 2011 2:48 pm
Posts: 808
Location: Croatia
BillO wrote:
Also traditional 4000 series logic is not really compatible with 74LS series. It might be causing some problems

the 74LS and 4000 logic come in contact in only one point, and this is where the latches are enabled.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Oct 18, 2011 5:03 pm 
Offline
User avatar

Joined: Mon Aug 08, 2011 2:48 pm
Posts: 808
Location: Croatia
Today my university professor let me use their equipment.
First thing i hook up my 6502 sbc to the oscilloscope, and the signals look good (@ 1mhz). After that i cranked up the frequency to 4 mhz, and every signal turned into a sinusoidal form... But the sbc still kinda worked... :D
After that i took a function generator and went to test the circuits above...
Things started to loooook creepy...
The case where only one transistor and 2 resistor is used looks horrible...
When a 1 to 0 transition(@500khz) occurs first the output goes in a dampening oscillation (@~10x input freq), and by the time half of the 0 time pases then it starts rising...
The 2 transistors/diode circuits looks much better under the scope, but still way to far from being a CD4069...
I tested also a old RCA 4001, and it works fine at 1 mhz, to a max of(2-3mhz). My new ST 4081 AND gate works kinda well at 2-3 mhz...
The 4069 perform better than any other circuit(it is only a not gate :D).
At the end we ended up using a nice fpga board as a frequency source...
I think that 4000 series ic can be used for 1mhz circuits, but if the frequency is higher, things don't look very nice... So now i bought 74ls series for my mc68k sbc...
At the end i still don't know what i am going to do with that gate of mine... :)
What about tv vf transistors?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Oct 18, 2011 5:43 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8521
Location: Southern California
The oscillation is almost certainly from the construction method having wires too long and lots of stray inductance.

Depending on which transistor you ended up using, the slowness is probably from the RxC time constants. That's why the I²C interface method tops out at around 1MHz, and sometimes 400kHz. There are passive pull-ups on the two lines, clock and data, and everything else is open-drain circuits pulling them down. The key to speed is getting rid of the resistor(s). Notice how in the schematics BigEd posted at viewtopic.php?t=1634&postdays=0&postorder=asc&start=15 , all you see is MOSFETs--lots of them--but no resistors.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Oct 18, 2011 5:50 pm 
Offline
User avatar

Joined: Mon Aug 08, 2011 2:48 pm
Posts: 808
Location: Croatia
I noticed that wires that connected to my experimental board affected the measurements a bit...


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat Oct 22, 2011 3:12 am 
Offline
User avatar

Joined: Mon Aug 08, 2011 2:48 pm
Posts: 808
Location: Croatia
Just a quick question: How low can i get the cpu clock, so that the NMOS 6502 works reliable. I got it down to a few Hz, and it still worked fine, but is it reliable?


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 30 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: