×

Loading Code into the 71M651x without Using an In-Circuit Em

消耗积分:5 | 格式:exe | 大小:62 KB | 2011-02-06

刘芳

分享资料个

Loading Code into the 71M651x without Using an In-Circuit Emulator
 
The Teridian 71M6511 and 71M6513 power meter ICs can be programmed without having to use an in-circuit
emulator (ICE). The tools and procedures required to do this are described in this application note.
Introduction
The program code for the MPU of the 71M6511 and 71M6513 is stored in flash memory, while the program code
for the CE is stored in XRAM. A device with totally erased flash memory requires either an in-circuit emulator
(ICE) or specialized programmer (download board) to be programmed. However, once the device has been
programmed with demo code, data can be downloaded into various memory spaces of the device using the serial
interface.
Downloading  in the context of this application note means storing code from an external device (host PC) in the
71M6511 or 71M6513. Uploading
Code Download
 means copying code from the 71M6511 or 71M6513 to a file on the host PC.
Code download requires the so called Download Board which can be obtained from TERIDIAN. This board is con-
siderably more affordable than an in-circuit emulator and is useful for cases where a chip has lost its code due to
inadvertent code erasure or where existing code in a chip must be upgraded or replaced. The download utility
(DOS or Windows program) that is shipped with the Download Board must be installed in the host PC.
Procedure 
The Download Board is connected to J14 on the Demo board. The DB-9 cable of the Download Board is plugged
into a COM port of a PC. The target code for the 71M6511 or 71M6513, i.e. the file in Intel Hex Record format
(*.hex file name extension) is loaded using the file menu of the download utility. A typical program transfer to the
Demo Board takes only a few seconds. After the program is transferred, the connection to J14 is removed, and
the Demo Board is reset by pressing SW2.
Data Download
The target 71M6511 or 71M6513 must have Demo Code or an equivalent program running, and access must be
possible to the serial  interface. This is accomplished most easily by using the Demo Board with its companion
Debug Board. A serial cable is plugged into the 9-pin D-sub connector of the Debug Board on one side and into a
COM port of a PC on the other side. Some sort of terminal program, such as HyperTerminal must be used on the
PC in conjunction with a simple ASCII (text) editor, such as Wordpad.  
Code to be downloaded into the 71M6511 or 71M6513 must be in Intel Hex Record format. Typically, the file
extension for this file format is *.hex.

声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容侵权或者其他违规问题,请联系本站处理。 举报投诉

评论(0)
发评论

下载排行榜

全部0条评论

快来发表一下你的评论吧 !