登录
首页 » C/C++ » P1ExE

P1ExE

于 2008-12-22 发布 文件大小:56KB
0 83
下载积分: 1 下载次数: 11

代码说明:

  P1口扩展实验 P1口既做输入口又做输出口,KEY1做为左转弯开关,KEY2做为右转弯开关。LED5、LED6做为左转弯灯,LED7、LED8做为右转弯灯(如图2-2)。 编程实现汽车转向灯功能,即:KEY1接高电平KEY2接低电平时,右转弯灯灭,左转弯灯以一定频率闪烁(注意:KEY拨向上方为0);KEY2接高电平KEY1接低电平时,左转弯灯灭,右转弯灯以一定频率闪烁;KEY1、KEY2同时接低电平时,发光二极管全灭;KEY1、KEY2同时接高电平时,发光二极管全亮。(P1 I extended not only to do experiments P1 I also do input output, KEY1 switch as a left turn, KEY2 as switches and turn right. LED5, LED6 as a left turn lights, LED7, LED8 as lights and turn right (Figure 2-2). Programming car turn signal function, namely: KEY1 high key2 access low-level access, the right turn lights out, left turn to a certain frequency of flashing lights (Note: KEY allocated to the top to 0) KEY2 access high Key1 low-level access, the left turn lights out, turn right to a certain frequency of flashing lights KEY1, KEY2 low at the same time, the light-emitting diode body KEY1, KEY2 high at the same time, the light-emitting diode light-wide.)

文件列表:

P1ExE
.....\Last Loaded P1Ex.DBK
.....\Last Loaded P1ExE.DBK
.....\P1ExE
.....\P1ExE.c
.....\P1ExE.DSN
.....\P1ExE.hex
.....\P1ExE.lnp
.....\P1ExE.LST
.....\P1ExE.M51
.....\P1ExE.OBJ
.....\P1ExE.Opt
.....\P1ExE.plg
.....\P1ExE.PWI
.....\P1ExE.Uv2
.....\Script2.c
.....\STARTUP.A51
.....\STARTUP.LST
.....\STARTUP.OBJ

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 696518资源总数
  • 104269会员总数
  • 31今日下载