Maybe you should take a good look at aplication note AN529 from Microchip. The example int his AN is for the 16C5x (Source Code for 16C57) but it should be easy to adapt it to the 16F84. I have a project in mind that includes adapting the whole AN to the 16F84. You can find this (and a lot of interesting things) in their Web site HomePage: http://www.microchip.com Appl. Notes: http://www.microchip.com/10/Appnote/index.htm At 02:17 98.02.20 PST, you wrote: >Hello! > >I wonder if any of you have a routine for scanning a keyboard (10 keys). >Or if you have any ideas how I should make one. It's for the PIC16F84. >I'm a student in Electronics and Computer at a high school in Goteborg, >Sweden. >I would be very hppy if someone could help me! > >//Robert Berlin > >______________________________________________________ >Get Your Private, Free Email at http://www.hotmail.com > =============================================================== cumprimentos / best regards Jorge Ferreira mailto://jorgegf@mail.telepac.pt ------ Make sure brain is in gear before engaging mouth ------- ===============================================================