Location:
![](/images/right.gif)
Search - m16 AD
Search list
Description: AVR M16单片机AD转换测试程序,ICCAVR编译,测试通过,-M16 AD converter testing procedures ICCAVR compile, test,
Platform: |
Size: 39776 |
Author: smartter |
Hits:
Description: 这是一个完整的项目文件,程序我已经全部调试完毕,现将软硬件资料全部上传,供大家参考学习。里面包含了M16的AD、EEPROM、定时器、中断、看门狗等内部资源的使用,以及菜单程序、浮点数的存放与取出和显示、液晶显示、数字滤波、按键复用等内容。项目硬件比较简单,AD0、AD1读取两路4-20ma电流信号(由RCV420转换成0-5V的电压信号),AD2读取电压信号
该系统主要完成这样一个工作,从AD0读出温度、AD1读取差压,由这两个值根据一个公式计算出流量并显示,AD2读出全压并显示。系统有4个按键,分别接在4个IO口上,这是个按键是 “设置/退出”、“向上/加1”、“向下/右移”、“确认/保存”,这些按键用于设置3路模拟量的上下限值和其他的一些系统参数。整个系统不算复杂,但程序稍微繁琐,调试较费时。PCB绘制好,正准备制版,等焊好了再发上来吧
因为赶时间,并且项目对运行时间无要求,程序中使用了较多的浮点数,导致HEX文件较大。菜单程序使用了全局变量screen_status来记录菜单的状态。
对于AD值的处理,我使用了一种自己摸索出来的滤波方法,对于AD值在正负2以内的跳动非常有效。具体如下实现:用一个全局变量last_ad来存放上一次AD转换的值,每次显示AD值时都要拿本次的AD值与last_ad做比较,若比last_ad大1,则本次值减1,大2则减2,依此类推,并把处理之后的AD值放入last_ad中作为下次比较的值。这样就可以滤出正负2以内的跳动(对于这样的跳动,平均值滤波是*为力的,具体原因嘛,自己试验一下便知道了)
使用ATMANAVR4.5编译通过,GCC版本为3.4.1 GCC提供了较为丰富的库函数,这个程序中的AD、浮点、EEPROM等都是使用函数完成的,稍后我会贴一篇专门介绍浮点数应用的文章,敬请关注。
另外我把12864液晶的驱动单独做了一个范例文件,放在另一个帖子里了
注:仅供学习使用,请勿用于其他用途
Platform: |
Size: 303407 |
Author: lh20032008@163.com |
Hits:
Description: AVR M16单片机AD转换测试程序,ICCAVR编译,测试通过,-M16 AD converter testing procedures ICCAVR compile, test,
Platform: |
Size: 39936 |
Author: smartter |
Hits:
Description: 用m16编的ad-da转换程序。已经在proteus上面调通。-M16 made by the ad-da conversion process.
Platform: |
Size: 17408 |
Author: guoguo |
Hits:
Description: AVR单片机ATmega16的AD功能测试程序,有仿真图。使用AVR-GCC开发。-AVR Single Chip ATmega16 functional testing of the AD process, there is simulation of Fig. The development of the use of AVR-GCC.
Platform: |
Size: 61440 |
Author: 李迟 |
Hits:
Description: avr m16简单虚拟示波器,简单实用
性能
1:AD速度最高100K/s.最低为4ms间隔采样,一次采400点。
2:触发方式:单次,自动触发。触发电平设置。
3:扫描时间,增益控制(下位机这个功能还没有做出来)。
4:上移下移,时间的缩放。
5:采集点数可变,由宏来实现。
6:计算峰峰值(没做出来),
7:自动设置(没做出来)。
8:运行/停止。
-virtual oscilloscope avr m16 simple, simple and practical performance of 1: AD The maximum speed of 100K/s. a minimum of 4ms sampling interval, a 400-point taken. 2: Trigger Mode: Single, automatic trigger. Trigger level setting. 3: scan time, gain control (under the bit machine this function has not yet done). 4: Move down, the time scaling. 5: Acquisition variable points, from macro to achieve. 6: Calculation of peak-to-peak (not done), 7: automatic settings (not done). 8: Run/Stop.
Platform: |
Size: 631808 |
Author: chen |
Hits:
Description: M16开发板测试程序~
DS1602
数码管
流水灯
AD
按键测试
DS1302
等测试~-M16 Development Board test procedures
Platform: |
Size: 190464 |
Author: 霸气无双 |
Hits:
Description: 本工程为AVR m16的AD转换程序,已测试成功通过-This works for AVR m16 of the AD conversion process, have been tested successfully passed the
Platform: |
Size: 8192 |
Author: 水中捞月 |
Hits:
Description: AVR单片机AD转换器应用简单实例,适合新手的学习与使用,源码可以在M16单片机上验证,有仿真.可以清楚明白使用的办法.-AVR Microcontroller Application of a simple AD converter real inverted
Platform: |
Size: 30720 |
Author: 哈罗 |
Hits:
Description: AVR M16 AD compiled on the proteus envirenment
Platform: |
Size: 96256 |
Author: TEA7171 |
Hits:
Description: AD调光,1602液晶显示,UART发达AD转换数据-AD dimming, 1602 LCD, UART developed AD conversion data
Platform: |
Size: 57344 |
Author: 荣少钟情 |
Hits:
Description: M16 AD采光,发送采光数据,1602显示-M16 AD lighting, sending light data, 1602 show
Platform: |
Size: 21504 |
Author: 荣少钟情 |
Hits:
Description: 本文描述了用M16驱动内部AD的程序和方法-Describes the use of M16 to drive the internal procedures and methods of AD
Platform: |
Size: 645120 |
Author: 胡叶 |
Hits:
Description: 是单片机M16的源程序,是关于AD多通道转换的思路。-M16 is a single-chip source.
Platform: |
Size: 95232 |
Author: liujin |
Hits:
Description: avr m16差分AD和315无线解码代码,C语言环境,带原理图,串口与上位机通讯-avr m16 differential AD and 315 wireless decoding code, C language environment, with schematics, serial communication with the host computer
Platform: |
Size: 178176 |
Author: jiajia |
Hits:
Description:
一个AVR M16的AD转换程序,入门好资料。
-
一个AVR M16的AD转换程序,
A AVR M16 AD conversion process,
Platform: |
Size: 33792 |
Author: 陈彬 |
Hits:
Description: nrf24l01无线AD采样程序,使用mega16l单片机,调试通过-Wireless nrf24l01 AD sampling procedures, mega16l microcontroller debugging through
Platform: |
Size: 84992 |
Author: 李文 |
Hits:
Description: 1.AVR-M16-NRF24L01开发包
a.无线232
b.无线AD传感
c.无线PC计分系统模拟
d.无线双向通信
e.无线温度传感
f.无线遥控
2.STC89C51-24L01实例源代码
a.NRF24l01双向通信
b.NRF24l01无线232通信
c.NRF24l01无线PC控制系统
d.NRF24l01无线记分系统
e.NRF24l01无线温度传感
f.NRF24l01双向通信.rar
g.NRF24l01无线232通信.rar
3.MSP430F149-RF24L01案例参考代码.rar
4.nRF24L01-51Demo.rar
5.RF24L01开发文档.pdf-Development package 1.AVR-M16-NRF24L01 a wireless 232 b wireless AD sensing c wireless PC the scoring system simulation d. Wireless bidirectional communication e. Wireless temperature sensing f. Wireless remote 2.STC89C51-24L01 source code examples Wireless PC control system the a.NRF24l01 bidirectional communication b.NRF24l01 of wireless 232 communications c.NRF24l01 d.NRF24l01 wireless scoring system e.NRF24l01 wireless temperature sensing f.NRF24l01 of two-way communication. rar g.NRF24l01 wireless 232 communications. rar 3.MSP430F149- RF24L01 case reference code. the development documents Rar 4.nRF24L01 51Demo.rar 5.RF24L01. pdf
Platform: |
Size: 10428416 |
Author: lidongxi |
Hits: