What UART should i use for my first computer?

Building your first 6502-based project? We'll help you get started here.
jmthompson
Posts: 127
Joined: 30 Dec 2017
Location: Detroit, Michigan, USA
Contact:

Re: What UART should i use for my first computer?

Post by jmthompson »

cbmeeks wrote:
One option that might help the beginner is look for a PLCC44 to DIP44 converter on eBay. These are dirt cheap and will allow you to plug it in like a normal DIP...although they are longer in that they have 4 extra pins. Just be careful and read closely. I bought some once and didn't realize it was a PLCC44 to DIP40 converter (it dropped four pins).
I'm a bit late to this party, but I'd just like to add that I've had good luck with these Proto-Advantage adapters. They're a hair under $15 on Amazon and since they have no socket they don't cover the whole dang breadboard width. They're also a good way to practice your surface mount soldering as you'll need to attach not only the chip but also the surface mount pin headers along the bottom.
Attachments
plcc44.jpg
TomC
Posts: 22
Joined: 21 Oct 2010
Location: US

Re: What UART should i use for my first computer?

Post by TomC »

I'm also a bit late but wanted to note that Technological Arts (http://www.technologicalarts.ca/) offers some very nice PLCC adapters. The socket is vertically mounted so the whole thing takes the same space as a very long IC. They're working on a new site so you can't buy just now but I've bought a few of their adapters and found them well-made.
Attachments
Adapters3.jpg
Adapters3.jpg (8.58 KiB) Viewed 1747 times
User avatar
Dr Jefyll
Posts: 3525
Joined: 11 Dec 2009
Location: Ontario, Canada
Contact:

Re: What UART should i use for my first computer?

Post by Dr Jefyll »

TomC wrote:
They're working on a new site so you can't buy just now
Thanks for posting, TomC. I'm pretty sure I've seen these adapters on the Digikey site, so that's an alternative source.

The same goes for the Proto-Advantage adapters mentioned by jmthompson in the preceding post.

For this sort of product, two categories especially worth browsing are:
-- Jeff
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html
User avatar
Proxy
Posts: 746
Joined: 03 Aug 2018
Location: Germany

Re: What UART should i use for my first computer?

Post by Proxy »

just throwing my 2 sents into this.... for the simpliest possible Serial Interface to a modern machine, the UM245R is pretty good.
i used this thing in my very first breadboard computer, with a Z80 running at 10MHz. it can also reliably handle a 65C02 running at 16MHz without wait states.

it's a 5V/3.3V breadboard friendly breakout board for the FT245R, basically a complete UART and UART to USB Adpater in a single chip. (the board also has a USB-B Connector)
it's the most simplistic option available. all the CPU can do is read bytes from the receiving FIFO, or write bytes into the sending FIFO. there are also 2 output signals that can tell the system if there is space in the sending FIFO (TXE = 0) and if the receiving FIFO has data in it (RXF = 0).
but other than that, it has no extra features. no interrupts, timers, etc. it's purely for communication. (hooking it up through a 65C22 would make it more feature rich. allowing for interrupts when data comes in, etc)
and besides the decoding logic to actually access it, there is nothing extra required to get it running, just the 8 bit data bus and the 4 control signals (RD, WR, TXE, and RXF).
the baud rate, start/stop bits, etc can be changed on your PC when you connect it via USB.

sorry i just really love these single chip 8-bit to USB chips from FTDI. they are so damn convenient.
User avatar
pjeaton
Posts: 23
Joined: 23 Feb 2005
Location: Zurich, Switzerland

Re: What UART should i use for my first computer?

Post by pjeaton »

+1 for the (UM)FT245R. I'm using it on my 6809-based Vectrex and it works great, right up to 921,600 as a Forth terminal on my PC via USB.

Importantly, it has easy driver install and no hangups, unlike several other TTL to USB interfaces I've used.

You've sort of glossed over one of the key advantages it has; built in TX and RX buffers so, whilst you can use it via an interrupt, you don't need to because that's all handled on-chip, you can just poll it occasionally and empty the buffers accordingly.

My minimal decoding for the control lines is one dual 4-input NAND and one hex inverter, because that's what was it the box at the time, it could be done more efficiently with a '138 or '139.
P*h*i*l*l*i*p EEaattoon in real life
User avatar
barrym95838
Posts: 2056
Joined: 30 Jun 2013
Location: Sacramento, CA, USA

