CN102360202A - Portable digital temperature compensating type crystal oscillator chip reader-writer and reading/writing method thereof - Google Patents

Portable digital temperature compensating type crystal oscillator chip reader-writer and reading/writing method thereof Download PDF

Info

Publication number
CN102360202A
CN102360202A CN2011102046595A CN201110204659A CN102360202A CN 102360202 A CN102360202 A CN 102360202A CN 2011102046595 A CN2011102046595 A CN 2011102046595A CN 201110204659 A CN201110204659 A CN 201110204659A CN 102360202 A CN102360202 A CN 102360202A
Authority
CN
China
Prior art keywords
crystal oscillator
mcu
oscillator chip
chip
sends
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.)
Pending
Application number
CN2011102046595A
Other languages
Chinese (zh)
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.)
PINGHU CITY ELECTRONIC CO Ltd
Original Assignee
PINGHU CITY ELECTRONIC CO Ltd
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 PINGHU CITY ELECTRONIC CO Ltd filed Critical PINGHU CITY ELECTRONIC CO Ltd
Priority to CN2011102046595A priority Critical patent/CN102360202A/en
Publication of CN102360202A publication Critical patent/CN102360202A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Oscillators With Electromechanical Resonators (AREA)

Abstract

The invention relates to a portable digital temperature compensating type crystal oscillator chip reader-writer and a reading/writing method thereof. The reader-writer comprises an MCU (Micro Control Unit) core control module (1) respectively connected with a crystal oscillator chip based on an I2C bus, a keyboard operation module and an information display module and used for exchanging data with the crystal oscillator chip and reading/writing the parameter of a register of the crystal oscillator chip through an I2C protocol and uniformly controlling the keyboard operation module and the information display module, a keyboard operation module (2) used as an operation end of the whole reader-writer and used for selecting each operation and inputting data, and an information display module (3) used for displaying the real-time operation information and the parameter of the temperature compensating type crystal oscillator chip. The reader-writer further comprises a computer control module used for expanding the function of the reader-writer and connected with the MCU core control module via an RS232 communication interface. Compared with the prior art, the invention has the beneficial effect of developing a portable device capable of conveniently reading/writing the register of a digital temperature compensating type chip. Through the invention, the data of the register of the chip can be instantly displayed so as to bring convenience to the operation of a user; the reader-writer and the reading/writing method thereof have the functions close to that of industrial production equipment so as to bring convenience to the development and the debugging of a few products; and meanwhile, the energy consumption is low and the occupancy and the dependence on large scale equipment are decreased.

Description

