Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!usc!elroy.jpl.nasa.gov!ncar!gatech!prism!bb16 From: bb16@prism.gatech.EDU (Scott Bostater) Newsgroups: comp.lang.pascal Subject: Re: Setting up the COMMS ports using Turbo Pascal Message-ID: <18137@hydra.gatech.EDU> Date: 5 Dec 90 12:58:18 GMT References: <4805@gara.une.oz.au> <1990Dec5.121609.10113@csc.canterbury.ac.nz> Organization: Georgia Institute of Technology Lines: 29 In article <1990Dec5.121609.10113@csc.canterbury.ac.nz> phys169@csc.canterbury.ac.nz writes: >In article <4805@gara.une.oz.au>, cfraser@gara.une.oz.au (Colin Fraser BEST) writes: >> I would like to set up the comms port on my AT-compatible using >> TP. The manual indicates how to do this for baud rates up to >> and including 9600. However, I'd like to use a baud rate of >> 19200, and so I can't use the interrupts as in the example. >> >You have to program the registers yourself, but be warned: high baud rates can >result in data loss on input, unless you go to the effort of installing an >interrupt service routine to buffer incoming bytes. The following program >probably does a bit more than you need... [program code deleted] If you want high data rates, I'd suggest using a FOSSIL driver (a device driver) to handle the interrupt service routines. You can then perform simple interrupt calls (almost identical to the BIOS calls) to do the serial I/O and not have to worry about losing data. Fossil supports data rates up to 38400 baud. If you're interested, I've already written a FOSSIL unit to handle the interface from TP to the device driver. I'll be happy to e-mail you a copy. -- Scott Bostater Georgia Tech Research Institute - Radar Systems Analysis "My soul finds rest in God alone; my salvation comes from Him" -Ps 62.1 uucp: ...!{allegra,amd,hplabs,ut-ngp}!gatech!prism!bb16 Internet: bb16@prism.gatech.edu Brought to you by Super Global Mega Corp .com