A computer components & hardware forum. HardwareBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » HardwareBanter forum » General Hardware & Peripherals » Homebuilt PC's
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

bit-bang serial port driver; is source avalible



 
 
Thread Tools Display Modes
  #1  
Old November 18th 04, 05:57 AM
Jack Z
external usenet poster
 
Posts: n/a
Default bit-bang serial port driver; is source avalible

I'm prototyping code for an embedded processor project using DOS. I'm using
DOS because I'm not yet sure exactly what the target microprocessor will be
and DOS is closer to the hardware than Windows (or Linux for that matter).
I'd forgotten how much fun DOS was to use for this sort of thing. As it
turns out I NEED TWO SERIAL PORTS ON A LAP TOP for the demo. I have about 10
old (IBM and a few other) laptops but none has two serial ports. I thought
I'd write the code for a bit banged serial port using the COM1 handshake
lines to give a second serial port, allowing the use of only connector. I've
done this sort of thing with various microprocessor years ago but never with
a PC. The final design will only need one serial port, but 'till then:

Does anyone know where I can get the source (C or even ASM) for a bit banged
serial port for a PC (preferably using the COM1 handshake lines)?

Any help will be appreciated.
Thanks You,
Jack
Subj:bit-bang serial port driver; is source avalible


  #2  
Old November 18th 04, 01:49 PM
Sergej Srepfler
external usenet poster
 
Posts: n/a
Default

On Wed, 17 Nov 2004 21:57:16 -0800, "Jack Z" wrote:

I'm prototyping code for an embedded processor project using DOS. I'm using
DOS because I'm not yet sure exactly what the target microprocessor will be
and DOS is closer to the hardware than Windows (or Linux for that matter).
I'd forgotten how much fun DOS was to use for this sort of thing. As it
turns out I NEED TWO SERIAL PORTS ON A LAP TOP for the demo. I have about 10
old (IBM and a few other) laptops but none has two serial ports. I thought
I'd write the code for a bit banged serial port using the COM1 handshake
lines to give a second serial port, allowing the use of only connector. I've
done this sort of thing with various microprocessor years ago but never with
a PC. The final design will only need one serial port, but 'till then:

Does anyone know where I can get the source (C or even ASM) for a bit banged
serial port for a PC (preferably using the COM1 handshake lines)?

Any help will be appreciated.
Thanks You,
Jack
Subj:bit-bang serial port driver; is source avalible


Why not use paralel2serial converter? It shouldn't be too expensive.
Or even USB2serial if your application can support it.

Using handshake lines to simulate another port is futile effort if you have to
obtain any speed or accuracy since hardware interrupts break your timings to
shreads.
But for small speed I believe it could be done, as long as amount of data is not
big, and you use some handshaking. External clock is a bliss in that case.

  #3  
Old November 19th 04, 01:30 AM
David Maynard
external usenet poster
 
Posts: n/a
Default

Sergej Srepfler wrote:

On Wed, 17 Nov 2004 21:57:16 -0800, "Jack Z" wrote:


I'm prototyping code for an embedded processor project using DOS. I'm using
DOS because I'm not yet sure exactly what the target microprocessor will be
and DOS is closer to the hardware than Windows (or Linux for that matter).
I'd forgotten how much fun DOS was to use for this sort of thing. As it
turns out I NEED TWO SERIAL PORTS ON A LAP TOP for the demo. I have about 10
old (IBM and a few other) laptops but none has two serial ports. I thought
I'd write the code for a bit banged serial port using the COM1 handshake
lines to give a second serial port, allowing the use of only connector. I've
done this sort of thing with various microprocessor years ago but never with
a PC. The final design will only need one serial port, but 'till then:

Does anyone know where I can get the source (C or even ASM) for a bit banged
serial port for a PC (preferably using the COM1 handshake lines)?

Any help will be appreciated.
Thanks You,
Jack
Subj:bit-bang serial port driver; is source avalible



Why not use paralel2serial converter? It shouldn't be too expensive.
Or even USB2serial if your application can support it.

Using handshake lines to simulate another port is futile effort if you have to
obtain any speed or accuracy since hardware interrupts break your timings to
shreads.
But for small speed I believe it could be done, as long as amount of data is not
big, and you use some handshaking. External clock is a bliss in that case.


Another alternative is a PCMCIA serial port card. They add 'standard'
serial ports.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
On the brink of madness... I.C. Koets General 18 January 31st 05 10:49 PM
Update on Athlon 2600 Ghz discrepancy David Simmons Overclocking AMD Processors 7 August 27th 04 08:56 PM
Updrade PC Guy Smith General 22 August 15th 04 01:57 AM
my new mobo o/c's great rockerrock Overclocking AMD Processors 9 June 30th 04 08:17 PM
Infrared port source? kony General 0 December 12th 03 02:11 AM


All times are GMT +1. The time now is 11:19 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.
Copyright 2004-2022 HardwareBanter.
The comments are property of their posters.