Professional Documents
Culture Documents
Rth
1
f 606kHz
1.1RC
The conversion time = 100 us
Vref
2
Computer Control Lab 2
程式碼
ORG 0000H
MOV P2, #0FFH ;Make port2 input.
SETB P1.6 ;Make p1.6 input.
SETB P1.0 ;Turn off LED RED.
SETB P1.1 ; Turn off LED YELLOW.
SETB P1.2 ; Turn off LED GREEN.
MOV DPTR,#0100H
LOOP1:
CLR P1.5 ;WR=0.
SETB P1.5 ;WR=1;Create L to H.