CN104298701B - The detecting of I2C/SPI instructions is with understanding device and method - Google Patents

The detecting of I2C/SPI instructions is with understanding device and method Download PDF

Info

Publication number
CN104298701B
CN104298701B CN201410344092.5A CN201410344092A CN104298701B CN 104298701 B CN104298701 B CN 104298701B CN 201410344092 A CN201410344092 A CN 201410344092A CN 104298701 B CN104298701 B CN 104298701B
Authority
CN
China
Prior art keywords
detecting
spi
setup parameter
control unit
read apparatus
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410344092.5A
Other languages
Chinese (zh)
Other versions
CN104298701A (en
Inventor
黄顺治
张志隆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Giga Byte Technology Co Ltd
Original Assignee
Giga Byte Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Giga Byte Technology Co Ltd filed Critical Giga Byte Technology Co Ltd
Priority to CN201410344092.5A priority Critical patent/CN104298701B/en
Publication of CN104298701A publication Critical patent/CN104298701A/en
Application granted granted Critical
Publication of CN104298701B publication Critical patent/CN104298701B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0016Inter-integrated circuit (I2C)

Abstract

A kind of detecting of I2C/SPI instructions, applied to a graphic system, can avoid improper setting, it is ensured that system operation is in safe range with understanding device and method.Present invention detecting includes a control unit and a storage element with solution read apparatus;The method of the present invention enables the control unit to perform the following steps:Receive I2C/SPI instructions;Detect whether the I2C/SPI instructions are a setup parameter;Understood if being setup parameter if the instruction;And if the setup parameter exceeds the specification safe range that system allows, and ignores the setup parameter, is otherwise set the incoming system of the setup parameter.

Description

The detecting of I2C/SPI instructions is with understanding device and method
Technical field
It is more particularly to a kind of to be applied to figure the present invention relates to a kind of detecting of I2C/SPI instructions with understanding device and method Shape processing system, can avoid improper setting, it is ensured that detecting and solution read apparatus of the system operation in the I2C/SPI instructions of safe range And method.
Background technology
Current computer system supports I2C/SPI serial bus interfaces (inter-integrated circuit/serial Peripheral interface), and via receive I2C/SPI instruction in the way of to setting control system it is more and more general Time.As long as program can read I2C/SPI instructions, and content is a setup parameter, and user just can thereby change system and set It is fixed, with the initial setting of altering system specification.Also, for the mapping program or Games Software in computer system in order to can carry For high-speed computation ability and lifting task performance, user would generally be subject to overclocking to the graphics processor of the graphic system, Incoming related setting parameter is instructed through I2C/SPI, change system is initially set, even more than system specification safe range.One As for, system can't be to the setup parameters of these potential risks, such as overvoltage protection (OVP), overcurrent protection (OCP) And the parameter such as overheat protector (OTP), understood, once the incoming system of setup parameter, will be set according to its setting value It is fixed.If however, computer system long-term operation may cause bad under the setting of this risk to electronic device assembly Influence, or even system is caused damage.
1st figure is the organigram that known graphic system 100 instructs initialization system through I2C/SPI.Figure Processing system 100 is a system with graphics processor (graphics processing unit, GPU) 110, is electrically to connect It is connected to a computer main system 200.Graphic system 100 is still adjusted comprising a read-only storage (ROM) 120 and a pulse bandwidth Become device (PWM) 130, be electrically connected with respectively with graphic system 100.Graphics processor 110 receives I2C/SPI instructions, to this Pulse wave width modulation device 130 sends out a setup parameter, to change the voltage or electric current of system operation.Due to not having any mechanism I2C/SPI instructions are understood, even if the setup parameter is to exceed system specification safe range, graphics processor can be also passed through 110 incoming pulse wave width modulation devices 130, are set.If these setup parameters, for example, overvoltage protection, overcurrent Protection or with frequency reducing temperature etc., screen protection, is just used directly to initialization system, so by so that department of computer science System is chronically under the condition of work of risk and operated, and easily causes the bad influence of computer system.
Therefore, how to detect and understand I2C/SPI instructions, it is to avoid the safe range more than the system specification is set, and is turned into then The important topic of Technological Problems In Computer Manufacturing manufacturer one.
The content of the invention
In view of problem above, it is an object of the invention to provide a kind of detecting of I2C/SPI instructions and solution read apparatus and side Method, particularly one kind can be applied to graphic system, can avoid improper setting, it is ensured that system operation is in the I2C/ of safe range The detecting of SPI instructions is with understanding device and method.
In order to reach object above, the present invention provides the device of a kind of I2C/SPI instructions detecting and deciphering, applied to a tool There is the graphic system of graphics processor, the device of I2C/SPI instructions detecting and deciphering includes a control unit, be coupling In the graphics processor, with an I2C/SPI EBIs, to receive I2C/SPI instructions;And a storage element, it is to be coupled to The control unit, to the setting value in stocking system specification safe range.Wherein, the I2C/ that control unit detecting is received If SPI instructs a setup parameter, then compared with being stored in the system specification setting value of the storage element, whether use deciphering The incoming system of the setup parameter is set.
In order to reach object above, the present invention provides a kind of I2C/SPI instructions detecting and the method for deciphering, makes the I2C/ again SPI instructions detecting can perform the following steps with the control unit in the device of deciphering:One is received through I2C/SPI EBIs I2C/SPI is instructed;Detect whether I2C/SPI instructions are a setup parameter;If the instruction is setup parameter, with being stored in The system specification setting value of I2C/SPI instructions detecting and the storage element in the device of deciphering is compared and understood;And If the setup parameter exceeds the specification safe range that system allows, ignore the setup parameter, it is otherwise that the setup parameter is incoming System is set.
In one embodiment of the invention, wherein the graphics processor system is a drawing chipset (graphics chipset).
In one embodiment of the invention, wherein the graphic system system is a display adapter with drawing chipset (display card) device.
In one embodiment of the invention, wherein the control unit system is a microcontroller (microcontroller, MCU).
In one embodiment of the invention, wherein the storage element system is a flash memory (flash ROM) or random access memory (RAM)。
Effect of the present invention is, disclosed herein I2C/SPI instructions detecting and the device and method of deciphering, it is right Setup parameter in I2C/SPI instructions is understood, and ignores the setup parameter beyond system specification safe range, is only retained and is met The setup parameter of safe range, carries out dynamical system setting, uses protection electronic device assembly, it is ensured that system is transported steadily in the long term Make.
It is familiar with relevant art in order that any and understands the technology contents of the present invention and can implement according to this, hereby will be of the invention Feature, implementation and effect, coordinate schema to make most preferred embodiment detailed description as follows.
Brief description of the drawings
Fig. 1 is the organigram that known graphic system instructs initialization system through I2C/SPI.
Fig. 2 be I2C of the present invention it/SPI instructions detecting with solution read apparatus applied to graphic system construction signal Figure.
Detectings and the organigram of solution read apparatus of the Fig. 3 for I2C/SPI instructions of the present invention.
Fig. 4 A are the detecting of I2C/SPI instructions of the present invention and the step flow chart of deciphering method.
Fig. 4 B are the detecting of I2C/SPI instructions of the present invention and the step flow chart of the another embodiment of deciphering method.
Embodiment
In this specification and follow-up claim, " coupling " word system is comprising any directly and indirect electric Connection means.Therefore, if a first device is coupled to a second device described in text, representing first device directly can electrically connect Second device is connected to, or is electrically connected indirectly to second device through other devices or connection means.
Detecting and deciphering device and method of the present invention system about a kind of I2C/SPI instructions, refer to the 2nd figure, the present invention The detecting of I2C/SPI instructions is that the graphic system 300 is wrapped applied in a graphic system 300 with solution read apparatus 350 A graphics processor 310, a read-only storage 320 and a pulse wave width modulation device 330 are included, and can be with computer main system 370 Constitute electrical connection.And the pulse wave width modulation device 330 of read-only storage 320 and one can connect graphics processor 310 respectively.
The detecting of I2C/SPI instructions of the present invention is respectively coupled to graphics processor 310, read-only storage with solution read apparatus 350 Device 320 and pulse wave width modulation device 330, detecting and the solution read apparatus 350 of I2C/SPI instructions connect through an I2C/SPI buses 360 Receive and understand I2C/SPI instructions 3601, and according to result is understood, I2C/SPI is instructed at least setup parameter in 3601 3605 pass through the incoming graphics processor 110 of bus, and through the CROM (control read only memory) 320 of I2C/SPI buses 360 and pulse bandwidth Modulator 330.
The 3rd figure is referred to, and refers to the 2nd figure simultaneously, detecting and the solution read apparatus 350 of I2C/SPI instructions are to include one The storage element 3503 of control unit 3501 and one, wherein control unit 3501 are coupled to graphics processor 310 through a bus, and With an I2C/SPI EBIs, to receive I2C/SPI instructions 3601.Storage element 3503 is coupled to control unit 3501, uses The setting value 3505 in system specification safe range to store the graphic system 300.The detecting of control unit 3501 connects If the I2C/SPI of receipts instructs 3,601 1 setup parameters 3605, then with being stored in the system specification setting value of storage element 3503 3505 compare, and use whether deciphering can carry out parameter setting by the incoming system of setup parameter 3605.
Graphics processor 310 described in the present embodiment is a drawing chipset, with the special drawing for order computing energy of processing Power, and result can be passed back to graphic system 300 or computer main system 370.
Graphic system 300 described in the present embodiment is a display adapter device with drawing chipset or interior The computer main system of embedding drawing chipset.
Control unit 3501 described in the present embodiment is a microcontroller, thereby receives I2C/SPI instructions 3601, and plan as a whole The detecting of the I2C/SPI instructions of the present invention and the electrical control and start of solution read apparatus 350.
Storage element 3503 described in the present embodiment is a flash memory or read-only storage, thereby stores each setup parameter 3605 Meet the setting value in system specification safe range, so that control unit is relatively used.
Refer to shown in 4A figures and the 2nd~3 figure, the detecting of I2C/SPI instructions of the present invention and deciphering method, are to make control Unit 3501 can perform the following steps:I2C/SPI instructions 3601 are received through I2C/SPI EBIs 360, as 4A schemes institute The step S410 shown.I2C/SPI instructs 3601 contents to potentially include general instruction or the setup parameter to initialization system 3605.After I2C/SPI instructions 3601 are received, control unit 3501 detects whether I2C/SPI instructions 3601 are setting ginseng Number 3605, such as step S430.If the instruction is setup parameter 3605, set with the system specification that is stored in the storage element 3503 Definite value 3505 is compared and understood, such as step S450.Judge whether the setup parameter 3605 exceeds the specification that system allows Safe rangeIf so, then ignoring the setup parameter, and return to the next I2C/SPI instructions 3601 of step S410 waits;If it is not, Then the incoming graphic system 300 of the setup parameter 3605 is set, such as step S470.
Substantially, the setting value 3505 in the foregoing system specification safe range being stored in storage element 3503, for example Overvoltage protection, overcurrent protection or the setup parameter such as related to frequency reducing temperature, preferred embodiment is department of computer science's controlling Manufacturer is made before computer dispatches from the factory, the storage unit 3503 is just stored in advance, compares setting ginseng as control unit 3501 Number setting value is used.
Refer to 4B figures, the detecting of I2C/SPI instructions of the present invention and the step schematic diagram of the another embodiment of deciphering method. The step of it has further included a storing and setting parameter, by the setting value of the setup parameter 3605 of incoming graphic system 300 3505 storages are to storage element 3503, the step S490 as shown in 4B figures.It is ensured that the setting value of these storages is all It is the setting value 3505 not less than system specification safe range.
As embodiment for example, the I2C/SPI that should be clear from the present invention instructs it disclosed by the invention described above Detecting can instruct the setup parameter 3605 in 3601 to understand I2C/SPI with understanding device and method, ignore beyond system The setup parameter of specification safe range, only retains the setup parameter 3605 for meeting safe range, carries out dynamical system setting, uses Protect electronic device assembly, it is ensured that system is used steadily in the long term.
Although embodiments of the present invention are disclosed above described, the present invention is so not limited to, it is any to be familiar with related art techniques Person, without departing from the spirit and scope of the invention, such as according to the shape described in the present patent application scope, construction, feature and number Amount, which is worked as, can do a little change, therefore the scope of patent protection of the present invention must regard appended application claim institute circle of this specification The person of determining is defined.

Claims (9)

1. a kind of detecting of I2C/SPI instructions and solution read apparatus, applied to a graphic system with a graphics processor, It is characterized in that including:
One control unit, is coupled to the graphics processor, with an I2C/SPI EBIs, is referred to receiving an I2C/SPI Order;With
One storage element, couples described control unit, one in specification safe range to store the graphic system Setting value;
Wherein, if the described control unit I2C/SPI that detects and receive instructs a setup parameter, then be stored in it is described The setting value of storage element is compared, and whether uses deciphering by the incoming graphic system of the setup parameter Carry out setting person.
2. detecting as claimed in claim 1 and solution read apparatus, it is characterised in that the graphics processor is a drawing chip Group.
3. detecting as claimed in claim 2 and solution read apparatus, it is characterised in that the graphic system has described for one The display adapter device of drawing chipset.
4. detecting as claimed in claim 1 and solution read apparatus, it is characterised in that described control unit is a microcontroller.
5. detecting as claimed in claim 1 and solution read apparatus, it is characterised in that the storage element is that a flash memory or one are random Access memory.
6. there is provided the detecting that an I2C/SPI in a graphic system is instructed with deciphering method for a kind of detecting of I2C/SPI instructions With solution read apparatus, when the detecting is with solution read apparatus running, the I2C/SPI is instructed into detecting with understanding, its feature exists In methods described system enables the detecting to perform the following steps with the control unit in solution read apparatus:
I2C/SPI instructions are received through an I2C/SPI EBIs;
Detect whether the I2C/SPI instructions are a setup parameter;
If the instruction is setup parameter, with being stored in the detecting and the setting in the storage element in solution read apparatus Value is compared and understood;With
If the setup parameter exceeds the specification safe range that system allows, ignore the setup parameter, otherwise set described Determine the incoming graphic system of parameter to be set.
7. detecting as claimed in claim 6 and deciphering method, the step of it further includes a storing and setting parameter, mainly The setup parameter of the incoming graphic system is stored to the storage element, to be used as a setting value.
8. detecting as claimed in claim 6 and deciphering method, it is characterised in that described control unit is a microcontroller.
9. detecting as claimed in claim 6 and deciphering method, it is characterised in that the storage element is that a flash memory or one are random Access memory.
CN201410344092.5A 2014-07-18 2014-07-18 The detecting of I2C/SPI instructions is with understanding device and method Active CN104298701B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410344092.5A CN104298701B (en) 2014-07-18 2014-07-18 The detecting of I2C/SPI instructions is with understanding device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410344092.5A CN104298701B (en) 2014-07-18 2014-07-18 The detecting of I2C/SPI instructions is with understanding device and method

Publications (2)

Publication Number Publication Date
CN104298701A CN104298701A (en) 2015-01-21
CN104298701B true CN104298701B (en) 2017-09-22

Family

ID=52318428

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410344092.5A Active CN104298701B (en) 2014-07-18 2014-07-18 The detecting of I2C/SPI instructions is with understanding device and method

Country Status (1)

Country Link
CN (1) CN104298701B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6439783B1 (en) * 1994-07-19 2002-08-27 Oracle Corporation Range-based query optimizer
TW200511004A (en) * 2003-09-12 2005-03-16 Micro Star Int Co Ltd A monitoring and control device and method thereof
CN102291728A (en) * 2010-06-17 2011-12-21 黄新 Wireless network quality monitoring terminal, system and method
CN102393842A (en) * 2011-06-28 2012-03-28 用友软件股份有限公司 Command processing device and command processing method
CN103902400A (en) * 2012-12-26 2014-07-02 技嘉科技股份有限公司 Over-frequency setting system and over-frequency setting method thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7684478B2 (en) * 2006-06-30 2010-03-23 International Business Machines Corporation Generating an eye diagram of integrated circuit transmitted signals

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6439783B1 (en) * 1994-07-19 2002-08-27 Oracle Corporation Range-based query optimizer
TW200511004A (en) * 2003-09-12 2005-03-16 Micro Star Int Co Ltd A monitoring and control device and method thereof
CN102291728A (en) * 2010-06-17 2011-12-21 黄新 Wireless network quality monitoring terminal, system and method
CN102393842A (en) * 2011-06-28 2012-03-28 用友软件股份有限公司 Command processing device and command processing method
CN103902400A (en) * 2012-12-26 2014-07-02 技嘉科技股份有限公司 Over-frequency setting system and over-frequency setting method thereof

Also Published As

Publication number Publication date
CN104298701A (en) 2015-01-21

Similar Documents

Publication Publication Date Title
US9268381B2 (en) Terminal device and power supply method for terminal device
US20220216706A1 (en) Terminal devices and method for handling charging anomaly
CN104598364A (en) Method for monitoring power consumption of load equipment in server system
WO2019033002A1 (en) Hot swapping technique for expansion cards
CN103345434B (en) The data back up method of a kind of display device and device
US8782444B2 (en) Circuit protection system and method for a circuit utilizing chip type power supply
CN108027780B (en) Memory content protection circuit
CN102999144A (en) USB (Universal Serial Bus) power supply circuit and device as well as power supply method
US20200150188A1 (en) Method and Device for Testing Adaptor, and Storage Medium
CN104298701B (en) The detecting of I2C/SPI instructions is with understanding device and method
CN104679213A (en) Server and server control method
CN107204613B (en) A kind of over-pressure safety device and method
CN103280766A (en) Overvoltage protection circuit
CN113161989A (en) Digital power supply, fault detection circuit and method thereof, and computer readable storage medium
CN105529981B (en) The method for controlling frequency converter
CN103885848A (en) Protecting circuit of microprocessor halt and program abnormal running fault and achieving method
TWI529657B (en) Device and method for detecting and interpreting i2c/spi command
US11204634B2 (en) Power monitoring and reduction
CN202948395U (en) USB (Universal Serial Bus) power supply circuit and device thereof
CN104932921B (en) Start control method and electronic equipment
US20130042133A1 (en) Over-current protection system of and method thereof
CN105893175A (en) Data transmission method, electric equipment and data wire
CN108879589B (en) Overcurrent protection method and device, terminal equipment and storage medium
CN107894813B (en) Rotatable complete machine, driving method and device of fan and storage medium
CN106371543A (en) Intelligent computer power system and power-off protection method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant