Quantcast
Channel: MSP 低功耗微控制器论坛 - 最近的话题
Viewing all articles
Browse latest Browse all 3634

利用看门狗产生方波的原理是怎么的一回事?

$
0
0

#include <msp430f5529.h>

void main(void)
{

P1DIR |= 0x01; // Set P1.0 to output - SET BREAKPOINT HERE
P1OUT ^= 0x01; // Toggle P1.0

__bis_SR_register(LPM4_bits + GIE); // Enter LPM4, Stop all clocks
__no_operation(); // For debugger
}


Viewing all articles
Browse latest Browse all 3634

Trending Articles