- 博客(4)
- 收藏
- 关注
原创 MSP430F5529 LunchPad开发学习四:串口
#include <msp430.h> #include "Pwm.h" #include "Uart.h" /** * main.c */ int main(void) { WDTCTL = WDTPW | WDTHOLD; // stop watchdog timer, if not, System will continue to Reset! P1DIR |= 0x01; // configure P1.0 as output
2021-05-18 10:00:07
343
原创 MSP430F5529 LunchPad开发学习三:定时器
#include "Uart.h" void Uart_Init() { P3SEL |= 0x38; UCA0CTL1 |= 0x01; UCA0CTL1 |= 0x40; UCA0BR0 = 3; UCA0BR1 = 0; UCA0MCTL = 3 << 1; UCA0CTL1 &= 0xFE; UCA0IE = 1; //要放在CTL1复位后 return; } #include "Pwm.h
2021-05-16 21:32:26
166
原创 MSP430F5529 LunchPad开发学习二:PWM
#include <msp430.h> #include "Pwm.h" /** * main.c */ int main(void) { WDTCTL = WDTPW | WDTHOLD; // stop watchdog timer, if not, System will continue to Reset! P1DIR |= 0x01; // configure P1.0 as output P4DIR |= 0x80;
2021-05-09 21:37:55
227
原创 MSP430F5529 LunchPad开发学习一:LED
MSP430F5529 LunchPad(1) #include <msp430.h> void main(void) { WDTCTL = WDTPW | WDTHOLD; // stop watchdog timer P1DIR |= 0x01; // configure P1.0 as output P4DIR |= 0x80; // configure P4.7 as output P2DIR &= ~(0x01
2021-05-08 20:54:56
126
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人