Portable digital temperature compensation type crystal oscillator chip read write line and reading/writing method
Technical field
the present invention relates to a kind of read-write equipment and reading/writing method.Be mainly used in digital temperature offset-type the crystal oscillator research and development and the debug phase of (DTCXO is called for short in the back), the IX2204 numeral temperature compensation chip parameter based on Innosign company is read and write.
Background technology
In the production of DTCXO, topmost step is the digital temperature compensation chip to its use, carries out the correction of internal register parameter, so that the DTXO that produces reaches production standard.General production equipment, its debugging position reaches hundreds of, in the production phase; Can produce standard compliant product fast in batches, but when research and development and single debugging, use batch process equipment; Be great waste, for practical operation, also unusual inconvenience.
Summary of the invention
Technical matters to be solved by this invention is: design and a kind ofly can reach approaching with equipment of industrial product function; Equipment and the reading/writing method thereof that can read and write digit chip; With the debugging of convenient research and development and few products, it is low to accomplish simultaneously to consume energy, and reduces taking and relying on main equipment.
In order to address the above problem, the present invention adopts following technical scheme:
A kind of portable digital temperature compensation type crystal oscillator chip read write line is characterized in that it comprises:
1) MCU kernel control module: respectively with based on I 2The crystal oscillator chip of C bus, keyboard operation module, information display module link to each other, through I 2C agreement and crystal oscillator chip carry out the read-write operation of exchanges data and crystal oscillator chip register parameters, realize the unified control of keyboard operation module, information display module;
2) keyboard operation module as the operating side of whole read write line, is carried out the selection of operations and the input of data;
3) information display module is used for the demonstration of true-time operation information and temperature compensation type crystal oscillator chip parameter.
It also comprises a computer control module, is used to realize the function expansion to read write line, and computer control module links to each other with the MCU kernel control module through the RS232 communication interface.
Said computer control module comprises MAX232 communication chip and host computer, and the MAX232 communication chip is responsible for changing different level between host computer and MCU kernel control module, and host computer is responsible for carrying out the transmission and the demonstration of order.
Said MCU kernel control module adopts the AT89C52RC single-chip microcomputer.
Said MCU kernel control module links to each other with crystal oscillator chip through two communication link wiring; Wherein one is the clock line SCL that is used for the tranmitting data register signal; Clock line SCL one end links to each other with the MCU input pin, and the other end links to each other with the SCL access point of crystal oscillator chip, and another is for being used for I 2The data line SDA of transmission data in the C agreement, data line SDA one end links to each other with the MCU input pin, and the other end links to each other with the SDA tie point of crystal oscillator chip.
A kind of reading/writing method of portable digital temperature compensation type crystal oscillator chip is characterized in that it may further comprise the steps:
One) parameter value writes the crystal oscillator chip register:
A) MCU sends start signal to crystal oscillator chip;
B) MCU sending mode select command sends 1,111 010 as high 7, is used to select programming mode, and lowest order is 0, and expression writes pattern, finally sends 1,111 0100 and selects programming to write pattern;
C) crystal oscillator chip acknowledges receipt of order to the MCU return information;
D) MCU sends register address sign indicating number to be written to crystal oscillator chip, and address code is 8;
E) crystal oscillator chip acknowledges receipt of order to the MCU return information;
F) MCU transmits the most-significant byte of the parameter value that will write to crystal oscillator chip;
G) crystal oscillator chip acknowledges receipt of information to MCU;
H) MCU transmits the least-significant byte of the parameter value that will write to crystal oscillator chip;
I) crystal oscillator chip is replied to MCU and is received data;
J) MCU sends and ceases and desist order, and accomplishes single job;
Two) MCU reads crystal oscillator chip register parameters value:
K) MCU sends start signal to crystal oscillator chip;
L) MCU sending mode select command sends 1,111 000 as high 7, is used to select general mode, and lowest order is 0, and expression writes pattern, finally sends 1,111 0000 and selects general mode;
M) crystal oscillator chip acknowledges receipt of order to the MCU return information;
N) MCU sends address code to crystal oscillator chip, the register address that expression will be read;
O) crystal oscillator chip acknowledges receipt of order to the MCU return information;
P) MCU sends to crystal oscillator chip and begins to read register command;
Q) MCU is once more to crystal oscillator chip sending mode select command, and preceding 7 is 1,111 000, and is minimum for being 1, and expression will reading of data;
R) crystal oscillator chip acknowledges receipt of order to the MCU return information;
S) crystal oscillator chip sends the most-significant byte of the register value that will read to MCU;
T) MCU acknowledges receipt of order to the crystal oscillator chip return information;
U) crystal oscillator chip sends the least-significant byte of the register value that will read to MCU;
V) MCU acknowledges receipt of order to the crystal oscillator chip return information;
W) MCU sends to crystal oscillator chip and ceases and desist order, and accomplishes one time read operation.
It also further may further comprise the steps:
11) upperly connect through RS232 agreement and MCU, host computer sends order to MCU, after MCU receives order, carries out corresponding operation, and informs host computer to the result, is finally handled by host computer;
12) host computer sends read or write command, 8 bit architectures, and 0,000 0000 expression is read, and 0,000 0001 expression writes;
13) the host computer transmission register address value that need read or write;
14) MCU reads the value of crystal oscillator chip register, and return results gives host computer, and host computer sends the parameter value that will write, and MCU writes register to parameter value, and returns whether write success, and host computer reads the result, processs and displays.
The present invention compared with prior art has following beneficial effect: developed a kind of portable, the equipment that can easily carry out register read-write to digital temperature compensation chip.Display chip register data that can be instant, user-friendly, can reach approaching with equipment of industrial product function, with the debugging of convenient research and development and few products, it is low to accomplish simultaneously to consume energy, and reduces taking and relying on main equipment.
Description of drawings
Fig. 1 is general frame figure of the present invention
Fig. 2 is circuit theory diagrams of the present invention.
Embodiment
With reference to Fig. 1, a kind of portable digital formula temperature compensation type crystal oscillator chip read write line comprises: 1) MCU kernel control module: respectively with based on I 2The crystal oscillator chip of C bus, keyboard operation module, information display module link to each other, through I 2C agreement and crystal oscillator chip carry out the read-write operation of exchanges data and crystal oscillator chip register parameters, realize the unified control of keyboard operation module, information display module; DTCXO is by operated device, and its critical piece is the IX2204 chip, and this chip passes through I 2C agreement and MCU carry out communication, and MCU carries out read-write operation to the IX2204 chip thus.The IX2204 chip is read and write according to instruction, returns to MCU to the result of operation after operation is accomplished, and carries out result treatment by MCU.The MCU kernel control module links to each other with crystal oscillator chip through two communication link wiring; Wherein one is the clock line SCL that is used for the tranmitting data register signal; Clock line SCL one end links to each other with MCU input pin (the 16th pin); The other end links to each other with the SCL access point of crystal oscillator chip, and another is for being used for I 2The data line SDA of transmission data in the C agreement, data line SDA one end links to each other with MCU input pin (the 17th pin), and the other end links to each other with the SDA tie point of crystal oscillator chip.MCU sends start signal to the IX2204 chip, starts I 2The C bus.Sequential does, is between high period at clock line SCL, and a negative edge appears in data line SDA, and address code is 8.IX2204 echo reply signal, expression allows operation, and MCU will carry out the transmission and the data transmission of operational order according to the agreement of IX2204 regulation then.After operation was accomplished, MCU sent Stop message, and sequential is for being between high period at SCL, rising edge of the last generation of SDA, single job completion.The MCU kernel control module adopts the AT89C52RC single-chip microcomputer, and MCU is the nucleus module of read write line, is embodied in: one. and it is responsible for sending all concrete instructions, and operation IX2204 chip carries out read-write operation, control display module video data; Two. it is responsible for receiving various operations; And convert various concrete orders into; Operate accordingly after comprising the instruction that receives the keyboard operation module, the control display module shows that various data have operation indicating, receives the concrete instruction of sending operational hardware behind the host computer instruction translation.Three. it is responsible for all steering logics, comprises the micro OS logic, data process method, instruction translation logic.
2) keyboard operation module as the operating side of whole read write line, is carried out the selection of operations and the input of data, is responsible for the input data or selects necessary function.The keyboard operation module is the 4*4 matrix keyboard.
3) information display module is used for the demonstration of true-time operation information and temperature compensation type crystal oscillator chip parameter, and it receives the control of MCU, decides which content of output by MCU.Information display module can adopt liquid crystal display.
It also comprises a computer control module, and computer control module is to the expansion of the function of read write line, promptly for the expansion of input and output.Computer control module links to each other with the MCU kernel control module through the RS232 communication interface, but is not must module.Computer control module comprises MAX232 communication chip and host computer (PC), and the MAX232 communication chip is responsible for changing different level between host computer and MCU kernel control module, and host computer is responsible for carrying out the transmission and the demonstration of order.Computer control module after MCU receives order, is translated as direct hardware operation instruction, the control read-write to the requirement that MCU sends read-write; After obtaining the result, MCU gives computer control module the result, is carried out the analysis of data by host computer.Because host computer has stronger programming Control ability, both can accomplish certain automation mechanized operation and data analysis function after connecting.
A kind of reading/writing method of portable digital temperature compensation type crystal oscillator chip, it may further comprise the steps:
One) parameter value writes the crystal oscillator chip register:
A) MCU sends start signal to crystal oscillator chip;
B) MCU sending mode select command sends 1,111 010 as high 7, is used to select programming mode, and lowest order is 0, and expression writes pattern, finally sends 1,111 0100 and selects programming to write pattern;
C) crystal oscillator chip acknowledges receipt of order to the MCU return information;
D) MCU sends register address sign indicating number to be written to crystal oscillator chip, and address code is 8;
E) crystal oscillator chip acknowledges receipt of order to the MCU return information;
F) MCU transmits the most-significant byte of the parameter value that will write to crystal oscillator chip;
G) crystal oscillator chip acknowledges receipt of information to MCU;
H) MCU transmits least-significant byte to crystal oscillator chip;
I) crystal oscillator chip is replied to MCU and is received data;
J) MCU sends and ceases and desist order, and accomplishes single job;
Two) MCU reads crystal oscillator chip register parameters value:
K) MCU sends start signal to crystal oscillator chip;
L) MCU sending mode select command sends 1,111 000 as high 7, is used to select general mode, and lowest order is 0, and expression writes pattern, finally sends 1,111 0000 and selects general mode;
M) crystal oscillator chip acknowledges receipt of order to the MCU return information;
N) MCU sends address code to crystal oscillator chip, the register address that expression will be read;
O) crystal oscillator chip acknowledges receipt of order to the MCU return information;
P) MCU sends to crystal oscillator chip and begins to read register command;
Q) MCU is once more to crystal oscillator chip sending mode select command, and preceding 7 is 1,111 000, and is minimum for being 1, and expression will reading of data;
R) crystal oscillator chip acknowledges receipt of order to the MCU return information;
S) crystal oscillator chip sends the most-significant byte of the register value that will read to MCU;
T) MCU acknowledges receipt of order to the crystal oscillator chip return information;
U) crystal oscillator chip sends the least-significant byte of the register value that will read to MCU;
V) MCU acknowledges receipt of order to the crystal oscillator chip return information;
W) MCU sends to crystal oscillator chip and ceases and desist order, and accomplishes one time read operation.
It also further may further comprise the steps:
11) upperly connect through RS232 agreement and MCU, host computer sends order to MCU, after MCU receives order, carries out corresponding operation, and informs host computer to the result, is finally handled by host computer;
12) host computer sends read or write command, 8 bit architectures, and 0,000 0000 expression is read, and 0,000 0001 expression writes;
13) the host computer transmission register address value that need read or write;
14) MCU reads the value of crystal oscillator chip register, and return results gives host computer, and host computer sends the parameter value that will write, and MCU writes register to parameter value, and returns whether write success, and host computer reads the result, processs and displays.
The DTCXO of the present invention's operation need be based on IX2204 numeral temperature compensation chip.At first, put into DTCXO to be debugged, insert power supply to socket.This equipment allows to use the USB power supply, also can extraneous power supply power supply or 5V powered battery.Open master switch, LCD screen is bright, shows to carry out detected state, and completion can be operated after detecting.By last, following page turning key can be checked the value in each register.Check and write state by the function key switching.Select arbitrary register that writes, write numerical value, write by confirming, accomplish read-write DTCXO by numerical key.

Claims (7)

1. portable digital temperature compensation type crystal oscillator chip read write line is characterized in that it comprises:
1) MCU kernel control module: respectively with based on I 2The crystal oscillator chip of C bus, keyboard operation module, information display module link to each other, through I 2C agreement and crystal oscillator chip carry out the read-write operation of exchanges data and crystal oscillator chip register parameters, realize the unified control of keyboard operation module, information display module;
2) keyboard operation module as the operating side of whole read write line, is carried out the selection of operations and the input of data;
3) information display module is used for the demonstration of true-time operation information and temperature compensation type crystal oscillator chip parameter.
2. a kind of portable digital temperature compensation type crystal oscillator chip read write line as claimed in claim 1; It is characterized in that: it also comprises a computer control module; Be used to realize the function expansion to read write line, computer control module links to each other with the MCU kernel control module through the RS232 communication interface.
3. a kind of portable digital temperature compensation type crystal oscillator chip read write line as claimed in claim 2; It is characterized in that: said computer control module comprises MAX232 communication chip and host computer; The MAX232 communication chip is responsible for changing different level between host computer and MCU kernel control module, and host computer is responsible for carrying out the transmission and the demonstration of order.
4. according to claim 1 or claim 2 a kind of portable digital temperature compensation type crystal oscillator chip read write line, it is characterized in that: said MCU kernel control module adopts the AT89C52RC single-chip microcomputer.
5. a kind of portable digital temperature compensation type crystal oscillator chip read write line as claimed in claim 2; It is characterized in that: said MCU kernel control module links to each other with crystal oscillator chip through two communication link wiring; Wherein one is the clock line SCL that is used for the tranmitting data register signal; Clock line SCL one end links to each other with the MCU input pin, and the other end links to each other with the SCL access point of crystal oscillator chip, and another is for being used for I 2The data line SDA of transmission data in the C agreement, data line SDA one end links to each other with the MCU input pin, and the other end links to each other with the SDA tie point of crystal oscillator chip.
6. the reading/writing method of a portable digital temperature compensation type crystal oscillator chip is characterized in that it may further comprise the steps:
One) parameter value writes the crystal oscillator chip register:
A) MCU sends start signal to crystal oscillator chip;
B) MCU sending mode select command sends 1,111 010 as high 7, is used to select programming mode, and lowest order is 0, and expression writes pattern, finally sends 1,111 0100 and selects programming to write pattern;
C) crystal oscillator chip acknowledges receipt of order to the MCU return information;
D) MCU sends register address sign indicating number to be written to crystal oscillator chip, and address code is 8;
E) crystal oscillator chip acknowledges receipt of order to the MCU return information;
F) MCU transmits the most-significant byte of the parameter value that will write to crystal oscillator chip;
G) crystal oscillator chip acknowledges receipt of information to MCU;
H) MCU transmits the least-significant byte of the parameter value that will write to crystal oscillator chip;
I) crystal oscillator chip is replied to MCU and is received data;
J) MCU sends and ceases and desist order, and accomplishes single job;
Two) MCU reads crystal oscillator chip register parameters value:
K) MCU sends start signal to crystal oscillator chip;
L) MCU sending mode select command sends 1,111 000 as high 7, is used to select general mode, and lowest order is 0, and expression writes pattern, finally sends 1,111 0000 and selects general mode;
M) crystal oscillator chip acknowledges receipt of order to the MCU return information;
N) MCU sends address code to crystal oscillator chip, the register address that expression will be read;
O) crystal oscillator chip acknowledges receipt of order to the MCU return information;
P) MCU sends to crystal oscillator chip and begins to read register command;
Q) MCU is once more to crystal oscillator chip sending mode select command, and preceding 7 is 1,111 000, and is minimum for being 1, and expression will reading of data;
R) crystal oscillator chip acknowledges receipt of order to the MCU return information;
S) crystal oscillator chip sends the most-significant byte of the register value that will read to MCU;
T) MCU acknowledges receipt of order to the crystal oscillator chip return information;
U) crystal oscillator chip sends the least-significant byte of the register value that will read to MCU;
V) MCU acknowledges receipt of order to the crystal oscillator chip return information;
W) MCU sends to crystal oscillator chip and ceases and desist order, and accomplishes one time read operation.
7. the reading/writing method of a kind of portable digital temperature compensation type crystal oscillator chip as claimed in claim 6 is characterized in that it also further may further comprise the steps:
11) upperly connect through RS232 agreement and MCU, host computer sends order to MCU, after MCU receives order, carries out corresponding operation, and informs host computer to the result, is finally handled by host computer;
12) host computer sends read or write command, 8 bit architectures, and 0,000 0000 expression is read, and 0,000 0001 expression writes;
13) the host computer transmission register address value that need read or write;
14) MCU reads the value of crystal oscillator chip register, and return results gives host computer, and host computer sends the parameter value that will write, and MCU writes register to parameter value, and returns whether write success, and host computer reads the result, processs and displays.
CN2011102046595A 2011-07-20 2011-07-20 Portable digital temperature compensating type crystal oscillator chip reader-writer and reading/writing method thereof Pending CN102360202A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011102046595A CN102360202A (en) 2011-07-20 2011-07-20 Portable digital temperature compensating type crystal oscillator chip reader-writer and reading/writing method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011102046595A CN102360202A (en) 2011-07-20 2011-07-20 Portable digital temperature compensating type crystal oscillator chip reader-writer and reading/writing method thereof

Publications (1)

Publication Number Publication Date
CN102360202A true CN102360202A (en) 2012-02-22

Family

ID=45585541

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011102046595A Pending CN102360202A (en) 2011-07-20 2011-07-20 Portable digital temperature compensating type crystal oscillator chip reader-writer and reading/writing method thereof

Country Status (1)

Country Link
CN (1) CN102360202A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000163280A (en) * 1998-11-25 2000-06-16 Matsushita Electric Ind Co Ltd Microprocessor, microprogram debug system, and microprocessor built-in device
US6868376B2 (en) * 2000-03-02 2005-03-15 Texas Instruments Incorporated Debug bi-phase export and data recovery
CN201408056Y (en) * 2009-05-19 2010-02-17 北京博瑞特智能仪器有限公司 Handheld device used for debugging liquid level meter
CN102033807A (en) * 2010-12-17 2011-04-27 青岛海信信芯科技有限公司 SOC (System On Chip) chip debugging equipment, method and device
CN102095896A (en) * 2010-11-20 2011-06-15 太原理工大学 Portable intelligent speedometer tester and using method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000163280A (en) * 1998-11-25 2000-06-16 Matsushita Electric Ind Co Ltd Microprocessor, microprogram debug system, and microprocessor built-in device
US6868376B2 (en) * 2000-03-02 2005-03-15 Texas Instruments Incorporated Debug bi-phase export and data recovery
CN201408056Y (en) * 2009-05-19 2010-02-17 北京博瑞特智能仪器有限公司 Handheld device used for debugging liquid level meter
CN102095896A (en) * 2010-11-20 2011-06-15 太原理工大学 Portable intelligent speedometer tester and using method thereof
CN102033807A (en) * 2010-12-17 2011-04-27 青岛海信信芯科技有限公司 SOC (System On Chip) chip debugging equipment, method and device

