13054| 4
|
stc12c5a60s怎么把ADC_RES和ADC_RESL寄存器的值存入數(shù)組? |
100黑幣
最佳答案以下內(nèi)容來源于《51單片機輕松入門-基于STC15W4K系列》第9章
功能:將AD轉(zhuǎn)換結(jié)果發(fā)計算機顯示。
#include "UART.H" // 包含IAP15W4K58S4寄存器定義文件
#define VCC 4.972 // 存放用萬用表實測的單片機供電電壓
unsigned int ADC_P11()
{
unsigned int i; // 用于軟件延時程序
unsigned char status; // 用于判斷AD轉(zhuǎn)換結(jié)束的標志
unsigned int AD_Dat=0; // 10 ...
| ||
相關(guān)帖子
|
||
評分
| ||||||||
| ||
| ||
| ||
Powered by 單片機教程網(wǎng)