使用MSP430F149单片机设计的一个最小系统板,包含晶振电路、复位电路、CH340串口和BSL下载电路、按键和LED电路等,使用了Type-C接口作为供电和串口通信,另外引出了JTAG接口,所有IO口都引出了。
板载了3个按键和LED,可以用于调试或测试。板载的三个LED分别是P3.1、P3.2、P3.3。
MSP430F149是TI(德州仪器)公司设计生产的一款超低功耗的16位单片机,具有 60KB 闪存、2KB SRAM、12 位 ADC、比较器和 SPI/UART 的 8MHz MCU。
实物图:
开发软件 IAR FOR MSP430:https://url.zeruns.tech/yYi1q 密码:egkb
烧录软件 SF_BSL430:https://url.zeruns.tech/p0bHz 密码:x7n2
流水灯例程:https://url.zeruns.tech/1ygAG
工程开源地址:https://oshwhub.com/zeruns/MSP430zui-xiao-ji-tong-ban/
例程源码:
#include "io430.h"
void main(void)
{
WDTCTL = WDTPW + WDTHOLD; // 停用看门狗定时器
P3DIR |= BIT1 | BIT2 | BIT3; // set P3.1, P3.2 and P3.3 as output
P3OUT &= ~(BIT1 | BIT2 | BIT3); // clear P3.1, P3.2 and P3.3
while (1) // 循环执行
{
P3OUT ^= BIT1; // toggle P3.1
__delay_cycles(100000); // delay 100ms
P3OUT ^= BIT2; // toggle P3.2
__delay_cycles(100000); // delay
P3OUT ^= BIT3; // toggle P3.3
__delay_cycles(100000); // delay
}
}
原理图:
PCB图: