Three-port chip, chip system and data interaction method
By combining a three-port chip design with a phase-locked loop circuit, clock information is embedded in data information for transmission, solving the problem of a large number of ports in image sensor chips, reducing costs, and improving the stability and accuracy of data transmission.
Patent Information
- Application Number
- CN202210601529.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-30
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2042-05-30
AI Technical Summary
Existing image sensor chips have a large number of ports, which is not conducive to reducing costs.
It adopts a three-port chip design, powered by the main power supply and the main ground port, and uses the main multiplex port for data interaction. It combines fixed and adjustable frequency multiplication phase-locked loop circuits to generate synchronization and frequency multiplication clocks, and embeds clock information into the data information for transmission.
This reduces the number of ports on the chip, lowers costs, and ensures the stability and accuracy of data transmission.
Smart Images

Figure CN117221749B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of image sensor technology, and in particular to a three-port chip, chip system, and data interaction method. Background Technology
[0002] Image sensors are widely used in digital cameras, mobile phones, medical devices, automobiles and other applications to capture and identify optical image information of people or scenes and convert the optical image information into electrical signals.
[0003] Image sensor chips typically require multiple ports, such as a power port, a ground port, a clock port, and a data port. Since data transmission must be performed at a certain frequency, and this frequency is difficult to guarantee to remain stable, the transmitting end must transmit the clock signal to the receiving end through the clock port while transmitting data to the receiving end through the data port.
[0004] Therefore, how to reduce the number of ports on an image sensor chip to reduce costs is a technical problem that urgently needs to be solved by those skilled in the art. Summary of the Invention
[0005] In view of the shortcomings of the prior art described above, the purpose of this invention is to provide a three-port chip, chip system and data interaction method to solve the problem that the large number of ports in existing image sensors is not conducive to cost reduction.
[0006] To achieve the above and other related objectives, the present invention provides a three-port chip, powered by a main power port and a main ground port, and for data interaction via a main multiplexing port; the three-port chip includes:
[0007] The first clock module is used to generate a synchronization clock based on the external clock input to the main multiplexing port;
[0008] The second clock module is connected to the output of the first clock module and is used to multiply the frequency of the synchronous clock and generate a multiplied clock.
[0009] The data input module is connected to the output terminal of the first clock module and is used to receive and store the configuration information input from the main multiplexing port under the control of the synchronization clock.
[0010] The main module is connected to the output of the data input module and is used to read the configuration information and configure the chip, and to generate the data to be transmitted under the control of the system clock.
[0011] The data output module is connected to the output terminal of the second clock module and the output terminal of the main module. It is used to embed the frequency multiplier clock into the data to be transmitted to generate transmission data, and output the transmission data through the main multiplexing port.
[0012] Optionally, the main module is also connected to the output of the second clock module to form the system clock based on the frequency multiplier clock.
[0013] Optionally, the data output module performs an XOR operation between the frequency-doubled clock and the data to be transmitted, so as to embed the frequency-doubled clock into the data to be transmitted.
[0014] Optionally, the data output module uses the frequency multiplier clock to sample and output the transmitted data.
[0015] Optionally, the first clock module is implemented using a fixed-frequency phase-locked loop circuit, wherein the fixed-frequency phase-locked loop circuit operates in a phase-locked state before the external clock transmission is completed, and operates in a voltage-locked state after the external clock transmission is completed; the second clock module is implemented using an adjustable-frequency phase-locked loop circuit, wherein the adjustable-frequency phase-locked loop circuit operates in a phase-locked state, and the frequency-doubled clock is formed based on the output clock of the fixed-frequency phase-locked loop circuit in the voltage-locked state.
[0016] Optionally, the three-port chip includes an image sensor chip, and the data to be transmitted includes image data in the form of digital signals.
[0017] The present invention also provides a chip system, the chip system comprising:
[0018] The main chip adopts a three-port chip as described in any of the above items;
[0019] The slave chip has a slave multiplexing port, which is connected to the master multiplexing port for data interaction. It is used to provide the external clock and configuration information to the master chip, and to receive the transmission data output by the master chip and obtain the data to be transmitted.
[0020] Optionally, the slave chip includes:
[0021] A clock generation module is used to generate the external clock and output it through the multiplexing port;
[0022] The data generation module is used to generate the configuration information and output it through the multiplexing port;
[0023] The data processing module is used to receive the transmitted data from the multiplexing port and perform clock recovery, and then sample the transmitted data according to the recovered clock to obtain the data to be transmitted.
[0024] Optionally, when the main chip includes an image sensor chip, the slave chip includes a processor chip.
[0025] The present invention also provides a data interaction method for a chip system, the chip system including a master chip and a slave chip, wherein the master multiplexing port of the master chip is connected to the slave multiplexing port of the slave chip for data interaction; the data interaction method includes:
[0026] The main chip receives the external clock sent by the slave chip through the main multiplexing port, and generates a synchronization clock based on the external clock.
[0027] Under the control of the synchronous clock, the master chip receives configuration information sent by the slave chip through the master multiplexing port;
[0028] The main chip is configured according to the configuration information;
[0029] The main chip generates a frequency multiplier clock based on the synchronous clock;
[0030] The master chip embeds the frequency multiplier clock into the data to be transmitted to generate the transmitted data, and outputs it to the slave chip through the master multiplexing port;
[0031] The slave chip receives the transmitted data through the slave multiplexing port and performs clock recovery, then samples the transmitted data according to the recovered clock to obtain the data to be transmitted.
[0032] Optionally, the main chip performs an XOR operation between the frequency multiplier clock and the data to be transmitted, so as to embed the frequency multiplier clock into the data to be transmitted.
[0033] Optionally, the main chip uses the frequency multiplier clock to sample and output the transmitted data.
[0034] Optionally, the main chip generates the synchronous clock based on a fixed-frequency phase-locked loop circuit, wherein the fixed-frequency phase-locked loop circuit operates in a phase-locked state before the external clock transmission is completed, and operates in a control voltage-locked state after the external clock transmission is completed; the main chip generates the frequency-multiplied clock based on an adjustable-frequency phase-locked loop circuit, wherein the adjustable-frequency phase-locked loop circuit operates in a phase-locked state.
[0035] Optionally, after the chip sends the external clock, it sends the configuration information after a set time.
[0036] Optionally, after the master chip receives the frame start field sent by the slave chip, the master chip switches from receive mode to send mode, and at this time, the slave chip switches from send mode to receive mode; after the slave chip receives the frame end field sent by the master chip, the slave chip switches from receive mode to send mode, and at this time, the master chip switches from send mode to receive mode.
[0037] As described above, the three-port chip, chip system, and data interaction method of the present invention integrate clock information and data information into a single port channel for transmission by embedding clock information into data information, thereby reducing the number of ports on the chip and achieving the goal of reducing costs. Attached Figure Description
[0038] Figure 1 The diagram shown is a schematic of the three-port chip of the present invention.
[0039] Figure 2 The diagram shown is a schematic of the chip system of the present invention.
[0040] Figure 3 The flowchart shown is a data interaction method of the present invention.
[0041] Component designation explanation
[0042] 100 Three-Port Chip / Main Chip
[0043] 101 First Clock Module
[0044] 102 Second Clock Module
[0045] 103 Data Input Module
[0046] 104 Main Module
[0047] 105 Data Output Module
[0048] 200 from chips
[0049] 201 Clock Generation Module
[0050] 202 Data Generation Module
[0051] 203 Data Processing Module Detailed Implementation
[0052] The following specific examples illustrate the implementation of the present invention. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention.
[0053] Please see Figures 1 to 3 It should be noted that the illustrations provided in this embodiment are only schematic representations of the basic concept of the present invention. Although the illustrations only show components related to the present invention and are not drawn according to the actual number, shape and size of the components in the actual implementation, the shape, quantity and proportion of each component in the actual implementation can be arbitrarily changed, and the layout of the components may also be more complex.
[0054] Example 1
[0055] like Figure 1 As shown, this embodiment provides a three-port chip 100, which is powered by a main power port VDD1 and a main ground port GND1, and performs data interaction through a main multiplexing port SLA1; the three-port chip 100 includes: a first clock module 101, a second clock module 102, a data input module 103, a main module 104, and a data output module 105.
[0056] The first clock module 101 is used to generate a synchronization clock SYN_CLK based on the external clock EXT_CLK input to the main multiplexing port SLA1.
[0057] Specifically, the first clock module 101 is implemented using a fixed-frequency phase-locked loop (PLL) circuit. Before the external clock EXT_CLK transmission is complete, the fixed-frequency PLL circuit operates in a phase-locked state, maintaining a constant frequency by keeping the phase difference constant, thus obtaining a stable clock signal. After the external clock EXT_CLK transmission is complete, the charge pump (CP) in the fixed-frequency PLL circuit is turned off, and the phase-frequency detector (PFD) is reset, thereby switching the fixed-frequency PLL circuit from a phase-locked state to a voltage-locked state, thus keeping the control voltage of the voltage-controlled oscillator (VCO) constant. It should be noted that while the fixed-frequency PLL circuit can output a stable clock frequency when operating in voltage-locked state, this state is difficult to maintain for a long time and is susceptible to noise interference. However, this period is sufficient to receive accurate configuration information, as the transmission time for configuration information is short and the frequency is low. In practical applications, the frequency of the synchronization clock SYN_CLK and the frequency of the external clock EXT_CLK can be the same or different, depending on the multiplication value of the fixed-frequency phase-locked loop circuit. The first clock module can be implemented using any existing phase-locked loop circuit capable of achieving a fixed frequency.
[0058] The second clock module 102 is connected to the output terminal of the first clock module 101 and is used to multiply the frequency of the synchronous clock SYN_CLK and generate a multiplied clock MUL_CLK.
[0059] Specifically, the second clock module 102 is implemented using an adjustable frequency-multiplying phase-locked loop (PLL) circuit. This adjustable PLL circuit operates in a phase-locked state and generates the multiplied clock based on the output clock of a fixed-frequency PLL circuit in a voltage-locked state. The adjustable PLL circuit sets the multiplication value to m according to the chip configuration information. At this time, the adjustable PLL circuit multiplies the synchronous clock SYN_CLK output by the fixed-frequency PLL circuit in a voltage-locked state by m to generate the multiplied clock MUL_CLK; where m is a positive number greater than 1. It should be noted that throughout the entire operation, the adjustable PLL circuit operates in a phase-locked state, maintaining a constant frequency by keeping the phase difference constant, thereby obtaining a stable clock signal. The second clock module can be implemented using any frequency-adjustable PLL circuit available in the prior art.
[0060] The data input module 103 is connected to the output terminal of the first clock module 101 and is used to receive and store the configuration information input from the main multiplexing port SLA1 under the control of the synchronization clock SYN_CLK. The data input module 103 may include a control register bank, which is used to implement data input. It should be noted that the synchronization clock SYN_CLK here refers to the output clock of a fixed-frequency phase-locked loop circuit in a voltage-locked state. Although this clock maintains a stable frequency for a very short time, this time is sufficient to receive accurate configuration information, since the transmission time of configuration information is short and the frequency is low.
[0061] The main module 104 is connected to the output of the data input module 103, and is used to read the configuration information and configure the chip, as well as generate data to be transmitted under the control of the system clock SYS_CLK. Furthermore, the main module 104 is also connected to the output of the second clock module 102 to generate the system clock SYS_CLK based on the multiplied clock MUL_CLK. In practical applications, the frequency of the system clock SYS_CLK and the frequency of the multiplied clock MUL_CLK can be the same. Of course, they can also be different; the required frequency of the system clock SYS_CLK is generated based on the multiplied clock MUL_CLK according to actual needs, for use by the main module.
[0062] Specifically, the main module 104 includes a clock / control unit and a data unit. The clock / control unit is connected to the output of the second clock module 102 and the output of the data input module 103, and is used to generate the system clock SYS_CLK based on the multiplied clock MUL_CLK, and to read the configuration information and perform chip configuration, so as to generate a control signal based on the system clock SYS_CLK after the chip configuration is completed. The data unit is connected to the output of the clock / control unit and is used to generate the data to be transmitted based on the control signal. In another example, the system clock SYS_CLK can be generated based on the second clock module, and the main module can directly receive the system clock SYS_CLK to generate image data, etc. Of course, the main module can also adopt other conventional modules of the prior art.
[0063] More specifically, when the three-port chip 100 includes an image sensor chip, the data unit includes: a pixel circuit and a quantization circuit; the pixel circuit is connected to the output terminal of the clock / control unit and is used to perform photoelectric conversion according to the control signal to generate a pixel signal; the quantization circuit is connected to the output terminal of the pixel circuit and is used to quantize the pixel signal and generate the data to be transmitted; wherein, the pixel signal is image data in analog signal form, and the data to be transmitted is image data in digital signal form.
[0064] In practical applications, the pixel circuit corresponds to a number of pixels arranged in rows and columns. Each pixel includes at least a photodiode, a transmission transistor, a reset transistor, a source follower transistor, and a selection transistor. The anode of the photodiode is grounded, and its cathode is connected to the first terminal of the transmission transistor. The control terminal of the transmission transistor receives a transmission control signal, and its second terminal is connected to a floating diffused active region. The control terminal of the reset transistor receives a reset control signal, its first terminal receives a power supply voltage, and its second terminal is connected to the floating diffused active region. The gate terminal of the source follower transistor is connected to the floating diffused active region, its drain terminal receives a power supply voltage, and its source terminal is connected to the first terminal of the selection transistor. The control terminal of the selection transistor receives a selection control signal, and its second terminal generates a pixel signal.
[0065] The quantization circuit includes a comparator and a counter. The comparator compares the pixel signal and the ramp signal, while the counter starts counting. When the ramp signal is greater than the pixel signal, the output of the comparator flips, and the counter stops counting. The counting result at this time is the digital code value of the quantized pixel signal.
[0066] The data output module 105 is connected to the output terminal of the second clock module 102 and the output terminal of the main module 104. It is used to embed the frequency multiplier clock MUL_CLK into the data to be transmitted to generate transmission data, and output the transmission data through the main multiplexing port SLA1.
[0067] Specifically, the data output module 105 performs a XOR operation on the frequency multiplier clock MUL_CLK and the data to be transmitted to embed the frequency multiplier clock MUL_CLK into the data to be transmitted. This can be implemented using an existing XOR processing circuit. Alternatively, other circuits can be used to embed the frequency multiplier clock MUL_CLK into the data to be transmitted to generate the transmitted data. The specific XOR logic is shown in the table below:
[0068] Frequency multiplier clock 01 01 01 01 01 01 01 01 01 01 Data to be transmitted 00 00 11 00 11 11 00 11 11 11 Transmit data 10 10 01 10 01 01 10 01 01 01
[0069] Specifically, the data output module 105 uses the frequency multiplier clock MUL_CLK to sample and output the transmitted data; wherein, the data transmission rate is the same as the clock sampling frequency.
[0070] In practical applications, the main chip 100 has three paths: path ①, path ②, and path ③. Only one path is open at a time to ensure that data transmission or reception does not conflict. Specifically, when the main chip 100 starts working, path ① is opened first to transmit the external clock EXT_CLK and is closed after transmission is complete. Then, path ② is opened to receive configuration information and is closed after transmission is complete. Finally, path ③ is opened to output transmitted data and is closed after transmission is complete. In one embodiment, before the chip starts working, a clock signal is first transmitted from the slave end (the chip itself) to the master end (the main chip in this embodiment). At this time, path ① is opened initially. After a certain transmission time, path ① is closed, and simultaneously, the charge pump in PLL1 (the first clock module) is turned off, and the PFD (phase-frequency detector) is placed in a reset state. This ensures that the control voltage of the VCO (voltage-controlled oscillator) remains unchanged, and PLL1 can still output a stable frequency. Although this state is difficult to maintain for a long time and is susceptible to noise interference, for this chip, as long as accurate configuration information is received, it is acceptable. Since the transmission time of configuration information is short and its frequency is low, this method can be used. When receiving configuration information, path ② is opened, and the data is transmitted to the register, thus configuring the chip internally. At this time, PLL2 (the second clock module) outputs a corresponding multiplied clock based on the configuration information for data transmission. Due to the long data transmission time, the reference clock provided by PLL1 to PLL2 may be offset, and the data transmission frequency is high, making it susceptible to noise interference and compromising the accuracy of the received data. In this embodiment, data transmission uses a built-in clock. The data to be transmitted is XORed with the clock to achieve the transition from level to edge.
[0071] Correspondingly, such as Figure 2 As shown, this embodiment also provides a chip system, which includes a master chip 100 and a slave chip 200. The master chip 100 is a three-port chip as described above. The slave chip 200 has a slave multiplexing port SLA2, which is connected to the master multiplexing port SLA1 for data interaction. SLA2 is used to provide the master chip 100 with the external clock EXT_CLK and the configuration information, and to receive the transmission data output by the master chip 100 and obtain the data to be transmitted. It should be noted that the slave chip 200 also has a slave power supply port VDD2 and a slave ground port GND2 to supply power to the slave chip 200.
[0072] Specifically, the slave chip 200 includes a clock generation module 201, a data generation module 202, and a data processing module 203. The clock generation module 201 generates the external clock EXT_CLK and outputs it through the slave multiplexing port SLA2. The clock generation module 201 can be an existing clock generation module, such as one based on a phase-locked loop circuit. The data generation module 202 generates the configuration information and outputs it through the slave multiplexing port SLA2. The data generation module 202 can be any module capable of generating configuration information, such as one based on registers. The data processing module 203 receives the transmitted data through the slave multiplexing port SLA2, performs clock recovery, and then samples the transmitted data according to the recovered clock to obtain the data to be transmitted. In practical applications, the master chip 100 includes an image sensor chip, and the slave chip 200 includes a processor chip.
[0073] More specifically, the data processing module 203 includes: a clock data recovery circuit, a data to be transmitted recovery circuit, and a data processing circuit; the clock data recovery circuit receives the transmitted data through the multiplexing port SLA2 and performs clock recovery to obtain a recovered clock, wherein the recovered clock is the frequency multiplication clock, such as using a CDR clock recovery circuit; the data to be transmitted recovery circuit is connected to the output of the clock data recovery circuit, and is used to receive the transmitted data through the multiplexing port SLA2, and sample the transmitted data according to the recovered clock to obtain the data to be transmitted. Existing data recovery circuits can be used to obtain the data to be transmitted, improving the accuracy of data transmission; the data processing circuit is connected to the output of the data to be transmitted recovery circuit, and is used to perform subsequent data processing on the data to be transmitted to generate an image. Existing processing circuits can be selected to process the obtained data to be transmitted based on actual needs.
[0074] Example 2
[0075] like Figure 3 As shown, this embodiment provides a data interaction method for a chip system, the data interaction method including: steps 1), 2), 3), 4), 5), and 6); wherein, the chip system includes a master chip 100 and a slave chip 200, the master multiplexing port SLA1 of the master chip 100 and the slave multiplexing port SLA2 of the slave chip 200 are connected to perform data interaction. In practical applications, the chip system can be the chip system described in Embodiment 1.
[0076] Step 1) The main chip 100 receives the external clock EXT_CLK sent by the slave chip 200 through the main multiplexing port SLA1, and generates a synchronization clock SYN_CLK according to the external clock EXT_CLK.
[0077] Specifically, the main chip 100 generates the synchronous clock SYN_CLK based on a fixed-frequency phase-locked loop (PLL) circuit. Before the external clock EXT_CLK transmission is complete, the fixed-frequency PLL circuit operates in a phase-locked state, maintaining a constant frequency by keeping the phase difference constant, thus obtaining a stable clock signal. After the external clock EXT_CLK transmission is complete, the charge pump (CP) in the fixed-frequency PLL circuit is turned off, and the phase-frequency detector (PFD) is reset. This switches the fixed-frequency PLL circuit from a phase-locked state to a control voltage-locked state, ensuring that the control voltage of the voltage-controlled oscillator (VCO) remains constant. It should be noted that while the fixed-frequency PLL circuit can output a stable clock frequency when operating in voltage-locked mode, this state is difficult to maintain for a long time and is susceptible to noise interference. However, this period is sufficient to receive accurate configuration information, as the transmission time for configuration information is short and the frequency is low. In practical applications, the frequency of the synchronous clock SYN_CLK and the frequency of the external clock EXT_CLK can be the same or different, depending on the multiplication value of the fixed-frequency phase-locked loop circuit.
[0078] Step 2) Under the control of the synchronization clock SYN_CLK, the master chip 100 receives the configuration information sent by the slave chip 200 through the master multiplexing port SLA1. It should be noted that the synchronization clock SYN_CLK here refers to the output clock of a fixed-frequency phase-locked loop circuit in a voltage-locked state. Although this clock maintains a stable frequency for a very short time, this period is sufficient to receive accurate configuration information, since the transmission time of configuration information is short and the frequency is low.
[0079] Specifically, after the slave chip sends the external clock EXT_CLK, it sends the configuration information after a set time. During this set time, the master chip 100 receives the external clock EXT_CLK and forms the synchronization clock SYN_CLK based on the external clock EXT_CLK.
[0080] Step 3) The main chip 100 performs chip configuration according to the configuration information.
[0081] Step 4) The main chip 100 generates a frequency multiplier clock MUL_CLK according to the synchronization clock SYN_CLK.
[0082] Specifically, the main chip 100 generates the frequency-multiplied clock MUL_CLK based on an adjustable-frequency-multiplied phase-locked loop (PLL) circuit, wherein the adjustable-frequency-multiplied PLL circuit operates in a phase-locked state. The adjustable-frequency-multiplied PLL circuit sets the frequency multiplication value to m according to the chip configuration information. At this time, the adjustable-frequency-multiplied PLL circuit multiplies the synchronous clock SYN_CLK output by the fixed-frequency PLL circuit (which is in a voltage-locked state) by m to generate the frequency-multiplied clock MUL_CLK; where m is a positive number greater than 1. It should be noted that throughout the entire operation, the adjustable-frequency-multiplied PLL circuit operates in a phase-locked state, maintaining a constant frequency by keeping the phase difference constant, thereby obtaining a stable clock signal.
[0083] Step 5) The master chip 100 embeds the frequency multiplier clock MUL_CLK into the data to be transmitted to generate transmission data, and outputs it to the slave chip 200 through the master multiplexing port SLA1.
[0084] Specifically, the main chip 100 performs an XOR operation between the frequency multiplier clock MUL_CLK and the data to be transmitted, so as to embed the frequency multiplier clock MUL_CLK into the data to be transmitted, thereby realizing the transformation of the transmitted data from level to edge.
[0085] Specifically, the main chip 100 uses the frequency multiplier clock MUL_CLK to sample and output the transmitted data; wherein, the data transmission rate is the same as the clock sampling frequency.
[0086] Step 6) The chip 200 receives the transmission data through the multiplexing port SLA2 and performs clock recovery. Then, it samples the transmission data according to the recovered clock to obtain the data to be transmitted, so as to process the data to be transmitted to generate an image. The recovery clock is used to sample the transmission data to obtain the data to be transmitted, thereby ensuring the correctness of data transmission.
[0087] In practical applications, when the master chip 100 and the slave chip 200 interact with each other, after the master chip 100 receives the start-of-frame field sent by the slave chip 200, the master chip 100 switches from receiving mode to sending mode, and at this time, the slave chip 200 switches from sending mode to receiving mode; after the slave chip 200 receives the end-of-frame field sent by the master chip 100, the slave chip 200 switches from receiving mode to sending mode, and at this time, the master chip 100 switches from sending mode to receiving mode.
[0088] In one example, when the master chip 10 sends data to be transmitted to the slave chip 20 based on a set frame format, the data is transmitted in the set frame format, which includes several row fields. Each row field has the same format, including {start of row field, clock synchronization field, data field, clock synchronization field, end of row field}.
[0089] The data field comprises n bits; the frame start field comprises 10n bits; the frame end field comprises 10n bits; the line start field comprises 3n bits; the line end field comprises 3n bits; and the clock synchronization field comprises 8n bits, where n is an integer greater than 1.
[0090] In this example, n = 10. The frame start field includes 100 bits, which are 10 sets of cyclic {1111100000}; the frame end field includes 100 bits, which are 10 sets of cyclic {0000011111}; the line start field includes 30 bits, which are 3 sets of cyclic {0000000000}; the line end field includes 30 bits, which are 3 sets of cyclic {1111111111}; the clock synchronization field includes 80 bits, which are 8 sets of cyclic {0101010101}; and the data field includes 10 bits.
[0091] In practical applications, after the master chip 10 receives the frame start field sent by the slave chip 20, it begins to send a frame of data to the slave chip 20. This frame of data usually includes several lines of data, where the line start field is a marker that a line begins to be transmitted and the line end field is a marker that a line ends to be transmitted. Each line is transmitted sequentially until the slave chip 20 detects the frame end field, which indicates that the data transmission of this frame has ended.
[0092] In summary, the three-port chip, chip system, and data interaction method of the present invention integrate clock information into data information for transmission within a single port channel, thereby reducing the number of ports on the chip and lowering costs. Therefore, the present invention effectively overcomes the various shortcomings of the prior art and possesses high industrial applicability.
[0093] The above embodiments are merely illustrative of the principles and effects of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by those skilled in the art without departing from the spirit and technical concept disclosed in the present invention should still be covered by the claims of the present invention.
Claims
1. A three-port chip, characterized in that, Powered by the main power port and the main ground port, and for data exchange via the main multiplexing port; the three-port chip includes: The first clock module is implemented using a fixed-frequency phase-locked loop circuit. It operates in phase-locked state before the external clock transmission is completed and in voltage-locked state after the external clock transmission is completed, so as to generate a synchronous clock according to the external clock input from the main multiplexing port. The second clock module is connected to the output of the first clock module. It is implemented using an adjustable frequency-multiplied phase-locked loop circuit and operates in a phase-locked state to multiply the synchronous clock output by the fixed frequency-multiplied phase-locked loop circuit in a voltage-locked state and generate a multiplied clock. The data input module is connected to the output terminal of the first clock module and is used to receive and store the configuration information input from the main multiplexing port under the control of the synchronous clock output by the fixed-frequency phase-locked loop circuit in a voltage-locked state. The main module is connected to the output of the data input module and is used to read the configuration information and configure the chip, and to generate the data to be transmitted under the control of the system clock. A data output module, connected to the output of the second clock module and the output of the main module, is used to embed the frequency multiplier clock into the data to be transmitted to generate transmission data, and to output the transmission data through the main multiplexing port; The three-port chip has three paths, and only one path is open at any given time. When the three-port chip starts working, path one between the main multiplexed port and the first clock module is opened first to transmit the external clock, and is closed after the transmission is completed. Then, path two between the main multiplexed port and the data input module is opened to receive the configuration information, and is closed after the transmission is completed. Finally, path three between the main multiplexed port and the data output module is opened to output the transmitted data, and is closed after the transmission is completed.
2. The three-port chip according to claim 1, characterized in that, The main module is also connected to the output of the second clock module, and forms the system clock based on the frequency multiplier clock.
3. The three-port chip according to claim 1, characterized in that, The data output module performs an XOR operation between the frequency-doubled clock and the data to be transmitted, so as to embed the frequency-doubled clock into the data to be transmitted.
4. The three-port chip according to claim 1, characterized in that, The data output module uses the frequency multiplier clock to sample and output the transmitted data.
5. The three-port chip according to claim 1, characterized in that, The three-port chip includes an image sensor chip, and the data to be transmitted includes image data in digital signal form.
6. A chip system, characterized in that, The chip system includes: The main chip is a three-port chip as described in any one of claims 1-5; The slave chip has a slave multiplexing port, which is connected to the master multiplexing port for data interaction. It is used to provide the external clock and configuration information to the master chip, and to receive the transmission data output by the master chip and obtain the data to be transmitted.
7. The chip system according to claim 6, characterized in that, The slave chip includes: A clock generation module is used to generate the external clock and output it through the multiplexing port; The data generation module is used to generate the configuration information and output it through the multiplexing port; The data processing module is used to receive the transmitted data from the multiplexing port and perform clock recovery, and then sample the transmitted data according to the recovered clock to obtain the data to be transmitted.
8. The chip system according to claim 6, characterized in that, When the main chip includes an image sensor chip, the slave chip includes a processor chip.
9. A data interaction method for a chip system, characterized in that, The chip system includes a master chip and a slave chip. The master chip is a three-port chip as described in any one of claims 1-5, and its master multiplexing port is connected to the slave multiplexing port of the slave chip for data interaction. The data interaction method includes: The main chip receives the external clock sent by the slave chip through the main multiplexing port, and generates a synchronization clock based on the external clock. Under the control of the synchronous clock, the master chip receives configuration information sent by the slave chip through the master multiplexing port; The main chip is configured according to the configuration information; The main chip generates a frequency multiplier clock based on the synchronous clock; The master chip embeds the frequency multiplier clock into the data to be transmitted to generate the transmitted data, and outputs it to the slave chip through the master multiplexing port; The slave chip receives the transmitted data through the slave multiplexing port and performs clock recovery, then samples the transmitted data according to the recovered clock to obtain the data to be transmitted.
10. The data interaction method for a chip system according to claim 9, characterized in that, The main chip performs an XOR operation between the frequency multiplier clock and the data to be transmitted, thereby embedding the frequency multiplier clock into the data to be transmitted.
11. The data interaction method for a chip system according to claim 9, characterized in that, The main chip uses the frequency multiplier clock to sample and output the transmitted data.
12. The data interaction method for a chip system according to claim 9, characterized in that, After the chip sends the external clock, the configuration information is sent after a set time.
13. The data interaction method for a chip system according to claim 9, characterized in that, After the master chip receives the start-of-frame field sent by the slave chip, the master chip switches from receive mode to send mode, and at this time, the slave chip switches from send mode to receive mode; after the slave chip receives the end-of-frame field sent by the master chip, the slave chip switches from receive mode to send mode, and at this time, the master chip switches from send mode to receive mode.
Citation Information
Patent Citations
Common terminal of image sensor system used for transmitting clock signals and control signals
CN103108137A
Image sensor synchronization without input clock and data transmission clock
CN105246394A
