Home > other >  This period of how to realize the keyboard and LED connections
This period of how to realize the keyboard and LED connections

Time:09-24


; According to the function
DISPLAY:
; LED1
MOV DPTR, # CON8279
MOV A, # 85 h; LED1
MOVX @ DPTR, A MOV DPTR, # TABLE
MOV A, LED1
MOVC A, @ A + DPTR
MOV DPTR, # DATA8279
MOVX @ DPTR, A; LED2
MOV DPTR, # CON8279
MOV A, # 84 h; LED2
MOVX @ DPTR, A MOV DPTR, # TABLE
MOV A, LED2
MOVC A, @ A + DPTR
MOV DPTR, # DATA8279
MOVX @ DPTR, A; LED3
MOV DPTR, # CON8279
MOV A, # 83 h; LED3
MOVX @ DPTR, A MOV DPTR, # TABLE
MOV A, LED3
MOVC A, @ A + DPTR
MOV DPTR, # DATA8279
MOVX @ DPTR, A

; LED4
MOV DPTR, # CON8279
MOV A, # 82 h; LED4
MOVX @ DPTR, A MOV DPTR, # TABLE
MOV A, LED4
MOVC A, @ A + DPTR
MOV DPTR, # DATA8279
MOVX @ DPTR, A

; LED5
MOV DPTR, # CON8279
MOV A, # 81 h; LED5
MOVX @ DPTR, A MOV DPTR, # TABLE
A, MOV LED5
MOVC A, @ A + DPTR
MOV DPTR, # DATA8279
MOVX @ DPTR, A; LED6
MOV DPTR, # CON8279
MOV A, # 80 h; LED6
MOVX @ DPTR, A MOV DPTR, # TABLE
A, MOV LED6
MOVC A, @ A + DPTR
MOV DPTR, # DATA8279
MOVX @ DPTR, A RET
  • Related