1. Technical Field
The present invention relates to a storage device, a substrate, a liquid container, a host device, a system, and the like.
2. Related Art
In printers used in which ink cartridges are mounted, in order to prevent a printing process from being executed in a state where the ink cartridges are not mounted, it is necessary to detect whether or not the ink cartridges are mounted.
In regards to this issue, for example, JP-A-2002-14870 discloses a method of detecting whether or not the ink cartridges are mounted by detecting whether or not they are electrically conducted through detection terminals provided in a printer and ink cartridges. However, in this method, there is a problem in that, for example, the number of terminals increases.
Further, for example, JP-A-2009-274438 discloses a method of using a terminal for detecting a remaining ink level in detecting whether or not the ink cartridges are mounted. However, in this method, there is a problem in that, for example, when the method of detecting the remaining ink level is changed to another method, it is difficult to decrease the number of terminals.
An advantage of some aspects of the invention is to provide a storage device, a substrate, a liquid container, a host device, a system or the like capable of efficiently detecting connection while suppressing an increase in the number of terminals.
According to a first aspect of the invention, a storage device includes: a storage section; a storage control section that controls access of the storage section; a control section that performs a process of communicating with a host device; and first to k-th (k is an integer of 2 or more) terminals. The control section outputs, to the host device, a response signal to give a notification that the corresponding storage device is connected, through an i-th (i is an integer where 1≦i≦k) terminal among the first to k-th terminals. The control section outputs the response signal to the host device in an m-th (m is an integer where 1≦m≦n) output time period, which corresponds to ID information of the corresponding storage device, among first to n-th (n is an integer of 2 or more) output time periods.
In the first aspect of the invention, it is possible to output the response signal, which is to give a notification that the corresponding storage device is connected, to the host device through the i-th terminal among the first to k-th terminals. Hence, the terminal for detecting the connection is not necessary, and thus it is possible to reduce the number of terminals. Further, since it is possible to detect whether or not each storage device is connected in each output time period, it is possible to shorten detection time. Furthermore, since the response signal transmitted from each storage device is output in the m-th output time period corresponding to the ID information of each storage device, the host device is able to identify which storage devices are not connected. As a result, it is possible to efficiently detect the connection of the storage device.
Further, in the first aspect of the invention, it is preferable that the control section should include a mode determination portion that determines whether an operation mode is a normal communication mode or a connection detection mode, and a response portion that issues an instruction to output the response signal. In addition, it is also preferable that, when it is determined that the operation mode is the connection detection mode, the response portion should issue the instruction to output the response signal in the m-th output time period.
In such a manner, when it is determined that the operation mode is the connection detection mode, it is possible to issue the instruction to output the response signal. Hence, it is possible to perform a control process for the connection detection separately from the normal communication mode. By performing the control process separately from the normal communication mode, it is possible to restrict the access to the storage section within the ID information. Thus, it is possible to prevent the storage data from unintentionally being damaged.
Further, in the first aspect of the invention, it is preferable that the first to k-th terminals should include a reset terminal. In addition, it is also preferable that the mode determination portion should determine that the operation is the connection detection mode when a voltage level of the reset terminal is a voltage level representing a reset state in a predetermined time period after power activation.
In such a manner, in the predetermined time period after the power activation, it is possible to determine the operation mode depending on whether or not the voltage level of the reset terminal is the voltage level representing the reset state. With such a configuration, it is possible to not use a particular signal for setting the operation mode, and thus it is possible to reduce the number of terminals.
Further, in the first aspect of the invention, it is preferable that, in the m-th output time period, the response portion should change a voltage level of the i-th terminal from a high-impedance state to a second voltage level, and then changes the voltage level thereof from the second voltage level to a first voltage level. In addition, it is preferable that, in a time period other than the m-th output time period, the response portion should set the voltage level of the i-th terminal to the high-impedance state.
In such a manner, it is possible for the influence of the storage device to have no impact on the response signal, which is output from another storage device, in the time period other than the m-th output time period by outputting the response signal in the m-th output time period corresponding to the personal-ID information.
Further, in the first aspect of the invention, it is preferable that the response portion should include a counter that performs a process of counting an internal clock, and a consistent determination section that determines consistency between a count value of the counter and a latency value corresponding to the ID information which is read out from the storage section. In addition, it is preferable that, when the count value is consistent with the latency value, the response portion should issue the instruction to output the response signal.
In such a manner, it is possible to output the response signal at the timing after the latency period corresponding to the ID information has passed. Hence, in the output time period corresponding to the ID information, it is possible to reliably output the response signal.
Further, in the first aspect of the invention, it is preferable that the counter should start a process of counting the internal clock at a timing when power-on reset is released after power activation.
In such a manner, the process of counting the internal clock is started at the timing when the power-on reset is released. Hence, it is possible to output the response signal at the timing after the latency period corresponding to the ID information has passed from the time of releasing the power-on reset. As a result, in the output time period corresponding to the ID information, it is possible to reliably output the response signal.
Further, in the first aspect of the invention, it is preferable that the response portion should issue the instruction to output the response signal through a plurality of terminals among the first to k-th terminals.
In such a manner, it is possible to perform the detection as to whether or not each terminal is electrically connected on the plurality of terminals.
According to a second aspect of the invention, a substrate includes the above-mentioned storage device.
According to a third aspect of the invention, a liquid container includes the above-mentioned storage device.
According to the third aspect of the invention, it is possible to efficiently detect whether or not the storage device included in the liquid container is appropriately connected. Consequently, it is possible to efficiently detect whether or not the liquid container is appropriately mounted.
According to a fourth aspect of the invention, a system includes the above-mentioned storage device and a host device.
According to the fourth aspect of the invention, the host device is able to efficiently detect whether or not the storage device is appropriately connected. As a result, it is possible to improve reliability of the system.
According to the fifth aspect of the invention, a host device includes: a communication processing section that performs a process of communicating with first to n-th (n is an integer of 2 or more) storage devices through first to k-th (k is an integer of 2 or more) host side terminals; and a monitoring section. The monitoring section monitors whether or not response signals are output from the first to n-th storage devices in each time period of first to n-th output time periods.
According to the fifth aspect of the invention, by monitoring presence or absence of the response signal in each output time period of the first to n-th output time periods, it is possible to detect whether the storage device is connected. Hence, for example, it is possible to shorten the detection time. As a result, for example, it is possible to efficiently detect the connection of the storage device.
The invention will be described with reference to the accompanying drawings, wherein like numbers reference like elements.
Hereinafter, preferred embodiments of the invention will be described in detail. The embodiments described below do not limit the invention, and not all the configurations described in the embodiments are necessarily required as means for resolution of the invention.
Each of the first to n-th storage devices 100-1 to 100-n includes first to k-th terminal P1 to Pk (k is an integer of 2 or more), a first power supply terminal VSS, and a second power supply terminal VDD, respectively. It should be noted that
Each storage device has a normal communication mode (a normal operation mode) and a connection detection mode as operation modes. The normal communication mode is a mode for transmitting the data of the storage section to the host device or updating data of the storage section into data received from the host device. The connection detection mode is defined as an operation mode of the storage device used when detecting whether or not each storage device is connected to the host device.
In the connection detection mode, each storage device outputs the response signal, which is to give a notification that the corresponding storage device is connected, to the host device 400 through an i-th terminal Pi (i is an integer where 1≦i≦k) among first to k-th terminals P1 to Pk. The response signal is output in an m-th (m is an integer where 1≦m≦n) output time period corresponding to the ID information of each storage device.
For example, as shown in
The host device 400 includes first to k-th (k is an integer of 2 or more) host side terminals H1 to Hk. The host device 400 is, for example, a printer main body, and as described later, and is able to determine whether or not the respective storage devices are connected, that is, whether or not the liquid containers 300-1 to 300-n are mounted, on the basis of the response signals transmitted from the storage device 100-1 to 100-n.
As described above, in the system according to the embodiment, each storage device 100 is able to output the response signal, which is to give the notification that the corresponding storage device is connected, to the host device 400 through the i-th terminal Pi among the first to k-th terminals P1 to Pk. In such a manner, the terminal for detecting presence or absence of the liquid container 300 becomes unnecessary, and thus it is possible to reduce the number of terminals. Further, since it is possible to detect whether or not each storage device is connected in each output time period, it is possible to shorten the detection time. Furthermore, the response signal from each storage device is output in the m-th output time period corresponding to the ID information of each storage device. Hence, the host device 400 is able to identify which storage devices (liquid containers) of the n storage devices (liquid containers) are not mounted.
Further, in the system according to the embodiment, each storage device 100 is able to output the response signal to the host device 400 through the plural terminals among the first to k-th terminals P1 to Pk. With such a configuration, it is possible to perform the detection as to whether or not each terminal is electrically connected to the plurality of terminals.
The storage section 130 stores the ID information input at the time of manufacture, the manufacture information, and the information input from the host device 400. For example, in the case of the ink cartridge, the storage section 130 stores the manufacture date information as manufacture information, ink color information, and the like, and stores the information on the remaining ink level as information input from the host device 400. The storage section 130 is formed of a non-volatile memory such as an FERAM (a ferroelectric memory) or a flash memory.
In addition, in the configuration, it is not always necessary to store the ID information for indentifying the storage device 100 in the storage section 130 such as a non-volatile memory. For example, it is possible to store the ID information by using a fuse element, or it is possible to output the ID information by using a logic circuit.
The storage control section 120 controls access of the storage section 130 in the normal communication mode (the normal operation mode).
The control section 110 includes a communication portion 140, a mode determination portion 150, and a response portion 160. The communication portion 140 communicates with the host device 400. The mode determination portion 150 determines whether the operation mode is the normal communication mode (the normal operation mode) or the connection detection mode.
The normal communication mode (the normal operation mode) is an operation mode for performing data communication for interchanging data on the remaining ink level and the like between the host device 400 and the storage device 100.
The connection detection mode is an operation mode for detecting whether or not the storage device 100 is connected.
The mode determination portion 150 determines that the operation is the connection detection mode when the voltage level of the reset terminal XRST is a voltage level representing a reset state in a predetermined time period after power activation. When it is determined that the operation mode is the normal communication mode, a control signal SCOM for the storage control section 120 is set to the active level. When it is determined that the operation mode is the connection detection mode, a control signal SDET for the response portion 160 is set to the active level.
When it is determined that the operation mode is the connection detection mode, the response portion 160 issues an instruction to output, to the communication section 140, the response signal to give the notification that the storage device is connected. Specifically, when the control signal SDET supplied from the mode determination portion 150 is at the active level, the response portion 160 reads out the ID information stored in the storage section 130, and issues the instruction to output the response signal to the communication section 140 in the m-th output time period corresponding to the ID information. The response signal is output to the host device 400 through the several terminals of the reset terminal XRST, the clock terminal SCK, and the data terminal SDA.
An internal oscillation circuit 170 generates the internal clock of the storage device 100, and supplies the clock to the control section 110, the storage control section 120, and the storage section 130.
A power-on reset (POR) circuit 180 performs a power-on reset process on the basis of the second power source voltage VDD. That is, the storage device 100 is in the reset state until the power is applied, and when the power is applied, the reset of the storage device 100 is released. Specifically, the power-on reset circuit 180 sets the power-on reset signal POROUT to the H level (the high potential level, that is, a second voltage level in a wider sense), when power is applied to the host device 400 and the difference between second power source voltage VDD and the first power source voltage VSS is equal to or more than a threshold voltage (a predetermined voltage).
As described above, in the storage device according to the embodiment, it is possible to output the response signal, which is to give the notification that the corresponding storage device is connected, to the host device through the above several terminals (or plural terminals) such as the reset terminal XRST, the clock terminal SCK, and the data terminal SDA. With such a configuration, the terminal for detecting presence or absence of each storage device (each liquid container) becomes unnecessary, and thus it is possible to reduce the number of terminals. Furthermore, in the case of the connection detection mode, it suffices to read out only the ID information from the storage section. Hence, by forbidding (masking) access to another data, it is possible to prevent storage content from being unintentionally damaged.
Further, since it is possible to detect presence or absence of each storage device in each time period, it is possible to shorten the detection time. Furthermore, the response signal supplied from each storage device is output in the m-th output time period corresponding to the ID information of each storage device. Hence, the host device is able to identify which storage device (liquid container) is not mounted.
On the other hand, in the method of detecting presence or absence of the liquid container by using the normal communication mode (the normal operation mode), it is necessary to wait until time-out error occurs in communication. For this reason, it takes time before the detection, and thus there is a concern about occurrence of errors during the communication. As a result, even though the liquid container may be mounted, there is a possibility that it is determined that the liquid container is not mounted.
Referring to
In the predetermined time period (the start-up period) TS which is started at the timing when the power-on reset is released, the voltage level of the reset terminal XRST may be held at the voltage level representing the reset state (the L level). In this case, the mode determination portion 150 determines that the operation mode is the connection detection mode (A3 in
when the mode determination portion 150 determines that the operation mode is the connection detection mode, in an ID-information readout period TRM, the response portion 160 reads out the ID information from the storage section 130.
Next, the response portion 160 outputs the response signal in the m-th output time period Tm corresponding to the read ID information. Specifically, for example, as shown in
More specifically, as shown in
In the m-th output time period Tm, the response portion 160 changes the voltage level of the i-th terminal Pi, which is a terminal for outputting the response signal, from the high-impedance state (Hi-Z) to the second voltage level (the H level), and then changes the voltage level thereof to the first voltage level (the L level). On the other hand, in the time period other than the m-th output time period Tm, the voltage level of the i-th terminal Pi is set to the high-impedance state. With such a configuration, it is possible to output each response signal with a time delay (in a time-division manner). Hence, it is possible to identify which storage device outputs the response signal, and it is possible to prevent the respective response signals from interfering with each other.
After the connection detection is completed, the voltage level of the reset terminal XRST may be changed to the voltage level (the H level) representing the reset release state (A4 in
As described above, by holding the high-impedance state (Hi-Z) in the first-half and latter-half time periods of the output time period Tm (the active time period TACT) of the response signal, the response signal may be output in the two output time periods (for example, the second and third output time periods) adjacent to each other. In this case, it is possible to prevent the two response signals from interfering with each other.
First, the second power VDD is applied to the storage device 100 (step B1). Next, when the voltage of the second power source VDD reaches a predetermined voltage, the power-on reset (POR) circuit 180 sets the power-on reset signal POROUT to the H level, thereby releasing the power-on reset (step B2). In such a manner, each circuit included in the storage circuit 100 starts the operation thereof.
Then, it is determined that the reset signal (the voltage level of the reset terminal XRST) is at the inactive level (the H level) (step B3). When the reset signal is not at the inactive level, that is, when the reset signal is at the active level (the L level), it is determined whether or not the predetermined start-up period TS has passed (step B4).
When the predetermined start-up period TS has passed, the mode determination portion 150 determines that the operation mode is the connection detection mode (step B5). In contrast, when the predetermined start-up period TS has not passed, the flow returns to the determination in step B3.
Further, on the basis of the determination in step B3, when the reset signal is at the inactive level, the mode determination portion 150 determines that the operation mode is the normal communication mode (step B6).
The ID consistent determination section 161 (the consistent determination section in a wider sense) determines that the count value of the counter 162 is consistent with the latency value TW corresponding to the ID information which is read out from the storage section 130. The counter 162 performs a process of counting the internal clock. The ID holding section 163 holds the value of the ID information which is read out from the storage section 130, and outputs the value to the ID consistent determination section 161. The access control section 164 accesses the storage section 130 and reads out the value of the stored ID information. The output section 165 issues the output instruction RSP to output the response signal to the communication section 140 on the basis of the determination result of the ID consistent determination section 161.
When the count value is consistent with the latency value TW, the response portion 160 outputs the instruction to output the response signal. Specifically, for example, as shown in the above-mentioned timing chart of
Then, the ID consistent determination section 161 determines whether or not the count value of the counter 162 is consistent with the latency value TW corresponding to the ID information. When there is consistency between the values, the output instruction RSP to output the response signal is output from the output section 165 to the communication section 140. For example, as shown in
The communication section 140 outputs the response signal to the host device 400 through the i-th terminal Pi among the first to k-th terminals P1 to Pk, on the basis of the output instruction RSP transmitted from the response portion 160. For example, in
First, on the basis of the determination of the mode determination portion 150, the connection detection mode starts (step C1). Then, in the ID-information readout period TRM, the ID information is read out from the storage section 130, and is held in the ID holding section 163 (step C2).
Next, it is determined whether or not the count value of the counter 162 is consistent with the latency value TW corresponding to the ID information (step C3). When both of them are consistent with each other, the response portion 160 issues the output instruction RSP to output the response signal to the communication section 140, and on the basis of the output instruction RSP, the communication section 140 outputs the response signal (step C4). Then, the bus, which is connected to the terminal through which the response signal is output, is released (step C5), and the connection detection is terminated (step C6).
In contrast, in the determination in step C3, when the count value is not consistent with the latency value TW corresponding to the ID information, the determination in step C3 is repeated until the both of them are consistent with each other.
For example, when the ID information is set so that ID=1, the corresponding latency value TW1 is 1 ms, and when ID=2, the corresponding latency value TW2 is 11 ms. Likewise, the latency values TW3 and TW4 corresponding to ID=3 and 4 are 21 ms and 31 ms respectively. Further, the length of the active time period TACT of each response signal is 10 ms, the length of THZ1 is 4.9 ms, the length of TH is 0.1 ms, the length of TL is 0.2 ms, and the length of THZ2 is 4.8 ms.
In such a manner, it is possible to provide each output time period (active time period) TACT at the time interval of 10 ms. Further, the lengths of the high-impedance holding periods THZ1 and THZ2 are respectively set to be sufficiently longer than the lengths of the H-level and L-level holding periods TH and TL. Thereby, when the response signals are output in the two output time periods adjacent to each other, it is possible to prevent the two response signals from interfering with each other. For example, the internal oscillation circuit 170 for generating the internal clock may be configured to include a ring oscillator and the like. In this case, the variation in the oscillation frequency (the internal clock frequency) among the storage devices is likely to be caused by variation in transistor characteristics and the like. Further, at the timing when the power-on reset is released, the variation among the among the storage devices is also likely to be caused by variation in transistor characteristics and the like. Even in this case, by setting the high-impedance holding period so as to make it sufficiently long as described above, it is possible to prevent two adjacent response signals from interfering with each other.
In addition, the ID information is not limited to ID=1 to 4, and the value equal to or larger than the ID=5 or 6 may be used. In this case, for example, the latency values TW5, TW6, . . . may be set to 41 ms, 51 ms, . . . .
According to the storage device 100 and the liquid container 300 of the embodiments, it is possible to associate the ID information with the ink colors of the liquid containers (the ink cartridges and the like). For example, it is possible to associate four colors (black, cyan, magenta, and yellow) of the ink cartridges with ID=1 to 4, respectively.
For example, when the single color type is used, as described above, ID=1 to 4 are associated with the liquid containers for the respective colors (black, cyan, magenta, and yellow), and the response signals RSP are output in the output time periods T1 to T4. Further, when the four-in-one type is used, the ID information is set so that ID=7, it is possible to output the response signals in the output time periods T1 to T4. Further, when the single black color type and the all-in-one color type are used in combination, by setting the ID information of the single black color type to ID=1, it is possible to output the response signal in the output time period T1, and by setting the ID information of the all-in-one color type to ID=6, it is possible to output the response signals in the output time periods T2 to T4.
As described above, in the storage device 100 according to the embodiment, the response portion 160 is able to issue the instruction to output the response signals in the plural output time periods among the first to n-th output time periods T1 to Tn. Further, in the liquid container 300 according to the embodiment, when the liquid container 300 contains liquids with plural colors, it is possible to output the response signals in the plural output time periods, corresponding to the plural colors, among the first to n-th output time periods T1 to Tn. With such a configuration, it is possible to associate the first to n-th output time periods with n-color inks, respectively. Hence, no matter whether the ink cartridge is the single color type or the all-in-one type, it is possible to make the ink cartridge compatible without changing the firmware of the host device.
Next, a specific configuration example of the liquid container 300 equipped with the above-mentioned storage device 100 according to the embodiment will be described with reference to
In the ink cartridge 300 (the liquid container in a wider sense) shown in
The ink cartridge 300 includes the circuit board 200 (the substrate in a wider sense). The circuit board 200 is provided with the storage device 100 according to the embodiment, and stores the data or transmits and receives the data to and from the host device 400. The circuit board 200 is implemented by, for example, the print substrate, and is formed on the surface of the ink cartridge 300. The circuit board 200 is provided with a terminal such as the second power supply terminal VDD. In addition, when the ink cartridge 300 is mounted on the printer, by making the terminal come into contact with (electrically connect with) the terminal of the printer side, the power is applied or the data is interchanged.
As shown in
The power supply section 410 supplies power to the first to n-th storage devices 100-1 to 100-n. The communication processing section 420 performs a process of communicating with the first to n-th storage devices 100-1 to 100-n through the first to k-th host side terminals such as the host side reset terminal HRST, the host side clock terminal HCK, and the host side data terminal HDA.
The monitoring section 430 monitors whether or not each response signal transmitted from the first to n-th storage devices 100-1 to 100-n is output in each period of the first to n-th output time periods T1 to Tn.
The host control section 440 performs respective processes of controlling the power supply section 410, the communication processing section 420, the monitoring section 430 and the display section 450.
The display section 450 is, for example, an LCD (a liquid crystal display) or the like, and displays an operation screen of the host device 400 (the printer), an operation state, an error message, or the like. In the connection detection mode, the display section 450 displays the connection detection result on the basis of the monitoring result of the monitoring section 430.
The display control section 460 controls the display of the connection detection result on the display section 450. The display control section 460 can be realized by the heretofore known display controller or the like.
As described above, in the storage device, host device, and the like according to the embodiment, it is possible to output the response signal, which is for giving the notification that the corresponding storage device is connected, to the host device through the above several terminals (or plural terminals) such as the reset terminal XRST, the clock terminal SCK, and the data terminal SDA. With such a configuration, the terminal for detecting presence or absence of each storage device (each liquid container) becomes unnecessary, and thus it is possible to reduce the number of terminals. Further, by outputting the response signals through the plural terminals, it is possible to perform the detection as to whether or not each terminal is electrically connected.
Further, since it is possible to detect presence or absence of each storage device in each time period, it is possible to shorten the detection time. Furthermore, the response signal supplied from each storage device is output in the m-th output time period corresponding to the ID information of each storage device. Hence, the host device is able to identify which storage device (liquid container) is not mounted.
Further, in the case of the connection detection mode, it suffices to read out only the ID information from the storage section. Hence, by forbidding (masking) access to other data, it is possible to prevent storage content from being unintentionally damaged.
Although the invention has been described in detail with respect to the examples thereof, it should be understood by those skilled in the art that the invention may be modified into various forms without departing from the technical scope of the invention. Accordingly, it should be understood that the scope of the invention includes the modified examples. For example, in the description or the drawings, the terms (such as the L level and the H level), which are described at least once together with the broadly-defined or synonymous different terms (such as the first voltage level and the second voltage level), may be replaced with the different corresponding terms even when existing at any place in the description or the drawings. Further, the configurations and the operations of the storage device, the substrate, the liquid container, the host device, and the system is not limited to the embodiments mentioned above, and may be modified into various forms.
The entire disclosure of Japanese Patent Application No. 2010-035769, filed Feb. 22, 2010 is expressly incorporated by reference herein.
Number | Date | Country | Kind |
---|---|---|---|
2010-035769 | Feb 2010 | JP | national |