Cypress AN2034 - Manuals

Cypress AN2034 – Manual in PDF format online.

Manuals:

1 Page 1
2 Page 2
3 Page 3
4 Page 4
5 Page 5

Summary

Page 2 - PSOC General Purpose IO; Figure 3; Figure 4; Read the port

AN2034 January 16, 2009 Document No. 001-40409 Rev. *A 2 PSOC General Purpose IO To detect single-switch closures, use the following algorithm: ƒ Drive all rows simultaneously and read the columns. ƒ Drive all columns simultaneously and read the rows. ƒ Condense this data to determine switch-closure...

Page 3 - combine them; Using the Output

AN2034 January 16, 2009 Document No. 001-40409 Rev. *A 3 Code 1: Subroutine for Reading Keypad ;----------------------------------------- ; Keypad.asm ; ; This routine reads a 4 column by 4 row ; keypad on port1. The status of key ; closures is returned in A. ; ; P1.4 P1.5 P1.6 P1.7 ; C0 C1 C2 C3 ; ...

Page 4 - Code 3. Keypad Project Implemented; Debouncing; Write an interrupt handler that calls; Summary

AN2034 January 16, 2009 Document No. 001-40409 Rev. *A 4 Example Code 3 is the main function that implements the design in Figure 5 on page 3. Code 3. Keypad Project Implemented ;----------------------------------------- ; This program reads the keypad ; at port 1 and control the LEDs ; on port0. ; ...

Cypress Manuals