The utility model content
The utility model provides a kind of chip configuration device, chip configuration system and chip, in order to realize reducing the cost of chip configuration system.
The utility model provides a kind of chip configuration device, and described chip configuration device is positioned at chip internal, and described chip does not comprise micro-control unit, and described chip configuration device comprises:
Be used for sending the sending module of the reading command of the configuration information be used to read described chip, be connected with described storer to storer;
Be used to receive the receiver module of the response message that described storer sends, be connected, comprise the configuration information of described chip in the described response message with described storer;
Be used for the configuration information of described chip is stored into the memory module of the internal configuration registers of described chip, an end is connected with described receiver module, and the other end is connected with described internal configuration registers.
The utility model also provides a kind of chip configuration system, comprises the internal configuration registers that is positioned at chip internal, and described chip does not comprise micro-control unit, and described chip configuration system also comprises:
The storer that is used for the configuration information of storage chip;
Be used for obtaining the configuration information of described chip and storing the configuration information of described chip into the described internal configuration registers chip configuration device from described storer, be positioned at described chip internal, one end is connected with described storer, and the other end is connected with described internal configuration registers.
The utility model also provides a kind of chip, comprises disposal system and internal configuration registers, and described disposal system does not comprise micro-control unit, it is characterized in that, described chip also comprises:
Be used for obtaining the configuration information of described chip and storing the configuration information of described chip into the described internal configuration registers chip configuration device from storer, be positioned at described chip internal, one end is connected with described storer, and the other end is connected with described internal configuration registers.
In the utility model, when chip normally powers on and the back is finished in initialization or during when chip change use occasion, the chip configuration device that is arranged in chip internal from storer obtain the configuration information of chip and with this chip configuration information stores to internal configuration registers, because the chip configuration device is positioned at chip internal, present embodiment can be under no external piloting control equipment situation, automatically change the configuration of chip neatly, thereby saved the cost of chip configuration system.
Embodiment
The utility model will be further described below in conjunction with specification drawings and specific embodiments.
The chip configuration system embodiment
As shown in Figure 2, structural representation for the utility model chip configuration system embodiment, can comprise internal configuration registers 112, chip configuration device 21 and storer 22, internal configuration registers 112 and chip configuration device 21 are positioned at chip internal, and this chip internal does not have MCU.One end of chip configuration device 21 is connected with internal configuration registers 112, and the other end is connected with storer 22.
Wherein, storer 22 is used for the configuration information of storage chip.Storer 22 can freely be selected according to system's needs and cost, comprises EEPROM, EPROM, FLASH or the like.Storer 22 can be positioned at chip exterior or be integrated in chip internal.Chip configuration device 21 is used for obtaining the configuration information of chip and the configuration information of chip being stored into the internal configuration registers 112 from storer 22.
The concrete course of work of present embodiment is as follows: chip configuration device 21 sends the reading command of the configuration information that is used to read chip to storer 22.Storer 22 receives this reading command, and according to reading command, sends response message to chip configuration device 21, comprises the configuration information of chip in this response message.Chip configuration device 21 receives these response messages, and the configuration information of the chip that receives is stored in the internal configuration registers 112.
In the present embodiment, when chip normally powers on and the back is finished in initialization or during when chip change use occasion, the chip configuration device 21 that is arranged in chip internal initiatively obtains the configuration information of chip from storer 22, the configuration information of chip is stored in the internal configuration registers 112, because chip configuration device 21 is positioned at chip internal, present embodiment can automatically change the configuration of chip neatly under no external piloting control equipment situation, thereby has saved the cost of chip configuration system.
Chip configuration device first embodiment
In the present embodiment, this chip configuration device is positioned at chip internal, and this chip does not have MCU.
As shown in Figure 3, structural representation for the utility model chip configuration device first embodiment, on the basis of structural representation shown in Figure 2, chip configuration device 21 can comprise sending module 31, receiver module 32 and memory module 33, wherein, sending module 31 is connected with storer 22, and receiver module 32 is connected with storer 22, one end of memory module 33 is connected with receiver module 32, and the other end of memory module 33 is connected with storer 22.
Sending module 31 is used for sending to storer the reading command of the configuration information be used to read chip, receiver module 32 is used for the response message that reception memorizer sends, the configuration information that comprises chip in this response message, memory module 33 stores the configuration information of chip in the internal configuration registers 112 into.
The concrete course of work of present embodiment is as follows: sending module 31 sends the reading command of the configuration information that is used to read chip to storer 22, the response message that receiver module 32 reception memorizers 22 send, the configuration information that comprises chip in this response message, memory module 33 stores the configuration information of chip in the internal configuration registers 112 into.
Alternatively, sending module 31 and receiver module 32 can also be a module, and the existing sending function of this module also has receiving function.
In the present embodiment, when chip normally powers on and the back is finished in initialization or during when chip change use occasion, sending module 31 sends reading command to storer, the configuration information that sends of receiver module 32 reception memorizers then, memory module 33 stores configuration information in the internal configuration registers 112 into, because the entire chip inking device is positioned at chip internal, present embodiment can be under no external piloting control equipment situation, automatically change the configuration of chip neatly, thereby saved the cost of chip configuration system.
Chip configuration device second embodiment
On the basis of a last embodiment, memory bit is in chip exterior, and storer can freely be selected according to system's needs and cost, comprises EEPROM, EPROM, FLASH or the like.
As shown in Figure 4, structural representation for the utility model chip configuration device second embodiment, on the basis of synoptic diagram shown in Figure 3, the chip configuration device can also comprise first interface circuit 213, one end of first interface circuit 213 is connected with receiver module 32 with sending module 31, and the other end is connected with storer 22.Sending module 31 can send reading command to storer 22 by first interface circuit 213, and receiver module 32 can be by the response message of first interface circuit, 213 reception memorizers, 22 transmissions.
First interface circuit 213 can be supported any interface mode, for example: I
2C, I
2Bus interface such as S, SPI.Suppose that first interface circuit 213 adopts I
2C interface mode, storer are EEPROM, and then the chip configuration device is I
2I in the C interface agreement
2C master (master) circuit is finished total line traffic control and corresponding read-write operation, comprises I in the storer
2C is from (slave) interface circuit.
Alternatively, can realize mutual configuration between the chip.Still with I
2The C interface mode is an example, and a plurality of chips can be by I separately
2The C main circuit hangs over I simultaneously
2On the C bus, and carry out mutual configuration between the chip according to agreement.
In the present embodiment, memory module 33 can also be connected with sending module 31, when the configuration information of chip more for a long time, whether memory module 33 can also inquire about internal configuration registers 211 and write full, when inquiring internal configuration registers 211, memory module 33 also do not write when full, indicate sending module 31 to send reading command to storer 22 again, write full until internal configuration registers 112 by first interface circuit 213.
In the present embodiment, if in the application process of chip, go wrong, need diagnose chip, just need read internal configuration registers 112 in configuration information and be arranged in the status information of the internal state register 113 of chip internal, receiver module 32 can also be used to receive diagnostic instruction, and this diagnostic instruction can send to receiver module 32 by a button, when the user presses this button, receiver module 32 promptly receives diagnostic instruction, thereby starts diagnosis.
Present embodiment can also comprise diagnostic instruction generation module 35, acquisition module 34 and second interface circuit 214.Wherein, acquisition module 34 is connected with diagnostic instruction generation module 35, internal configuration registers 112 and the internal state register 113 that is positioned at chip internal respectively, one end of second interface circuit 214 is connected with acquisition module 34, and the other end of second interface circuit 214 is connected with external unit.
Diagnostic instruction generation module 35 is used to generate diagnostic instruction.Particularly, this diagnostic instruction generation module 35 can be a button, and this diagnostic instruction can be a high level, when needs are diagnosed chip, presses button and promptly generates a high level.Acquisition module 34 is used for according to diagnostic instruction, obtain the configuration information of chip internally in the configuration register 112, obtain the status information of chip internally in the status register 113, by second interface circuit 214 configuration information and the status information of chip sent to external unit then.Particularly, this external unit can be the memory device that is positioned at chip exterior, and for example: the storer in the present embodiment also can be MCU.
Preferably, in order to reduce design complexities, first interface circuit 213 adopts identical interface mode to carry out data communication with second interface circuit 214.Alternatively, first interface circuit 213 also can adopt different interface modes with second interface circuit 214.
Alternatively, acquisition module 34 and memory module 33 can also be a module.
In addition, in the present embodiment, memory module 33 can also be used for keeping the configuration information in the internal configuration registers 112 when receiver module 32 does not receive response message.Particularly, when storer 22 no responses or when not having storer 22, receiver module 32 can not receive response message, and at this moment, chip does not change self configuration, starts working on the basis that keeps default configuration.
In addition, in the present embodiment, the configuration information of a chip or the identical configuration information of a plurality of chips can be stored in the storer, the different configuration information of a plurality of chips can also be stored; When the different configuration information of a plurality of chips of storage in the storer, in order to obtain the configuration information corresponding with chip, sending module 31 can comprise the chip identification that is used for identification chip in the reading command that storer 22 sends, the configuration information that receiver module 32 receives is corresponding with chip identification.
In the present embodiment, when chip normally powers on and the back is finished in initialization or during when chip change use occasion, sending module 31 sends reading command by first interface circuit 213 to the storer that is positioned at chip exterior, receiver module 32 is by the configuration information of first interface circuit, 213 reception memorizers transmission then, memory module 33 stores configuration information in the internal configuration registers 112 into, because internal configuration registers 112 is positioned at chip internal, present embodiment can be under no external piloting control equipment situation, automatically change the configuration of chip neatly, thereby saved the cost of chip configuration system.
In addition, in the diagnostic procedure of chip, sending module 31 can also send to external unit from second interface circuit 214 with the status information of the chip of storage in the configuration information of chip of storage in the internal configuration registers 112 and the internal state register 113, thereby can obtain the configuration information and the status information of chip easily, simplify diagnostic procedure.
Chip configuration device the 3rd embodiment
Be that with the difference of a last embodiment in the present embodiment, storer 22 is integrated in chip internal.
As shown in Figure 5, structural representation for the utility model chip configuration device the 3rd embodiment, be with the difference of structural representation shown in Figure 4, this enforcement does not comprise first interface circuit 213, sending module 31 directly sends reading command to storer 22, the response message that receiver module 32 direct reception memorizers 22 send.
In the present embodiment, when chip normally powers on and the back is finished in initialization or during when chip change use occasion, sending module 31 sends reading command to the storer that is integrated in chip internal, the configuration information that sends of receiver module 32 reception memorizers then, memory module 33 stores configuration information in the internal configuration registers 112 into, because the chip configuration device is positioned at chip internal, present embodiment can be under no external piloting control equipment situation, automatically change the configuration of chip neatly, thereby saved the cost of chip configuration system.
In addition, in the diagnostic procedure of chip, sending module 31 can send to external unit from second interface circuit 214 with the configuration information of the chip of storage in the internal configuration registers 112 and the status information of the chip of internal state register 113 storages that are arranged in chip internal, thereby can obtain the configuration information and the status information of chip easily, simplify diagnostic procedure.
Need to prove that the chip configuration device in the aforementioned chip configuration system embodiment can comprise arbitrary module and the circuit of aforementioned chip configuration device first embodiment, second embodiment and the 3rd embodiment, does not repeat them here.
Chip embodiment
As shown in Figure 6, structural representation for the utility model chip embodiment, can comprise disposal system 81, internal configuration registers 112 and chip configuration device 21, wherein, disposal system 81 does not have MCU, and internal configuration registers 112 and chip configuration device 21 are positioned at chip internal, and disposal system 81 is connected with internal configuration registers 112, internal configuration registers 112 is connected with chip configuration device 21, and chip configuration device 21 is connected with storer.Storer can be positioned at chip internal or outside.
Wherein, chip configuration device 21 is used for obtaining the configuration information of chip and the configuration information of chip being stored into the internal configuration registers 112 from storer.
In the present embodiment, chip configuration device 21 can comprise arbitrary module and circuit among aforementioned all embodiment of chip configuration device, does not repeat them here.
In the present embodiment, when chip normally powers on and the back is finished in initialization or during when chip change use occasion, the chip configuration device 21 that is arranged in chip internal obtains the configuration information of chip and stores the configuration information of chip into internal configuration registers 112 from storer, because chip configuration device 21 is positioned at chip internal, present embodiment can be under no external piloting control equipment situation, automatically change the configuration of chip neatly, thereby saved the cost of chip configuration system.
It should be noted that at last: above embodiment is only unrestricted in order to the explanation the technical solution of the utility model, although the utility model is had been described in detail with reference to preferred embodiment, those of ordinary skill in the art is to be understood that, can make amendment or be equal to replacement the technical solution of the utility model, and not break away from the spirit and scope of technical solutions of the utility model.