Professional Documents
Culture Documents
Tugas Mekatronika (Kel - Pressure Switch)
Tugas Mekatronika (Kel - Pressure Switch)
:
/ 4314217008
/ 4312215133
/ 4311215111
Soal :
1. Buatlah program :
- Lampu merah menyala setiap 250 detik
- Lampu kuning menyala setiap 500 detik
- Lampu hijau menyala setiap 375 detik
Pakai program syntax millis
Jawab :
Bit
Bit
Bit
Bit
Bit
Bit
Bit
Bit
0
1
2
3
4
5
6
7
Tombl 1
Tombl 2
Tombl 3
Tombl 4
Led Merah
Led Kuning
Led Hijau
Buzzer
Port
Port
Port
Port
Port
Port
Port
Port
A0
A1
A2
A3
A4
A5
A6
A7
Pin
Pin
Pin
Pin
Pin
Pin
Pin
Pin
24
25
26
27
28
29
30
31
Port
Port
Port
Port
Port
Port
Port
Port
B0
B1
B2
B3
B4
B5
B6
B7
Port
Port
Port
Port
Port
Port
Port
Port
C0
C1
C2
C3
C4
C5
C6
C7
Pin
Pin
Pin
Pin
Pin
Pin
Pin
Pin
16
17
18
19
20
21
22
23
Port
Port
Port
Port
Port
Port
Port
Port
D0
D1
D2
D3
D4
D5
D6
D7
Pin 8
Pin 9
Pin 10
Pin 11
Pin 12
Pin 13
Pin 14
Pin 15
Pin
Pin
Pin
Pin
Pin
Pin
Pin
Pin
0
1
2
3
4
5
6
7