Hi List .. I have implemented a 4 x 4 keypad scan routine which works well. Using RA0-RA3 as the row and RB4-7 as the column inputs. I am using a 16f628 at 20mhz and the scan routine works out at a little over 11.7khz. However - now for my question .... when I put a scope on RA0-2 I get the 11.7Khz, when I put the scope on RA3 I get the 11.7khz but inverted ! Why ?? I have the comparators turned off ( CMCON = 7 ) - should I be doing anything else. Thanks Steve ********************************************************************** Information in this email is confidential and may be privileged. It is intended for the addressee only. If you have received it in error, please notify the sender immediately and delete it from your system. You should not otherwise copy it, retransmit it or use or disclose its contents to anyone. Thank you for your co-operation. ********************************************************************** -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads