Sunday, July 26, 2009

Rangkaian Antarmuka Seven Segmen Dengan AT89S51/52

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/52Scheme of the Seven-segment

Antarmuka Seven Segmen-AT89S51/52The Switch scheme Electronics

Antarmuka Seven Segmen-AT89S51/52
;=================================================
;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