Instruction/ maintenance manual of the product AN2034 Cypress
Go to page of 5
User Interface - Keypad Scan, PSoC ® Style January 16, 2009 Document No. 001-40409 Rev. *A 1 AN2034 Author : Dave Van Ess Associated Project : Yes Associated Part Family : CY8C20x34, CY8C 21x23, CY8C21x34 CY8C23x33, CY8C24x 23A, CY8C24x94 CY8C27x43, CY8C29x66 GET FREE SAMPLES HERE Software Version : PSoC Designer™ 5.
AN2034 January 16, 2009 Document No. 001-40409 Rev. *A 2 PSOC General Purpose IO To detect single-s witch closures, use the following algorithm: Drive all rows simultaneousl y and re ad the columns. Drive all columns simultaneou sly and read the rows.
AN2034 January 16, 2009 Document No. 001-40409 Rev. *A 3 Code 1: Subroutine for Re ading Keypad ;----------------------------------------- ; Keypad.asm ; ; This routine reads a 4 column by 4 row ; keypad on port1. The status of key ; closures is returned in A.
AN2034 January 16, 2009 Document No. 001-40409 Rev. *A 4 Example Cod e 3 is the m ain function t hat implements the design in Figure 5 on pa ge 3. Code 3. Keypad Project I mplemented ;----------------------------------------- ; This program reads the keypad ; at port 1 and control the LEDs ; on port0.
AN2034 January 16, 2009 Document No. 001-40409 Rev. *A 5 Document History Document Title: User Interfa ce – Keypad Scan, PSoC ® Style Document Number: 00 1-40 409 Revision ECN Orig. of Change Submission Date Description of Change ** 1532004 OGNE 10/02/07 New publication of exist ing application not e.
An important point after buying a device Cypress AN2034 (or even before the purchase) is to read its user manual. We should do this for several simple reasons:
If you have not bought Cypress AN2034 yet, this is a good time to familiarize yourself with the basic data on the product. First of all view first pages of the manual, you can find above. You should find there the most important technical data Cypress AN2034 - thus you can check whether the hardware meets your expectations. When delving into next pages of the user manual, Cypress AN2034 you will learn all the available features of the product, as well as information on its operation. The information that you get Cypress AN2034 will certainly help you make a decision on the purchase.
If you already are a holder of Cypress AN2034, but have not read the manual yet, you should do it for the reasons described above. You will learn then if you properly used the available features, and whether you have not made any mistakes, which can shorten the lifetime Cypress AN2034.
However, one of the most important roles played by the user manual is to help in solving problems with Cypress AN2034. Almost always you will find there Troubleshooting, which are the most frequently occurring failures and malfunctions of the device Cypress AN2034 along with tips on how to solve them. Even if you fail to solve the problem, the manual will show you a further procedure – contact to the customer service center or the nearest service center