6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Thu May 02, 2024 6:18 pm

All times are UTC




Post new topic Reply to topic  [ 25 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Thu Apr 18, 2024 11:18 am 
Offline

Joined: Mon Jan 19, 2004 12:49 pm
Posts: 676
Location: Potsdam, DE
BigDumbDinosaur wrote:
So when will we be seeing the TxD side of your Frankenstein UART?  :D


Well, since you ask... untested, but checks out on the simulator.

Attachment:
discrete_uart_tx.pdf [79.81 KiB]
Downloaded 15 times


This needs only three and three-quarter chips, apart from the clock generator.

It's a bit weird; I offset the data into the '165 so that I can tie the first bit low, to generate the start pulse. Remember that UART data is low bit first and the '165 sends bit 7 first, so that's the one that's tied low and the others are all reverse order.

At the same time, D7 is latched into a d-type and the output fed to the serial in during clock 0, then set by the counter during clock 1 to provide the stop bit, and remains high thereafter so Q7 remains high when the clock pulses stop.

Neil


Top
 Profile  
Reply with quote  
PostPosted: Thu Apr 18, 2024 3:15 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8169
Location: Midwestern USA
barnacle wrote:
BigDumbDinosaur wrote:
So when will we be seeing the TxD side of your Frankenstein UART?  :D

Well, since you ask... untested, but checks out on the simulator...

When you see how much silicon is required, it kind of makes you appreciate a real UART.  :D

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
PostPosted: Thu Apr 18, 2024 5:21 pm 
Offline

Joined: Mon Jan 19, 2004 12:49 pm
Posts: 676
Location: Potsdam, DE
Well indeed. For the real thing, you'd want rather more error checking, too, and probably at least one level of buffering, not to mention flow control and divisor selection... but sadly, small bus-driven UARTs appear to have gone the way of all flesh. Looks like most of what's out there is 16550-compatible parts with a zillion legs.

Still, if you don't have one to hand, either of these will work in a pinch. And at least they're understandable and don't need any programming :mrgreen:

Neil


Top
 Profile  
Reply with quote  
PostPosted: Fri Apr 19, 2024 1:37 am 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3350
Location: Ontario, Canada
barnacle wrote:
sadly, small bus-driven UARTs appear to have gone the way of all flesh. Looks like most of what's out there is 16550-compatible parts with a zillion legs.
Well, the 16is750 a 16550 register-compatible UART that's still around (although seemingly only in a HVQFN-24 package). :| But the reason it doesn't have a zillion legs is, it's not bus-driven. Instead, the host interface is SPI (or I2C, depending on whether a certain pin is tied high or low).

So, not quite the same animal. But it's possible to make a little module that plugs into a DIP site (as I did with this now-obsolete 24-TSSOP version)...

-- Jeff


Attachments:
16is750 module.JPG
16is750 module.JPG [ 119.26 KiB | Viewed 953 times ]

_________________
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html
Top
 Profile  
Reply with quote  
PostPosted: Fri Apr 19, 2024 8:27 pm 
Offline

Joined: Mon Jan 19, 2004 12:49 pm
Posts: 676
Location: Potsdam, DE
Yabbut... there's something a bit weird about using a serial interface to, um, talk to a serial interface... kinda non-intuitive.

Though I suppose the big advantage is the self-clocking nature of SPI (I'm not a fan of I2C).

I'd love a parallel memory interface with perhaps a couple of addresses for internal registers, one chip select, one interrupt output, rx and tx, none of the control signals - kind of a cut-down 6850 I suppose. Should fit easily in a 20 pin chip.

Neil


Top
 Profile  
Reply with quote  
PostPosted: Fri Apr 19, 2024 9:00 pm 
Offline

Joined: Mon Jan 19, 2004 12:49 pm
Posts: 676
Location: Potsdam, DE
Though I've just found an odd chip from HGSemi in China - HG82C51N (just about available and in stock at LCSC for a couple of dollars) which has a parallel interface though a maximum baud rate of 38.4k. There are a few spi controlled chips there from Chinese makers a lot cheaper than the usual suspects at Mouser and Digikey, too. They also offer the NXP SC16IS750 and some of its friends.

Neil


Top
 Profile  
Reply with quote  
PostPosted: Fri Apr 19, 2024 10:16 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8429
Location: Southern California
barnacle wrote:
Though I suppose the big advantage is the self-clocking nature of SPI (I'm not a fan of I2C).

SPI and I²C have somewhat different purposes and applications.  I like them both.  I had to go look though to see if there are any I²C UARTs, because I hadn't heard of any.  Yep, NXP has them, but they have I²C and SPI, both, in the same part.

_________________
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?


Top
 Profile  
Reply with quote  
PostPosted: Fri Apr 19, 2024 10:34 pm 
Offline

Joined: Fri Dec 21, 2018 1:05 am
Posts: 1076
Location: Albuquerque NM USA
ZDU0110.
Admittedly I have not got it to work. Need to look into it again. viewtopic.php?f=4&t=7899&p=105584&hilit=Zdu0110#p105531


Attachments:
59A163BC-1520-4B2B-A040-BBAC826D4F22.jpeg
59A163BC-1520-4B2B-A040-BBAC826D4F22.jpeg [ 1.13 MiB | Viewed 908 times ]
Top
 Profile  
Reply with quote  
PostPosted: Sat Apr 20, 2024 6:08 am 
Offline

Joined: Mon Jan 19, 2004 12:49 pm
Posts: 676
Location: Potsdam, DE
An interesting looking chip - though they do seem to have stuffed everything they can think of in there... but again, it's an I2C interface. At least it's claimed to have a 'works when turned on' function, but I found myself a little confused by their baud rate selection.

Neil


Top
 Profile  
Reply with quote  
PostPosted: Sun Apr 21, 2024 7:27 pm 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3350
Location: Ontario, Canada
barnacle wrote:
there's something a bit weird about using a serial interface to, um, talk to a serial interface...
I agree there's some irony there which may be amusing. :) But we know irony isn't seriously a factor when deciding how to provide UART capability in a given setting.

The pros and cons of various approaches will differ in importance according to circumstance. For example in a design which needs to be small, or which one intends to overclock, a parallel-interface UART loses points for complicating the address-decode glue, adding capacitance to the bus and increasing its length. In fact there'll be an incentive to de-populate the bus as much as possible (especially if it'll avoid wait states), so one might quite reasonably end up with just a single peripheral on the bus -- a VIA, perhaps -- which, using SPI, manages multiple I/O devices (not just the UART).

- Jeff

_________________
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html


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

All times are UTC


Who is online

Users browsing this forum: Yuri 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: