Hi ,
I want to use the IOCB feature (PIC 18f4520) , which i have created program for but the buttons used for iocb will be through a long wire cable something like 25 to 30 mtr cable .
Now used LatC as output ports and PORTB.B4,B5,B6 as input so when i checked the logic wihtout a long wire the logic works fine , meaning no problem with S/w but when i attach it thorugh the long cable . the interrupt does not work, but the logic level at the PORt changes . I have pulled up the ports externally through 10 K resistor and Vcc . When i press the button it goes to 0 and on releasing back to 5 . But the Leds that i have used which turn on and off when interrupt occurs does not work with long cable .
What could be the problem , is it a current problem , if so can i use something like uln2803 .
Please help .
Thnx .
Deepesh .