All Forums
 Hardware
 General Hardware, ADSmartIO, Digital I/O and A/Ds
 How to read interrupt on GPIO 17 (PC104_IRQ)
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Author Topic  

rstancil2000

2 Posts

Posted - 03 Jun 2010 :  18:34:39  Show Profile
I have a TITAN board with Win CE 5.0. I have added a PC104 board. I have an interrupt (IRQ10) set to go off when the board needs data. I can read the address and see the value and figure out which IRQ has occurred. But I can not figure out how to get the interrupt. If I use InitializeInterrupt, what do I put in for the IRQ value? Any help would be appreciated.

rstancil2000

2 Posts

Posted - 08 Jun 2010 :  10:35:33  Show Profile
I was able to read the interrupt. I used the value for SYSINTR_IRQ10 in the oalintr.h file and then used the command InterruptInitialize(SYSINT_IRQ10,event,NULL,0) to define the interrupt. Then wait for the interrupt with WaitForSingleObject(event,INFINITE). Then once the interrupt occurs, clear it with InterruptDone(SYSINTR_IRQ10).

Go to Top of Page

Russ-Eurotech

273 Posts

Posted - 08 Jun 2010 :  13:47:55  Show Profile  Email Poster
Thank you for posting that reply.

Here is the header file referenced:
http://files.eurotech-inc.com/Titan/oalintr.h

Note:
(SYSINTR_IRQ3 is PC104 IRQ 3, etc.)

SYSINTR_FIRMWARE is defined as 16


Here also is an example which uses the PXA270 timer to generate an interrupt, (IRQClock.zip)
http://files.eurotech-inc.com/Titan/IRQClock.zip

The method is the same regardless of the source of the interrupt,
so this would work for IO boards as well.
Go to Top of Page
  Topic  
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Jump To:
Eurotech Support Forums © Eurotech Inc. Go To Top Of Page
This page was generated in 0.02 seconds. Snitz Forums 2000