文件名称:serial
介绍说明--下载内容均来自于网络,请自行研究使用
本模块的功能是验证实现和PC机进行基本的串口通信的功能。需要在PC机上安装一个串口调试工具来验证程序的功能。
程序实现了一个收发一帧10个bit(即无奇偶校验位)的串口控制器,10个bit是1位起始位,8个数据位,1个结束位。
串口的波特律由程序中定义的div_par参数决定,更改该参数可以实现相应的波特率。程序当前设定的div_par 的值
是0x104,对应的波特率是9600。用一个8倍波特率的时钟将发送或接受每一位bit的周期时间划分为8个时隙以使通
信同步.
程序的基本工作过程是,按动一个按键SW0,控制器向PC的串口发送“welcome",
PC机接收后显示验证数据是否正确(串口调试工具设成按ASCII码接受方式).
PC可随时向CPLD发送0-F的十六进制数据,CPLD接受后显示在7段数码管上.-The module s function is to verify the implementation and the basic PC, the serial communication function. Need PC,
Install a serial debugging tools to verify the functionality of the program.
Program implements a receive a 10 bit (ie no parity bit) of the serial controllers, 10
bit is a start bit, 8 data bits, 1 stop bit.
Serial Porter law defined by the program parameters div_par decision can change the parameters of the corresponding
Baud rate. Program the value of the current set div_par
Is 0x104, the corresponding baud rate is 9600. 8 times the baud rate with a clock will be sent or received per
A bit of the cycle time is divided into eight time slots in order to pass
Information synchronization.
The basic process is the work program, press a button SW0, the controller s serial port to the PC
"Welcome",
PC, after receiving the authentication data displayed is correct (serial debugging tool ASCII code set by the r
程序实现了一个收发一帧10个bit(即无奇偶校验位)的串口控制器,10个bit是1位起始位,8个数据位,1个结束位。
串口的波特律由程序中定义的div_par参数决定,更改该参数可以实现相应的波特率。程序当前设定的div_par 的值
是0x104,对应的波特率是9600。用一个8倍波特率的时钟将发送或接受每一位bit的周期时间划分为8个时隙以使通
信同步.
程序的基本工作过程是,按动一个按键SW0,控制器向PC的串口发送“welcome",
PC机接收后显示验证数据是否正确(串口调试工具设成按ASCII码接受方式).
PC可随时向CPLD发送0-F的十六进制数据,CPLD接受后显示在7段数码管上.-The module s function is to verify the implementation and the basic PC, the serial communication function. Need PC,
Install a serial debugging tools to verify the functionality of the program.
Program implements a receive a 10 bit (ie no parity bit) of the serial controllers, 10
bit is a start bit, 8 data bits, 1 stop bit.
Serial Porter law defined by the program parameters div_par decision can change the parameters of the corresponding
Baud rate. Program the value of the current set div_par
Is 0x104, the corresponding baud rate is 9600. 8 times the baud rate with a clock will be sent or received per
A bit of the cycle time is divided into eight time slots in order to pass
Information synchronization.
The basic process is the work program, press a button SW0, the controller s serial port to the PC
"Welcome",
PC, after receiving the authentication data displayed is correct (serial debugging tool ASCII code set by the r
(系统自动生成,下载前可以参看下载内容)
下载文件列表
serial.v