🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.misc
Article #188

Help wanted - interupts in 'C'

#188
From: A. Harvey
Date: Wed, 04 Nov 1992 14:35
35 lines
1882 bytes
I'm not primarily a programmer, but I have an assignment that requires me to write
a 'C' proram for my final year project. (Electronics)

Overview:
	We have a mains transceiver (that is a means for sending digital messages along
exsisting mains cables). There are 15 addressable 'local-controllers' connected to 
the mains via these transceivers. The PC sends control messages to the 'local-controllers'
to operate machinery remotely. The PC also receives confirmation that the transmitted
instruction has been carried out and any unit can send error & alert messages to the PC
to inform the user of any fault.

I have written routines to encode and decode messages. The user issues messages via the
keyboard in the form:

	<COMMAND> <UNIT No.>

e.g. ON 15  - turns on whatever is connected to local-unit 15.

I have a card with 3 - 8bit ports.

I want to be able to check the input port whilst also waiting for input from the keyboard;
but when the user types a command, I don't want the program to wait until the user
has finished typing before resuming checking of the ports for data thus reducing the
likelyhood that an important message will be missed. I think I need interrupts (?)

I might add that this is a group project, and the other parts are the local controllers,
and the transceivers.

Please mail me direct with any info. you might have :-)

Thanks in advance:

Adam Harvey
ele0136@sys.uea.ac.uk
Technical Details
Message-ID: <ele0136.720887743@radon.sys.uea.ac.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!sys.uea.ac.uk!ele0136

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!sys.uea.ac.uk!ele0136
From: ele0136@sys.uea.ac.uk (A. Harvey)
Newsgroups: comp.sys.ibm.pc.misc
Subject: Help wanted - interupts in 'C'
Summary: Info need on 'C' interrupts
Message-ID: <ele0136.720887743@radon.sys.uea.ac.uk>
Date: 4 Nov 92 14:35:43 GMT
Sender: news@sys.uea.ac.uk
Organization: UEA School of Information Systems, Norwich, UK.
Lines: 35
Nntp-Posting-Host: radon.sys.uea.ac.uk