CN104298701A - I2C/SPI instruction detection and interpretation device and method - Google Patents

I2C/SPI instruction detection and interpretation device and method Download PDF

Info

Publication number
CN104298701A
CN104298701A CN201410344092.5A CN201410344092A CN104298701A CN 104298701 A CN104298701 A CN 104298701A CN 201410344092 A CN201410344092 A CN 201410344092A CN 104298701 A CN104298701 A CN 104298701A
Authority
CN
China
Prior art keywords
detecting
spi
instruction
setup parameter
spi instruction
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.)
Granted
Application number
CN201410344092.5A
Other languages
Chinese (zh)
Other versions
CN104298701B (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

An I2C/SPI instruction detection and interpretation device and method are applied to a graph processing system, and thus improper setting can be avoided, and it can be guaranteed that the system runs within a safety range. The detection and interpretation device comprises a control unit and a storage unit. According to the method, the control unit can execute the following steps that an I2C/SPI instruction is received; whether the I2C/SPI instruction is a setting parameter or not is detected; if the I2C/SPI instruction is a setting parameter, interpretation is carried out; if the setting parameter is beyond the specification safety range allowed by the system, the setting parameter is ignored, and if the setting parameter is within the specification safety range, the setting parameter is transmitted into the system so that setting can be carried out.

Description

Detecting and the deciphering device and method of I2C/SPI instruction
Technical field
The present invention relates to a kind of detecting of I2C/SPI instruction and deciphering device and method, particularly one is applied to graphic system, can avoid improper setting, guarantees that System Operation is in the detecting of the I2C/SPI instruction of safe range and deciphering device and method.
Background technology
Current computer system supports I2C/SPI serial bus interface (inter-integrated circuit/serial peripheral interface), and more and more general in the mode in order to setting control system via reception I2C/SPI instruction.As long as program can read I2C/SPI instruction, and content is a setup parameter, and user just can change default by this, with the initial setting of altering system specification.Again; for the plotter program in computer system or Games Software in order to high-speed computation ability can be provided and promote task performance; user usually can to the graphic process unit of this graphic system overclocking in addition; related setting parameter is imported into through I2C/SPI instruction; change system initial setting, even exceedes system specification safe range.Generally speaking; system can't to the setup parameter of these potential risks; the parameters such as such as overvoltage protection (OVP), overcurrent protection (OCP) and overheat protector (OTP); understand; once setup parameter imports system into, will set according to its setting value.But, if computer system long-term operation is under this risk setting, bad impact may be caused on electronic device assembly, even system be caused damage.
1st figure is known graphic system 100 organigram through I2C/SPI instruction initialization system.Graphic system 100 is a system with graphic process unit (graphics processing unit, GPU) 110, is be electrically connected in a computing machine main system 200.Graphic system 100 still comprises a ROM (read-only memory) (ROM) 120 and a pulse wave width modulation device (PWM) 130, is electrically connected respectively with graphic system 100.Graphic process unit 110 receives I2C/SPI instruction, sends a setup parameter to this pulse wave width modulation device 130, to change voltage or the electric current of System Operation.Because any mechanism is not understood I2C/SPI instruction, even if this setup parameter is above system specification safe range, also can imports this pulse wave width modulation device 130 into through graphic process unit 110, set.If these setup parameters; be such as overvoltage protection, overcurrent protection or with frequency reducing temperature etc., do not screened protection, be just directly used for initialization system; so operate under making computer system be in the condition of work of risk for a long time, easily cause the impact that computer system is bad.
Therefore, how to detect and to understand I2C/SPI instruction, avoiding exceeding the safe range setting of the system specification, then become Technological Problems In Computer Manufacturing manufacturer one important topic.
Summary of the invention
In view of above problem, the object of the present invention is to provide a kind of detecting of I2C/SPI instruction and understand device and method, particularly one can be applicable to graphic system, can avoid improper setting, guarantees that System Operation is in the detecting of the I2C/SPI instruction of safe range and deciphering device and method.
In order to reach above object, the invention provides the device of a kind of I2C/SPI instruction detecting and deciphering, be applied to the graphic system that has graphic process unit, this I2C/SPI instruction detecting comprises a control module with the device of deciphering, system is coupled to this graphic process unit, there is an I2C/SPI bus interface, to receive I2C/SPI instruction; And a storage element, be coupled to this control module, in order to the setting value in stocking system specification safe range.Wherein, if I2C/SPI instruction one setup parameter that the detecting of this control module receives, then compare with the system specification setting value being stored in this storage element, use deciphering and whether import this setup parameter into system and set.
In order to reach above object, the present invention provides again a kind of I2C/SPI instruction to detect the method with deciphering, this I2C/SPI instruction is detected and can perform the following step with the control module in the device of deciphering: receive an I2C/SPI instruction through I2C/SPI bus interface; Whether detect this I2C/SPI instruction is a setup parameter; If this instruction is setup parameter, then be stored in I2C/SPI instruction and detect and compare with the system specification setting value of the storage element in the device of deciphering and understand; And if this setup parameter exceed the specification safe range that system allows, then ignore this setup parameter, otherwise import this setup parameter into system and set.
In one embodiment of the invention, wherein this graphic process unit is a drawing chipset (graphics chipset).
In one embodiment of the invention, wherein this graphic system is display adapter (display card) device with drawing chipset.
In one embodiment of the invention, wherein this control module is a microcontroller (microcontroller, MCU).
In one embodiment of the invention, wherein this storage element is a flash memory (flash ROM) or random access memory (RAM).
Effect of the present invention is; I2C/SPI instruction detecting disclosed by the present invention and the device and method of deciphering; setup parameter in I2C/SPI instruction is understood; ignore the setup parameter exceeding system specification safe range; only retain the setup parameter meeting safe range; carry out dynamic system setting, use protection electronic device assembly, guarantee the running of system long-term stability.
In order to make any relevant art of haveing the knack of understand the technology contents of the present invention and can implement according to this, hereby by feature of the present invention, implementation and effect, coordinating and to be graphicly described in detail as follows as most preferred embodiment.
Accompanying drawing explanation
Fig. 1 is the organigram of known graphic system through I2C/SPI instruction initialization system.
Fig. 2 be I2C of the present invention it/detecting of SPI instruction with understand application of installation in the organigram of graphic system.
Fig. 3 is the detecting of I2C/SPI instruction of the present invention and the organigram separating read apparatus.
Fig. 4 A is the detecting of I2C/SPI instruction of the present invention and the flow chart of steps of deciphering method.
Fig. 4 B is the detecting of I2C/SPI instruction of the present invention and the flow chart of steps of the another embodiment of deciphering method.
Embodiment
In this instructions and follow-up claim, " coupling " one word system comprise directly any and be indirectly electrically connected means.Therefore, if describe a first device in literary composition to be coupled to one second device, then represent first device and can directly be electrically connected in the second device, or be indirectly electrically connected to the second device through other devices or connection means.
System of the present invention about a kind of I2C/SPI instruction detecting and understand device and method, refer to the 2nd figure, the detecting of I2C/SPI instruction of the present invention is be applied in a graphic system 300 with separating read apparatus 350, this graphic system 300 comprises graphic process unit 310, ROM (read-only memory) 320 and a pulse wave width modulation device 330, and can form electrical connection with computing machine main system 370.And ROM (read-only memory) 320 and a pulse wave width modulation device 330 can distinguish connection layout processor 310.
The detecting of I2C/SPI instruction of the present invention is respectively coupled to graphic process unit 310, ROM (read-only memory) 320 and pulse wave width modulation device 330 with solution read apparatus 350, the detecting of I2C/SPI instruction receives through an I2C/SPI bus 360 with solution read apparatus 350 and understands an I2C/SPI instruction 3601, and according to deciphering result, at least one setup parameter 3605 in I2C/SPI instruction 3601 is imported into graphic process unit 110 through bus, and through I2C/SPI bus 360 CROM (control read only memory) 320 and pulse wave width modulation device 330.
Refer to the 3rd figure, and consult the 2nd figure simultaneously, the detecting of I2C/SPI instruction is include control module 3501 and a storage element 3503 with separating read apparatus 350, wherein control module 3501 is coupled to graphic process unit 310 through a bus, and there is an I2C/SPI bus interface, to receive I2C/SPI instruction 3601.Storage element 3503 is coupled to control module 3501, in order to store the setting value 3505 in the system specification safe range of this graphic system 300.If control module 3501 detects I2C/SPI instruction 3,601 one setup parameter 3605 received, then compare with the system specification setting value 3505 being stored in storage element 3503, use deciphering and whether can import this setup parameter 3605 into system and carry out setting parameter.
Graphic process unit 310 described in the present embodiment is a drawing chipset, has the special drawing for order arithmetic capability of process, and result can be passed back graphic system 300 or computing machine main system 370.
Graphic system 300 described in the present embodiment is one have the display adapter device of drawing chipset or the computing machine main system of embedded drawing chipset.
Control module 3501 described in the present embodiment is a microcontroller, receives I2C/SPI instruction 3601 by this, and plans as a whole the detecting of the I2C/SPI instruction of the present invention and separate electrical control and the start of read apparatus 350.
Storage element 3503 described in the present embodiment is a flash memory or ROM (read-only memory), stores each setup parameter 3605 by this and meets setting value in system specification safe range, for control module than than with.
Refer to shown in 4A figure and 2nd ~ 3 figure, the detecting of I2C/SPI instruction of the present invention and deciphering method, system makes control module 3501 perform the following step: receive an I2C/SPI instruction 3601 through I2C/SPI bus interface 360, step S410 as shown in figure 4.I2C/SPI instruction 3601 content may comprise general instruction or the setup parameter 3605 in order to initialization system.When after reception I2C/SPI instruction 3601, control module 3501 detects whether this I2C/SPI instruction 3601 is a setup parameter 3605, as step S430.If this instruction is setup parameter 3605, then compares and understand with the system specification setting value 3505 being stored in this storage element 3503, as step S450.Do you judge that this setup parameter 3605 exceeds the specification safe range of system permission? if so, then ignore this setup parameter, and get back to step S410 and wait for next I2C/SPI instruction 3601; If not, then import this setup parameter 3605 into graphic system 300 to set, as step S470.
Substantially; setting value 3505 in the aforementioned system specification safe range be stored in storage element 3503; such as overvoltage protection, overcurrent protection or with the setup parameters such as frequency reducing temperature correlation; preferred embodiment is that computer system manufacturer is before computing machine dispatches from the factory; just be stored in this storage unit 3503 in advance, compare the use of setup parameter setting value as control unit 3501.
Refer to 4B figure, the detecting of I2C/SPI instruction of the present invention and the step schematic diagram of the another embodiment of deciphering method.It more includes the step of a storing and setting parameter, and the setting value 3505 of the setup parameter 3605 importing graphic system 300 into is stored to storage element 3503, as 4B schemes shownschematically step S490.What was certain was that these setting values stored are all the setting values 3505 not exceeding system specification safe range.
Illustrating of embodiment disclosed by the invention described above; can know that the detecting learning I2C/SPI instruction of the present invention can be understood the setup parameter 3605 in I2C/SPI instruction 3601 with deciphering device and method; ignore the setup parameter exceeding system specification safe range; only retain the setup parameter 3605 meeting safe range; carry out dynamic system setting; use protection electronic device assembly, guarantee that system long-term stability uses.
Although the embodiment of the present invention discloses as mentioned above; so and be not used to limit the present invention; anyly have the knack of relevant art; without departing from the spirit and scope of the invention; such as work as according to shape, structure, feature and the quantity described in the present patent application scope and can do a little change, the scope of patent protection of therefore the present invention must be as the criterion depending on the application claim person of defining that this instructions is appended.

Claims (9)

1. I2C/SPI instruction detecting with separate a read apparatus, be applied to the graphic system that has a graphic process unit, it is characterized in that comprising:
One control module, is coupled to described graphic process unit, has an I2C/SPI bus interface, to receive an I2C/SPI instruction; With
One storage element, couples described control module, in order to store the setting value in the specification safe range of described graphic system;
Wherein, if described control module is detected and described I2C/SPI instruction one setup parameter received, then compare with the described setting value being stored in described storage element, use deciphering and whether described setup parameter is imported in described graphic system and carry out setting person.
2. detecting as claimed in claim 1 and solution read apparatus, it is characterized in that, described graphic process unit is a drawing chipset (graphics chipset).
3. detecting as claimed in claim 2 and solution read apparatus, it is characterized in that, described graphic system is display adapter (display card) device with described drawing chipset.
4. detecting as claimed in claim 1 and solution read apparatus, it is characterized in that, described control module is a microcontroller (MCU).
5. detecting as claimed in claim 1 and solution read apparatus, it is characterized in that, described storage element is a flash memory (flash ROM) or a random access memory (RAM).
6. the detecting of an I2C/SPI instruction and deciphering method, the detecting of an I2C/SPI instruction in one graphic system is provided and separates read apparatus, when described detecting operates with solution read apparatus, described I2C/SPI instruction is entered detecting and understood, it is characterized in that, described method system makes described detecting can perform the following step with the control module separated in read apparatus:
An I2C/SPI instruction is received through an I2C/SPI bus interface;
Whether detect described I2C/SPI instruction is a setup parameter;
If described instruction is setup parameter, then compares with the setting value in the storage element be stored in described detecting and solution read apparatus and understand; With
If described setup parameter exceeds the specification safe range that system allows, then ignore described setup parameter, otherwise import described setup parameter into this graphic system to set.
7. detecting as claimed in claim 6 and deciphering method, it includes the step of a storing and setting parameter further, mainly the setup parameter importing described graphic system into is stored to described storage element, using as a setting value.
8. detecting as claimed in claim 6 and deciphering method, it is characterized in that, described control module is a microcontroller (MCU).
9. detecting as claimed in claim 6 and deciphering method, it is characterized in that, described storage element is a flash memory (flash ROM) or a random access memory (RAM).
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 true CN104298701A (en) 2015-01-21
CN104298701B 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 (6)

* 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
US20080002762A1 (en) * 2006-06-30 2008-01-03 Cranford Hayden C A Method of Generating an Eye Diagram of Integrated Circuit Transmitted Signals
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

Patent Citations (6)

* 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
US20080002762A1 (en) * 2006-06-30 2008-01-03 Cranford Hayden C A Method of Generating an Eye Diagram of Integrated Circuit Transmitted Signals
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
CN104298701B (en) 2017-09-22

Similar Documents

Publication Publication Date Title
US9268381B2 (en) Terminal device and power supply method for terminal device
CN105788556B (en) A kind of overvoltage crowbar and method, liquid crystal display drive circuit
CN104598364A (en) Method for monitoring power consumption of load equipment in server system
CN108027780B (en) Memory content protection circuit
CN104777891A (en) OTG (on-the-go) connecting control method applied to intelligent terminal and connecting control device
CN104536551A (en) Method and device for clearing away information on complementary metal oxide semiconductor (CMOS)
US8782444B2 (en) Circuit protection system and method for a circuit utilizing chip type power supply
US20200150188A1 (en) Method and Device for Testing Adaptor, and Storage Medium
WO2015143633A1 (en) Capacitive sensor action in response to proximity sensor data
US20180097315A1 (en) Power adapter, terminal device, charging system, and charging method
CN105260681A (en) Password protection method and device
CN115095544A (en) Fan fault detection method and device, computer equipment and storage medium
CN113644655A (en) AC/DC power supply equipment, power supply method and device and storage medium
CN103280766A (en) Overvoltage protection circuit
US20140084852A1 (en) Internet device and automatic switching method, apparatus and circuit for charging interface of internet device
CN104298701A (en) I2C/SPI instruction detection and interpretation device and method
CN105141774B (en) It is a kind of to solve method and the mobile terminal that side switch corrosion cannot be started up
CN105045479A (en) Icon display method and electronic device
CN109557453B (en) Multi-master-control-chip identification processing method and system
US9866105B2 (en) Method of controlling an inverter
CN203720237U (en) Voltage detection system for motor controller used by electric automobile
CN109975608A (en) The power grid type judgement method of three-phase electric energy meter, device and system
CN206610191U (en) The control circuit and control device of a kind of voltage break-make
CN102810840B (en) Voltage protection system
TWI529657B (en) Device and method for detecting and interpreting i2c/spi command

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