[code]#include/**the OSC is not work, run this function*/void FaultRoutine(){P1OUT = 0x01;// P1.0 on (red LED)while(1);// TRAP}/** initialize Clock Module* use DCO clock as MCLK and SMCLK* the frequen
本程序用的是软件触发内部测温通道,问题应该在中断程序中,请大家帮忙看看整个程序太多,所以这里省去了显示程序,有关的部分程序如下:#define num 5long IntDeg;static unsigned long results[num]={0};void main(){WDTCTL=WDTPW+WDTHOLD;ADC10_graceInit();LCD_Init();while(1){AD
评论