NXP ISP下载线路问题

     我用一个公司自制的模块,模块的MCU是NXP LPC2109,进行ISP下载及运行时,非常不稳定,弄得自己非常郁闷。现在有空找出图来,与周立功的EasyARM 2100开发板进行对比,还好,ISP部分近乎一样。由于使用的是UART0,初一看去,只要4根线就够了(VDD,GND,TxD0和RxD0),但是还需要P0.14作ISP跳线,这在LPC2114中也是一样。这个脚在数据手册中标明了三个用途:GPIO/UART1的数据载荷检测输入/外部事件1,似乎与UART0无关。在周立功的一本书中找到一个说明:“RESET为低时,P0.14的低电平将强制片内引导装载程序复位后控制器件的操作”。在EasyARM 2100上,这个脚还连了个上拉电阻,公司的板子有,但是公司的是将上拉后的P0.14直接连到ISP模块上,ISP模块上这根线又直接接地。怕是公司想用最简单直接的方法:拔插头。后来,我在MCU模块与ISP模块之间的P0.14连接线上接了个开关代替跳线,试了几次倒也正常。简图如下:

 

    关于这个带MCU的模块还有一个地方要提一下,当时我们一位同事想试试能不能用UART1代替UART0,最后虽然权衡了应用,也满足了他的好奇心,但是给我们写程序这边带来了麻烦。我就只能从插头上拔掉接TxD1和RxD1的两根线,插到TxD0和RxD0上。

    记下它,下次使用时也知道这些问题的存在。

Portable command line ISP for NXP LPC2000 family and Analog Devices ADUC 70xx Version 1.79 compiled for Windows: Aug 4 2010, 10:55:56 Copyright (c) by Martin Maurer, 2003-2009, Email: Martin.Maurer@clibb.de Portions Copyright (c) by Aeolus Development 2004, www.aeolusdevelopment.com Syntax: lpc21isp [Options] file[ file[ ...]] comport baudrate Oscillator_in_kHz Example: lpc21isp test.hex com1 115200 14746 Options: -bin for uploading binary file -hex for uploading file in intel hex format (default) -term for starting terminal after upload -termonly for starting terminal without an upload -localecho for local echo in terminal -detectonly detect only used LPC chiptype (PHILIPSARM only) -debug0 for no debug -debug3 for progress info only -debug5 for full debug -donotstart do not start MCU after download -try try n times to synchronise -wipe Erase entire device before upload -control for controlling RS232 lines for easier booting (Reset = DTR, EnableBootLoader = RTS) -controlswap swap RS232 control lines (Reset = RTS, EnableBootLoader = DTR) -controlinv Invert state of RTS & DTR (0=true/assert/set, 1=false/deassert/clear). -verify Verify the data in Flash after every writes to sector. To detect errors in writing to Flash ROM -logfile for enabling logging of terminal output to lpc21isp.log -halfduplex use halfduplex serial communication (i.e. with K-Line) -ADARM for downloading to an Analog Devices ARM microcontroller ADUC70xx -PHILIPSARM for downloading to a microcontroller from NXP(Philips) LPC13xx/LPC17xx/LPC2000 family (default) 请按任意键继续. . .
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值