UART module, UART module transmission parameter adjusting method and system-on-chip

文档序号:1309996 发布日期:2020-07-10 浏览:23次 中文

阅读说明:本技术 Uart模块、uart模块传输参数的调节方法和系统级芯片 (UART module, UART module transmission parameter adjusting method and system-on-chip ) 是由 胡小龙 彭小卫 于 2019-01-03 设计创作,主要内容包括:本发明提出一种UART模块、UART模块传输参数的调节方法和系统级芯片,其中UART模块与第一终端通信连接,方法包括:发送步骤:UART模块采用当前传输参数向第一终端发送原始数据,以使第一终端在接收到原始数据后将原始数据作为返回数据返回给UART模块;接收步骤:UART模块接收返回数据;判断步骤:判断返回数据与原始数据是否一致;调节步骤:当返回数据与原始数据不一致时,从尚未被选取过的备选传输参数中选取一个备选传输参数作为UART模块的当前传输参数。从而解决了UART模块的通信故障问题。(The invention provides a UART module, a method for adjusting transmission parameters of the UART module and a system-level chip, wherein the UART module is in communication connection with a first terminal, and the method comprises the following steps: a sending step: the UART module sends original data to the first terminal by adopting the current transmission parameters, so that the first terminal returns the original data serving as return data to the UART module after receiving the original data; a receiving step: the UART module receives return data; a judging step: judging whether the returned data is consistent with the original data; and (3) adjusting: and when the returned data is inconsistent with the original data, selecting one alternative transmission parameter from the alternative transmission parameters which are not selected yet as the current transmission parameter of the UART module. Therefore, the problem of communication fault of the UART module is solved.)

1. A method for adjusting transmission parameters of a UART module, wherein the UART module is in communication connection with a first terminal, comprises:

a sending step: the UART module sends original data to a first terminal by adopting current transmission parameters, so that the first terminal returns the original data serving as return data to the UART module after receiving the original data;

a receiving step: the UART module receives the return data;

a judging step: judging whether the returned data is consistent with the original data;

and (3) adjusting: and when the returned data is inconsistent with the original data, selecting one alternative transmission parameter from the alternative transmission parameters which are not selected yet as the current transmission parameter of the UART module.

2. The adjusting method of UART module transmission parameters according to claim 1,

the transmission parameters include: one or more of baud rate, data bits, stop bits, parity bits.

3. The method for adjusting the transmission parameters of the UART module according to claim 1, further comprising, before the step of transmitting:

pre-storing: counting the use frequency of each transmission parameter; and acquiring a plurality of transmission parameters with the highest use frequency as the alternative transmission parameters.

4. The method for adjusting the transmission parameters of the UART module according to claim 3, wherein the pre-storing step further comprises:

setting corresponding priority for the alternative transmission parameters;

wherein the priority of the alternative transmission parameter is positively correlated with the frequency of use.

5. The method for adjusting the transmission parameters of the UART module according to claim 4, wherein the adjusting step comprises: and when the returned data is inconsistent with the original data, selecting one alternative transmission parameter with the highest priority from the alternative transmission parameters which are not selected yet as the current transmission parameter of the UART module.

6. The UART module transmission parameter adjusting method according to claim 1, wherein the raw data comprises a first raw data and a second raw data;

the transmitting step includes: and the UART module circularly sends the first original data and the second original data to the first terminal.

7. The UART module transmission parameter adjusting method according to any of the claims 1-6, further comprising:

a storage step: and when the returned data is consistent with the original data, acquiring the model and/or terminal parameters of the first terminal, and setting and storing the corresponding relation between the current transmission parameters and the model and/or terminal parameters.

8. A UART module communicatively coupled to a first terminal, comprising:

the transmitting unit is used for transmitting original data to a first terminal by adopting the current transmission parameters so that the first terminal returns the original data serving as return data to the UART module after receiving the original data;

a receiving unit configured to receive the return data;

the judging unit is used for judging whether the returned data is consistent with the original data or not;

and the adjusting unit is used for selecting one alternative transmission parameter from the alternative transmission parameters which are not selected yet as the current transmission parameter of the UART module when the returned data is inconsistent with the original data.

9. The UART module according to claim 8,

the transmission parameters include: one or more of baud rate, data bits, stop bits, parity bits.

10. The UART module according to claim 8, further comprising:

