| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
SAN3010 bảng dữ liệu(PDF) 8 Page - Sames |
|
|
|||||||||||||||||||||||||||||
SAN3010 bảng dữ liệu(HTML) 8 Page - Sames |
|
8 / 13 page ![]() SAN3010 sames sames sames sames 8/13 PAGE 2 LOC OBJ LINE SOURCE 0088 51 Disable equ 88H 52 53 ; ############################################################# 54 ; Main program: load Accumulator with key code (see below) and 55 ; call subroutine "Key_In" 56 4000 57 Org 04000H ; set start address of program 4000 758160 58 mov SP,#060H ; set stack pointer 4003 00 59 HS_OK: NOP ; make sure that at this point 60 ; the SA253x has been off-hook 61 ; for >20ms 4004 740A 62 Ld_Key: mov a,#10 ; load keycode, here key "0" 4006 12400B 63 Call Key_in ; execute keystroke 4009 80FE 64 jmp $ ; end of main program, exit at 65 ; this point or continue with 66 ; next key entry 67 ; rem.: add additional delay when 68 ; cascading memories (s. Delay7:) 69 ; ############################################################# 70 ; ************************************************************* 71 ; Subroutine Key_in 72 ; ************************************************************* 73 ; this subroutine executes a key entry to the SA253x 74 ; the corresponding key code(0...31) must be loaded in the accu 75 ; see table at label:"scantbl" for key codes 76 ; affected Registers: 77 ; A,B,R1,R2,R3,R5,R6,R7,DPTR 78 79 80 400B 12405C 81 Key_in: call getScTb ; preload Reg5..7 with scan table 82 ; Row X: variable in Reg5 83 ; Row Y: variable in Reg6 84 ; Col X: variable in Reg7 85 400E 7B00 86 Exe_Key:mov R3,#0 ; clear loop counter 4010 7480 87 mov a,#ForceLO ; force R1 low 4012 F590 88 mov P1,A 4014 3097FD 89 sync: jnb P1.7, $ ; make sure, C1= C2 = low 4017 2097FD 90 jb P1.7, $ ; wait for rising edge C1 or C2 91 ; = trigger for asynch. timing 92 93 ;- Delay 1:wait 71.5 us = 66 machine cycles and force RowX high 401A 791F 94 delay1: mov R1,#31 ; 1 cycle 401C D9FE 95 djnz R1,$ ; 2 cycles; #Loops=(66-4)/2 =31 96 401E 7490 97 SCAN1: mov A,#ForceHi ; 1 cycle 4020 4D 98 orl A,R5 ; 1 cycle 4021 F590 99 mov P1,A ; 1 cycle 100 101 ;-------------------------------------------------------------- 102 ;Delay2:wait 107.25us= 99 machine cycles +disable all rows/cols 4023 7930 103 delay2: mov R1,#48 ; 1 cycle 4025 D9FE 104 djnz R1,$ ; 2 cycles; #Loops =(99-3)/2 = 48 4027 7488 105 mov A,#Disable ; 1 cycle |
|
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất 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 |