Has anyone yet made a routine...?

From: Iron Phoenix (yeah.right_at_nospam.org)
Date: 11/17/03


Date: Mon, 17 Nov 2003 04:51:10 GMT


.. or driver, or whatever... to treat a parallel port as a synchonous
serial port?

perhaps using the system clock (counted-down appropriately for the bps
rate desired) to generate the TX clock, setting another bit on another
pin for the transmit data, reading the receive data / clock from yet
other pins...

I've got a rather long and involved program used for testing of NAS
(National Air Space) control systems. It works, but the problem is
that the test platform is ASCII and asynch serial while the computers
under test are EBCDIC and synch serial (2400bps).

Right now, I'm using a mini with a real kludge of a conversion routine
to translate. Problem? The mini is hardly portable, weighing in at
some 120 kg. I need the ability to test to be portable, preferably on
a reasonably modern laptop. I have not yet seen a laptop with synch
serial ability. Another problem? The conversion routine was written
20 years (?!) ago, and no one still around has a clue ... Another
problem? The mini in question is unique, and dying.

I have some sample code that uses the parallel as synch serial (and it
works!) but it must be run under DOS (and my laptop is WinXP) - no
flavor of windows will allow it to operate, as it wants direct access
to hardware, and redirects IRQ8.

Oh, is there a more speed-efficient way of doing ASCII to EBCDIC
conversion than a table look-up? Not concerned about time going the
other way (EBCDIC to ASCII), but I need *speed* going from ASCII to
EBCDIC...

Any ideas, assistance, or sample code would be greatly appreciated!

Thanks!

Kris
RATCF DAIR Engineer

PS - I am a HARDWARE engineer. I know enough C/C++ to follow along,
modify, and write fairly simple code. But drivers are Magic... :>



Relevant Pages

  • Re: How do I select an upgrade processor chip?
    ... The processor speed is the multiplier x the System Clock. ... My problem is how to understand the memory speed. ... Ram speed seems to be unrelated to the ram clock. ...
    (comp.sys.ibm.pc.hardware.chips)
  • Re: Problem with clock interrupt
    ... # hwclockfirst.sh Set system clock to hardware clock, ... echo "$0: System clock was not updated at this ...
    (comp.os.linux.hardware)
  • Re: System clock
    ... The requirement is to run a separate clock by the NTP process, ... capability of system clock processing. ... processing in the user space program. ...
    (comp.protocols.time.ntp)
  • Re: NTP Configuration for DST?
    ... OpenVMS systems usually have the system clock set to local ... The time NTPD comes up with is converted to local time (using ... We do this using zone and DST information already present in our ...
    (comp.protocols.time.ntp)
  • Re: HP Proliant SuSE 9.3 problems
    ... The system clock gains about 18 hours per day on the hardware clock. ... put SLES10 onto my Proliant I tried my trusty 9.3 which worked very well', ... drives being on the scsi got me a bit suspicious though. ...
    (alt.os.linux.suse)

Loading