Data that is processed mikrokontroler data hexa, to be shown on seven segment we can use dekoder hexa to the sevent segment or through the conversion program, for konveri, we can use the system look up table program we need a conversion table, table is as follows:
Place the module with mikrokontroler seven segment connecting module on port 1 and 3, do not look up inverted. Seven segment that is in use CA (Common Anode), thus need to be given to set the logic 0.
![Antarmuka Seven Segmen-AT89S51/52](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmAcW1_JT0FEUKVc7WpV-sxpvm_kuWv1LZkoiP2tSVNZe0MIHS-shodp0ceptKWlr_H3D6dTnD988ixQij-aNXZOXrFXemiroN4onqZfGyaGvXwXJxyqS-UaxuAwq4JgYVzoV2KuJugjs/s400/Antarmuka+Seven+Segmen+3.png)
;=================================================
;PROGRAM To turn 4X 7SEGMENT COMMON ANODA
;=================================================
ORG 00H
MULAI:
MOV P1,#0C7H ;display, data 0
CLR P3.4 ;Turn on COMMON 1
CALL DELAY ;Delay
SETB P3.4 ; turn off COMMON 1
CALL DELAY ;Delay
MOV P1,#040H ;display, data 1
CLR P3.5
CALL DELAY
SETB P3.5
CALL DELAY
MOV P1,#042H ;display, data 2
CLR P3.6
CALL DELAY
SETB P3.6
CALL DELAY
MOV P1,#050H ;display, data 3
CLR P3.7
CALL DELAY
SETB P3.7
CALL DELAY
AJMP MULAI
DELAY: ;Pause THIS USED 7SEGMENT To be invisibl
MOV R1,#1
DELAY1: DJNZ R0,$
DJNZ R1,DELAY1
RET
END
No comments:
Post a Comment