Selectable mode serial port interface integrated output system

文档序号:1405729 发布日期:2020-03-06 浏览:21次 中文

阅读说明:本技术 可选模式串行端口接口整合输出系统 (Selectable mode serial port interface integrated output system ) 是由 潘康考 于 2019-11-15 设计创作,主要内容包括:本发明公开了一种可选模式串行端口接口整合输出系统,所述的可选模式串行端口接口整合输出系统,包括:寄存模块、串行端口接口模块、处理模块、转换输出模块和数模转换模块,用户可选3线式或4线式串行端口接口模块允许对许多内部参数进行程序设计和回读,且拥有先进的低杂散与失真设计技术,从基带到高中频的宽带信号可以实现高质量合成,并支持多主控,其中任何能够进行发送和接收的设备都可以成为主总线,一个主控能够控制信号的传输和时钟频率,而其中的可选模式可选择每次操作几个字段,让系统设计更加灵活。(The invention discloses an optional mode serial port interface integration output system, which comprises: the user can select the 3-wire or 4-wire serial port interface module to allow programming and readback of a plurality of internal parameters, and the system has advanced low stray and distortion design technology, high-quality synthesis can be realized from a baseband to a broadband signal of high and intermediate frequency, and multiple main controls are supported, wherein any device capable of sending and receiving can be used as a main bus, one main control can control the transmission and clock frequency of the signal, and the selectable mode can select several fields to be operated at each time, so that the system design is more flexible.)

1. An integrated output system for a selectable mode serial port interface, comprising: the register module is used for accessing the initialization data and the first data; the serial port interface module is electrically connected with the register module and reads the initialization data; the processing module receives and operates the first data to generate second data; the conversion output module is electrically connected with the processing module, generates and configures an internet protocol address, and generates a packet according to the second data and the internet protocol address, wherein the packet comprises a selectable mode instruction field; and the digital-to-analog conversion module is respectively and electrically connected with the serial port interface module and the conversion output module, reads the initialization data through the serial port interface module to carry out initialization operation, receives the packet and converts the packet into analog quantity, and transmits the analog quantity to the Internet protocol address.

2. The system of claim 1, further comprising: and the data control module is respectively electrically connected with the registering module and the processing module and transmits the first data to the processing module through the data control module.

3. The system of claim 1 wherein said second data and said packet access are at the same internet protocol address.

4. The system of claim 1, wherein the packet includes an instruction field and a data field, and the instruction field is used as a starting point.

5. The system of claim 4, wherein the translation output module generates the packet according to the timing of the command field and the data field.

6. The system of claim 4, wherein the serial port interface module transmits a command to the digital-to-analog conversion module according to the command field.

7. The system of claim 1, wherein the selectable-mode instruction field is a field that selects several fields at a time.

8. The system of claim 1, wherein the processing module is a JESD 204B IP core.

9. The system of claim 1, wherein the digital-to-analog conversion module is an AD9516 digital-to-analog converter.

Technical Field

The invention relates to the field of protocol standards of converters, in particular to an integrated output system of a selectable mode serial port interface.

Background

In the past, the connection method of data transmission is mainly divided into a parallel port and a serial port, wherein the parallel port transmits data for each data bit simultaneously, and when the machine executes a sequence program, the data can be operated simultaneously corresponding to all or part of the data stored in the internal processing unit, so that the parallel means that the data is divided into a plurality of blocks and the blocks are respectively mapped to different processors, each processor runs the same processing program to process the assigned data, but the defect is that the number of bits of the memory is large, the number of data lines are required, and therefore, the cost is relatively high.

And serial and parallel ports are an opposing pair of concepts. The Serial port is data that is transmitted by data bits in sequence in a transmission process, that is, the data is sequentially transmitted by one bit by using one data line, each bit of data occupies a fixed time length, and information can be exchanged between systems only by a few lines, so that cost is greatly reduced.

Although both the above-mentioned serial interfaces are synchronous transmission interfaces and are mainly applied to processors and peripheral chips, since SPI is a high-speed, full-duplex, synchronous communication bus, and a standard SPI also uses only 4 pins, and is often used for communication of devices such as a single chip microcomputer, a real-time clock, a digital signal processor, and the like, the SPI communication principle IIC is simple, and it is mainly a master-slave communication mode, and this mode generally has only one master and one or more slaves, and in time sequence, SPI does not start, stop, and respond, and when SPI is in communication, it is only responsible for communication regardless of whether communication is successful, and IIC acquires information of successful and failed communication through response information, so the transmission speed is relatively slow.

Disclosure of Invention

The present invention provides an integrated output system of selectable mode serial port interface with simple hardware structure and fast transmission speed, which is directed to the above-mentioned defects of the prior art.

The technical scheme adopted by the invention for solving the technical problems is as follows: constructing a selectable mode serial port interface integrated output system, comprising: the register module is used for accessing the initialization data and the first data; the serial port interface module is electrically connected with the register module and reads the initialization data; the processing module receives and operates the first data to generate second data; the conversion output module is electrically connected with the processing module, generates and configures an internet protocol address, and generates a packet according to the second data and the internet protocol address, wherein the packet comprises a selectable mode instruction field; and the digital-to-analog conversion module is respectively and electrically connected with the serial port interface module and the conversion output module, reads the initialization data through the serial port interface module to carry out initialization operation, receives the packet and converts the packet into analog quantity, and transmits the analog quantity to the Internet protocol address.

In the system of the present invention, further comprising: and the data control module is respectively electrically connected with the registering module and the processing module and transmits the first data to the processing module through the registering module.

In the system of the present invention, the second data and the packet data are accessed at the same internet protocol address.

In the system of the present invention, the packet includes an instruction field and a data field, and the instruction field is used as a starting point.

In the system of the present invention, the conversion output module generates the packet according to the timing sequence of the instruction field and the data field.

In the system of the present invention, the serial port interface module transmits a command to the digital-to-analog conversion module according to the command field.

In the system of the present invention, the optional mode instruction field is a field that selects several operations at a time.

In the system of the invention, the processing module is a JESD 204B IP core.

In the system of the present invention, the digital-to-analog conversion module is an AD9516 digital-to-analog converter.

The implementation of the selectable mode serial port interface integration output system has the following beneficial effects: a user-selectable 3-wire or 4-wire serial port interface module allows programming and readback of a plurality of internal parameters, advanced low-spurious and distortion design technologies are provided, high-quality synthesis of broadband signals from a baseband to a high-intermediate frequency can be achieved, multiple main controls are supported, any device capable of sending and receiving can be used as a main bus, one main control can control signal transmission and clock frequency, and the selectable mode can select several fields to operate at each time, so that system design is more flexible.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.

FIG. 1 is a schematic diagram of an integrated output system of an alternative mode serial port interface according to the present invention;

FIG. 2 is a timing diagram of the serial port interface packet data according to the present invention.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

In the embodiment of the present invention, a schematic structural diagram of an integrated output system with an optional mode serial port interface is shown in fig. 1. In the figure, the selectable mode serial port interface integrated output system comprises a register module 1, a serial port interface module 2, a processing module 3, a conversion output module 4, a digital-to-analog conversion module 5 and a data control module 6.

In this embodiment, the register module 1 accesses the initialization data D0 and the first data D1; the serial port interface module 2 is electrically connected with the register module 1 and reads the initialization data D0; the processing module 3 is a JESD 204B IP core and receives and operates the first data D1 to generate second data D2; the conversion output module 4 is electrically connected to the processing module 3, generates and configures an internet protocol address, and generates a packet according to the second data D2 and the internet protocol address, wherein the packet includes a selectable mode instruction field; the digital-to-analog conversion module 5 is an AD9516 digital-to-analog converter, is respectively and electrically connected with the serial port interface module 2 and the conversion output module 4, reads the initialization data D0 through the serial port interface module 2 to perform initialization operation, receives packets, converts the packets into analog quantity, and transmits the analog quantity to an internet protocol address; the data control module 6 is electrically connected to the register module 1 and the processing module 3, and transmits the first data D1 to the processing module 3 through the register module 1.

The packets generated by the second data D2 generated by the processing module 3 and the conversion output module 4 access the same internet protocol address, and the packets include an instruction field and a data field, and the instruction field is used as a starting point, so the conversion output module 4 generates the packets according to the timing sequence of the instruction field and the data field, and the serial port interface module 2 can transmit the command to the digital-to-analog conversion module 5 according to the instruction field.

In this embodiment, firstly, the serial port interface module 2 receives the initialization data D0 through the register module 1 and transmits the initialization data D0 to the digital-to-analog conversion module 5 for initialization setting, the data control module 6 transmits the first data D1 to the processing module 3 through the register module 1 for processing, the second data D2 is generated, the conversion output module 4 generates and configures an internet protocol address, and generates a packet according to the second data D2 and the internet protocol address, wherein the packet data includes a selectable mode command field, the command fields of which are defined as the following table 2 for W1 and W0, several fields for each operation are selected according to the definition in the table, and finally, the serial port interface module 2 transmits a command to the digital-to-analog conversion module 5 according to the command fields and configures the command field into a four-wire main interface protocol to control three independent serial port interfaces, the timing diagram of the serial port interface packets is shown in FIG. 2. In the figure, the width of the receiving register is configured to be thirty-two bits, wherein the first sixteen bits are the instruction field and the last sixteen bits are the data field.

Figure 112203DEST_PATH_IMAGE001

TABLE 1

Figure 100888DEST_PATH_IMAGE002

TABLE 2

The invention provides a selectable mode serial port interface integrated output system with simple hardware structure and high transmission speed, a user-selectable 3-wire or 4-wire serial port interface module allows programming and readback of a plurality of internal parameters, and has advanced low spurious and distortion design technology, high-quality synthesis of broadband signals from a baseband to a high intermediate frequency can be realized, and multiple main controls are supported, wherein any device capable of transmitting and receiving can be used as a main bus, one main control can control the transmission and clock frequency of the signals, and the selectable mode can select several fields to operate each time, so that the system design is more flexible.

The above description is only exemplary of the present invention and should not be taken as limiting the invention, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

7页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:数据预处理方法、装置、计算机设备和存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!