China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-07-31 20:51
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » Question for the experts: how to write a read/write test program for multiple serial ports under DOS View 1,673 Replies 2
Original Poster Posted 2003-05-07 00:00 ·  中国 四川 成都 电信
初级用户
Credits 120
Posts 7
Joined 2003-05-06 00:00
23-year member
UID 1903
Gender Male
Status Offline
The system has a multi-serial-port card with eight 232 serial ports, sharing one interrupt (IRQ10). In addition, the motherboard itself has 4 serial ports, using IRQ3 (com2, com4) and IRQ4 (com1, com3) respectively. How can I initialize the serial ports and do read/write operations? When reading uses interrupts, how do I tell which serial port number it is? (in the case of a shared interrupt)

How do I enable and disable interrupts??

Thanks. I’ve never done this kind of serial-port development under DOS before, and I hope to get everyone’s help here!! Waiting online!!
Floor 2 Posted 2003-05-07 00:00 ·  中国 湖北 武汉 电信
元老会员
★★★★★
步行的人
Credits 9,654
Posts 3,351
Joined 2003-03-11 00:00
23-year member
UID 1113
Gender Male
From 湖北
Status Offline
I’m not too familiar with this either, wait for the other moderators...
弄花香满衣,掬水月在手。
明月鹭鸟飞, 芦花白马走。
我自一过后,野渡现横舟。
青云碧空在,净瓶水不流。
http://dos.e-stone.cn/guestbook/index.asp
======中國DOS聯盟=====
我的新网页http://rsds.7i24.com欢迎光顾
Floor 3 Posted 2003-05-07 00:00 ·  中国 四川 成都 电信
初级用户
Credits 120
Posts 7
Joined 2003-05-06 00:00
23-year member
UID 1903
Gender Male
Status Offline
I’m in a hurry. If I use interrupts, how do I put my own interrupt handler into the vector table? How do I enable interrupts, and what needs to be done to make it work properly? For example, for COM1’s IRQ4 interrupt vector 0ch, what do I need to set in order to enable the interrupt?

help me please!
Forum Jump: