labuda
2006-05-08 01:10:07 UTC
Hi,
I'm writing a program which gathers as much data as possible through an
RS232 port, but has to go through a particular routine every time a
sync pulse comes into the PCMCIA-4350 I/O port. The sync pulse occurs
every 3 seconds
Currently I'm running a while loop which executes for around 2.7
seconds, then exits and waits for the pulse in the 4350. However, I'd
like to optimize my code by having the while loop run continuously
until a pulse reaches the 4350. To optimize, but also make sure that I
never miss a sync pulse. Is there some way i could implement an
Interrupt type of procedure.
I know very little about this, so any help would be appriciated,
Thanks!
Aleks.
I'm writing a program which gathers as much data as possible through an
RS232 port, but has to go through a particular routine every time a
sync pulse comes into the PCMCIA-4350 I/O port. The sync pulse occurs
every 3 seconds
Currently I'm running a while loop which executes for around 2.7
seconds, then exits and waits for the pulse in the 4350. However, I'd
like to optimize my code by having the while loop run continuously
until a pulse reaches the 4350. To optimize, but also make sure that I
never miss a sync pulse. Is there some way i could implement an
Interrupt type of procedure.
I know very little about this, so any help would be appriciated,
Thanks!
Aleks.