the pre-storage unit is used for counting the use frequency of each transmission parameter; and acquiring a plurality of transmission parameters with the highest use frequency as the alternative transmission parameters.

11. The UART module according to claim 10, wherein the pre-storing unit is further configured to:

setting corresponding priority for the alternative transmission parameters;

wherein the priority of the alternative transmission parameter is positively correlated with the frequency of use.

12. The UART module according to claim 11, wherein the adjustment unit is configured to: and when the returned data is inconsistent with the original data, selecting one alternative transmission parameter with the highest priority from the alternative transmission parameters which are not selected yet as the current transmission parameter of the UART module.

13. The UART module according to claim 8, wherein the raw data comprises a first raw data and a second raw data;

and the sending unit is used for circularly sending the first original data and the second original data to the first terminal.

14. The UART module according to any one of claims 8-13, further comprising:

and the storage unit is used for acquiring the model and/or terminal parameters of the first terminal when the returned data is consistent with the original data, and setting and storing the corresponding relation between the current transmission parameters and the model and/or terminal parameters.

15. A system-on-a-chip comprising a processor, a memory, and a program stored on the memory and executable on the processor, the processor implementing the steps of the method of any of claims 1-7 when executing the program.

16. A system-in-chip comprising the UART module according to any one of claims 8-14.

Technical Field

The invention relates to the field of data transmission, in particular to a UART module, a method for adjusting transmission parameters of the UART module and a system-level chip.

Background

A Universal Asynchronous Receiver/Transmitter (UART), commonly referred to as UART, is an Asynchronous Receiver/Transmitter (UART) that is typically part of the computer hardware. It converts data to be transmitted between serial communication and parallel communication. As a chip for converting a parallel input signal into a serial output signal, a UART is generally integrated into a link of another communication interface.

The UART module is generally used for chip information printing interfaces due to simple design, convenient use and simple requirements on the interfacing equipment. In the prior art, the communication can be normally performed only when the transmission parameters of the UART module as the sender, such as baud rate, parity check, etc., are consistent with the setting parameters of the receiving end, and communication failure often occurs and communication cannot be performed.

Therefore, it is an urgent problem to solve the communication failure of the UART module in the prior art.

Disclosure of Invention

The invention provides a UART module, a method for adjusting transmission parameters of the UART module and a system-level chip, which aim to solve the communication fault of the UART module.

In order to solve the above problem, as an aspect of the present invention, there is provided a method for adjusting transmission parameters of a UART module, the UART module being communicatively connected to a first terminal, including:

a sending step: the UART module sends original data to the first terminal by adopting the current transmission parameters, so that the first terminal returns the original data serving as return data to the UART module after receiving the original data;

a receiving step: the UART module receives return data;

a judging step: judging whether the returned data is consistent with the original data;

and (3) adjusting: and when the returned data is inconsistent with the original data, selecting one alternative transmission parameter from the alternative transmission parameters which are not selected yet as the current transmission parameter of the UART module.

Optionally, the transmission parameters include: one or more of baud rate, data bits, stop bits, parity bits.

Optionally, before the sending step, the method further includes:

pre-storing: counting the use frequency of each transmission parameter; and acquiring a plurality of transmission parameters with the highest use frequency as the alternative transmission parameters.

Optionally, the pre-storing step further includes:

setting corresponding priority for the alternative transmission parameters;

wherein the priority of the alternative transmission parameter is positively correlated with the frequency of use.

Optionally, the adjusting step comprises: and when the returned data is inconsistent with the original data, selecting one alternative transmission parameter with the highest priority from the alternative transmission parameters which are not selected yet as the current transmission parameter of the UART module.

Optionally, the original data includes first original data and second original data;

the sending step comprises: the UART module circularly transmits the first original data and the second original data to the first terminal.

Optionally, the method further includes: a storage step: and when the returned data is consistent with the original data, acquiring the model and/or terminal parameters of the first terminal, and setting and storing the corresponding relation between the current transmission parameters and the model and/or terminal parameters.

The present application further provides a UART module, which is in communication connection with the first terminal, including:

the transmitting unit is used for transmitting the original data to the first terminal by adopting the current transmission parameters so that the first terminal returns the original data serving as return data to the UART module after receiving the original data;

a receiving unit for receiving return data;

