High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
Program flash 12 led dan 2 port slideshre
1. N A M A : VA L E N T I N O U T A M A S A P U T R A
C H E M A M A U L A N A
N P M : 1 7 1 0 5 0 1 0 1 0 , 1 7 1 0 5 0 1 0 5 4
D O S E N P E M B I M B I N G : R . S U R Y O T O E D Y R A H A R J O ,
S . T . , M . E N G .
M A T A K U L I A H : S I S T E M M I K R O K O N T R O L L E R
J U R U S A N T E K N I K E L E K T R O
F A K U L T A S T E K N I K
U N I V E R S I T A S T I D A R
2 0 1 9
2. BERIKUT INI ADALAH PROGRAM YANG DIBUAT,
ADA 3 PROGRAM MENGGUNAKAN BASKOM
YAITU :
› Program pada Bascom AVR Variasi LED 1
› $regfile = "m16def.dat"
› $crystal = 8000000
› Config Porta = Output
› Config Portb = Output
› Do
› Porta = &B11111111
Portb = &B00001111
› Waitms 100
› Porta = &B00000000
› Portb = &B00001000
› Waitms 100
› Loop
› End
3. PROGRAM LED 2
$regfile = "m161def.dat“
$crystal = 8000000
Config Porta = Output
Config Portb = Output
Do
Porta = &B01100000
Portb = &B00000000
Waitms 100
Porta = &B10010000
Portb = &B00000000
Waitms 100
Porta = &B00001000
Portb = &B00000001
Waitms 100
4. Porta = &B00000100
Portb = &B10000010
Waitms 100
Porta = &B00000010
Portb = &B00000100
Waitms 100
Porta = &B10000001
Portb = &B00001000
Waitms 100
Porta = &B00000000
Portb = &B00000000
Waitms 100
Loop
End
5. PROGRAM LED 3
$regfile = "m16def.dat"
$crystal = 8000000
Config Porta = Output
Config Portb = Output
Do
Porta = &B00000000
Portb = &B00000000
Waitms 100
Porta = &B01100000
Portb = &B00000000
Waitms 100
Porta = &B10010000
Portb = &B00000000
Waitms 100
6. Porta = &B00001000
Portb = &B00000001
Waitms 100
Porta = &B00000100
Portb = &B00000010
Waitms 100
Porta = &B00000010
Portb = &B00000100
Waitms 100
Porta = &B00000001
Portb = &B00001000
Waitms 100
Loop
End