登录
首页 » c » FPGA串口发送16位数据

FPGA串口发送16位数据

于 2022-06-29 发布 文件大小:3.31 MB
0 134
下载积分: 2 下载次数: 2

代码说明:

fpga通过串口向电脑发送16位数据,可以通过上位机来查看FPGA运行的数据,一般的串口发送为8位数据,现改成16微数据来进行传输

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 【19】DMA PWM WS2812 GPIO输出16组
    STM32作为主控芯片,72Mhz,利用DMA+PWM实现驱动WS2812,创建16个并行800kBit / s数据流的想法如下: 使用定时器每1.25us创建一个800kHz的时基和一个DMA请求。 使用2个比较模块在低位时间(350ns)和高位时间(700ns)下创建DMA请求 1.25us DMA请求将GPIO端口的所有位设置为高电平 350ns DMA请求将数据从帧缓冲区传输到GPIO端口。如果该位为0,GPIO引脚将变为低电平,否则将保持高电平。 700ns DMA请求将所有GPIO引脚设置为低电平。 重复步骤1到3,直到发送所有位。 这产生脉冲周期为1.25us,脉冲宽度为350ns或700ns的脉冲流,具体取决于脉冲表示的位值,通过DMA将数据传输到GPIO端口意味着每16个LED每位需要一个字(两个字节)。每个LED 24位,每16个LED 24个字(48个字节)。(The idea to create 16 parallel 800kBit/s data streams is the following: Use a Timer to create an 800kHz time base and a DMA request every 1.25us. Use 2 compare modules to create DMA requests at the low bit time (350ns) and the high bit time (700ns) The 1.25us DMA request sets all bits of the GPIO port high The 350ns DMA request transfers the data from the frame buffer to the GPIO port. If the bit is a 0, the GPIO pin will go low, otherwise it will stay high. The 700ns DMA request sets all GPIO pins low. Repeat steps 1 to 3 until all bits have been transmitted. This creates a stream of pulses with a pulse period of 1.25us and a pulse width of either 350ns or 700ns depending on the bit value the pulse represents. Transferring the data via DMA to the GPIO port means that per 16 LEDs one half word (two bytes) is needed per bit. At 24 bits per LED that makes 24 half words (48 bytes) per 16 LEDs.)
    2020-12-15 10:49:13下载
    积分:1
  • 39709594UsbMouse
    说明:  AT89C51单片机 鼠标控制程序,课程设计原理图+程序(AT89C51 MCU mouse control program,course design schematic diagram + program)
    2020-07-01 21:02:23下载
    积分:1
  • rotating
    desing and develop a cube rotation
    2010-12-26 18:57:19下载
    积分:1
  • vr
    说明:  一本matlab的虚拟现实的讲义,书写的还不错!(A virtual reality matlab lecture notes, writing bad!)
    2011-04-14 00:29:44下载
    积分:1
  • MFC 做机器人工程的测试版
    MFC 做机器人工程的测试版MFC 做机器人工程的测试版MFC 做机器人工程的测试版MFC 做机器人工程的测试版MFC 做机器人工程的测试版MFC 做机器人工程的测试版MFC 做机器人工程的测试版MFC 做机器人工程的测试版MFC 做机器人工程的测试版MFC 做机器人工程的测试版MFC 做机器人工程的测试版MFC 做机器人工程的测试版MFC 做机器人工程的测试版MFC 做机器人工程的测试版MFC 做机器人工程的测试版MFC 做机器人工程的测试版MFC 做机器人工程的测试版MFC 做机器人工程的测试版MFC 做机器人工程的测试版MFC 做机器人工程的测试版MFC 做机器人工程的测试版MFC 做机器人工程的测试版MFC 做机器人工程的测试版
    2022-02-09 13:56:26下载
    积分:1
  • Bbeiijingyidoa
    背景移动补偿技术的研究,是关于车辆检测期间对于背景移动的情况进进行的补偿技术的改进性的研究,希望对大家有所帮助。 已通过测试。 (Background compensation mobile technology, are about the context of vehicle detection during the moovement for the compensation technique to improve the research, hoping for U.S. help. Have passed the )
    2012-05-18 15:55:16下载
    积分:1
  • simulatiion
    simulation of an arm on matlab
    2013-07-11 17:13:30下载
    积分:1
  • ggd
    说明:  用89C51的P1口做输出口,接八只发光二极管;P3口接按钮开关,作为控制信号的输入(89C51 to do with the P1 port output, take eight light-emitting diodes P3 port access button switch, as a control signal input)
    2010-04-29 17:04:14下载
    积分:1
  • The-CPP-PL
    C++ 之父作品,据说是学习C++最好的教程,里面有C++的最新内容标准。(C++ programming language is write by the father of C++, it s said that the book is the most useful book to learn C++.)
    2013-11-19 10:21:02下载
    积分:1
  • 网络是一个功能组件继承DataGridView。它可以节省它的。
    SuperGrid is a functional component inherited of DataGridView. It can save its own settings in registry and has some usefull special properties which any program need.
    2022-02-06 01:14:24下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载