Mail Archives: djgpp/2008/05/26/10:47:13
DJ Delorie wrote:
>> A simple solution is to write a resident program with a 16 bit
>> compiler (like borladc). You can pass information with your 32 bits
>> progam and your 16 bit program via software interrupts.
>
> You can do 16 bit handlers with djgpp, no need to get a separate
> compiler for it.
>
> The problem here is that at 30,000 interrupts per second, you need
> both a 16 bit and a 32 bit handler, so that interrupts never cause a
> mode switch.
>
If one needs 30000 interrupts per second, one perhaps needs a real time
operating system. The mode switch is perhaps not only problem here.
Handling some interrupt may take more than 33 microseconds and then
30 KHz timer interrupt may get lost even when mode switch is not needed.
Additionally interrups may sometimes be disabled for more than 30 mks
with the same results.
One thing to try could be RTAI (https://www.rtai.org/). I have used it
earlier myself but not for so high interrupt frequencies and not in
last years.
Andris
- Raw text -