当前位置:首页 > 嵌入式 > 嵌入式电路图
[导读]自己动手制造at89c2051编程器(英文)

Build your own a personal writer for programming HEX code into Flash based microcontroller AT89C2051(2k) and AT89C4051(4k). Simple hardware and Easy use software in DOS and Window version. Single-side and double side PCB files included.Acrobat files for PCB image. IntroductionThe first version of the Easy-Downloader was designed in 1997 to be used as a tool for my students on building her/his own microcontrollers circuit in the class ' Designing Microprocessors System'. The circuit features low-cost and easy use. The latest version V1.1 was designed to be used with 2051 and the newest 4051 chips. There is no separated functions like other programmer e.g., blank check, erase, write. Simply type say, c:/..>ez hello , the hex file 'hello.hex' will then be programmed to the chip automatically. If the chip is not blank or the code is locked, it will erase first, then write and verify... that all. HardwareFigure 1 depicts a circuit diagram of the Easy-Downloader. As shown, the circuit uses a 89C2051 with writer.hex firmware, 74LS373 8-bit latch, DS275-like, 7805, LM317 and two transistors, 2N2222A and 2N2907A. The programming voltage control circuit is the same as recommended by ATMEL application note. It can be raised from 0V, 5V and 12V by appropriated signal from P3. The 8-bit latch, 74LS373 provides some signal for selecting the programming modes. A byte to be programmed or read back is sent/received through P1. Incrementing address is done by pulsing a positive pulse to XTAL pin. The circuit may be built using simple point-to-point soldering with a general purpose PCB( fish's egg like PCB) or making PCB shown above, the file is Easy-v1.pcb Protel PCB version 2.76. The finished board should be tested without any chips; 1) +5V supply, 2) programming voltage 0V, 5V and 12V by connecting the pin that control (P3.5 and D) 2N2222A and 2N2907 to +5V and/or GND. The adapter output should be approx. 15Vdc 100mA.

Figure 1: Circuit Diagram of Easy-Downloader V1.1 Acrobat PCB Files

As suggested by a friend from Romania, Puiu Chiselita, to provide PCB image in Acrobat file, so I have asked my friend, Jaroon Keawkhrua. He made within an hour, thanks again for providing us, the Acrobat PCB file.

TOP LAYER (80kB) easy-v2t.pdf

BOTTOM LAYER (36kB) easy-v2b.pdf

COMPONENT LAYER (51kB) easy-v2o.pdf

Software

Two files that you should get are: writer.hex 4,871 bytes, the intel hex file firmware for 89C2051 chip ( the actual code size is 2021 bytes) and, ez.exe 20,800 bytes the uploader program run on PC, send hex file to the downloader. The original writer.c program was written in 'C'. To modify, it needs Micro C-compiler from Dunfield Development System Ontario Canada with tiny memory model. Functional TestUse a given programmer (or ready made Easy-Downloader) write the writer.hex into the 2051 chip. Put the programmed 2051 chip to the board. Invoke any communication software with 9600 baud, 8-data bit, no parity. Connect DB-9 to COM1, say, press enter key, the title 'Easy-Downloader V1.1 for ATMEL 89C2051/4051' would be appeared on the screen. type >s2048 ( set byte counter to 2k), then without the 2051 chip in ZIF, type >r (read 2kB), on screen would show FFFFFFFFFFF... indicating corrected wiring for P1. If you put the chip having already program inside, r command will show the hex code with the number of byte set by s command. Try e command to erase the entire program!! All done. Figure 2 shows example of using Xtalk program to test the board.

Figure 2: Using Xtalk to test the board Now try with 'ez' the uploader program to help you more easy to write the hex file to the chip. Example of using ez is shown in Figure 3. Have fun...

Figure 3: Example of using EZ program writes the writer.hex to 2051 chip

Figure 4: Example of Using EZ3 and EZ3.1 DownloadEZ Uploader V3.0 for Window The EZ Uploader provides a simple means of sending HEX file to the writer board. To connect the board with EZ, click available COM port, COM1, say. After the EZ recognizes the chips, then click Send Hexfile, that all. Since there is no signature byte that indicates chip number and programming voltage, thus you have to choose the appropriated memory size either 2051 or 4051 manually, i.e., 2048 or 4096 respectively.

Download EZ Uploader V3.1 for Window An upgraded version of EZ3 with RAED and SAVE AS features for reading HEX code resided in the chip and save as an Intel HEX file. Tips HEX file extensionSome Assembler or Compiler produce output hex file with .OBJ instead of .HEX. The EZ needs .HEX extension, just rename it... Expensive ZIF SocketWithout expensive ZIF socket, you may use an ordinary socket instead, surely many times of pulling the chips may cause the far end leg of the 2051 chip broken. My student suggests me to insert one more socket to the 2051 chip. It works very nice. Even the programmer has ZIF, but your application board does not have. Better to insert one socket to strengthen the 2051's leg. DC AdapterAny DC adapters, fixed or adjustable can be used, a bridge diode corrects polarity for the regulator IC eventually. Many adapters provide higher DC output than the value labeled, to ensure, check the proper programming voltage that must be in the range of 11.5 to 12.5V. Putting Right PositionThe latest version does not include the protection circuit if putting wrong position, i.e., GND-Vcc <--> Vcc-GND.

Thus before put the chip into the programmer or your application board, back to see your thought, say I am putting the 2051 chip to the right position, then pick the chip, and place it... 89C1051There's no problem with 89C1051 chip but ensure that the hex code must less than 1024 bytes (000H to 3FFH). While verifying after erase it showed 0 to 2048 byte as the 2051 chip, it means twice reading, i.e., 000H-3FFH then 000H-3FFH, the same physical address. When programming, the control chip will write and verify only the size of program.

 
本站声明: 本文章由作者或相关机构授权发布,目的在于传递更多信息,并不代表本站赞同其观点,本站亦不保证或承诺内容真实性等。需要转载请联系该专栏作者,如若文章内容侵犯您的权益,请及时联系本站删除。
换一批
延伸阅读

欧洲药品管理局人用药品管理委员会 (CHMP) 的积极建议是基于 EFFISAYIL® 1 研究结果,该研究是针对泛发性脓疱型银屑病 (GPP) 发作患者的最大的临床研究[1] 与斑块状银屑病不同,GP...

关键字: HM BSP GP FOR

(全球TMT2022年10月14日讯)以“自由构建 探索无限”为主题的亚马逊云科技中国峰会在线上召开。在本次为期2天的峰会上,亚马逊云科技发布了云计算技术趋势展望,宣布“连中外、襄百业、携伙伴、促绿色”四大战略举措,进...

关键字: FOR 亚马逊 SAP NVIDIA

智能汽车算力竞赛已现峥嵘,后摩尔时代的芯片厂商路在何方? 时不我待,中国车载芯片企业正在崛起,谁能领跑? Chiplet赋能嵌入式高性能计算,智能汽车如何获益? 上海2022年10月12日 /美通社/...

关键字: CHIP 智能汽车 摩尔定律 PS

《财富》杂志(Fortune)公布了2022年财富改变世界(Fortune Change the World)榜单,其中列出了50多家公司,这些公司今年通过盈利战略和运营对社会或环境产生了重要影响。榜单包括54家公司:北...

关键字: 美团 FOR CHANGE DEVELOPMENT

10月6日,阿科玛宣布其在华合作伙伴山东澳帆新材料有限公司的生产装置成功开车,这符合集团先前宣布的发展氟化物特种解决方案1233zd供应的计划。此外,在其位于美国Calvert City的生产基地,阿科玛也已启动1233...

关键字: FOR 新材料 AN

据德国联邦经济与气候保护部最新消息,该部委托 WifOR 机构所做的 2021 年德国医疗保健领域经济核算数据显示,德国医疗保健行业增长显著。 数据显示,在  2021 年新冠期间,该领域显著增长,并达到了毛附加价值为...

关键字: FOR

(全球TMT2022年9月21日讯)"迈向智能世界"峰会在华为全联接大会(HUAWEI CONNECT 2022)期间举办。华为常务董事、ICT基础设施业务管理委员会主任汪涛发表"拥抱5.5G时代,迈向智能世界"主题发...

关键字: 华为 5G 5G时代 FOR

芝加哥2022年9月17日 /美通社/ -- 采用尖端微应答器技术彻底改变实物产品与材料跟踪的公司P-Chip Corporation,今日推出最新突破性p-Chip Code™安全跟踪标签。p-Chip代码跟踪器将基于...

关键字: CHIP 代码 应答器 矩阵

北京2022年9月10日 /美通社/ -- 9月9日,于美国纳斯达克上市的灵活用工下的本地化社区服务平台趣活集团发布了2021年全年财务报告。财报显示,趣活集团2021年全年总营收40.25亿元,同比增长56%。 根据...

关键字: 共享单车 FOR 创始人 纳斯达克

新加坡2022年9月5日 /美通社/ -- 全球科技领导者思科(Cisco)在最新发布的2022年亚洲最佳职场(Best Workplaces in Asia)榜单中排名第二...

关键字: 思科 Cisco COM FOR

嵌入式电路图

388 篇文章

关注

发布文章

编辑精选

技术子站

关闭