Hi,
i tried to configure IO-Pin 48 as an IRQ/Input with falling edge, but it failed.
I have disabled the SDCard-driver, cause this IO is used as a card detection input.
With IO-Pin 20 & 21, which have also the capability to work as IRQ's, the reg-settings
work.
If i had a look at the debug output from DCUTerm, i can see that IO-Pin 20&21 are
configured as irq's type 2, but nothing is to see from IO-Pin48.
Any idea what's wrong?
Below are my reg settings and the debug output.
Cheers,
Tom
Registry settings:
Code
- [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\DIGITALIO]
- "UseAsIO"=hex:\00,00,30,00,00,00,01
- "IRQCfg0"=hex:\00,00,00,00,00,00,00
- "IRQCfg1"=hex:\00,00,30,00,00,00,01
- "DataDir"=hex:\00,00,00,00,00,00,00
- "DataInit"=hex:\00,00,00,00,00,00,00
- "Port"=dword:00000006
- "Debug"=dword:00000004
- "Prefix"="DIO"
- "Dll"="PM6_DIGIO.dll"
- "Order"=dword:00000097
- "Index"=dword:00000001
- "Ioctl"=dword:00000004
- "FriendlyName"="Digital I/O driver for PicoCOM3"
Debug-part from DCUTerm
Code
- DIO: Version 2.1, ActiveKey = Drivers\Active\33
- DIO: UseAsIO[0] = 0x00300000
- DIO: DataDir[0] = 0x00000000
- DIO: DataInit[0] = 0x00000000
- DIO: IRQCFG0[0] = 0x00000000
- DIO: IRQCFG1[0] = 0x00300000
- DIO: IRQCFG2[0] = 0x00000000
- DIO: UseAsIO[1] = 0x00010000
- DIO: DataDir[1] = 0x00000000
- DIO: DataInit[1] = 0x00000000
- DIO: IRQCFG0[1] = 0x00000000
- DIO: IRQCFG1[1] = 0x00010000
- DIO: IRQCFG2[1] = 0x00000000
- DIO: Configure pin #20 as irq type 2
- DIO: Configure pin #21 as irq type 2