the judging unit is used for judging whether the returned data is consistent with the original data;

and the adjusting unit is used for selecting one alternative transmission parameter from the alternative transmission parameters which are not selected yet as the current transmission parameter of the UART module when the returned data is inconsistent with the original data.

Optionally, the transmission parameters include: one or more of baud rate, data bits, stop bits, parity bits.

Optionally, the method further includes:

the pre-storage unit is used for counting the use frequency of each transmission parameter; and acquiring a plurality of transmission parameters with the highest use frequency as the alternative transmission parameters.

Optionally, the pre-storing unit is further configured to:

setting corresponding priority for the alternative transmission parameters;

wherein the priority of the alternative transmission parameter is positively correlated with the frequency of use.

Optionally, the adjusting unit is configured to: when the returned data is inconsistent with the original data, selecting one alternative transmission parameter with the highest priority from the alternative transmission parameters which are not selected yet as the current transmission parameter of the UART module

Optionally, the original data includes first original data and second original data;

a sending unit, configured to send first original data and second original data to a first terminal in a circulating manner;

optionally, the method further includes: and the storage unit is used for acquiring the model and/or terminal parameters of the first terminal when the returned data are consistent with the original data, and setting and storing the corresponding relation between the current transmission parameters and the model and/or terminal parameters.

The present application also provides a system-on-a-chip, which includes a processor, a memory, and a program stored in the memory and executable on the processor, wherein the processor executes the program to implement the steps of any of the methods presented herein.

The present application further provides a system-in-a-chip, which is characterized by including any one of the UART modules proposed in the present application.

The invention provides a UART module, a method for adjusting transmission parameters of the UART module and a system-level chip.

Drawings

FIG. 1 is a diagram illustrating a method for adjusting transmission parameters of a UART module according to an embodiment of the present invention;

FIG. 2 is a diagram illustrating a UART module and a first terminal according to an embodiment of the invention;

FIG. 3 is a schematic structural diagram of a UART module according to an embodiment of the present invention;

FIG. 4 is a diagram illustrating another method for adjusting transmission parameters of a UART module according to an embodiment of the present invention.

Detailed Description

In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the specific embodiments of the present invention and the accompanying drawings. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. 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.

It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.

In the prior art, when a UART module is used to perform communication connection with, for example, a computer, it is necessary to adjust transmission parameters of a chip having the UART module to be consistent with transmission parameters of connected devices, so that normal transmission can be performed, otherwise, communication errors such as messy codes can be generated. Usually, the user manually adjusts one parameter by one parameter, which results in low adjustment efficiency and time and labor waste.

The application provides a method for adjusting transmission parameters of a UART module, which is used for rapidly determining the transmission parameters of the UART module and saving the time for transmitting the parameters by an adjuster. In the present application, the UART module is communicatively connected to the first terminal, and specifically, for example, a chip having the UART module is communicatively connected to the computer through the UART module. As shown in fig. 1, the method proposed by the present application includes: s11: transmission step, S12: receiving step, S13: determination step and S14: and (5) adjusting.

The sending step comprises: the UART module is controlled to send original data to the first terminal by adopting the current transmission parameters, so that the first terminal returns the original data serving as return data to the UART module after receiving the original data;

the receiving step includes: controlling a UART module to receive return data;

the judging step comprises: judging whether the returned data is consistent with the original data;

the adjusting step comprises: and when the returned data is inconsistent with the original data, selecting one alternative transmission parameter from the alternative transmission parameters which are not selected yet as the current transmission parameter of the UART module.

