Page 5 of 5

Re: Interfacing stock 6502 to TMS9918

Posted: Sun Mar 11, 2018 12:19 am
by nerdy1
[]

Re: Interfacing stock 6502 to TMS9918

Posted: Sun Mar 18, 2018 7:03 am
by nerdy1
[]

Re: Interfacing stock 6502 to TMS9918

Posted: Sun Mar 18, 2018 8:57 am
by GARTHWILSON
Quote:
My CPU is NMOS so my logic ICs are currently TTL [ ... ] I am assuming they intend the designer to use a 74LS04 or perhaps 74ALS04 as the logic IC, because the schematic was created in 1982. That would mean the outputs of the NOT gates would be TTL.
74HC and 74HCT came out in 1982. I would use 74HCT. Its input levels are compatible with TTL levels (hence the "T"), but it takes a lot less current than TTL, and its wider-ranging output voltage is not a problem; in fact, 74HC(T)'s fanout is 10 LSTTL loads.

Re: Interfacing stock 6502 to TMS9918

Posted: Sun Mar 18, 2018 9:09 am
by Rob Finch
The gates with pull-up resistors might be open-collector devices like the 74LS06. Could it be possible that the oscillator also drives the crystal pins in an input/output fashion ? In which case open collector logic might be needed. 470 ohms is a fairly strong pull-up. The spec sheet does say the oscillator uses the crystal in parallel resonant mode.

Re: Interfacing stock 6502 to TMS9918

Posted: Sun Mar 18, 2018 9:54 am
by nerdy1
[]

Re: Interfacing stock 6502 to TMS9918

Posted: Sun Mar 18, 2018 11:49 am
by BigEd
Hang on, if you're using a clock generator, you don't need to worry about resonance - and I thought you said that was your preference?

I would expect the pullups are needed, and are strong, because the expectation was that the inverters are TTL and don't pull to the rail. So if you choose a logic family which does pull to the rail, you can probably do without the pullups.

It might be important that the two inputs are driven as shown, which is to say with one gate delay of lag, so I'd suggest you do the same. Driving with an actual two phase clock might be worse, in this case.

Re: Interfacing stock 6502 to TMS9918

Posted: Sun Mar 18, 2018 6:51 pm
by Martin A
You could try just connecting a timing crystal across the 2 XTAL pins without any extra components.

See the schematic from the MTX500/512.
Slightly blurry shot of the TMS9929A section of the MTX500 schematic
Slightly blurry shot of the TMS9929A section of the MTX500 schematic
NB The MTX is a Z80 system, but I don't think that makes any difference.

Re: Interfacing stock 6502 to TMS9918

Posted: Sun Mar 18, 2018 8:18 pm
by dolomiah
Hi folks. I have previously posted on this same thread quite some time ago, but have a stable working 65c02 and TMS9918a set up.

I have a 21.47727 Mhz crystal, struggled to get hold of a 10.738635 one - they seem to be difficult to find in the UK at least.

So I used that crystal as the master clock for my breadboard, fed in to a 74HCT161 counter and used Q1 and Q3 outputs to drive the TMS9918a (Q1) and 65c02 (Q3). In fact I use Q3 (approximately 2.68 MHz) as the clock for everything else as well as the 65c02 (6522, 6551).

The TMS9918 can be driven with an external signal, but needs clock signal and its inverse to be fed in to XTAL1 and XTAL2 - a NAND gate from a 74HCT00 achieves that for me so I get a clean non-overlapping Q1 and /Q1 signal.

I have never really understood what is going on with clock circuits - they seem to be the most analogue of all the sub-systems on my homebrew. So I followed various schematics on the internet (and this forum too).

Anyway, I attach a photo of the clock circuit, with a couple of annotations, hope it helps a little..

Re: Interfacing stock 6502 to TMS9918

Posted: Sun Mar 18, 2018 11:17 pm
by nerdy1
[]

Re: Interfacing stock 6502 to TMS9918

Posted: Mon Mar 26, 2018 9:17 pm
by nerdy1
[]

Re: Interfacing stock 6502 to TMS9918

Posted: Tue Mar 27, 2018 5:26 pm
by Martin A
Maybe connect A12 to G2B, so that you're only decoding a 4k area of memory Axxx for the VDP, instead of 8k (A000-BFFF) ?

Re: Interfacing stock 6502 to TMS9918

Posted: Wed Mar 28, 2018 2:03 pm
by Rob Finch
IIRC the 9918 series only requires a couple of I/O ports. If you are using only a single active low output you could consider something like the 74HCT688 which has a ton more inputs than the '138. Useful for resolving address ranges down to a finer resolution.

Re: Interfacing stock 6502 to TMS9918

Posted: Mon Aug 20, 2018 2:49 am
by rpiguy2
This fellow looks to have successfully interfaced the 9918 with the 6502 on his SBC:

https://www.youtube.com/watch?v=9bIwD_OyiA4

Apologies if this is someone already here :-)

If so, great work and love the white PCB.