4800|1

6366

帖子

4917

TA的资源

版主

楼主
 

将MSP430 LaunchPad 作为一个编程器的使用方法 [复制链接]

Using MSP430 LaunchPad As Programmer

In this blog post, I will show you how to program an MSP430G2 series chip outside the MSP430 LaunchPad (MSP-EXP430G2) development board using the Launchpad itself as a programmer. This is useful for doing in-system programming without having to swap the target chip in and out of the LaunchPad.

Each MSP430 LaunchPad comes with its own flash emulation hardware as well as the MCU itself, and thus it can be used as a programmer independent of the rest of the MCU circuitry. By default, the programming headers (see picture below) are connected to the on-board MCU via jumpers, but the jumpers can be easily removed so that you can use the flash emulation portion by itself as a programmer.

MSP430G2 devices support the Spy-Bi-Wire interface (see slau320d: Programming Via the JTAG Interface) and the corresponding pins are brought out via the TEST and RST pins:

MSP430G2 External Programmer

MSP430G2 External Programmer

On 14 pin devices (e.g. MSP430G2231, MSP430G2211), the SBWTDIO (Spy-Bi-Wire test data input/output) pin corresponds to pin 10 (RST) and the SBWTCK (Spy-Bi-Wire test clock) pin corresponds to pin 11 (TEST). On 20 pin devices (e.g. MSP430G2452, MSP430G2553), the SBWTDIO pin is pin 16 and SBWTCK pin is pin 17. The relative locations for these two Spy-Bi-Wire pins are the same across all MSP430G products.

MSP430G2 External Programmer

MSP430G2 External Programmer

To program an external MSP430G2 device, you need to simply remove all the jumpers from the LaunchPad develpment board and connect the TEST, RST and ground pins with your target device (see picture below). Since the on-board MCU will be disconnected from the flash emulation circuitry there is no need to remove the MCU from the Launchpad when programming an external device. And the external device does not have to be the same type as the one on the LaunchPad either.

In the picture below, the RxD pin is also connected, this was for my testing purpose and is not needed for programming the chip.

According to the reference design, a 47K resistor should be used as the pull-up resistor on the RST pin.

MSP430G2 External Programmer

MSP430G2 External Programmer

Using this setup, you can program the external chip using TI’s Code Composer Studio the same way as you would with the LaunchPad, except in this case the external chip is being programmed instead of the chip on the LaunchPad.

最新回复

不错的文章,很有收获。  详情 回复 发表于 2013-9-25 15:19
 
点赞 关注

回复
举报

15

帖子

0

TA的资源

一粒金砂(中级)

沙发
 
不错的文章,很有收获。
 
 

回复
您需要登录后才可以回帖 登录 | 注册

随便看看
查找数据手册?

EEWorld Datasheet 技术支持

相关文章 更多>>
关闭
站长推荐上一条 1/6 下一条

 
EEWorld订阅号

 
EEWorld服务号

 
汽车开发圈

About Us 关于我们 客户服务 联系方式 器件索引 网站地图 最新更新 手机版

站点相关: 国产芯 安防电子 汽车电子 手机便携 工业控制 家用电子 医疗电子 测试测量 网络通信 物联网

北京市海淀区中关村大街18号B座15层1530室 电话:(010)82350740 邮编:100190

电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号 Copyright © 2005-2025 EEWORLD.com.cn, Inc. All rights reserved
快速回复 返回顶部 返回列表