| Electronic Components Datasheet Search |
|
ST72251 Datasheet(PDF) 8 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
ST72251 Datasheet(HTML) 8 Page - STMicroelectronics |
|
8 / 10 page ![]() SOFTWARE 8/10 LD A,PADR OR A,#$0F ; Outputs forced to 1 (initial value). AND A,({keypad+1},X) LD PADR,A ; one column of the tested row is activated. PUSH X CALL delay_45 ; wait 45ms (debouncing procedure). POP X LD A,PCDR AND A,#$0F ; value of Port C stored into A. CP A,(keypad,X) ; search of the low level column after column. JREQ OK ; if key found -> OK. DEC X DEC X DEC X ; 3 times to have next value of the column. JRPL begin ; do it again to read the whole table(matrix). JRA exit OK LD A,({keypad+2},X) ; Store the key value in A. LD X,A ; Copy it into X. LD PBDR,X ; Output the result on LEDS. exit CLR PADR CLR PCDR iret .spi_rt iret .tima_rt iret .timb_rt iret .i2c_rt iret segment 'vectit' ; ******************************************************************* ; This last segment should always be there in your own programs. ; It defines the interrupt vector adresses and the interrupt routines' labels ; considering the microcontroller you are using. ; Refer to the MCU's datasheet to see the number of interrupt vector ; used and their addresses. ; Remind that this example is made for a ST72251 based application. ; ******************************************************************* |
|
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |