PENGHITUNG STOK BENDA DENGAN PENCACAH NAIK TURUN


KELOMPOK C2

  1. Khrisna Akbar Ridani  3.32.19.2.11
  2. Merry Nilna Na'ma       3.32.19.2.13
  3. Syah Lanang Yussufi  3.32.19.2.22
  4. Vigo Bhanu Pramana  3.32.19.2.24

Input    : Limit Switch
Output : 7 Segment , Buzzer , LED

Tahun 2021 memasuki abad 21, dimana kemajuan 
saat pesat di bidang teknologi, mendorong generasi Z untuk menciptakan terobosan baru untuk 
memudahkan pekerjaan manusia.  Salah satunya, 
dengan penghitung stok obyek. Sebagian pengusaha masih menghitung manual stok barang dagangannya. 
Sehingga muncul inovasi baru membuat alat 
“ Penghitung Status Stok Obyek dengan Pencacah 
Naik Turun “.


1.PPT Presentasi     Download PPT




























2. Program     Download Program

ORG 0

setb p3.0
setb p3.1

TRIGGER:
JB P1.0,MAIN
CALL MAIN
SJMP TRIGGER
DELAY:
MOV R0,#255
DL1:
MOV R1,#255
DL2:
NOP
NOP
NOP
DJNZ R1,DL2
DJNZ R0,DL1
RET
RESET:
JMP SEGMENT0
MAIN:
SEGMENT0:
MOV P2,#1000000B
MOV P0,#1000000B
JNB P1.1,RESET
ACALL DELAY
JNB P1.0,SEGMENT1
JMP SEGMENT0
SEGMENT1:
MOV P2,#1111001B
MOV P0,#1000000B
ACALL DELAY
JNB P1.0,SEGMENT2
JNB P1.1,SEGMENT0
JMP SEGMENT1
SEGMENT2:
MOV P2,#0100100B
MOV P0,#1000000B
ACALL DELAY
JNB P1.0,SEGMENT3
JNB P1.1,SEGMENT1
JMP SEGMENT2
SEGMENT3:
MOV P2,#0110000B
MOV P0,#1000000B
ACALL DELAY
JNB P1.0,SEGMENT4
JNB P1.1,SEGMENT2
JMP SEGMENT3
SEGMENT4:
MOV P2,#0011001B
MOV P0,#1000000B
ACALL DELAY
JNB P1.0,SEGMENT5
JNB P1.1,SEGMENT3
JMP SEGMENT4
SEGMENT5:
MOV P2,#0010010B
MOV P0,#1000000B
ACALL DELAY
JNB P1.0,SEGMENT6
JNB P1.1,SEGMENT4
JMP SEGMENT5
SEGMENT6:
MOV P2,#0000010B
MOV P0,#1000000B
ACALL DELAY
JNB P1.0,SEGMENT7
JNB P1.1,SEGMENT5
JMP SEGMENT6
SEGMENT7:
MOV P2,#1111000B
MOV P0,#1000000B
ACALL DELAY
JNB P1.0,SEGMENT8
JNB P1.1,SEGMENT6
JMP SEGMENT7
SEGMENT8:
MOV P2,#0000000B
MOV P0,#1000000B
ACALL DELAY
JNB P1.0,SEGMENT9
JNB P1.1,SEGMENT7
JMP SEGMENT8
SEGMENT9:
MOV P2,#0010000B
MOV P0,#1000000B
ACALL DELAY
JNB P1.1,SEGMENT8
JNB P1.0,SEGMEN10
JMP SEGMENT9
SEGMEN10:
MOV P2,#1000000B
MOV P0,#1111001B
ACALL DELAY
JNB P1.1,SEGMENT9
JNB P1.0,SEGMEN11
JMP SEGMEN10
SEGMEN11:
MOV P2,#1111001B
MOV P0,#1111001B
ACALL DELAY
JNB P1.0,SEGMEN12
JNB P1.1,SEGMEN10
JMP SEGMEN11
SEGMEN12:
MOV P2,#0100100B
MOV P0,#1111001B
ACALL DELAY
JNB P1.0,SEGMEN13
JNB P1.1,SEGMEN11
JMP SEGMEN12
SEGMEN13:
MOV P2,#0110000B
MOV P0,#1111001B
ACALL DELAY
JNB P1.0,SEGMEN14
JNB P1.1,SEGMEN12
JMP SEGMEN13
SEGMEN14:
MOV P2,#0011001B
MOV P0,#1111001B
ACALL DELAY
JNB P1.0,SEGMEN15
JNB P1.1,SEGMEN13
JMP SEGMEN14
SEGMEN15:
MOV P2,#0010010B
MOV P0,#1111001B
ACALL DELAY
JNB P1.0,SEGMEN16
JNB P1.1,SEGMEN14
JMP SEGMEN15
SEGMEN16:
MOV P2,#0000010B
MOV P0,#1111001B
ACALL DELAY
JNB P1.0,SEGMEN17
JNB P1.1,SEGMEN15
JMP SEGMEN16
SEGMEN17:
MOV P2,#1111000B
MOV P0,#1111001B
ACALL DELAY
JNB P1.0,SEGMEN18
JNB P1.1,SEGMEN16
JMP SEGMEN17
SEGMEN18:
MOV P2,#0000000B
MOV P0,#1111001B
ACALL DELAY
JNB P1.0,SEGMEN19
JNB P1.1,SEGMEN17
JMP SEGMEN18
SEGMEN19:
MOV P2,#0010000B
MOV P0,#1111001B
ACALL DELAY
JNB P1.0,SEGMEN20
JNB P1.1,SEGMEN18
JMP SEGMEN19
SEGMEN20:
MOV P2,#1000000B
MOV P0,#0100100B
ACALL DELAY
JNB P1.1,SEGMEN19
JNB P1.0,SEGMEN21
JMP SEGMEN20
SEGMEN21:
MOV P2,#1111001B
MOV P0,#0100100B
ACALL DELAY
JNB P1.0,SEGMEN22
JNB P1.1,SEGMEN20
JMP SEGMEN21
SEGMEN22:
MOV P2,#0100100B
MOV P0,#0100100B
ACALL DELAY
JNB P1.0,SEGMEN23
JNB P1.1,SEGMEN21
JMP SEGMEN22
SEGMEN23:
MOV P2,#0110000B
MOV P0,#0100100B
ACALL DELAY
JNB P1.0,SEGMEN24
JNB P1.1,SEGMEN22
JMP SEGMEN23
SEGMEN24:
MOV P2,#0011001B
MOV P0,#0100100B
ACALL DELAY
JNB P1.0,SEGMEN25
JNB P1.1,SEGMEN23
JMP SEGMEN24
SEGMEN25:
MOV P2,#0010010B
MOV P0,#0100100B
ACALL DELAY
JNB P1.0,SEGMEN26
JNB P1.1,SEGMEN24
JMP SEGMEN25
SEGMEN26:
MOV P2,#0000010B
MOV P0,#0100100B
ACALL DELAY
JNB P1.0,SEGMEN27
JNB P1.1,SEGMEN25
JMP SEGMEN26
SEGMEN27:
MOV P2,#1111000B
MOV P0,#0100100B
ACALL DELAY
JNB P1.0,SEGMEN28
JNB P1.1,SEGMEN26
JMP SEGMEN27
SEGMEN28:
MOV P2,#0000000B
MOV P0,#0100100B
ACALL DELAY
JNB P1.0,SEGMEN29
JNB P1.1,SEGMEN27
JMP SEGMEN28
SEGMEN29:
MOV P2,#0010000B
MOV P0,#0100100B
ACALL DELAY
JNB P1.0,SEGMEN30
JNB P1.1,SEGMEN28
JMP SEGMEN29
SEGMEN30:
MOV P2,#1000000B
MOV P0,#0110000B
ACALL DELAY
JNB P1.1,SEGMEN29
JNB P1.0,SEGMEN31
JMP SEGMEN30
SEGMEN31:
MOV P2,#1111001B
MOV P0,#0110000B
ACALL DELAY
JNB P1.0,SEGMEN32
JNB P1.1,SEGMEN30
JMP SEGMEN31
SEGMEN32:
MOV P2,#0100100B
MOV P0,#0110000B
ACALL DELAY
JNB P1.0,SEGMEN33
JNB P1.1,SEGMEN31
JMP SEGMEN32
SEGMEN33:
MOV P2,#0110000B
MOV P0,#0110000B
ACALL DELAY
JNB P1.0,SEGMEN34
JNB P1.1,SEGMEN32
JMP SEGMEN33
SEGMEN34:
MOV P2,#0011001B
MOV P0,#0110000B
ACALL DELAY
JNB P1.0,SEGMEN35
JNB P1.1,SEGMEN33
JMP SEGMEN34
SEGMEN35:
MOV P2,#0010010B
MOV P0,#0110000B
ACALL DELAY
JNB P1.0,SEGMEN36
JNB P1.1,SEGMEN34
JMP SEGMEN35
SEGMEN36:
MOV P2,#0000010B
MOV P0,#0110000B
ACALL DELAY
JNB P1.0,SEGMEN37
JNB P1.1,SEGMEN35
JMP SEGMEN36
SEGMEN37:
MOV P2,#1111000B
MOV P0,#0110000B
ACALL DELAY
JNB P1.0,SEGMEN38
JNB P1.1,SEGMEN36
JMP SEGMEN37
SEGMEN38:
MOV P2,#0000000B
MOV P0,#0110000B
ACALL DELAY
JNB P1.0,SEGMEN39
JNB P1.1,SEGMEN37
JMP SEGMEN38
SEGMEN39:
MOV P2,#0010000B
MOV P0,#0110000B
ACALL DELAY
JNB P1.0,SEGMEN40
JNB P1.1,SEGMEN38
JMP SEGMEN39
SEGMEN40:
MOV P2,#1000000B
MOV P0,#0011001B
ACALL DELAY
JNB P1.1,SEGMEN39
JNB P1.0,SEGMEN41
JMP SEGMEN40
SEGMEN41:
MOV P2,#1111001B
MOV P0,#0011001B
ACALL DELAY
JNB P1.0,SEGMEN42
JNB P1.1,SEGMEN40
JMP SEGMEN41
SEGMEN42:
MOV P2,#0100100B
MOV P0,#0011001B
ACALL DELAY
JNB P1.0,SEGMEN43
JNB P1.1,SEGMEN41
JMP SEGMEN42
SEGMEN43:
MOV P2,#0110000B
MOV P0,#0011001B
ACALL DELAY
JNB P1.0,SEGMEN44
JNB P1.1,SEGMEN42
JMP SEGMEN43
SEGMEN44:
MOV P2,#0011001B
MOV P0,#0011001B
ACALL DELAY
JNB P1.0,SEGMEN45
JNB P1.1,SEGMEN43
JMP SEGMEN44
SEGMEN45:
MOV P2,#0010010B
MOV P0,#0011001B
ACALL DELAY
JNB P1.0,SEGMEN46
JNB P1.1,SEGMEN44
JMP SEGMEN45
SEGMEN46:
MOV P2,#0000010B
MOV P0,#0011001B
ACALL DELAY
JNB P1.0,SEGMEN47
JNB P1.1,SEGMEN45
JMP SEGMEN46
SEGMEN47:
MOV P2,#1111000B
MOV P0,#0011001B
ACALL DELAY
JNB P1.0,SEGMEN48
JNB P1.1,SEGMEN46
JMP SEGMEN47
SEGMEN48:
MOV P2,#0000000B
MOV P0,#0011001B
ACALL DELAY
JNB P1.0,SEGMEN49
JNB P1.1,SEGMEN47
JMP SEGMEN48
SEGMEN49:
MOV P2,#0010000B
MOV P0,#0011001B
ACALL DELAY
JNB P1.0,SEGMEN50
JNB P1.1,SEGMEN48
JMP SEGMEN49
SEGMEN50:
MOV P2,#1000000B
MOV P0,#0010010B
ACALL DELAY
JNB P1.1,SEGMEN49
JNB P1.0,SEGMEN51
JMP SEGMEN50
SEGMEN51:
MOV P2,#1111001B
MOV P0,#0010010B
ACALL DELAY
JNB P1.0,SEGMEN52
JNB P1.1,SEGMEN50
JMP SEGMEN51
SEGMEN52:
MOV P2,#0100100B
MOV P0,#0010010B
ACALL DELAY
JNB P1.0,SEGMEN53
JNB P1.1,SEGMEN51
JMP SEGMEN52
SEGMEN53:
MOV P2,#0110000B
MOV P0,#0010010B
ACALL DELAY
JNB P1.0,SEGMEN54
JNB P1.1,SEGMEN52
JMP SEGMEN53
SEGMEN54:
MOV P2,#0011001B
MOV P0,#0010010B
ACALL DELAY
JNB P1.0,SEGMEN55
JNB P1.1,SEGMEN53
JMP SEGMEN54
SEGMEN55:
MOV P2,#0010010B
MOV P0,#0010010B
ACALL DELAY
JNB P1.0,SEGMEN56
JNB P1.1,SEGMEN54
JMP SEGMEN55
SEGMEN56:
MOV P2,#0000010B
MOV P0,#0010010B
ACALL DELAY
JNB P1.0,SEGMEN57
JNB P1.1,SEGMEN55
JMP SEGMEN56
SEGMEN57:
MOV P2,#1111000B
MOV P0,#0010010B
ACALL DELAY
JNB P1.0,SEGMEN58
JNB P1.1,SEGMEN56
JMP SEGMEN57
SEGMEN58:
MOV P2,#0000000B
MOV P0,#0010010B
ACALL DELAY
JNB P1.0,SEGMEN59
JNB P1.1,SEGMEN57
JMP SEGMEN58
SEGMEN59:
MOV P2,#0010000B
MOV P0,#0010010B
ACALL DELAY
JNB P1.0,SEGMEN60
JNB P1.1,SEGMEN58
JMP SEGMEN59
SEGMEN60:
MOV P2,#1000000B
MOV P0,#0000010B
ACALL DELAY
JNB P1.1,SEGMEN59
JNB P1.0,SEGMEN61
JMP SEGMEN60
SEGMEN61:
MOV P2,#1111001B
MOV P0,#0000010B
ACALL DELAY
JNB P1.0,SEGMEN62
JNB P1.1,SEGMEN60
JMP SEGMEN61
SEGMEN62:
MOV P2,#0100100B
MOV P0,#0000010B
ACALL DELAY
JNB P1.0,SEGMEN63
JNB P1.1,SEGMEN61
JMP SEGMEN62
SEGMEN63:
MOV P2,#0110000B
MOV P0,#0000010B
ACALL DELAY
JNB P1.0,SEGMEN64
JNB P1.1,SEGMEN62
JMP SEGMEN63
SEGMEN64:
MOV P2,#0011001B
MOV P0,#0000010B
ACALL DELAY
JNB P1.0,SEGMEN65
JNB P1.1,SEGMEN63
JMP SEGMEN64
SEGMEN65:
MOV P2,#0010010B
MOV P0,#0000010B
ACALL DELAY
JNB P1.0,SEGMEN66
JNB P1.1,SEGMEN64
JMP SEGMEN65
SEGMEN66:
MOV P2,#0000010B
MOV P0,#0000010B
ACALL DELAY
JNB P1.0,SEGMEN67
JNB P1.1,SEGMEN65
JMP SEGMEN66
SEGMEN67:
MOV P2,#1111000B
MOV P0,#0000010B
ACALL DELAY
JNB P1.0,SEGMEN68
JNB P1.1,SEGMEN66
JMP SEGMEN67
SEGMEN68:
MOV P2,#0000000B
MOV P0,#0000010B
ACALL DELAY
JNB P1.0,SEGMEN69
JNB P1.1,SEGMEN67
JMP SEGMEN68
SEGMEN69:
MOV P2,#0010000B
MOV P0,#0000010B
ACALL DELAY
JNB P1.0,SEGMEN70
JNB P1.1,SEGMEN68
JMP SEGMEN69
SEGMEN70:
MOV P2,#1000000B
MOV P0,#1111000B
ACALL DELAY
JNB P1.1,SEGMEN69
JNB P1.0,SEGMEN71
JMP SEGMEN30
SEGMEN71:
MOV P2,#1111001B
MOV P0,#1111000B
ACALL DELAY
JNB P1.0,SEGMEN72
JNB P1.1,SEGMEN70
JMP SEGMEN71
SEGMEN72:
MOV P2,#0100100B
MOV P0,#1111000B
ACALL DELAY
JNB P1.0,SEGMEN73
JNB P1.1,SEGMEN71
JMP SEGMEN72
SEGMEN73:
MOV P2,#0110000B
MOV P0,#1111000B
ACALL DELAY
JNB P1.0,SEGMEN74
JNB P1.1,SEGMEN72
JMP SEGMEN73
SEGMEN74:
MOV P2,#0011001B
MOV P0,#1111000B
ACALL DELAY
JNB P1.0,SEGMEN75
JNB P1.1,SEGMEN73
JMP SEGMEN74
SEGMEN75:
MOV P2,#0010010B
MOV P0,#1111000B
ACALL DELAY
JNB P1.0,SEGMEN76
JNB P1.1,SEGMEN74
JMP SEGMEN75
SEGMEN76:
MOV P2,#0000010B
MOV P0,#1111000B
ACALL DELAY
JNB P1.0,SEGMEN77
JNB P1.1,SEGMEN75
JMP SEGMEN76
SEGMEN77:
MOV P2,#1111000B
MOV P0,#1111000B
ACALL DELAY
JNB P1.0,SEGMEN78
JNB P1.1,SEGMEN76
JMP SEGMEN77
SEGMEN78:
MOV P2,#0000000B
MOV P0,#1111000B
ACALL DELAY
JNB P1.0,SEGMEN79
JNB P1.1,SEGMEN77
JMP SEGMEN78
SEGMEN79:
MOV P2,#0010000B
MOV P0,#1111000B
ACALL DELAY
JNB P1.0,SEGMEN80
JNB P1.1,SEGMEN78
JMP SEGMEN79

SEGMEN80:
MOV P2,#1000000B
MOV P0,#0000000B
setb P3.0
setb P3.1
ACALL DELAY
JNB P1.1,SEGMEN79
JNB P1.0,SEGMEN81
JMP SEGMEN80
SEGMEN81:
MOV P2,#1111001B
MOV P0,#0000000B
CLR P3.0
CLR P3.1
ACALL DELAY
JNB P1.0,SEGMEN82
JNB P1.1,SEGMEN80
JMP SEGMEN81
SEGMEN82:
MOV P2,#0100100B
MOV P0,#0000000B
ACALL DELAY
JNB P1.0,SEGMEN83
JNB P1.1,SEGMEN81
JMP SEGMEN82
SEGMEN83:
MOV P2,#0110000B
MOV P0,#0000000B
ACALL DELAY
JNB P1.0,SEGMEN84
JNB P1.1,SEGMEN82
JMP SEGMEN83
SEGMEN84:
MOV P2,#0011001B
MOV P0,#0000000B
ACALL DELAY
JNB P1.0,SEGMEN85
JNB P1.1,SEGMEN83
JMP SEGMEN84
SEGMEN85:
MOV P2,#0010010B
MOV P0,#0000000B
ACALL DELAY
JNB P1.0,SEGMEN86
JNB P1.1,SEGMEN84
JMP SEGMEN85
SEGMEN86:
MOV P2,#0000010B
MOV P0,#0000000B
ACALL DELAY
JNB P1.0,SEGMEN87
JNB P1.1,SEGMEN85
JMP SEGMEN86
SEGMEN87:
MOV P2,#1111000B
MOV P0,#0000000B
ACALL DELAY
JNB P1.0,SEGMEN88
JNB P1.1,SEGMEN86
JMP SEGMEN87
SEGMEN88:
MOV P2,#0000000B
MOV P0,#0000000B
ACALL DELAY
JNB P1.0,SEGMEN89
JNB P1.1,SEGMEN87
JMP SEGMEN88
SEGMEN89:
MOV P2,#0010000B
MOV P0,#0000000B
ACALL DELAY
JNB P1.0,SEGMEN90
JNB P1.1,SEGMEN88
JMP SEGMEN89
SEGMEN90:
MOV P2,#1000000B
MOV P0,#0010000B
ACALL DELAY
JNB P1.1,SEGMEN89
JNB P2.0,SEGMEN91
JMP SEGMEN90
SEGMEN91:
MOV P2,#1111001B
MOV P0,#0010000B
ACALL DELAY
JNB P1.0,SEGMEN92
JNB P1.1,SEGMEN90
JMP SEGMEN91
SEGMEN92:
MOV P2,#0100100B
MOV P0,#0010000B
ACALL DELAY
JNB P1.0,SEGMEN93
JNB P1.1,SEGMEN91
JMP SEGMEN92
SEGMEN93:
MOV P2,#0110000B
MOV P0,#0010000B
ACALL DELAY
JNB P1.0,SEGMEN94
JNB P1.1,SEGMEN92
JMP SEGMEN93
SEGMEN94:
MOV P2,#0011001B
MOV P0,#0010000B
ACALL DELAY
JNB P1.0,SEGMEN95
JNB P1.1,SEGMEN93
JMP SEGMEN94
SEGMEN95:
MOV P2,#0010010B
MOV P0,#0010000B
ACALL DELAY
JNB P1.0,SEGMEN96
JNB P1.1,SEGMEN94
JMP SEGMEN95
SEGMEN96:
MOV P2,#0000010B
MOV P0,#0010000B
ACALL DELAY
JNB P1.0,SEGMEN97
JNB P1.1,SEGMEN95
JMP SEGMEN96
SEGMEN97:
MOV P2,#1111000B
MOV P0,#0010000B
ACALL DELAY
JNB P1.0,SEGMEN98
JNB P1.1,SEGMEN96
JMP SEGMEN97
SEGMEN98:
MOV P2,#0000000B
MOV P0,#0010000B
ACALL DELAY
JNB P1.0,SEGMEN99
JNB P1.1,SEGMEN97
JMP SEGMEN98
SEGMEN99:
MOV P2,#0010000B
MOV P0,#0010000B
ACALL DELAY
JNB P1.1,SEGMEN98
JMP SEGMEN99
END

3. Video Demo Alat Download Video Demo Alat











Subscribe to receive free email updates:

0 Response to "PENGHITUNG STOK BENDA DENGAN PENCACAH NAIK TURUN "

Posting Komentar