Specifically, the UART module is configured to perform asynchronous communication, and may implement full duplex transmission and reception, where the current transmission parameter used by the UART module in the sending step may be a transmission parameter used in last communication with an external device, or a default transmission parameter pre-stored by the UART module, or a transmission parameter set by any user, if the current transmission parameter is not set or changed. The raw data may be any data, which may be stored in the UART module in advance, for example, 1 or 2 32-bit registers may be added to the UART module, and are used for storing the raw data, and the raw data may be used for the communication test to determine the transmission parameters matched with the first terminal. The UART module may be disposed on a system-on-chip, which sends the original data to the first terminal, and the first terminal returns the original data as the return data. If the setting parameter of the first terminal is not matched with the transmission parameter of the UART module, the original data received by the first terminal has messy codes, after the original data is returned as the returned data by the first terminal, the returned data received by the UART module also has messy codes, so that the returned data is inconsistent with the original data, the transmission parameter of the UART module is not matched with the setting parameter of the first terminal, at the moment, the transmission parameter of the UART module needs to be adjusted to ensure that the UART module can normally communicate with the first terminal, at the moment, an alternative transmission parameter is selected from the alternative transmission parameters to be used as the current transmission parameter, the transmitting step, the receiving step and the adjusting step are repeated, whether the returned data is consistent with the original data is judged again, if the returned data is not consistent with the original data, another alternative transmission parameter is selected from the alternative transmission parameters which are not selected to be used as the current transmission parameter, the sending step, the receiving step and the adjusting step are repeated until the returned data are consistent with the original data, the current transmission parameters are not changed any more, the current transmission parameters are matched with the setting parameters of the first terminal, the unselected alternative transmission parameters refer to the alternative transmission parameters which are not selected as the current transmission parameters in the adjusting step, and the communication fault problem of the UART module in the prior art is solved.

In the present application, the transmission parameters include: one or more of baud rate, data bits, stop bits, parity bits. The UART module adopts an asynchronous serial port communication protocol, and the working process is to transmit each character of data to be transmitted bit by bit. The start bit is a logic "0" signal that is asserted first, indicating the beginning of the transmission of the character. The data bit is the data immediately following the start bit. The number of data bits may be 4, 5, 6, 7, 8, etc., constituting one character, typically ASCII code. Starting from the lowest bit, the transfer is clocked. The parity bit is a data bit plus one bit, which is used to make the number of "1" be even or odd, so as to verify the correctness of data transmission. The stop bit is an end flag of one character data. High level which can be 1 bit, 1.5 bit, 2 bit. Since the data is clocked over the transmission line and each device has its own clock, it is likely that a small asynchrony occurs between the two devices in the communication. The stop bit therefore not only represents the end of the transmission, but also provides the opportunity for the computer to correct the clock synchronization. The larger the number of bits available for the stop bit, the greater the tolerance for different clock synchronizations, but the slower the data transfer rate.

In the adjusting method proposed in the present application, before the sending step, the method further includes:

pre-storing: counting the use frequency of each transmission parameter; and acquiring a plurality of transmission parameters with the highest use frequency as the alternative transmission parameters.

Specifically, here, the use frequency of each transmission parameter may be obtained in advance through big data, and preferably, the use frequency of each transmission parameter matched with the model of the first terminal is obtained, that is, the alternative transmission parameter is obtained according to the model of the first terminal, and then the use frequency of the alternative transmission parameter is counted, optionally, the pre-storing step further includes: setting corresponding priority for the alternative transmission parameters; wherein the priority of the alternative transmission parameter is positively correlated with the frequency of use. The priority of the alternative transmission parameter is positively correlated with the use frequency, that is, the higher the use frequency of the alternative transmission parameter is, the higher the corresponding priority is.

Optional adjustment steps include: and when the returned data is inconsistent with the original data, selecting one alternative transmission parameter with the highest priority from the alternative transmission parameters which are not selected yet as the current transmission parameter of the UART module.

Specifically, at this time, an alternative transmission parameter with the highest priority is selected from the alternative transmission parameters to be used as the current transmission parameter, the sending step, the receiving step and the adjusting step are repeated, whether the returned data is consistent with the original data is judged again, if the returned data is still inconsistent with the original data, an alternative transmission parameter with the highest priority is selected from the alternative transmission parameters which are not selected to be used as the current transmission parameter, the sending step, the receiving step and the adjusting step are repeated until the returned data is consistent with the original data, the current transmission parameter is not changed, at this time, the current transmission parameter is matched with the setting parameter of the first terminal, the alternative transmission parameter which is not selected refers to the alternative transmission parameter which is not selected as the current transmission parameter in the adjusting step, and compared with the prior art, the embodiment is characterized in that the priority is set for each alternative transmission parameter in advance, when the transmission parameters of the UART module need to be adjusted, the alternative transmission parameters are sequentially selected as the current transmission parameters of the UART module according to the priority, and the priority can be determined according to the use frequency of each transmission parameter, namely, the alternative transmission parameter with high priority is the transmission parameter with the highest use probability, so that the time for a user to adjust the transmission parameters can be saved.

