freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

msp430單片機(jī)程序(lt-1bprograms)(專業(yè)版)

2025-09-27 23:42上一頁面

下一頁面
  

【正文】 // UCLK = ACLK UBR00 = 0x03。 // Modulation UCTL0 amp。 // Set WRT bit for write operation for (i=0。 // Clear Lock bit *Flash_ptr = 0。 } } }//****************************************************************************// MSPFET430P140 Demo Flash InSystem Programming, Copy SegA to SegB//// Description: This program first erases flash seg A, then it increments all// values in seg A, then it erases seg B, then copies seg A to seg B.// Assumed MCLK 550kHz 900kHz.// //* Set Breakpoint on NOP in the Mainloop to avoid Stressing Flash *////// MSP430F149// // /|\| XIN|// | | |// |RST XOUT|// | |//// M. Mitchell// Texas Instruments Inc.// Feb 2005// Built with IAR Embedded Workbench Version: //******************************************************************************include include uchar value。 // ACLK, contmode, interrupt _BIS_SR(LPM3_bits + GIE)。 TACTL = TASSEL_2 + MC_1。 // Set to output direction _BIS_SR(LPM3_bits + GIE)。 // Set to output direction for (。 // All outputs P5OUT = 0。 // XT2on, max RSEL BCSCTL2 |= SELS。 // 關(guān)狗 BoardConfig(0xb0)。 case 1: TACTL amp。 //使能全局中斷 LPM0。 // TACTL = TASSEL_1 + ID_3 + MC_1。 Ctrl_0。= ~BIT6define RCLK_1 P3OUT |= BIT3define RCLK_0 P3OUT amp。 //關(guān)閉看門狗 BoardConfig(0xf0)。 //定時器A的時鐘源選擇SMCLK,增計數(shù)模式 P2DIR = 0xff。=~ (ID0 + ID1)。 } if(flag != 3) speed++。 WDTCTL = WDTPW +WDTHOLD。 // All reset P4DIR = 0xFF。ing inside of a software loop.// ACLK= n/a, MCLK= SMCLK= default DCO ~800k//// MSP430F149// // /|\| XIN|// | | |// |RST XOUT|// | |// | |LED//// Dasheng// LiTian Electronic Inc.// Feb 2008// Built with IAR Embedded Workbench Version: //******************************************************************************include include void main(void){ BoardConfig(0xb8)。 WDTCTL = WDT_ADLY_ P3DIR |= BIT4。 // Stop WDT BoardConfig(0xb8)。 CACTL1 amp。 Flash_ptr = (uchar *) 0x1080。 // Set Erase bit FCTL3 = FWKEY。 // UCLK = ACLK UBR00 = 0x0D。 // ,5 = USART0 TXD/RXD ME1 |= UTXE0 + URXE0。 // Modulation UCTL0 amp。 // Enable USART0 RX interrupt// Mainloop for (。 *Flash_ptrB++ = DataBuffer[i]。 i128。void copy_A2B (void)。 // CCR2 not used case 10: P3OUT ^= BIT4。 // Toggle }//******************************************************************************// MSPFET430P140 Demo Timer_A, Toggle , Overflow ISR, DCO SMCLK//// Description: Toggle using software and Timer_A overflow ISR.// In this example an ISR triggers when TA overflows. Inside the TA// overflow ISR is toggled. Toggle rate is approximatlely 12Hz.// Proper use of the TAIV interrupt vector generator is demonstrated.// ACLK = n/a, MCLK = SMCLK = TACLK = default DCO ~800kHz//// MSP430F149// // /|\| XIN|// | | |// |RST XOUT|// | |// | |LED//// Dasheng// LiTian Electronic Inc.// Feb 2008// Built with IAR Embedded Workbench Version: //******************************************************************************include include void main(void){ WDTCTL = WDTPW + WDTHOLD。 // Stop WDT BoardConfig(0xb8)。 // Toggle using exclusiveOR i = 50000。 // All reset while(1) { uint i。 // ,5,5 options while(1) { }}//******************************************************************************// MSPFET430P140 Demo Basic Clock, LPM3 Using WDT ISR, 32kHz ACLK//// Description: This program operates MSP430 normally in LPM3, pulsing // at 4 second intervals. WDT ISR used to wakeup system. All I/O configured// as low outputs to eliminate floating inputs. Current consumption does// increase when LED is powered on . Demo for measuring LPM3 current.// ACLK= LFXT1/4= 32768/4, MCLK= SMCLK= default DCO// //* External watch crystal on XIN XOUT is required for ACLK *// ////// MSP430F149// // /|\| XIN|// | | | 32kHz// |RST XOUT|// | |// | |LED//// Dasheng// LiTian Electronic Inc.// Feb 2008// Built with IAR Embedded Workbench Version: //******************************************************************************include include void main(void){ BoardConfig(0xb8)。 // 關(guān)閉其他LED P2SEL |= BIT3 + BIT4。 break。 //燈的點亮順序D1 D8 } else { if(dir) //燈的點亮順序 D8 D1,D1 D8,循環(huán)繞圈 { P2OUT = ~(0x80(i++))。 _EINT()。 i++) { SRCLK_0。define Ctrl_0 P3OUT amp。 _NOP()。 CCTL0 = CCIE。 flag++。 TACTL |=
點擊復(fù)制文檔內(nèi)容
法律信息相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1