好文档 - 专业文书写作范文服务资料分享网站

FPGA的UART完整设计

天下 分享 时间: 加入收藏 我要投稿 点赞

.

if(counter1==8'b10010111)//当counter等于156时 begin

counter1<=8'b00000000;//counter清零 t1<=t1 + 1;//t1取反

end else begin

counter1<=counter1 + 1; t1<=t1;

end

end begin

counter1<=8'b00000000; t1<=0; end

else

endmodule

3.6.13UART波特发生器程序仿真图 如图3-11;

.

.

图3-11UART波特发生器程序仿真图

由图判读:

1.当clk_enable为0时,时钟不计时; 2.当clk_enable为1时,时钟计时

.

.

.

FPGA的UART完整设计

.if(counter1==8'b10010111)//当counter等于156时begincounter1<=8'b00000000;//counter清零t1<=t1+1;//t1取反endelse
推荐度:
点击下载文档文档为doc格式
39ocp4futj5dq8n1sig30fluh9bohz00uib
领取福利

微信扫码领取福利

微信扫码分享