?? msp430xg46x_pb_05.c
字號:
//******************************************************************************
// MSP430xG46x Demo - Write a Word to Port B (Port9+Port10)
//
// Description: Writes a Word(FFFFh) to Port B and stays in LPM4
// ACLK = 32.768kHz, MCLK = SMCLK = default DCO
//
// MSP430xG46x
// -----------------
// /|\| |
// | | |
// --|RST |
// | |
// | |
//
// K. Quiring/ M. Mitchell
// Texas Instruments Inc.
// October 2006
// Built with IAR Embedded Workbench Version: 3.41A
//******************************************************************************
#include <msp430xG46x.h>
void main(void)
{
WDTCTL = WDTPW+WDTHOLD; // Stop WDT
PBDIR |= 0x0FFFF; // PB.x output
PBOUT |= 0x0FFFF; // Set all PB pins HI
_BIS_SR(LPM4_bits + GIE); // LPM4
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -