我用PIC16F1937的DAC输出RA2外接LM258缓冲输出,只要DACOE=1,将DAC输出到RA2引脚,大约2~3秒就会死机。但是DAC的输出电压是正常的。
DACCON1 = 0x0F;
DACEN = 1; //enable DAC
DACPSS0 = 0;
DACPSS1 = 0; //set VDD as DAC Positive Source
DACNSS = 0; //set VSS as DAC Negative Source
DACOE = 1; //DAC voltage level is also an output on the DACOUT pin
若DACOE=0,DAC电压不输出到引脚,就不会死机。
请各位同行帮忙分析,不胜感激! |