文件名称:hgfukgugugukg
介绍说明--下载内容均来自于网络,请自行研究使用
单片机C语言教程:流水灯实验
单片机在上电初始后,其各端口输出为高电平。如果我们现在想让接在P1.0口的LED1亮,那么我们只要把P1.0口的电平变为低电平就可以了。想让LED1灭,LED0亮,只需将P1.0升高,P1.1变低,LED1就熄灭LED2随后既点亮!依始类推如下所示8只LED变会一亮一暗的做流水灯了.
P1.0低、P1.0高、P1.1低、P1.1高、P1.2低、P1.2高、P1.3低、P1.3高、P1.4低、P1.4高、P1.5低、P1.5高、P1.6低、P1.6高、P1.7低、P1.7高、返回到开始、程序结束。-SCM C Language Tutorial: water light test of SCM in the initial power-on, its output is high the port. If we now want to take the P1.0 port of LED1 light, then we as long as the P1.0 port into a low level on it. LED1 want to eliminate, LED0 bright, just P1.0 increased, P1.1 goes low, LED1 to LED2 followed by both the light off! Only by analogy as follows in accordance with 8 LED change will be a light to do a dark light of the flowing water. P1.0 low, P1.0 high, P1.1 low, P1.1 high, P1.2 low, P1.2 high, P1.3 low, P1.3 high, P1.4 low, P1.4 high, P1.5 low, P1.5 high, P1.6 low, P1.6 high, P1.7 low, P1.7 high, Return to the beginning, the program ended.
单片机在上电初始后,其各端口输出为高电平。如果我们现在想让接在P1.0口的LED1亮,那么我们只要把P1.0口的电平变为低电平就可以了。想让LED1灭,LED0亮,只需将P1.0升高,P1.1变低,LED1就熄灭LED2随后既点亮!依始类推如下所示8只LED变会一亮一暗的做流水灯了.
P1.0低、P1.0高、P1.1低、P1.1高、P1.2低、P1.2高、P1.3低、P1.3高、P1.4低、P1.4高、P1.5低、P1.5高、P1.6低、P1.6高、P1.7低、P1.7高、返回到开始、程序结束。-SCM C Language Tutorial: water light test of SCM in the initial power-on, its output is high the port. If we now want to take the P1.0 port of LED1 light, then we as long as the P1.0 port into a low level on it. LED1 want to eliminate, LED0 bright, just P1.0 increased, P1.1 goes low, LED1 to LED2 followed by both the light off! Only by analogy as follows in accordance with 8 LED change will be a light to do a dark light of the flowing water. P1.0 low, P1.0 high, P1.1 low, P1.1 high, P1.2 low, P1.2 high, P1.3 low, P1.3 high, P1.4 low, P1.4 high, P1.5 low, P1.5 high, P1.6 low, P1.6 high, P1.7 low, P1.7 high, Return to the beginning, the program ended.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
流水灯实验.txt