This is a multi-part message in MIME format. --------------34AB8816BBE1D86F7ED7103F Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit David Duffy wrote: > Wan Hasmi wrote: > >I am in a middle of programming a 3x4 keypad using PIC16F84. does anyone > >know which is better, either to use interrupt (wake-up on key stroke) or > >to poll the 3x4 keypad in main loop? I've seen one sample code but not > >quite understand why they use the TMR0 overflow as a timing to scan the keypad. > > It depends on what else your program has to do. Most times you > only need to scan the keypad every 50-100ms, not continuously. > This allows you to do other tasks between scans if you like. > BTW, I've changed the subject line to include the tag. > Regards... > > -- > http://www.piclist.com hint: PICList Posts must start with ONE topic: > [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads ...if timing is an issue then you may use Slave port characteristic to "autolatch" any keystroke and then take your time to poll the port. --------------34AB8816BBE1D86F7ED7103F Content-Type: text/x-vcard; charset=us-ascii; name="promero.vcf" Content-Description: Card for promero Content-Disposition: attachment; filename="promero.vcf" Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by silena.insitel.com.co id HAA02215 begin:vcard=20 n:Romero Plaza;P=E1vel Ernesto tel;cell:5489528 tel;fax:6-7444829 tel;home:6-7464233 tel;work:6-7444829 x-mozilla-html:TRUE url:www.insitel.com.co org:Insitel Ltda.;Research & Development adr:;;Calle 21 # 16 - 46 Piso 7;Armenia;Quind=EDo;;Colombia version:2.1 email;internet:promero@insitel.com.co title:Hardware Engineer fn:P=E1vel Ernesto Romero Plaza end:vcard --------------34AB8816BBE1D86F7ED7103F-- -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics