CN103970697B - A kind of data synchronization transmission method and device based on communication interface baud rate - Google Patents

A kind of data synchronization transmission method and device based on communication interface baud rate Download PDF

Info

Publication number
CN103970697B
CN103970697B CN201310043730.5A CN201310043730A CN103970697B CN 103970697 B CN103970697 B CN 103970697B CN 201310043730 A CN201310043730 A CN 201310043730A CN 103970697 B CN103970697 B CN 103970697B
Authority
CN
China
Prior art keywords
baud rate
count value
compensating parameter
value
temperature profile
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310043730.5A
Other languages
Chinese (zh)
Other versions
CN103970697A (en
Inventor
蔡锦进
孙龙
张毅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nationz Technologies Inc
Original Assignee
Nationz Technologies Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nationz Technologies Inc filed Critical Nationz Technologies Inc
Priority to CN201310043730.5A priority Critical patent/CN103970697B/en
Publication of CN103970697A publication Critical patent/CN103970697A/en
Application granted granted Critical
Publication of CN103970697B publication Critical patent/CN103970697B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Communication Control (AREA)

Abstract

The present invention is applied to the communications field, there is provided a kind of data synchronization transmission method and device based on communication interface baud rate, methods described include:Generation baud rate compensating parameter table corresponding with temperature profile value;Storage baud rate compensating parameter table;Detection Current Temperatures, and generate temperature profile value according to Current Temperatures;Corresponding baud rate compensating parameter in baud rate compensating parameter table is called according to temperature profile value, and current baud rate count value is calculated according to baud rate compensating parameter and the benchmark baud rate count value for obtaining;Current baud rate count value is updated, communication data is transmitted according to the baud rate count value for updating.Present invention baud rate count value inside adjust automatically in temperature change, makes communication data carry out data transmit-receive according to the baud rate count value for updating, it is ensured that the synchronization of data transfer, it realizes that process integration degree is high, and can be with the multiple units in multiplex system, its small volume for realizing device, low cost.

Description

A kind of data synchronization transmission method and device based on communication interface baud rate
Technical field
The invention belongs to the communications field, more particularly to a kind of data synchronization transmission method based on communication interface baud rate and Device.
Background technology
At present, in communication data transfer, clock signal is used as basic control signal, the data between control communication interface Transmission is synchronized according to certain baud rate, mainly there are two kinds, a kind of quartz-crystal by chip exterior in the source of clock signal Oscillation body device produce frequency of oscillation as clock signal, it is another then by chip internal integrated oscillator circuit generation frequency of oscillation As clock signal.
However, for quartz oscillator, in applied environment temperature change, crystal oscillator frequency can accordingly produce change, Clock frequency is compensated using temperature compensating type circuit or thermostatic type circuit generally, to maintain the stabilization of clock signal, And then ensure that data synchronize transmission according to default baud rate.But because external quartz crystal oscillator volume is larger, And its temperature compensating type circuit or thermostatic type circuit further increase volume, it has been difficult to meet electronics in existing market Product for constantly reduce volume, and Highgrade integration requirement.
For the integrated oscillator circuit of chip internal, it is also desirable to increase a temperature compensation circuit and maintain frequency of oscillation One meet the requirements in the range of, and then ensure clock signal stabilization, it is ensured that data are synchronized according to default baud rate Transmission, and this adjustment usual area of circuit is larger, considerably increases the cost of chip.
The content of the invention
The purpose of the embodiment of the present invention is to provide a kind of data synchronization transmission method based on communication interface baud rate, purport When solving at present by compensating clock signal to ensure temperature change, the implementation volume of data synchronization transmissions is big, high cost Problem.
The embodiment of the present invention is achieved in that a kind of data synchronization transmission method based on communication interface baud rate, tool Body step is:
Generation baud rate compensating parameter table corresponding with temperature profile value;
Store the baud rate compensating parameter table;
Detection Current Temperatures, and determine corresponding temperature profile value according to Current Temperatures;
Corresponding baud rate compensating parameter in the baud rate compensating parameter table, and root are called according to the temperature profile value Current baud rate count value is calculated according to the baud rate compensating parameter and the benchmark baud rate count value for obtaining;
Current baud rate count value is updated, communication data is transmitted according to the baud rate count value for updating.
The another object of the embodiment of the present invention is to provide a kind of data synchronization transmissions dress based on communication interface baud rate Put, described device includes:
Baud rate compensating parameter table generation unit, for generating baud rate compensating parameter table corresponding with temperature profile value;
Memory cell, for storing the baud rate compensating parameter table, the data write-in end of the memory cell with it is described The output end connection of baud rate compensating parameter table generation unit;
Temperature detecting unit, for detecting Current Temperatures, and determines corresponding temperature profile value according to Current Temperatures;
Baud rate count value arithmetic element, in calling the baud rate compensating parameter table according to the temperature profile value Corresponding baud rate compensating parameter, and calculate current according to the baud rate compensating parameter and the benchmark baud rate count value for obtaining Baud rate count value, the control end of the baud rate count value arithmetic element is connected with the output end of the temperature sensing circuit, The data terminal of the baud rate count value arithmetic element is connected with the digital independent end of the memory cell;
Baud rate count value generation unit, for updating current baud rate count value, makes communication data according to the ripple for updating Special rate count value is transmitted, the input of the baud rate count value generation unit and the baud rate count value arithmetic element Output end connection, the output end of the baud rate count value generation unit is connected with external chip.
The embodiment of the present invention generates baud rate compensating parameter table according to temperature change, and is called accordingly according to Current Temperatures Baud rate compensating parameter, calculates, updates baud rate count value, communication data is carried out data according to the baud rate count value for updating Transmitting-receiving, it is ensured that the synchronization of data transfer, it realizes that process integration degree is high, it is possible to the multiple units in multiplex system, its realization The small volume of device, low cost.
Brief description of the drawings
Fig. 1 is the flow of the data synchronization transmission method based on communication interface baud rate that the embodiment of the present invention one is provided Figure;
Fig. 2 is the flow of the data synchronization transmission method based on communication interface baud rate that the embodiment of the present invention two is provided Figure;
Fig. 3 is the flow of the data synchronization transmission method based on communication interface baud rate that the embodiment of the present invention three is provided Figure;
Fig. 4 is the flow of the data synchronization transmission method based on communication interface baud rate that the embodiment of the present invention four is provided Figure;
Fig. 5 is the structure chart of the data synchronization transmissions device based on communication interface baud rate provided in an embodiment of the present invention;
Fig. 6 is the exemplary circuit of the data synchronization transmissions device based on communication interface baud rate provided in an embodiment of the present invention Structure chart.
Specific embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Embodiment of the present invention baud rate count value inside adjust automatically in temperature change, makes communication data according to updating Baud rate count value carries out data transmit-receive, it is ensured that the synchronization of data transfer.
Embodiment one
Fig. 1 shows the reality of the data synchronization transmission method based on communication interface baud rate that the embodiment of the present invention one is provided Existing flow, details are as follows:
Step S101, generates baud rate compensating parameter table corresponding with temperature profile value;
In embodiments of the present invention, change due to clock frequency variation with temperature, and under clock frequency change, Based on certain baud rate, there is corresponding relation in baud rate count value, therefore, it can according to clock frequency, benchmark with clock frequency Temperature, benchmark baud rate and baud rate count value and temperature nodes, set up the pass of temperature profile value and baud rate compensating parameter System, generates baud rate compensating parameter table.Specially:
When temperature coefficient value is index (0), corresponding clock frequency value is aMHz, when temperature coefficient value is index (1) Corresponding clock frequency value is bMHz, if benchmark baud rate is k, the corresponding baud rate count values of temperature coefficient value index (0) are The corresponding baud rate count value of x, temperature coefficient value index (1) be y, based on benchmark baud rate be k, baud rate count value and when The corresponding relation of clock frequency is:
Then, the computing formula of baud rate compensating parameter △ is:
If for example, reference clock frequency Fosc=1MHz when chip circuit works, 25 DEG C of benchmark job temperature, reference wave Special rate Baud=9600, then baud rate count value counter=104.Set the corresponding temperature profile value of benchmark job temperature as 0110, with 5 DEG C for a node, if temperature is changed into 30 degrees Celsius, corresponding temperature profile value is 0111, corresponding frequency to temperature Rate is 1.5MHz, then can be drawn according to formula (2), and temperature profile value is for 0111 corresponding baud rate compensating parameter:
By that analogy, the corresponding relation of all temperature profile values and baud rate compensating parameter, generation baud rate compensation are obtained Parameter list, referring to Fig. 2.
It is to be appreciated that the adjustment of temperature nodes can set according to the real needs of user, the present embodiment is not construed as limiting.
The acquisition of baud rate count value counter can be by the benchmark baud rate of reference clock frequency and user configuring It is calculated, it is also possible to obtained by tabling look-up.Data in every baud rate temperature compensation parameter table are all based on fiducial temperature Obtained with reference frequency, different fiducial temperatures and reference voltage combination correspond to different compensating parameter tables.
Step S102, stores the baud rate compensating parameter table;
In embodiments of the present invention, baud rate compensated information is stored using storage device, it may be preferred to not volatile in piece (not volatile) type memory is stored, can still to carry out data preservation, such as ROM, PROM, EPROM after power is turned off, EEPROM, Flash etc..
Used as one embodiment of the invention, the ablation process for storing the baud rate compensating parameter table can be using by baud rate Test data (baud rate compensating parameter table) write-in is difficult volatile memory by compensating parameter write circuit from chip exterior, also may be used It is difficult in volatile memory with being directly cured to test data (baud rate compensating parameter table) using curing.
When from outside write-in, the baud rate compensating parameter write circuit can be realized by logic circuit, it is also possible to multiple With other interface circuits in system;It is difficult to wave when test data (baud rate compensating parameter table) is cured to using curing When in hair memory, without baud rate compensating parameter write circuit.
Step S103, detects Current Temperatures, and determine corresponding temperature profile value according to Current Temperatures;
In embodiments of the present invention, real time temperature can be monitored by temperature detecting unit, is obtained in prefixed time interval Current Temperatures, when the temperature change meets or exceeds default node, then update temperature profile value index (x), for example, benchmark temperature Degree is 25 DEG C, and corresponding temperature profile value is 0110, and temperature nodes are 5 DEG C, then temperature often changes 5 DEG C of just features of renewal Value, i.e., temperature is changed into 30 DEG C from 25 DEG C, then corresponding temperature profile value is updated to 0111 by 0110.
Step S104, corresponding baud rate is compensated in calling the baud rate compensating parameter table according to the temperature profile value Parameter, and current baud rate count value is calculated according to the baud rate compensating parameter and the benchmark baud rate count value for obtaining;
In embodiments of the present invention, to benchmark baud rate count value is write in baud rate count value arithmetic element, compensation is joined Number call unit (CPU) calls corresponding baud rate compensating parameter according to temperature profile value from memory cell (EEPROM), if Temperature profile value (temperature) reduction, then subtract baud rate compensating parameter by benchmark baud rate count value, if temperature profile value (temperature Degree) raise, then benchmark baud rate count value is added into baud rate compensating parameter, obtain new baud rate count value.
Used as one embodiment of the invention, the reading for storing the baud rate compensating parameter table can be directly read not from hardware The test data (baud rate compensating parameter table) preserved in volatile memory, it is also possible to directly read respective counts from software According to, or directly test data is stored among software program is called.
When from hardware directly read be difficult volatile memory in preserve test data (baud rate compensating parameter table) when, Can be read out by increasing logic circuit;When corresponding test data is read from software, can be using CPU as compensation Parameter call unit;When directly test data is stored among software program, then need not be by compensating parameter call unit It is read out.
Step S105, updates current baud rate count value, communication data is passed according to the baud rate count value for updating It is defeated.
In embodiments of the present invention, the counting in the baud rate count value write-in baud rate count value generation unit that will be updated In unit (register of UART interface), the serial data Transmit-Receive Unit in baud rate count value generation unit is suitable according to what is updated Two communication datas of communication interface should be controlled to enter according to the baud rate count value for updating in the baud rate count value of Current Temperatures Row data send and receive.
Generally, the baud rate of default data transfer is A values, and as environment temperature changes, system clock frequency is therewith Change, the baud rate of data transfer is changed into B values, the embodiment of the present invention in temperature change, baud rate inside automatic adjustment system Count value changes with temperature self-adaptation so that the baud rate of output signal of communication maintains A values constant, to ensure the same of data transfer Step.
The embodiment of the present invention generates baud rate compensating parameter table according to temperature change, process is being used, according to Current Temperatures Corresponding baud rate compensating parameter is called, and calculated, updated baud rate count value, make communication data according to the baud rate for updating Count value carries out data transmit-receive, it is ensured that the synchronization of data transfer.The method can realize Highgrade integration, and further multiplexing system Processing unit and memory cell in system, substantially reduce the volume for realizing device, reduce cost.
Embodiment two
Fig. 2 shows the reality of the data synchronization transmission method based on communication interface baud rate that the embodiment of the present invention two is provided Existing flow, details are as follows:
Step S201, generates baud rate compensating parameter table corresponding with temperature profile value;
Step S202, stores baud rate compensating parameter table;
Step S203, detects Current Temperatures, and generate analog electrical signal according to Current Temperatures;
Step S204, digital electric signal is converted to by analog electrical signal;
Step S205, binary temperature profile value is converted to by digital electric signal;
In embodiments of the present invention, temperature sensor detection Current Temperatures, and analog electrical signal is generated according to Current Temperatures, Analog electrical signal is converted to digital electric signal by analog-digital converter, and digital electric signal is converted to binary temperature by logic circuit Characteristic value.
Step S206, corresponding baud rate compensating parameter in baud rate compensating parameter table is called according to temperature profile value, and Current baud rate count value is calculated according to baud rate compensating parameter and the benchmark baud rate count value for obtaining;
Step S207, updates current baud rate count value, communication data is passed according to the baud rate count value for updating It is defeated.
The embodiment of the present invention detects Current Temperatures by temperature sensor, analog-digital converter and logic circuit, and determines Temperature profile value, its integrated level is high, realizes that device volume is small.
Embodiment three
Fig. 3 shows the reality of the data synchronization transmission method based on communication interface baud rate that the embodiment of the present invention three is provided Existing flow, details are as follows:
Step S301, generates baud rate compensating parameter table corresponding with temperature profile value;
Step S302, stores baud rate compensating parameter table;
Step S303, detects Current Temperatures, and determine corresponding temperature profile value according to Current Temperatures;
Step S304, corresponding baud rate compensating parameter in baud rate compensating parameter table is called according to temperature profile value;
Step S305, obtains benchmark baud rate count value;
Step S306, current baud rate count value is calculated according to baud rate compensating parameter and benchmark baud rate count value;
In embodiments of the present invention, baud rate compensating parameter can be called using logic circuit or CPU, is obtained using register Take benchmark baud rate count value, and baud rate count value calculated by compensating parameter arithmetic element, wherein CPU, register and Compensating parameter arithmetic element can be in multiplex system processor, memory and arithmetic unit, can reduce and realize device Volume, reduces cost.
Step S307, updates current baud rate count value, communication data is passed according to the baud rate count value for updating It is defeated.
Example IV
Fig. 4 shows the reality of the data synchronization transmission method based on communication interface baud rate that the embodiment of the present invention four is provided Existing flow, details are as follows:
Step S401, generates baud rate compensating parameter table corresponding with temperature profile value;
Step S402, stores baud rate compensating parameter table;
Step S403, detects Current Temperatures, and determine corresponding temperature profile value according to Current Temperatures;
Step S404, corresponding baud rate is compensated in calling the baud rate compensating parameter table according to the temperature profile value Parameter, and current baud rate count value is calculated according to the baud rate compensating parameter and the benchmark baud rate count value for obtaining;
Step S405, updates current baud rate count value;
Step S406, control communication data is transmitted according to the baud rate count value for updating.
In embodiments of the present invention, UART interface unit is directed to, can be obtained and be updated using UART interface register Baud rate count value, and control communication data to be passed according to the baud rate count value for updating by serial data Transmit-Receive Unit It is defeated.
Fig. 5 shows the knot of the data synchronization transmissions device based on communication interface baud rate provided in an embodiment of the present invention Structure, for convenience of description, illustrate only part related to the present invention.
Used as one embodiment of the invention, the data synchronization transmissions device that should be based on communication interface baud rate includes:
Baud rate compensating parameter table generation unit 11, for generating baud rate compensating parameter corresponding with temperature profile value Table;
Memory cell 12, for storing the baud rate compensating parameter table, data write-in end and the ripple of the memory cell 12 The output end connection of special rate compensating parameter table generation unit 11;
Temperature detecting unit 13, for detecting Current Temperatures, and determines corresponding temperature profile value according to Current Temperatures;
Baud rate count value arithmetic element 14, for calling the baud rate compensating parameter table according to the temperature profile value In corresponding baud rate compensating parameter, and according to the baud rate compensating parameter and obtain benchmark baud rate count value calculate work as Preceding baud rate count value, the control end of the baud rate count value arithmetic element 14 is connected with the output end of temperature sensing circuit, ripple The data terminal of special rate count value arithmetic element 14 is connected with the digital independent end of memory cell 12;
Baud rate count value generation unit 15, for updating current baud rate count value, makes communication data according to renewal Baud rate count value is transmitted, input and the baud rate count value arithmetic element 14 of the baud rate count value generation unit 15 Output end connection, the output end of baud rate count value generation unit 15 is connected with external chip.
In embodiments of the present invention, according to clock frequency, fiducial temperature, benchmark baud rate and baud rate count value and Temperature nodes, set up the relation of temperature profile value and baud rate compensating parameter, generate baud rate compensating parameter table.The side of implementing Formula is with reference to the data synchronization transmission method embodiment based on communication interface baud rate.
Baud rate compensating parameter table is stored, and real time temperature is monitored by temperature detecting unit 13, when default Between interval acquiring Current Temperatures, when the temperature change meets or exceeds default node, then update temperature profile value.To baud rate meter Benchmark baud rate count value is write in numerical operation unit 14, baud rate count value arithmetic element 14 is according to the temperature profile value Corresponding baud rate compensating parameter is called from memory cell 12, if temperature profile value (temperature) reduction, by benchmark baud rate Count value subtracts baud rate compensating parameter, if temperature profile value (temperature) is raised, benchmark baud rate count value is added into baud Rate compensating parameter, obtains new baud rate count value.In the baud rate count value write-in counting unit that will be updated, serial data is received The baud rate count value that bill unit will update in counting unit carries out data transmission.
Generally, the baud rate of default data transfer is A values, and as environment temperature changes, system clock frequency is therewith Change, the baud rate of data transfer is changed into B values, the embodiment of the present invention in temperature change, baud rate inside automatic adjustment system Count value changes with temperature self-adaptation so that the baud rate of output signal of communication maintains A values constant, to ensure the same of data transfer Step.
The embodiment of the present invention generates baud rate compensating parameter table according to temperature change, process is being used, according to Current Temperatures Corresponding baud rate compensating parameter is called, and calculated, updated baud rate count value, make communication data according to the baud rate for updating Count value carries out data transmit-receive, it is ensured that the synchronization of data transfer.The method can realize Highgrade integration, and further multiplexing system Processing unit and memory cell in system, substantially reduce the volume for realizing device, reduce cost.
Fig. 6 shows the example of the data synchronization transmissions device based on communication interface baud rate provided in an embodiment of the present invention Structure, for convenience of description, illustrate only part related to the present invention.
Used as one embodiment of the invention, the baud rate compensating parameter table generation unit 11 can use calculator or processor Realize, it is also possible to computing unit or processing unit in multiplex system.
Not volatile (not volatile) type memory in the preferred piece of memory cell 12, can still to carry out after power is turned off Data are preserved, such as ROM, PROM, EPROM, EEPROM, Flash etc..
Used as one embodiment of the present invention, the data synchronization transmissions device based on communication interface baud rate can also include One baud rate compensating parameter write circuit 16, (deposits for baud rate compensating parameter table (data) write-in to be difficult into volatile memory Storage unit), the input of the baud rate compensating parameter write circuit 16 and the output of baud rate compensating parameter table generation unit 11 End connection, the output end of baud rate compensating parameter write circuit 16 is connected with the data write-in end of memory cell 12.The baud rate Compensating parameter write circuit 16 can be realized using logic circuit, it would however also be possible to employ or other interface circuits in multiplex system, Such as EEPROM download access.
It is of course also possible to not use write circuit, directly baud rate compensating parameter table is cured to using curing is deposited In storage unit 12.
Used as one embodiment of the invention, the temperature detecting unit 13 can include:
Temperature sensor 131, for detecting Current Temperatures, and generates analog electrical signal according to Current Temperatures;
Analog-digital converter 132, for analog electrical signal to be converted into digital electric signal, the input of the analog-digital converter 132 End is connected with the output end of temperature sensor 131;And
Logic circuit 133, for digital electric signal to be converted into binary temperature profile value, the logic circuit 133 Input is connected with the output end of analog-digital converter 132, and the output end of logic circuit 133 is the output of temperature detecting unit 13 End.
Used as one embodiment of the present invention, analog-digital converter 132 can be realized using discrete component, it would however also be possible to employ IC chip realizes that logic circuit 133 can be built by logic gates, it would however also be possible to employ dedicated IC chip Realize.
The baud rate count value arithmetic element 14 can include:
Compensating parameter call unit 141, in calling the baud rate compensating parameter table according to the temperature profile value Corresponding baud rate compensating parameter, the input of compensating parameter call unit 141 is the control of baud rate count value arithmetic element 14 End processed, the data terminal of compensating parameter call unit 141 is the data terminal of baud rate count value arithmetic element 14;
Register 142, for obtaining benchmark baud rate count value;
Compensating parameter arithmetic element 143, for calculating current according to baud rate compensating parameter and benchmark baud rate count value Baud rate count value, the first input end of the compensating parameter arithmetic element 143 connects with the output end of compensating parameter call unit 141 Connect, the first input end of compensating parameter arithmetic element 143 is connected with the output end of register 142, compensating parameter arithmetic element 143 Output end for baud rate count value arithmetic element 14 output end.
Used as one embodiment of the present invention, the compensating parameter call unit 141 can use logic circuit or CPU realities It is existing.
It is of course also possible to directly test data is stored among software program, then need not be compensated by baud rate and joined Number reads converting unit and is read out.
Used as one embodiment of the invention, the baud rate count value generation unit 15 can use Universal Asynchronous Receive/transmission The realization of device (Universal Asynchronous Receiver/Transmitter, UART) interface, including:
Counting unit 151, for updating current baud rate count value, the input of the counting unit 151 is baud rate meter The input of numerical generation unit 15;
Serial data Transmit-Receive Unit 152, for controlling communication data to be transmitted according to the baud rate count value for updating, should The input of serial data Transmit-Receive Unit 152 is connected with the output end of counting unit, the output end of serial data Transmit-Receive Unit 152 It is the output end of baud rate count value generation unit 15.
Used as one embodiment of the present invention, the counting unit 151 can use UART interface register and adder reality It is existing, it is count down to from 0 and a pulse control signal is produced after current baud rate count value, and then controls serial data Transmit-Receive Unit 152 carry out data transmit-receive.
The embodiment of the present invention generates baud rate compensating parameter table according to temperature change, process is being used, according to Current Temperatures Corresponding baud rate compensating parameter is called, and calculated, updated baud rate count value, make communication data according to the baud rate for updating Count value carries out data transmit-receive, it is ensured that the synchronization of data transfer.The method can realize Highgrade integration, and further multiplexing system Processing unit and memory cell in system, substantially reduce the volume for realizing device, reduce cost.
These are only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all it is of the invention spirit and Any modification, equivalent and improvement for being made within principle etc., should be included within the scope of the present invention.

Claims (10)

1. a kind of data synchronization transmission method based on communication interface baud rate, it is characterised in that methods described includes following steps Suddenly:
According to clock frequency, fiducial temperature, benchmark baud rate and baud rate count value and temperature nodes, temperature profile is set up Value and the relation of baud rate compensating parameter, generate baud rate compensating parameter table corresponding with temperature profile value;
Store the baud rate compensating parameter table;
Detection Current Temperatures, and determine corresponding temperature profile value according to Current Temperatures;
Corresponding baud rate compensating parameter in the baud rate compensating parameter table is called according to the temperature profile value, and according to institute The benchmark baud rate count value stated baud rate compensating parameter and obtain calculates current baud rate count value;
Current baud rate count value is updated, communication data is transmitted according to the baud rate count value for updating.
2. the method for claim 1, it is characterised in that the detection Current Temperatures, and determined according to Current Temperatures it is right The step of temperature profile value answered, is specially:
Detection Current Temperatures, and generate analog electrical signal according to Current Temperatures;
The analog electrical signal is converted into digital electric signal;
The digital electric signal is converted into binary temperature profile value.
3. the method for claim 1, it is characterised in that described to call the baud rate to mend according to the temperature profile value Corresponding baud rate compensating parameter in parameter list is repaid, and is counted according to the baud rate compensating parameter and the benchmark baud rate for obtaining The step of value calculates current baud rate count value is specially:
Corresponding baud rate compensating parameter in the baud rate compensating parameter table is called according to the temperature profile value;
Obtain benchmark baud rate count value;
Current baud rate count value is calculated according to the baud rate compensating parameter and the benchmark baud rate count value.
4. a kind of data synchronization transmissions device based on communication interface baud rate, it is characterised in that described device includes:
Baud rate compensating parameter table generation unit, for according to clock frequency, fiducial temperature, benchmark baud rate and baud rate Count value and temperature nodes, set up the relation of temperature profile value and baud rate compensating parameter, generate corresponding with temperature profile value Baud rate compensating parameter table;
Memory cell, for storing the baud rate compensating parameter table, data write-in end and the baud of the memory cell The output end connection of rate compensating parameter table generation unit;
Temperature detecting unit, for detecting Current Temperatures, and determines corresponding temperature profile value according to Current Temperatures;
Baud rate count value arithmetic element, for calling correspondence in the baud rate compensating parameter table according to the temperature profile value Baud rate compensating parameter, and current baud is calculated according to the baud rate compensating parameter and the benchmark baud rate count value for obtaining Rate count value, the control end of the baud rate count value arithmetic element is connected with the output end of the temperature sensing circuit, described The data terminal of baud rate count value arithmetic element is connected with the digital independent end of the memory cell;
Baud rate count value generation unit, for updating current baud rate count value, makes communication data according to the baud rate for updating Count value is transmitted, and the input of the baud rate count value generation unit is defeated with the baud rate count value arithmetic element Go out end connection, the output end of the baud rate count value generation unit is connected with external chip.
5. device as claimed in claim 4, it is characterised in that the baud rate compensating parameter table generation unit be calculator or Processor.
6. device as claimed in claim 4, it is characterised in that the memory cell is to be difficult volatile-type memory.
7. device as claimed in claim 4, it is characterised in that described device also includes:
Baud rate compensating parameter write circuit, for baud rate compensating parameter table to be write into the memory cell, the baud rate The input of compensating parameter write circuit is connected with the output end of the baud rate compensating parameter table generation unit, the baud rate The output end of compensating parameter write circuit is connected with the data write-in end of the memory cell.
8. device as claimed in claim 4, it is characterised in that the temperature detecting unit includes:
Temperature sensor, for detecting Current Temperatures, and generates analog electrical signal according to Current Temperatures;
Analog-digital converter, for the analog electrical signal to be converted into digital electric signal, the input of the analog-digital converter with The output end connection of the temperature sensor;And
Logic circuit, for the digital electric signal to be converted into binary temperature profile value, the input of the logic circuit End is connected with the output end of the analog-digital converter, and the output end of the logic circuit is the output of the temperature detecting unit End.
9. device as claimed in claim 4, it is characterised in that the baud rate count value arithmetic element includes:
Compensating parameter call unit, for calling corresponding ripple in the baud rate compensating parameter table according to the temperature profile value Special rate compensating parameter, the input of the compensating parameter call unit is the control end of the baud rate count value arithmetic element, The data terminal of the compensating parameter call unit is the data terminal of the baud rate count value arithmetic element;
Register, for obtaining benchmark baud rate count value;
Compensating parameter arithmetic element, for calculating current according to the baud rate compensating parameter and the benchmark baud rate count value Baud rate count value, the first input end of the compensating parameter arithmetic element connects with the output end of the compensating parameter call unit Connect, the first input end of the compensating parameter arithmetic element is connected with the output end of the register, the compensating parameter computing The output end of unit is the output end of the baud rate count value arithmetic element.
10. device as claimed in claim 4, it is characterised in that the baud rate count value generation unit includes:
Counting unit, for updating current baud rate count value, the input of the counting unit is the baud rate count value The input of generation unit;
Serial data Transmit-Receive Unit, it is described serial for controlling communication data to be transmitted according to the baud rate count value for updating The input of data transceiving unit is connected with the output end of the counting unit, and the output end of the serial data Transmit-Receive Unit is The output end of the baud rate count value generation unit.
CN201310043730.5A 2013-02-04 2013-02-04 A kind of data synchronization transmission method and device based on communication interface baud rate Active CN103970697B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310043730.5A CN103970697B (en) 2013-02-04 2013-02-04 A kind of data synchronization transmission method and device based on communication interface baud rate

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310043730.5A CN103970697B (en) 2013-02-04 2013-02-04 A kind of data synchronization transmission method and device based on communication interface baud rate

Publications (2)

Publication Number Publication Date
CN103970697A CN103970697A (en) 2014-08-06
CN103970697B true CN103970697B (en) 2017-06-20

Family

ID=51240219

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310043730.5A Active CN103970697B (en) 2013-02-04 2013-02-04 A kind of data synchronization transmission method and device based on communication interface baud rate

Country Status (1)

Country Link
CN (1) CN103970697B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116501679B (en) * 2023-06-21 2023-11-21 北京智芯微电子科技有限公司 Self-adaptive baud rate generation method and chip for high-speed serial bus communication

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5678223A (en) * 1995-03-07 1997-10-14 Motorola, Inc. Method and apparatus for an automatic frequency control receiver

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5678223A (en) * 1995-03-07 1997-10-14 Motorola, Inc. Method and apparatus for an automatic frequency control receiver

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
井下智能阀门控制系统的技术研究与装置开发;王研;《中国优秀硕士学位论文权威数据库》;20070215;第6.1.1节,图6.1 *
基于DSP的井下一起通用CAN总线通信接口设计;苏日建 等;《仪表技术与传感器》;20080131;全文 *

Also Published As

Publication number Publication date
CN103970697A (en) 2014-08-06

Similar Documents

Publication Publication Date Title
CN105959003B (en) Digital frequency division phaselocked loop
CN102118160B (en) Circuit and method for generating clock signal
US9276586B2 (en) Semiconductor device and clock correction method
JP2017123631A5 (en)
KR101754011B1 (en) Method and devices for non-intrusive power monitoring
US10042383B2 (en) Navigation system and mouse device
CN106092156B (en) AC servo serial communication encoder position feedback pulse frequency dividing output system and method
CN105940614B (en) Device and method for providing communication
CN101647216A (en) Mode selectable field transmitter
CN103970697B (en) A kind of data synchronization transmission method and device based on communication interface baud rate
CN107295621B (en) Control method, device, storage medium and the electronic equipment of transmission power
CN107122036B (en) Method and device for adjusting frequency of central processing unit
CN104348931B (en) For the self adaptation compatible system and method for the quartz oscillator of mobile terminal
JP2016524395A (en) Method and apparatus for setting working mode of PA blanking
CN108886361A (en) A kind of key substrate removing method, capacitance key detection circuit and intelligent terminal
US7356719B2 (en) Microcomputer
CN104993826A (en) Frequency dividing method and frequency dividing device
CN110649913A (en) Frequency adjustment method and device for crystal oscillator, storage medium and electronic equipment
CN107681980A (en) A kind of Low-noise temperature compensation crystal oscillator
CN104375696B (en) The apparatus and method of touch screen induction value self-correcting
CN106897506B (en) Method for predicting output signal period jitter in phase-locked loop design
CN109475005A (en) Electromagnetic interference control method and relevant apparatus
US9170602B1 (en) Calibrating a high-speed clock signal generated using a processor internal to the electronic authentication device without using a crystal oscillator
WO2019096968A1 (en) Fast energy counter for wireless communication transceiver
JP2012251944A (en) Sensor module

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant