Hey all, please excuse my lack of knowledge, everyone has to start somewhere .
On my 18x chip I have a mechanical switches conected to inputs 1, 2 and 0. My program will check if these pins are high or low and do the specified routine. High is perfect 5v and low is 0v. If I try doing this on inputs 6 and 7, it works around 15% of the time. The program will detect if the pins are high but it has trouble with low. I measured the pin at low (with and without the switches connected) and it never reaches 0v. In fact when I put the volt meter on these pins it will start at around 60mv and continue to rise, I'm led to believe that this because it's designed to be used with a keyboard?
If this is so, is there a basic command other than if input 7 = 0 then... That will call the pin low if it's less than 4v?
I don't think the chip is faulty because eveything else works perfectly.
Cheers in Advance
Alex Mills
On my 18x chip I have a mechanical switches conected to inputs 1, 2 and 0. My program will check if these pins are high or low and do the specified routine. High is perfect 5v and low is 0v. If I try doing this on inputs 6 and 7, it works around 15% of the time. The program will detect if the pins are high but it has trouble with low. I measured the pin at low (with and without the switches connected) and it never reaches 0v. In fact when I put the volt meter on these pins it will start at around 60mv and continue to rise, I'm led to believe that this because it's designed to be used with a keyboard?
If this is so, is there a basic command other than if input 7 = 0 then... That will call the pin low if it's less than 4v?
I don't think the chip is faulty because eveything else works perfectly.
Cheers in Advance
Alex Mills