The content of the invention
In view of this, it is necessary to provide it is a kind of with use time indicate function hard disk, can by the use of hard disk when
Between shown.
A kind of hard disk with use time instruction function, including a main control chip, a storage chip, a single-chip microcomputer, one
Charactron and the first to the 12nd resistance, the main control chip connect the storage chip, for controlling the storage chip to enter
Row reading and writing data, the first input and output pin of the main control chip through the first resistor connect the single-chip microcomputer it is first defeated
Enter pin, the second input and output pin of the main control chip draws through the second input that the second resistance connects the single-chip microcomputer
Pin, the 3rd input and output pin of the main control chip connects the 3rd input pin of the single-chip microcomputer through the 3rd resistor,
The first voltage pin of the single-chip microcomputer connects a first voltage source and connects a second voltage source through the 4th resistance, described
The second voltage pin of single-chip microcomputer connects the second voltage source, and the first to the 8th output pin of the single-chip microcomputer is respectively through institute
The the 5th to the 12nd voltage is stated to connect the tenth pin of the charactron, the 9th pin, the 8th pin, the 5th pin, the 4th draw
Pin, second pin, the 3rd pin and the 7th pin, the charactron first and the 6th pin be all connected with the second voltage
Source;During work, the main control chip reads the power-on time and the upper electricity to store of the hard disk stored in internal storage
In being recorded to the hard disk this power-on time and being stored it in internal storage based on time, while the master
Control chip exports a control signal to the list according to the power-on time of record by the described first to the 3rd input and output pin
Piece machine, controls the charactron to carry out the use time of the hard disk after the control signal parsing that the single-chip microcomputer will be received
Display.
The use time for indicating the hard disk of function that the hard disk is calculated by the main control chip with use time
And in storing it in internal storage, while the use time of the hard disk is entered by the single-chip microcomputer and the charactron
Row display, is observed with convenient use person.
Specific embodiment
Fig. 1 is refer to, the better embodiment of hard disk 1 of the present invention with time indicating function includes a main control chip
10th, a storage chip 11, a single-chip microcomputer 12, a charactron 13 and resistance R1-R12.Other electronic components on the hard disk 1 with
Usual hard disk is identical, will not be repeated here.
The main control chip 10 connects the storage chip 11, for controlling the storage chip 11 to carry out reading and writing data.
The input and output pin GPIO1 of the main control chip 10 connects the input pin RC0 of the single-chip microcomputer 12 through the resistance R1.Institute
The input and output pin GPIO2 for stating main control chip 10 connects the input pin RC1 of the single-chip microcomputer 12 through the resistance R2.It is described
The input and output pin GPIO3 of main control chip 10 connects the input pin RC2 of the single-chip microcomputer 12 through the resistance R3.The list
The voltage pin RE3 of piece machine 12 connects a voltage source P5V_R and connects a voltage source P5V through the resistance R4.The single-chip microcomputer
12 voltage pin VDD connects the voltage source P5V.The grounding pin VSS1 and VSS2 of the single-chip microcomputer 12 are grounded.It is described
The output pin RA0-RA7 of single-chip microcomputer 12 respectively through the resistance R5-R12 connect the charactron 13 pin 10,9,8,5,
4th, 2,3 and 7.The pin 1 and 6 of the charactron 13 is all connected with the voltage source P5V.
When electricity on the hard disk 1, the main control chip 10 reads the power-on time stored in its internal storage first,
Such as 0 day (being not used before i.e. described hard disk 1), and with the power-on time of the storage, to described hard such as based on 0 day
Disk 1 this power-on time, such as recorded within 5 days and by record after storages in 5 days internally in memory, when the hard disk 1
When going up electricity again, the main control chip 10 read its internal storage in store power-on time, such as 5 days (i.e. described hard disk 1 it
Before the use time that is previously used be 5 days), and the power-on time to store, to this upper of the hard disk 1 such as based on 5 days
The electric time, such as recorded within 8 days and by record after storages in 13 days internally in memory, by that analogy, obtain described with this
The use time of hard disk 1.For the ease of display, with full 1 year for the time limit is shown the use time of the hard disk 1.Wherein
When the power-on time of the hard disk 1 is less than 1 year, the main control chip 10 judges that the use time of the hard disk 1 is 0 year, when
When the power-on time of the hard disk 1 was less than 2 years more than 1 year, the main control chip 10 judges that the use time of the hard disk 1 is
1 year, when the power-on time of the hard disk 1 was less than 3 years more than 2 years, the main control chip 10 judged the use of the hard disk 1
Time is 2 years, and when the power-on time of the hard disk 1 was less than 4 years more than 3 years, the main control chip 10 judges the hard disk 1
Use time be 3 years, when the power-on time of the hard disk 1 is more than 4 years when being less than 5 years, the main control chip 10 judges institute
The use time for stating hard disk 1 is 4 years.The main control chip 10 is according to the power-on time output control signal for calculating is given simultaneously
Single-chip microcomputer 12, the making the hard disk 1 of the charactron 13 is controlled after the control signal parsing that the single-chip microcomputer 12 will be received
Shown with the time.In other embodiments, by set the main control chip 10 the connection single-chip microcomputer 12 it is defeated
Enter the quantity of output pin to set the use time of the hard disk 1 for needing display.
When the power-on time of the hard disk 1 is less than 1 year, the input and output pin GPIO1 of the main control chip 10,
GPIO2 and GPIO3 export low level signal, that is, the control signal for exporting is " 000 ", and the control signal is supplied to the list
Piece machine 12, controls the charactron 13 to show digital " 0 ", to indicate after the control signal parsing that the single-chip microcomputer 12 will be received
The use time of the hard disk 1 is 0 year.
When the power-on time of the hard disk 1 was less than 2 years more than 1 year, the input and output pin of the main control chip 10
GPIO1 and GPIO2 export low level signal, input and output pin GPIO3 and export a high level signal, that is, the control letter for exporting
Number it is " 001 ", the control signal is supplied to the single-chip microcomputer 12, after the control signal parsing that the single-chip microcomputer 12 will be received
Control the charactron 13 to show " 1 ", be 1 year with the use time for indicating the hard disk 1.
When the power-on time of the hard disk 1 was less than 3 years more than 2 years, the input and output pin of the main control chip 10
GPIO1 and GPIO3 export low level signal, input and output pin GPIO2 and export a high level signal, that is, the control letter for exporting
Number it is " 010 ", the control signal is supplied to the single-chip microcomputer 12, after the control signal parsing that the single-chip microcomputer 12 will be received
Control the charactron 13 to show " 2 ", be 2 years with the use time for indicating the hard disk 1.
When the power-on time of the hard disk 1 was less than 4 years more than 3 years, the input and output pin of the main control chip 10
GPIO1 exports a low level signal, input and output pin GPIO2 and GPIO3 and exports high level signal, that is, the control letter for exporting
Number it is " 011 ", the control signal is supplied to the single-chip microcomputer 12, after the control signal parsing that the single-chip microcomputer 12 will be received
Control the charactron 13 to show " 3 ", be 3 years with the use time for indicating the hard disk 1.
When the power-on time of the hard disk 1 was less than 5 years more than 4 years, the input and output pin of the main control chip 10
GPIO1 exports a high level signal, input and output pin GPIO2 and GPIO3 and exports low level signal, that is, the control letter for exporting
Number it is " 100 ", the control signal is supplied to the single-chip microcomputer 12, after the control signal parsing that the single-chip microcomputer 12 will be received
Control the charactron 13 to show " 4 ", be 4 years with the use time for indicating the hard disk 1.
The upper electricity for indicating the hard disk 1 of function that the hard disk 1 is calculated by the main control chip 10 with use time
Time simultaneously stores it in internal storage, while by the single-chip microcomputer 12 and the charactron 13 by the hard disk 1
Use time is shown, is observed with convenient use person.