HW7
HW7
Code:
ORG 0000H //student number is 41075043
MOV DPTR, #LOOK
MOV R0, #3 //so the cycle count is 3
LOOP:
MOV R5, #4 //first four digits
MOV R4, #1
MOV R3, #0
MOV R2, #7
ACALL UPDATE
LJMP LOOP
CPL P2.4
ACALL SHORT
Waveform: 101.317Hz
Video:
https://www.youtube.com/watch?v=0MLOokAuRfA
Experiment 2: 80% High Level Width
Code:
ORG 0000H //student number is 41075043
MOV DPTR, #LOOK
MOV R0, #3 //so the cycle count is 3
LOOP:
MOV R5, #4 //first four digits
MOV R4, #1
MOV R3, #0
MOV R2, #7
ACALL UPDATE
LJMP LOOP
CPL P2.4
ACALL SHORT
Waveform: 100.654Hz
Video:
https://www.youtube.com/watch?v=ijmuMXLw8aI
Breadboard Circuit Layout: