文档介绍:兵工自动化网络信息技术 O. I. Automation
2003 年第 22 卷第 5 work Information Technique 2003, Vol. 22, No. 5
文章编号:1006 1576( 2003) 05 0041 04
AVR 嵌入式单片机接口技术与应用
肖宇峰,黄玉清
(西南科技大学信息与控制工程学院,四川绵阳 621002)
摘要:AVR 单片机内嵌 Flash,置有 ADC 和模拟比较等电路接口,采用快速存取寄存器文件和快速单指令周期,
其程序与数据存储器分开,通过 SPI 和编程器可对 Flash 存储器编程。在分析 AT90S8515 芯片定时计数器、I O
端口、通用串行口 UART、模拟比较器等接口基础上,设计了信号发生器、频率计以及与 PC 机串行通信接口电路,
给出了数字信号发生器原理图和程序流程图,频率计原理简图与程序流程图。
关键词:接口;单片机;AT90S8515
中图分类号: 文献标识码:B
Interface Technology and Application of AVR SCM
XIAO Yu-feng, HUANG Yu-qing
(College of Information & Control Engineering, Southwest University of Science & Technology, Mianyang 621002, China)
Abstract: The AVR single chip microcontroller (SCM) has inside Flash, RISC instructs, ADC and analog
comparison circuit interfaces etc. It can fleetly access the file of register and single cycle instructions, the program
can be wrote into the Flash with the SPI and program implement. On the base of analysis about the AT90S8515
interfaces which include clock counter, I O, serial UART port and the interface of ponents,
digital signal generator, cymometer and interface circuit for the munication was designed, and the
principle charts and program flow charts of the generator and cymometer.
Key words: Interface; SCM; AT90S8515
1 引言功能的 16 位定时计数器;速度为 4MHz 8MHz。
管脚定义(图 2)如下。
AT90 系列单片机,内载有Flash,配置精简指
令