资 源 简 介
keilc + proteus
并行口设计指示灯实验
要求:掌握80C51单片机输入输出接口使用方法
学会开关量输入输出控制的接口技术及编程方法
实验题目:8个发光二极管D1~D8分别接在单片机P1.0-P1.7端口上,一个开关接在P3.0上。要求输出端口输出 “0”时,发光二极管亮。开关闭合时,开始按P1.0-P1.1-...-P1.7的顺序依次点亮LED,再按 P1.7-P1.6 -...-P1.0的顺序点亮LED,重复循环。开关断开时,立刻停止点亮指示灯。-keilc+ proteus light parallel port design of experiments requirements: master the 80C51 microcontroller input and output interfaces Society of switch to use the amount of input and output control interface technology and programming methods Experimental subjects: eight light-emitting diodes D1 ~ D8, respectively connected to the MCU P1.0-P1 .7 port on a switch connected to the P3.0 on. Requested output port output " 0" , the light-emitting diode light. Is closed, to embark on the P1.0-P1.1-...- P1.7 in the order light LED, and then P1.7-P1.6-...- P1.0 order light LED Repeat cycle. Switch off when the stop light indicator.