[comp.os.msdos.programmer] Interrupt serial io

wtl@ulysses.att.com (Bill Langin[ftd]) (08/23/90)

Hello.  I'm having a simple problem with some serial communications functions
that I'm trying to write.  First of all I'm running a 386 Northgate with 
Award Bios and writing in PowerC 2.0.0 (similar to MS C).  

I have my modem installed in port 0 and what I'm trying to do is send it AT
commands and receive responses via interrupts.  I have written the 
interrupt service routine in C using the keyword "interrupt".  

If it helps to know this I'm linking with the small memory model.

The problem I'm having is that I receive one interrupt only.  For example,
when writing ATZ to the serial port I expect a \r\nOK\r\n (I'm using verbose
responses) response which I assume generates 6 interrupts, one for each
character.  However, only one interrupt is generated.  The program does not
hang, but continues to execute normally.

Also, the second time I execute the program, no interrupts are generated.
I have to do a hard reboot and then execute the program to get the singular
interrupt.  (A soft reset and subsequent execution of the program does not
seem to generate an interrupt at the approriate time).

There is too much code to go into detail but I hope there's enough information
for someone to offer help. 

Thanks in advance.

-- Bill Langin  -> My opinions are mine only... Go figure. 
INTERNET: wtl@ulysses.att.com  UUCP {att,decvax,ucbvax}!ulysses!wtl

press@venice.SEDD.TRW.COM (Barry Press) (08/23/90)

In article <13636@ulysses.att.com> wtl@ulysses.att.com (Bill Langin[ftd]) writes:
>The problem I'm having is that I receive one interrupt only.  For example,

You didn't mention just what is in your interrupt service routine (ISR), so
perhaps the obvious question is in order.  Did you send an EOI to the PIC
????

-- 
Barry Press                                 Internet: press@venice.sedd.trw.com