关于单片机汇编程序的设计

[复制链接]
查看11 | 回复1 | 2008-12-31 23:41:57 | 显示全部楼层 |阅读模式
关于单片机汇编程序的设计
测温范围0~400度。A/D采用AD574,单极性10V输入,输出方式为先读出12位中的高8位,再读12位中的低4位。前面的测温电路已将0~400度线性对应了0~10V,请问如何编制汇编程序将A/D读出来的值对应转换成正确的温度,单片机为AT89C51。

回复

使用道具 举报

千问 | 2008-12-31 23:41:57 | 显示全部楼层
#include #include #include [I]#define uchar unsigned char#define uint unsigned intvoid delay1(uint x);void timedelay(uint timess);extern uchar chai7;extern uchar a_func7(uchar);void timedelay(uint timess){ uint tj; for (tj=timess;tj>0;tj--){;}}sbit SDA=P1^2;sbit SCL=P1^3...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行