Similar Documents

Publication Publication Date Title
CN104077166B (en) EPCS and EPCQ memory online upgrading methods based on IP kernel in FPGA
CN104679559A (en) Single chip microcomputer on-line programming method
CN202171888U (en) One-chip microcomputer and CPLD collaborative design experimental system
CN100533424C (en) Single line transmission interface and single byte operational keyboard display module
CN102360202A (en) Portable digital temperature compensating type crystal oscillator chip reader-writer and reading/writing method thereof
CN207558328U (en) A kind of TFT liquid crystal serial ports display
CN102254469A (en) Experimental device based on embedded development platform
CN105068962A (en) I2C controller access method and I2C controller access system
CN204613818U (en) A kind of handheld terminal based on COM-Express module
CN202205217U (en) Portable RFID reader for enterprise product tracing
CN109283875B (en) ARM9 architecture-based high-performance cogeneration unit operation data acquisition terminal
CN203376672U (en) Portable integrated data processor
CN208444269U (en) Keyboard and mouse isochronous controller
CN201751923U (en) Experimental apparatus based on embedded development platform
CN102542872A (en) Driving system based on embedded development platform
CN202720659U (en) Data intelligent terminal
CN103325150A (en) Campus card attendance system
CN219800340U (en) Programming teaching test box based on Loongson 2K1000LA chip
CN201293935Y (en) Embedded digital signal processing module
CN201804536U (en) Analog and digital signal superimposed industrial intelligent liquid crystal display
CN102237053B (en) Industrial intelligent liquid crystal display capable of superposing analog and digital signals
CN211554932U (en) USB debugging interface
CN202929748U (en) Circuit module of concentrator
CN202351937U (en) Portable attendance machine
CN202486697U (en) Man-machine interactive system for real-time image analysis of embedded machine vision system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120222