Summary of the invention
In view of this, purpose of design of the present invention is, provides a kind of method of Solid State Storage Controller acquisition of image data, can under the prerequisite of not setting up image controller, get the view data that image capture controller sends, thus reduce the cost of manufacture of main control chip.
The embodiment of the present invention is achieved in that
A method for acquisition of image data, comprising:
C, utilize the first universal input/output interface and the second universal input/output interface obtain respectively image capture device send frame synchronizing signal and line synchronizing signal, described first universal input/output interface and the second universal input/output interface obtain by two untapped signal pins of Solid State Storage Controller are multiplexing;
D, when described second universal input/output interface obtain described image capture device send line synchronizing signal be non-data gather the term of validity time, start the command sequence read operation of storage control, generate the read data clock signal synchronous with the pixel clock signal of described image capture device;
F, to obtain the view data that described image capture device sends according to described read data clock signal.
Preferably, in the method for above-mentioned acquisition of image data, after step F, also comprise:
G, judge whether described view data is last frame view data, if so, then terminates; Otherwise, return step C.
Preferably, in the method for above-mentioned acquisition of image data, before step C, also comprise:
A, the crystal oscillator of main control chip is utilized to send work clock to described image capture device.
Preferably, in the method for above-mentioned acquisition of image data, after step, and before step C, also comprise:
B, utilize the 3rd universal input/output interface and the 4th universal input/output interface to carry out initialization to the hardware register of described image capture device, described 3rd universal input/output interface and the 4th universal input/output interface get by two untapped signal pins of described Solid State Storage Controller are multiplexing.
Preferably, in the method for above-mentioned acquisition of image data, after step D, and before step F, also comprise:
E, adjust the sequential of described read data clock signal according to described line synchronizing signal.
Compared with prior art, the technical scheme that the embodiment of the present invention provides has the following advantages and feature:
In order to obtain the line synchronizing signal and frame synchronizing signal that image capture device sends, owing to there being multiple untapped signal pin above Solid State Storage Controller, so signal pin can be multiplexed with universal input/output interface to obtain frame synchronizing signal and the line synchronizing signal of image capture device transmission.And, the initial time of image capture device transmission line synchronizing signal is the reference data as the initial time sending pixel clock signal, when the line synchronizing signal that image capture device sends being detected, be equivalent to the time started of the pixel clock signal indirectly having got image capture device, by the operation of the command sequence of Solid State Storage Controller, Solid State Storage Controller can generate the read data clock signal synchronous with the pixel clock signal of image capture device automatically, thus indirectly obtains pixel clock signal.After getting frame synchronizing signal, line synchronizing signal and pixel clock signal, correct entire image data can be obtained.Main control chip does not have image controller, the view data that the present invention's image capture device that utilized Solid State Storage Controller to get sends, therefore, acquisition method provided by the invention can reduce the cost of manufacture of main control chip.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiments provide a kind of method of acquisition of image data, comprise: C, utilize the first universal input/output interface and the second universal input/output interface obtain respectively image capture device send frame synchronizing signal and line synchronizing signal, described first universal input/output interface and the second universal input/output interface obtain by two untapped signal pins of Solid State Storage Controller are multiplexing; D, when described second universal input/output interface obtain described image capture device send line synchronizing signal be non-data gather the term of validity time, start the command sequence read operation of storage control, generate the read data clock signal synchronous with the pixel clock signal of described image capture device; F, to obtain the view data that described image capture device sends according to described read data clock signal.Because the specific implementation of the method for above-mentioned acquisition of image data exists various ways, be described in detail below by specific embodiment:
Shown in Figure 2, shown in Fig. 2 is a kind of method utilizing Solid State Storage Controller acquisition of image data, comprising:
Step 201, utilize the first universal input/output interface and the second universal input/output interface obtain respectively image capture device send frame synchronizing signal and line synchronizing signal, described first universal input/output interface and the second universal input/output interface obtain by two untapped signal pins of Solid State Storage Controller are multiplexing;
Step 202, when described second universal input/output interface obtain described image capture device send line synchronizing signal be non-data gather the term of validity time, start the command sequence read operation of storage control, generate the read data clock signal synchronous with the pixel clock signal of described image capture device;
Step 203, to obtain the view data that described image capture device sends according to described read data clock signal.
In the embodiment shown in Figure 2, in order to obtain the line synchronizing signal and frame synchronizing signal that image capture device sends, owing to there being multiple untapped signal pin above Solid State Storage Controller, so signal pin can be multiplexed with universal input/output interface to obtain frame synchronizing signal and the line synchronizing signal of image capture device transmission.And the time sent due to line synchronizing signal is identical with the initial time of pixel clock signal, so when the line synchronizing signal that image capture device sends being detected, is equivalent to indirectly get the pixel clock signal of image capture device.After getting frame synchronizing signal, line synchronizing signal and pixel clock signal, correct entire image data can be obtained.Main control chip does not have image controller, the view data that the present invention's image capture device that utilized Solid State Storage Controller to get sends, therefore, acquisition method provided by the invention can reduce the cost of manufacture of main control chip.
In step 201, because a frame image data is divided into large number of rows to transmit according to the size of ranks pixel by image capture device, so the data on image line data are all transmitted in units of a line.Obtain a frame image data, need the starting position knowing piece image data, so need the frame synchronizing signal obtaining image capture device transmission; Obtain a line view data, need the starting position knowing a line view data equally, so need the line synchronizing signal obtaining image capture device transmission.After the data of all row all obtain inside piece image, just complete the collection of entire image data.But, owing to not obtaining the line synchronizing signal of image capture device and the interface of frame synchronizing signal in Solid State Storage Controller, so in above-mentioned steps 201, two of Solid State Storage Controller untapped signal pins are multiplexed with the first universal input/output interface and the second universal input/output interface, and obtain line synchronizing signal and frame synchronizing signal by these two universal input/output interfaces.
In step 202., due to image capture device, to send image pixel data be the pixel clock signal that self sends with it is reference data, so image capture device sends view data keep synchronous with pixel clock signal.If Solid State Storage Controller needs acquisition of image data, just need the pixel clock signal obtaining image capture device transmission, as the reference data clock gathering external image data, the acquisition view data that then Solid State Storage Controller could be correct.But, do not receive the signal pin of the pixel clock signal of image capture device due to Solid State Storage Controller, the pixel clock signal that the image capture device causing Solid State Storage Controller directly cannot obtain outside sends.
For this reason, when considering that Solid State Storage Controller reads external image data, be benchmark by reading the clock control signal of solid-state memory, the pixel clock signal sent in order to the clock signal and image capture device that make Solid State Storage Controller keeps synchronous, by utilizing being ready to or signal that busy state detects of NAND_R/B and solid-state memory, be connected in the line synchronizing signal of image capture device.Because with a behavior base unit when external image collecting device transmission view data, when the NAND_R/B of Solid State Storage Controller detects that a line at first, command sequence with regard to the automatic software design patterns according to storage control starts the clock signal that NAND_RE reads solid-state memory, ensure the Complete Synchronization of pixel clock signal and the view data sent with external image collecting device, instead of the mode that traditional image controller directly obtains the pixel clock signal of outside image capture device cleverly, come with the viewdata signal gathered with this synchronous, thus achieve the correct collection of a line view data, so the collection of piece image data and follow-up continuous image data acquisition can be completed after the same method.
In step 203, because Solid State Storage Controller is employing 8 single data holding wire, realize the transmission of parallel clear data, and the image capture device of outside is also employing 8 single data holding wire, realizes the transmission transmission of parallel clear data.So they linked together, complete image data transmission collection can be realized.
Shown in Figure 3, the method for utilizing Solid State Storage Controller continuous acquisition view data shown in Fig. 3, this embodiment is mainly to the expansion that the embodiment shown in Fig. 2 is carried out, and the method specifically comprises:
Step 301, the crystal oscillator of main control chip is utilized to send work clock to image capture device;
Step 302, utilize the 3rd universal input/output interface and the 4th universal input/output interface to carry out initialization to the hardware register of described image capture device, described 3rd universal input/output interface and the 4th universal input/output interface get by two untapped signal pins of described Solid State Storage Controller are multiplexing;
Step 303, utilize the first universal input/output interface and the second universal input/output interface obtain respectively image capture device send frame synchronizing signal and line synchronizing signal, described first universal input/output interface and the second universal input/output interface obtain by two untapped signal pins of Solid State Storage Controller are multiplexing;
Step 304, when described second universal input/output interface obtain described image capture device send line synchronizing signal be non-data gather the term of validity time, start the command sequence read operation of storage control, generate the read data clock signal synchronous with the pixel clock signal of described image capture device;
Step 305, adjust the sequential of described read data clock signal according to described line synchronizing signal;
Step 306, to obtain the view data that described image capture device sends according to described read data clock signal.
Step 307, judge whether described view data is last frame view data, if so, then terminates; Otherwise, return step 303.
In step 301, in the process of conventional images controller acquisition of image data, because work clock is the signal reference data of logical circuit work, so when image controller self work, need a work clock; When outside image capture device work, also a work clock is needed, in order to ensure the work clock of image controller and image capture device and the synchronous of phase place, so the image capture device work that image controller self can provide a clock allow outside.
Although solid-state memory controller itself does not send the signal pin of work clock to image capture device, but consider the impossible individualism of Solid State Storage Controller, it must form a main control chip together with CPU processor, for the working clock reference signal of Solid State Storage Controller be all from main control chip above crystal oscillator, Solid State Storage Controller can use the clock of crystal oscillator to be directly supplied to external image collecting device, is supplied to the clock of peripheral hardware with alternative conventional images controller.
In step 302, no matter use what controller connect image capture device time, before normal use, all must the image capture device of initialization outside.So want to allow outside image capture device collect satisfactory data under correct mode of operation, just need the image capture device of initialization outside, under allowing it be operated in correct pattern.Initialization data, by adopting the interface of twin wire universal serial bus, is written in the hardware register of outside image capture device by controller, completes the outside mode of operation of image capture device and the initialization of state.
But, the interface of the twin wire universal serial bus of hardware is not all had due to a lot of main control chip with Solid State Storage Controller, so the present invention is by being multiplexed with universal input/output interface by the signal pin of Solid State Storage Controller, and on software, simulate the interface protocol of twin wire universal serial bus, thus the initialization operation of the hardware register to image capture device can be realized.
In step 305, in order to compatibility uses the different pixel clock frequency of different external image equipment and their uses, and their pixel clocks of sending and the edge relation of image data, produce the otherness between sequential, that storage control produces and between the pixel clock signal that external image collecting device sends synchronous sequence relation can be adjusted dynamically by software, reach obtain accurate, flexibly with the pixel clock of the Sync image capture equipment of highly compatible read synchronizing signal.Its implementation please refer to shown in Fig. 4: arrange register by the time sequence parameter of software design patterns storage control, can adjust the ratio TS1 of low and high level width and the size of TS2 of the clock signal one-period of the reading data of storage control dynamically.
Following explanation is referred to about the english abbreviation in Fig. 4:
Asic clk is the clock of Solid State Storage Controller work;
Opt_len is the data length that Solid State Storage Controller once transmits;
Ale/cle is Solid State Storage Controller address latch and order latch signal;
#wr/#rd is that Solid State Storage Controller writes data clock signal and read data clock signal;
TS1 is Solid State Storage Controller address latch and order latch signal rising time;
TF1 is Solid State Storage Controller address latch and order latch signal trailing edge time;
TS2 is that Solid State Storage Controller writes data clock signal and read data rising edge clock signal time;
TF2 is that Solid State Storage Controller writes data clock signal and read data clock signal trailing edge time.
About other steps shown in Fig. 3, all substantially identical with the step shown in Fig. 2, the explanation of step shown in Figure 2, does not repeat at this.
In this specification, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar portion mutually see.For device disclosed in embodiment, because it corresponds to the method disclosed in Example, so description is fairly simple, relevant part illustrates see method part.
It will be understood by those skilled in the art that and any one in much different technique and technology can be used to represent information, message and signal.Such as, the message mentioned in above-mentioned explanation, information can be expressed as voltage, electric current, electromagnetic wave, magnetic field or magnetic particle, light field or more combination in any.
Professional can also recognize further, in conjunction with unit and the algorithm steps of each example of embodiment disclosed herein description, can realize with electronic hardware, computer software or the combination of the two, in order to the interchangeability of hardware and software is clearly described, generally describe composition and the step of each example in the above description according to function.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can use distinct methods to realize described function to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
The software module that the method described in conjunction with embodiment disclosed herein or the step of algorithm can directly use hardware, processor to perform, or the combination of the two is implemented.Software module can be placed in the storage medium of other form any known in random asccess memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field.To the above-mentioned explanation of the disclosed embodiments, professional and technical personnel in the field are realized or uses the present invention.
To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.