Optionally, in the adjustment method provided by the present application, the original data includes first original data and second original data; the sending step comprises: controlling a UART module to circularly send first original data and second original data to a first terminal; specifically, the reason why the first original data and the second original data are circularly transmitted is that: the UART module originally works in full duplex, if only first original data is selected to be sent to a first terminal, the UART module needs to wait for the first terminal to return, the UART module can only wait in the process of transmitting the returned data by the first terminal and cannot send the data, so that time waste is caused, if the UART module continuously sends the same first original data, transmission parameters adopted in each time of sending the first original data are different, because time delay exists between transmission and reception, short communication interruption can also occur to cause data loss, and when the received returned data is the same as the first original data, the transmission parameters corresponding to the received returned data are difficult to determine, so that confusion is easily caused. Therefore, in the present application, a manner of cyclically transmitting the first original data and the second original data is adopted, and if some data in the middle is lost, it can be determined whether the lost data is the first original data or the second original data according to the type of the received return data, for example: the first original data1 and the second original data are data2, the UART module transmits data1, data2, data1, data2, data1 and data2 in sequence, and the received data1, data2, data1, data1 and data2, because the UART module adopts a first-in-first-out queue operation rule, the data2 of the second transmission can be determined to be lost, the transmission parameter corresponding to the lost data2 can be determined, and if the data1 is transmitted all the time, after one data1 is lost, the lost data1 and the corresponding transmission parameter are difficult to be determined.

Optionally, the adjusting method provided by the present application further includes: a storage step: and when the returned data is consistent with the original data, acquiring the model and/or terminal parameters of the first terminal, and setting and storing the corresponding relation between the current transmission parameters and the model and/or terminal parameters. After having adjusted transmission parameter in this application at every turn, just for transmission parameter setting and save the model and/or the terminal parameter of corresponding terminal, so, along with the increase of regulation number of times, just can learn the transmission that each terminal corresponds, when detecting the same terminal model and/or terminal parameter in the future, just can need not to adjust, directly chooses for use corresponding operating parameter to save time.

As shown in fig. 2, the present application further provides a UART module, which is in communication connection with a first terminal, and includes:

the transmitting unit 10 is configured to transmit original data to the first terminal by using the current transmission parameter, so that the first terminal returns the original data serving as return data to the UART module after receiving the original data;

a receiving unit 20 for receiving return data;

a judging unit 30 for judging whether the returned data is consistent with the original data;

and the adjusting unit 40 is configured to select one alternative transmission parameter from the alternative transmission parameters that have not been selected yet as the current transmission parameter of the UART module when the returned data is inconsistent with the original data. In this embodiment, if the UART module cannot normally communicate, the current transmission parameter is replaced with the alternative transmission parameter until the UART module can normally communicate, so that the problem of communication failure of the UART module in the prior art is solved.

Optionally, the transmission parameters include: one or more of baud rate, data bits, stop bits, parity bits.

Optionally, the UART module proposed in the present application further includes: a pre-storing unit 50 for counting the frequency of each transmission parameter; and acquiring a plurality of transmission parameters with the highest use frequency as the alternative transmission parameters. Preferably, the use frequency of each transmission parameter matched with the model of the first terminal is obtained, that is, the alternative transmission parameters are obtained according to the model of the first terminal, and then the use frequency of the alternative transmission parameters is counted. Since the alternative transmission parameter is the transmission parameter with the highest frequency of use, adjustment time can be saved. Optionally, the pre-storing unit is further configured to: setting corresponding priority for the alternative transmission parameters; wherein the priority of the alternative transmission parameter is positively correlated with the frequency of use.

Optionally, the adjusting unit is configured to: and when the returned data is inconsistent with the original data, selecting one alternative transmission parameter with the highest priority from the alternative transmission parameters which are not selected yet as the current transmission parameter of the UART module.

Compared with the prior art, the embodiment is characterized in that priorities are set for the alternative transmission parameters in advance, when the transmission parameters of the UART module need to be adjusted, the alternative transmission parameters are sequentially selected as the current transmission parameters of the UART module according to the priorities, and the priorities can be determined according to the use frequency of each transmission parameter, that is, the alternative transmission parameter with the higher priority is the transmission parameter with the highest use probability, so that the time for a user to adjust the transmission parameters can be saved.

