msp 430 教程#include char digit[20] = {1,0,0,0,0,2,1,8};unsigned char distab[]= { 0xaf,0x06,0x6d,0x4f,0xc6,0xcb,0xeb,0x0e,作者魏小龙 南航 MSP430 选修课试用教材 第 101 页0xef,0xcf};void main(void){int i;WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timerFLL_CTL0 |= XCAP14PF; // Configure load capsLCDCTL = 0XFD;BTCTL = BTFRFQ1; // STK LCD freqP5SEL = 0xFC; // Common and Rxx all selectedTACTL = TASSEL1 + TACLR; // SMCLK, clear TARCCTL0 = CCIE; // CCR0 interrupt enabledCCR0 = 20000;TACTL |= MC1; // Start T
飞网下载站,免费下载共享资料,内容涉及教育资源、专业资料、IT资源、娱乐生活、经济管理、办公文书、游戏资料等。