基 于 51 单 片 机 和 CPLD 试 验 开 发 板 的 设 计摘 要 阐述了设计的各部分硬件的原理和用于试验的软件设计,特别给出了RTC 的设计在实验板设计中的成功应用。单片机CPLD实验板将单片机与CPLD 有机结合在一起,构建以51单片机为主,CPLD 为辅的电路系统设计方案,既可以独立用于单片机实验或CPLD实验,也可以用于单片机和CPLD综合应用的实验。尤其,集成了具有ISP 功能的CPLD和ISP 功能的单片机,为初学者节约了昂贵的编程器成本。关键词:51单片机 CPLD ISP 编程器 实验板ABSTRACT In this paper,it was elaborated that the various parts of the design principles of hardware and software for test design, especially given the design of the RTC board in the successful application of design. The experiment of MCU and CPLD will be combined with the MCU-CPLD board,which mainly to build 51 single-chip, CPLD secondary circuit ystem design, and both independent experiments or CPLD for the single-chip experiments can also be MCU and CPLD for the comprehensive application of the experiment. In particular, the integrated function of the CPLD and MCU with ISP for beginners saves the cost of expensive programmers.Key words: 51MCU CPLD ISP programmer experiment board 目 录 引 言……………………………………………………………………………3 1 MiniB 的 目 的 及 意 义……………………………………………………3 2 MiniB 的 硬 件 设 计………………………………………………………4 2.1单片机与 CPLD 接口电路……………………………………………4 2.2 USB及串行接口电路 …………………………………………… 6 2.3最小系统及外围设备接口电路………………………………………8 2.3.1电源电路………………………………………………………8 2.3.2 单片机 P1 口扩展电路………………………………………8 2.3.3显示接口电路…………………………………………………12 3 MiniB 的 软 件 设 计………………………………………………………12 3.1 由AVR 单片机ATmega8 实现USB 转串口的驱动设计和ISP (in-...