文件名称:UART_RS232(VHDL)
介绍说明--下载内容均来自于网络,请自行研究使用
本模块的功能是验证实现和PC机进行基本的串口通信的功能。需要在PC机上安装一个串口调试工具来验证程序的功能。程序实现了一个收发一帧10个bit(即无奇偶校验位)的串口控制器,10个bit是1位起始位,8个数据位,1个结束位。串口的波特律由程序中定义的div_par参数决定,更改该参数可以实现相应的波特率。程序当前设定的div_par 的值是0x145,对应的波特率是9600。用一个8倍波特率的时钟将发送或接受每一位bit的周期时间划分为8个时隙以使通信同步.程序的工作过程是:串口处于全双工工作状态,按动key2,FPGA/CPLD向PC发送“21 EDA"KEY1是复位按键。字符串(串口调试工具设成按ASCII码接受方式);PC可随时向FPGA/CPLD发送0-F的十六进制数据,FPGA接受后显示在7段数码管上。-The functionality of this module is to verify the implementation and PC, the basic functions of the serial communication. A serial debugging tools to verify the functionality of the program needs to be installed on the PC. Implementation of a transceiver a 10 bit (ie no parity bit) serial controller, 10 bit is a start bit, 8 data bits, 1 stop bit. Serial port baud rate law decided the procedures defined div_par parameters, the baud rate can change the parameters. The procedures set div_par the value is 0x145, corresponding to the baud rate is 9600. Eight times the baud rate clock to send or accept every bit of the cycle time is divided into eight time slots so that the communication synchronization. Program of work process: the serial port in full-duplex state, pressing key2 the FPGA/CPLD sent to the PC " 21 EDA" KEY1 reset button. Hexadecimal data string (serial debugging tool set to accept the way the ASCII code) 0-F PC may at any time be sent to the FPGA/CPLD, FPGA accepte
(系统自动生成,下载前可以参看下载内容)
下载文件列表
34实验三十四:串口与电脑通信
............................\db
............................\..\prev_cmp_serial.asm.qmsg
............................\..\prev_cmp_serial.fit.qmsg
............................\..\prev_cmp_serial.map.qmsg
............................\..\prev_cmp_serial.qmsg
............................\..\prev_cmp_serial.tan.qmsg
............................\..\serial.asm.qmsg
............................\..\serial.asm_labs.ddb
............................\..\serial.cbx.xml
............................\..\serial.cmp.bpm
............................\..\serial.cmp.cdb
............................\..\serial.cmp.ecobp
............................\..\serial.cmp.hdb
............................\..\serial.cmp.kpt
............................\..\serial.cmp.logdb
............................\..\serial.cmp.rdb
............................\..\serial.cmp.tdb
............................\..\serial.cmp0.ddb
............................\..\serial.cmp2.ddb
............................\..\serial.cmp_merge.kpt
............................\..\serial.db_info
............................\..\serial.eco.cdb
............................\..\serial.fit.qmsg
............................\..\serial.hier_info
............................\..\serial.hif
............................\..\serial.lpc.html
............................\..\serial.lpc.rdb
............................\..\serial.lpc.txt
............................\..\serial.map.bpm
............................\..\serial.map.cdb
............................\..\serial.map.ecobp
............................\..\serial.map.hdb
............................\..\serial.map.kpt
............................\..\serial.map.logdb
............................\..\serial.map.qmsg
............................\..\serial.map_bb.cdb
............................\..\serial.map_bb.hdb
............................\..\serial.map_bb.logdb
............................\..\serial.pre_map.cdb
............................\..\serial.pre_map.hdb
............................\..\serial.rtlv.hdb
............................\..\serial.rtlv_sg.cdb
............................\..\serial.rtlv_sg_swap.cdb
............................\..\serial.sgdiff.cdb
............................\..\serial.sgdiff.hdb
............................\..\serial.sld_design_entry.sci
............................\..\serial.sld_design_entry_dsc.sci
............................\..\serial.syn_hier_info
............................\..\serial.tan.qmsg
............................\..\serial.tis_db_list.ddb
............................\incremental_db
............................\..............\compiled_partitions
............................\..............\...................\serial.root_partition.cmp.atm
............................\..............\...................\serial.root_partition.cmp.dfp
............................\..............\...................\serial.root_partition.cmp.hdbx
............................\..............\...................\serial.root_partition.cmp.kpt
............................\..............\...................\serial.root_partition.cmp.logdb
............................\..............\...................\serial.root_partition.cmp.rcf
............................\..............\...................\serial.root_partition.map.atm
............................\..............\...................\serial.root_partition.map.dpi
............................\..............\...................\serial.root_partition.map.hdbx
............................\..............\...................\serial.root_partition.map.kpt
............................\..............\README
............................\serial.asm.rpt
............................\serial.done
............................\serial.dpf
............................\serial.fit.rpt
............................\serial.fit.smsg
............................\serial.fit.summary
............................\serial.flow.rpt
............................\serial.map.rpt
............................\serial.map.summary
............................\serial.pin
............................\seri