摘要
通常ISP下载线的硬件电路和软件设计都比较复杂,不易掌握。介绍一种硬件电路和软件设计都很简单的AVR单片机下载程序设计。下载线为并口ISP下载线。分析了PC机并口相关电路和ISP下载线电路的工作原理,介绍了AVR单片机的串行编程指令及其算法。最后,以AVR单片机的ATtiny13芯片为例给出了C语言编写的ISP下载程序。
Most of the hardware circuit and software design of ISP download cable are complicated, hence hard to master. In this paper, a kind of AVR MCU's downloading program design, the hardware circuit and software design of which are both very simple, is introduced. The download cable is a parallel port ISP one. The paper analyzes the principle of the related PC's parallel port circuit and the circuit of ISP download cable, and introduces AVR MCU's serial programming instruction as well as it's algorithm. In the end, the ATtinyl 3 chip of AVR MCU is taken as an example to provide the ISP downloading program written in C language.
出处
《电脑开发与应用》
2008年第10期47-49,53,共4页
Computer Development & Applications