Re: What UART should i use for my first computer?

Post by barrym95838 »

pjeaton wrote:
+1 for the (UM)FT245R. I'm using it on my 6809-based Vectrex and it works great, right up to 921,600 as a Forth terminal on my PC via USB.
I confess that I'm not too good at interpreting data sheets. Can you use OSCO to drive an external FF to clock the rest of your device?

[Edit: I see that it's N/C on the UM245R DIP module, so never mind ...]
Got a kilobyte lying fallow in your 65xx's memory map? Sprinkle some VTL02C on it and see how it grows on you!

Mike B. (about me) (learning how to github)
User avatar
cjs
Posts: 759
Joined: 01 Dec 2018
Location: Tokyo, Japan
Contact:

Re: What UART should i use for my first computer?

Post by cjs »

barrym95838 wrote:
I confess that I'm not too good at interpreting data sheets. Can you use OSCO to drive an external FF to clock the rest of your device?

[Edit: I see that it's N/C on the UM245R DIP module, so never mind ...]
It would be easy enough to connect up with a jumper wire, since it's not far from a couple of N/C pins on the module.
FT245R-module-pins.jpg
But if you're wanting to see if the internal oscillator there drives the output pin when an external one is not used (which isn't entirely clear from the data sheet, but why would they have the output if it did not?) you'd have to make sure it's programmed to use the internal one (and has >4 V power), which I suspect, from the presence of the crystal on that board, it's not.
Curt J. Sampson - github.com/0cjs
User avatar
Individual_Solid
Posts: 72
Joined: 25 Jun 2021
Location: Portland, Oregon, USA
Contact:

Re: What UART should i use for my first computer?

Post by Individual_Solid »

Folks using the FT254RL (in UM form or just the chip) - how are you address decoding the control lines? Particularly the TxE and RxE. I'm currently struggling over a compact circuit over on page three/four of this thread.
graeme.harker
Posts: 10
Joined: 18 Aug 2021

Re: What UART should i use for my first computer?

Post by graeme.harker »

Individual_Solid wrote:
Folks using the FT254RL (in UM form or just the chip) - how are you address decoding the control lines? Particularly the TxE and RxE. I'm currently struggling over a compact circuit over on page three/four of this thread.
I put mine on a VIA
User avatar
Proxy
Posts: 746
Joined: 03 Aug 2018
Location: Germany

Re: What UART should i use for my first computer?

Post by Proxy »

Individual_Solid wrote:
Folks using the FT254RL (in UM form or just the chip) - how are you address decoding the control lines? Particularly the TxE and RxE. I'm currently struggling over a compact circuit over on page three/four of this thread.
I'm just using an SN74x541 with TXE on A0, and RXF on A1 with the rest connected to a pull-up resistor array. B0-7 are just connected to the CPU Data Bus.
the actual address decoding for it and the FT Chip is done by an ATF1502/1504 CPLD. it only takes 3 output pins for both (RD and ~WR for the FT, and ~OE for the 541).
User avatar
pjeaton
Posts: 23
Joined: 23 Feb 2005
Location: Zurich, Switzerland

Re: What UART should i use for my first computer?

Post by pjeaton »

Individual_Solid wrote:
Folks using the FT254RL (in UM form or just the chip) - how are you address decoding the control lines? Particularly the TxE and RxE. I'm currently struggling over a compact circuit over on page three/four of this thread.
I'm using a Dual 4-input NAND and a 4 Invertors for decoding RD and !WR, for RxE I'm using a 6522 VIA input, I'm not using TxE.
P*h*i*l*l*i*p EEaattoon in real life
boondaburrah
Posts: 2
Joined: 06 Oct 2021

Re: What UART should i use for my first computer?

Post by boondaburrah »

I'm using a 74HC245 as a separate I/O device to put the status lines on the data bus whenever I select it and PHI2 goes high. Of course this will cause a collision if you ever try to write to the status lines, but the answer to that is: don't. Seems fine for a first build but I'll probably use a real UART later. The FT245R has been great for just getting my beginner compy off the ground though.
User avatar
BigEd
Posts: 11463
Joined: 11 Dec 2008
Location: England
Contact:

Re: What UART should i use for my first computer?

Post by BigEd »

Welcome to the forum!
Post Reply