Σ

P1.0P1.018031P1.0P1.1P1.2.P1.7P1P0P2P33273239PP10P11��P17LED

MAIN MOV P1#0FFH

LCALL DELAY

MOV P1#00H

LCALL DELAY

LJMP MAIN

DELAYMOV R7#250

D1 MOV R6#250

D2 DJNZ R6D2

DJNZ R7D1

RET

END

γдоУΣ8LEDP10��P17P3232LEDл

γSETB P1.0MOV P1#0FFHCLR P1.0MOV P1.0#00HпP1P1.0��P1.7P1еMOV2P1壬洢MOV

32

MAIN MOV P3#0FFH

LOOP MOV AP3

MOV P1A

LJMP LOOP

е·

·P3P32P33P34P35P3MOV AP3 MOVP3AAм3AеP13P12P12P1дP3AP1P3P12λP3P32λP32λP12P3á234P3P32пп

  1. п

1

P1λпCPU磬δ仯洢洢С洢λ洢λλС

2

пλ51λ任

κο21001СI/O

P1λP1λP0P2P3ЩЩ