文件名称:adzhuanhuan
- 所属分类:
- 其他嵌入式/单片机内容
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2013-04-08
- 文件大小:
- 87kb
- 下载次数:
- 0次
- 提 供 者:
- 杨**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
勇PIC单片机的模拟量输入通道AN0进行直流A/D采集。MSSP模块工作在IIC模式,并设置为主模式,对外部的24LC024-EEPROM进行读写。编写程序实现功能:在LCD上实时显示采集的电压值。当SW2按键按下时,通过IIC总线把当前采集的电压写入EEPROM的00H和01H单元,并在LCD上显示写入的电压值,再次按下SW2退出到采集状态。当SW3按键按下时,通过IIC总线从EEPROM的00H和01H单元中读出数据进行验证,并在LCD上显示读出的电压值,再次按下SW3退出到采集状态-Yong PIC microcontroller analog input channels AN0 DC A/D acquisition. MSSP module in IIC mode, and set the main mode of external 24LC024-EEPROM read and write. Write a program to achieve functional: the voltage value of the collection is displayed in real time on the LCD. When SW2 button is pressed by the IIC bus voltage current acquisition write EEPROM 00H and 01H unit, and write the voltage value on the LCD display, press SW2 again to exit to the acquisition state. SW3 button pressed by the IIC bus EEPROM 00H and 01H unit read data validation, and the voltage value displayed on the LCD readout again to Press SW3 exit to the acquisition state. .
(系统自动生成,下载前可以参看下载内容)
下载文件列表
AD转换与IIC总线读写EEPROM
.........................\18f452i.lkr
.........................\Ex5-1.cod
.........................\Ex5-1.cof
.........................\Ex5-1.hex
.........................\Ex5-1.lst
.........................\Ex5-1.map
.........................\Ex5-1.mcp
.........................\Ex5-1.mcs
.........................\Ex5-1.mcw
.........................\Ex5-1.mptags
.........................\Ex5-1.tagsrc
.........................\P18F_LCD.h
.........................\WAP_LCD.c
.........................\WAP_LCD.o
.........................\ex5-1.c
.........................\ex5-1.o