Optionally, the original data includes first original data and second original data; a sending unit 10, configured to send the first original data and the second original data to the first terminal in a loop.

Optionally, the UART module proposed in the present application further includes: and the storage unit 60 is configured to, when the returned data is consistent with the original data, obtain the model and/or terminal parameters of the first terminal, and set and store a corresponding relationship between the current transmission parameters and the model and/or terminal parameters. After the adjusting unit has adjusted transmission parameter in this application at every turn, memory cell 60 just sets up and saves the model and/or the terminal parameter of the terminal that corresponds for transmission parameter, so, along with the increase of adjusting the number of times, just can learn the transmission that each terminal corresponds, when detecting the same terminal model and/or terminal parameter in the future, just can need not to adjust, directly chooses for use corresponding operating parameter to save time. The correspondence may be stored in the form of key-value pairs, the key of which is a transmission parameter and the value of which is a corresponding model and/or terminal parameter.

To better illustrate the benefits of the present application, a preferred embodiment is set forth below.

Fig. 3 is a schematic diagram of a UART module and a first terminal, and fig. 4 is a flowchart illustrating a process of the UART module in fig. 3 when adjusting transmission parameters.

Compared with the UART module in the prior art, the UART module of this embodiment adds 2 32-bit data registers in the sending unit for storing original data, and adds a judging unit.

The register of the UART module in this embodiment may be configured through a bus. In this embodiment, the UART module is a part of a system-on-chip, and the system-on-chip is connected to the first terminal through the UART module, and a serial port debugging program is opened on the first terminal. And sets the serial program to loop back mode. The following process is carried out when the transmission parameters are adjusted:

a sending step: writing two original DATA DATA0, DATA1 into two DATA registers, configuring an auto BAUD rate matching mode into register UART _ BAUD, and sequentially transmitting the original DATA DATA0, DATA1 from TX channel (transmission channel) through a transmitting module

A receiving step: the RX channel (receive channel) is checked for data (indicating data when the RX channel detects a falling edge), and the RX signal is sampled with the current baud rate configuration. Storing the first two received data in a data register at the receiving end, wherein the two data are as follows: RCV _ DATA0, RCV _ DATA 1.

A judging step: and comparing the transmitted DATA with the received DATA, judging that the DATA is correct if the DATA0 is RCV _ DATA0 and the DATA1 is RCV _ DATA1, configuring the current baud rate as the runtime baud rate configuration, and entering an adjusting step if the DATA is not equal to the RCV _ DATA0 and the DATA1 is RCV _ DATA 1.

And (3) adjusting: upon a detection failure (i.e., DATA0 not equal to RCV _ DATA0 or DATA1 not equal to RCV _ DATA 1), the hardware will automatically load another BAUD rate (alternate transmission parameter) configuration previously stored into the corresponding BAUD rate register UART _ BAUD location and repeat the sending, receiving and determining steps.

In the present application, a plurality of candidate transmission parameters may be preferably stored, where the first ten candidate transmission parameters ordered from high to low according to priority are as follows:

1) baud rate 115200, parity NONE, data bit 8, stop bit 1;

2) baud rate 115200, parity NONE, data bit 8, stop bit 2;

3) baud rate 9600, parity NONE, data bit 8, stop bit 1;

4) baud rate 9600, parity NONE, data bit 8, stop bit 2;

5) baud rate 19200, parity NONE, data bit 8, stop bit 1;

6) baud rate 19200, parity NONE, data bit 8, stop bit 2;

7) baud rate 38400, parity NONE, data bit 8, stop bit 1;

8) baud rate 38400, parity NONE, data bit 8, stop bit 2;

9) baud rate 57600, parity NONE, data bit 8, stop bit 1;

10) baud rate 57600, parity NONE, data bit 8, stop bit 2.

The 10 optional transmission parameters are transmission parameters with highest use frequency and widest application range in actual engineering, and the UART module is adjusted according to the optional transmission parameters, so that the adjustment time can be saved as much as possible.

The present application also proposes a system-on-a-chip, comprising a processor, a memory and a program stored in the memory and executable on the processor, wherein the processor implements the steps of any of the methods proposed in the present application when executing the program. The present application further provides a system-in-a-chip including any of the UART modules set forth in the present application.

The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. 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.

13页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种OCP转接卡及计算机设备

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!