-
谁能帮我看看n76e003可调电源的程序
开机后oled上ADC电压值有变化,旋转编码器后,oled就显示一个值没有变化#include#include"N76E003.h"#include"Common.h"#include"Delay.h"#include"SFR_Macro.h"#include"Function_Define.h"#include"oled.h"#include"bmp.h"UINT8temp=0xD7;UINT8temp1=0x02;voidADC_ISR(void)interrupt11{if(ADCF){clr_ADCF;set_ADCS;//printf("\nValue=0x%bx",ADCRH);}}voidshow(){uint16_tBandGap_H,BandGap_L,BandGap_v;uint16_tvoltage=0;charaa[10];floatv;BandGap_H=ADCRH;BandGap_L=ADCRL;BandGap_v=BandGap_H
2020-11-16 4