在codevision中iom16v.h是什么?
#define ADCL (*(volatile unsigned char *)0x24)#define ADCH (*(volatile unsigned char *)0x25)#define ADCSR (*(volatile unsigned char *)0x26)#define ADCSRA (*(volatile unsigned char *)0x26)#define ADEN 7#define ADSC 6#define ADATE 5#define ADFR 5 \/*This definition was in old d...
求一个单片机程序
movlw B'10001110' ;转换结果右对齐,除RA0为模拟输入口外,其他RA口跟RE口均为普通数字口 movwf ADCON1 CLRF STATUS movlw B'01000001' ;转换时钟频率为内部时钟的1\/8,AN0通道,允许ADC工作,暂时不开启AD转换 movwf ADCON0 ;*** *** movlw 0x00 movwf disbuf movwf disbuf+1 movwf disbuf+2 CLRF STATUS...
51内核的单片机有带AD转换的吗?插针式最好是40脚的,请说明型号谢谢!
倒是AVR单片机中的Atmega16\/32\/8535是DIP40的,带10位ADC。