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

chuankoutongxin

于 2010-12-10 发布 文件大小:7KB
0 72
下载积分: 1 下载次数: 13

代码说明:

  1.由上位机发送1给单片机时,蜂鸣器以400ms频率发声,发2时以200ms频率发声,发3时以100ms频率发声,发4时关闲蜂鸣器。 1.以2400bps从计算机发送任一字节数据,当单片机收到该数据后,在此数据前加上一序号然后连同此数据一起发送至计算机,当序号超过255时归零。 2.以16进制发送一个0-65536之间的任一数,当单片机收到后在数码管上动态显示出来,波特率自定。 3. 用AD以1HZ的频率采集模拟信号,然后转换成数字量,再将其以1200bps发送到计算机,在计算机上显示。 4.按下矩阵键盘第一行时以1200bps发送,1,2,3,4,第二行时以2400bps发送5,6,7,8,第三行以4800bps发送,9,10,11,12,第四行以9600pbs 发送,13,14,15,16. (1. From the PC to send a single chip, the buzzer to 400ms frequency of sound, made 2 to 200ms frequency sound, made from 3 to 100ms frequency sound, made 4 free buzzer off. 1. To 2400bps from the computer to send any byte of data, when the microcontroller receives the data in this data with a serial number before then sent along with the data to the computer, the serial numbers when more than 255 zero. 2. To send a 16-hexadecimal any number between 0-65536, when the microcontroller in the digital receipt is displayed on a dynamic, custom baud rate. 3. 1HZ with the frequency of AD in order to capture analog signals, then converted to digital, and then send it to 1200bps to the computer, the computer display. 4. Press to 1200bps matrix keyboard to send the first row, 1,2,3,4, 5,6,7,8 the second row to 2400bps send the third line to 4800bps send, 9,10,11,12 , the fourth line to 9600pbs send, 13,14,15,16. )

文件列表:

例程
....\lesson7,1320,2008-01-08
....\lesson7.c,550,2008-01-08
....\lesson7.hex,289,2008-01-08
....\lesson7.lnp,31,2008-01-08
....\lesson7.LST,2050,2008-01-08
....\lesson7.M51,6167,2008-01-08
....\lesson7.OBJ,1514,2008-01-08
....\lesson7.Opt,959,2008-01-08
....\lesson7.plg,0,2008-01-08
....\lesson7.Uv2,1655,2008-01-08
....\lesson7_2.asm,36,2008-01-08
....\lesson7_2.LST,850,2008-01-08
....\lesson7_2.OBJ,241,2008-01-08

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

发表评论

0 个回复

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