From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,95494845ddf9c97d X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-05-30 19:00:51 PST Path: gmd.de!nntp.gmd.de!xlink.net!howland.reston.ans.net!noc.near.net!usenet.elf.com!rpi!wilsonj From: wilsonj@alum01.its.rpi.edu (John Wilson) Newsgroups: comp.sys.dec Subject: Re: DEC 3000-300 serial port speed? Date: 31 May 1994 01:35:44 GMT Organization: Rensselaer Polytechnic Institute, Troy NY Message-ID: <2se49g$b7b@usenet.rpi.edu> References: <2sbdut$4mc@uuneo.neosoft.com> <2sck63$nkb@lyra.csx.cam.ac.uk> <2sdrdd$7cj@lyra.csx.cam.ac.uk> NNTP-Posting-Host: alum01.its.rpi.edu In article <2sdrdd$7cj@lyra.csx.cam.ac.uk>, Rupert Moss-Eccardt wrote: >I still maintain that if you blast huge rates of data at a PC serial port >it won't be able to take it. Mind you if you hide it in some protocol >such as SLIP, PPP etc then it won't show. What on earth are you talking about? Burying your data under SLIP or PPP makes the effective data rate (slightly) worse, not better. I don't see what's so hard to accept here. 115200bps is a pathetically slow data rate, supposing character-at-a-time interrupts in both directions that gives you 23,040 interrupts/second, which coincidentally is about the same interrupt rate commonly used to produce digitized sound over the built-in speaker, which people have been doing since long before the current crop of fast machines. Now divide by 16 if you're using the FIFOs on a 16550A, and we're talking under 1500 interrupts/second, for SUSTAINED 115.2kbps in both directions, which could potentially be cut in half if the ISR were sneaky about polling the "other" FIFO while servicing a FIFO interrupt. It's no wonder a Z80 is up to the job! Of course Z80 interrupt latency (starting an ISR as compared to executing any normal instruction) is a lot better than an 80x86 (where the INT instruction from the 8259A takes dozens of cycles to execute), but the current machines are so much faster than the Z80s ever were that in terms of absolute speed, you'd need to have a REALLY badly-written ISR to soak up all the time between interrupts. People keep describing the backwards-compatible PC serial ports as if they're a brain-damaged design. It's a perfectly straightforward interrupt-driven SLU, just like the DL-11 or the console port on a VAX. DMA would have been nice, but in almost all cases it would be overkill, the line rate maxes out at 1/40th the data rate of Ethernet (1/80th *2 since it's bidirectional), and most low-end Ethernet boards do just fine using a dual-ported SRAM buffer instead of DMA, it's really the same thing as a FIFO anyway. John Wilson