Circuit arrangement with clock sharing and corresponding method

文档序号:700133 发布日期:2021-04-13 浏览:26次 中文

阅读说明:本技术 具有时钟共享的电路装置及相应方法 (Circuit arrangement with clock sharing and corresponding method ) 是由 L·阿尔奇迪亚科诺 S·C·阿达莫 于 2020-10-10 设计创作,主要内容包括:本公开实施例涉及具有时钟共享的电路装置及相应方法。在一个实施例中,一种系统包括从电路,该从电路被配置为从主电路接收外部时钟信号,从电路包括第一和第二外围设备,该第一和第二外围设备被配置为接收从外部时钟信号获得的相应的时钟信号,其中主电路被配置为根据两个不同的定时模式向从电路发送外部时钟信号,其中,从电路包括逻辑电路,逻辑电路被配置为当逻辑电路检测到从电路的给定操作模式时向第一外围电路提供锁定信号,其中主电路被配置为在接收到锁定信号之前根据第一定时模式发送外部时钟信号,并且其中主电路被配置为在接收到锁定信号之后根据与第一定时模式不同的第二定时模式发送外部时钟信号。(The disclosed embodiments relate to a circuit arrangement with clock sharing and a corresponding method. In one embodiment, a system includes a slave circuit configured to receive an external clock signal from a master circuit, the slave circuit including first and second peripheral devices, the first and second peripheral devices are configured to receive respective clock signals derived from an external clock signal, wherein the master circuit is configured to transmit an external clock signal to the slave circuit according to two different timing modes, wherein the slave circuit comprises a logic circuit configured to provide a lock signal to the first peripheral circuit when the logic circuit detects a given operating mode of the slave circuit, wherein the master circuit is configured to transmit the external clock signal according to a first timing mode before receiving the lock signal, and wherein the master circuit is configured to transmit the external clock signal according to a second timing mode different from the first timing mode after receiving the lock signal.)

1. A system, comprising:

a main circuit; and

a slave circuit configured to receive an external clock signal from the master circuit, the slave circuit comprising first and second peripheral circuits configured to receive respective first and second clock signals derived from the external clock signal, wherein the master circuit is configured to transmit the external clock signal to the slave circuit according to two different timing modes for the first and second peripheral circuits, respectively, wherein the slave circuit comprises a logic circuit configured to: generating a lock signal and providing the lock signal to the first peripheral circuit, the lock signal being provided to the master circuit through an output terminal of the slave circuit, wherein the logic circuit is configured to: generating the lock signal when the logic circuit detects a given operating mode of the slave circuit, wherein the master circuit is configured to: transmitting the external clock signal according to a first timing mode of the two different timing modes prior to receiving the lock signal, and wherein the master circuit is configured to: transmitting the external clock signal according to a second timing mode of the two different timing modes after receiving the lock signal, the second timing mode being different from the first timing mode.

2. The system of claim 1, wherein the system is configured to:

programming a value representative of the given operating mode in a first register of the slave circuit; and

detecting the given operating mode by reading the value representing the given operating mode in the first register.

3. The system of claim 2, wherein the system is configured to: after generating the lock signal, erasing the lock signal, and transmitting the external clock signal using the first timing mode.

4. The system of claim 3, wherein the primary circuit is a microprocessor, wherein the first peripheral circuit is a serial interface configured to access a register bank comprising the first register, wherein the logic circuit is configured to: detecting an operational mode of the slave circuit by verifying whether access to the second peripheral circuit is requested, and when access to the second peripheral circuit is requested, the logic circuit is configured to send the lock signal to disable operation of the serial interface, wherein the second timing mode is a continuous timing mode (CT), and wherein erasing the lock signal enables the serial interface for transmission of data.

5. The system of claim 4, wherein the second peripheral circuit comprises a non-volatile memory.

6. The system of claim 5, wherein the logic circuitry is configured to: erasing the lock signal by detecting an end of a request to access the non-volatile memory.

7. The system of claim 4, wherein the microprocessor is configured to: erasing the lock signal by providing an unlock sequence to the serial interface to write an unlock value to a second register of the set of registers to generate an unlock signal provided to the logic circuit, wherein the logic circuit is configured to: deactivating the lock signal in response to receiving the unlock signal.

8. The system of claim 7, wherein the second register is configured to provide the unlock signal.

9. The system of claim 7, wherein after erasing the lock signal, the system is configured to: deactivating the unlock signal by erasing the second register.

10. The system of claim 4, wherein the serial interface comprises a shift register configured to transfer serial data to the set of registers, and wherein the serial interface is configured to prevent operation of the shift register after receiving the lock signal.

11. The system of claim 1, wherein the slave circuit is implemented in an integrated circuit.

12. The system of claim 1, wherein the main circuit is a microprocessor.

13. The system of claim 1, wherein the first clock signal and the second clock signal are the same.

14. A method, comprising:

receiving, by a slave circuit, an external clock signal from a master circuit;

distributing respective clock signals obtained from the external clock signal to a plurality of peripheral circuits of the slave circuit, wherein distributing the respective clock signals comprises: transmitting the external clock signal according to at least two different timing modes for respective ones of the plurality of peripheral circuits, wherein the plurality of peripheral circuits includes a first peripheral circuit that uses the external clock signal in a first timing mode of the at least two different timing modes and a second peripheral circuit that uses the external clock signal in a second timing mode of the at least two different timing modes;

detecting a given operating mode of the slave circuit for accessing the second peripheral circuit;

when the given mode of operation is detected,

requesting the external clock signal to operate according to the second timing mode by generating and providing a lock signal to the master circuit, and

providing the lock signal to the first peripheral circuit, wherein the second timing mode is different from the first timing mode; and

after receiving the lock signal, transmitting, by the master circuit, the external clock signal according to the second timing mode.

15. A circuit, comprising:

a clock terminal configured to receive a clock signal;

a further terminal;

a register group;

a first peripheral circuit having a clock input coupled to the clock terminal;

a second peripheral circuit having a clock input coupled to the clock terminal; and

logic circuitry, wherein the circuitry is configured to operate in a first mode in which the first peripheral circuitry is configured to access the register bank based on the clock signal having a first timing mode, and a second mode in which:

the logic circuitry is configured to:

the lock-in signal is activated and,

providing the lock signal to the first peripheral circuit to prevent the first peripheral circuit from accessing the register set, and

providing the lock signal at the further terminal to request the clock signal to operate in a second timing mode, the second timing mode being different from the first timing mode, an

The second peripheral circuit is configured to operate based on the clock signal having the second timing mode.

16. The circuit of claim 15, wherein the first peripheral circuit comprises a shift register, and wherein activating the lock signal prevents operation of the shift register.

17. The circuit of claim 15, further comprising a non-volatile memory, and wherein operating the second peripheral circuit comprises: accessing the non-volatile memory.

18. The circuit of claim 17, wherein operating the second peripheral circuit comprises: writing into the non-volatile memory.

19. The circuit of claim 15, wherein the logic circuit deactivates the lock signal to transition from the second mode to the first mode.

20. The circuit of claim 19, wherein the logic circuit is configured to: deactivating the lock signal based on a first register of the register set.

21. The circuit of claim 15, further comprising a master circuit configured to receive the lock signal from the additional terminal and to provide the clock signal to the clock terminal, the clock signal having the first timing mode when the lock signal is deactivated and the second timing mode when the lock signal is activated.

Technical Field

The present invention relates generally to an electronic system and method, and in particular embodiments, to a circuit arrangement with clock sharing and a corresponding method.

Background

Known electronic systems may include a circuit arrangement including a microprocessor operating as a master and at least one slave circuit (e.g., a slave) including a plurality of peripheral circuits (also referred to as peripherals). Multiple peripherals may require the use of respective clock signals or clocks. The slave circuit may obtain the corresponding clock signal by an external clock signal provided from the microprocessor to an input of the slave circuit. Thus, the peripheral devices may find that they share a continuous reference clock for their timing. For example, the clock may be formed by a sequence of pulses sent continuously, or in any case with a time interval longer than the microprocessor uses the peripheral (e.g., preferably at a constant nominal frequency) so that data is exchanged at a rate based on the peripheral requiring the slowest clock for its operation.

However, in some embodiments, communication between the microprocessor and a particular peripheral does not occur continuously, but rather only requires the generation of a clock signal at the time the microprocessor wishes to communicate with the peripheral in question.

Disclosure of Invention

Without a specific mechanism to select a peripheral (e.g. a chip selection mechanism to enable selection of a peripheral), it may not be possible to disable the aforementioned peripheral when the clock signal is generated continuously for another type of communication or for a specific operating mode of the circuit arrangement, otherwise the peripheral finds itself in an indeterminate state or performs an undesired operation when it does not have to communicate with the microprocessor but the microprocessor has to perform an operation on a slave circuit or other peripheral inside the device. Furthermore, the microprocessor may not be able to change the mode of clock generation when the peripheral is active.

Some embodiments provide a more efficient electronic converter.

Various embodiments relate to a circuit arrangement. In various embodiments, the circuit arrangement includes a slave circuit (e.g., an integrated circuit) that receives an external clock signal from a master circuit (e.g., a microprocessor), the slave circuit including a plurality of peripheral devices that receive respective clock signals derived from the external clock signal, the master circuit configured to transmit the external clock signal according to at least two different timing patterns of respective ones of the plurality of peripheral devices.

In some embodiments, the slave circuit comprises a logic circuit configured to generate at least one lock signal for at least one of the plurality of peripheral devices, the lock signal also being provided to the master circuit by an output of the slave circuit, the logic circuit being configured to generate the lock signal when it detects a given operating mode of the slave circuit.

In some embodiments, the master circuit is configured to: after receiving the lock signal, the external clock signal is sent according to a given (e.g., different) timing pattern.

In various embodiments, the circuitry is configured to: programming a value representing a given mode of operation in a register of the slave circuit (e.g., a register interfaced via a serial interface); and detecting the given operating mode by reading a value representing the given operating mode in the programmed register.

In various embodiments, the circuit arrangement is configured to subsequently erase the lock signal and transmit the clock signal in a different timing pattern.

In various embodiments, the main circuit is a microprocessor and at least one of the plurality of peripheral devices is a serial interface configured to access the register set.

In some embodiments, the logic circuitry is configured to: the operating mode of the slave circuit is detected by verifying whether access to operation of a further peripheral device of the plurality of peripheral devices represented by the non-volatile memory is required. In the affirmative, the circuitry is configured to: transmitting a lock signal that disables operation of the serial interface, wherein the microprocessor is configured to transmit the external clock signal in a continuous timing mode, and the circuit arrangement is configured to erase the lock signal and transmit the clock signal in the timing mode for driving the serial interface for data transfer.

In various embodiments, the logic circuitry is configured to: the erase operation is performed by detecting the end of a request for an operation of accessing the non-volatile memory.

In various embodiments, the microprocessor is configured to: an erase operation is performed by providing an unlock sequence to the serial interface, which determines that an unlock value is written in a dedicated unlock register comprised in the internal register set, the unlock value generating an unlock signal provided by the register at an input of the logic circuit, the logic circuit being configured for deactivating the lock signal upon receipt of the unlock signal.

In various embodiments, after performing the erase operation, the circuitry is configured to: the unlock signal is deactivated by erasing the contents of the special unlock register.

In various embodiments, the serial interface includes a shift register for transmitting serial data, and the serial interface is configured to lock the shift register after receiving a lock signal.

In various embodiments, a given mode of operation requests receipt of an external clock signal, configured with a timing mode different from a timing mode used by at least one peripheral device.

Further, in this specification, various embodiments contemplate a method for controlling a circuit arrangement including a slave circuit that receives an external clock signal from a master circuit according to any of the previous embodiments, the method including:

receiving, by a plurality of peripheral devices, respective clock signals obtained from an external clock signal, an

Transmitting an external clock signal according to at least two different timing patterns of respective ones of the plurality of peripherals,

the method further comprises the following steps:

generating at least one lock signal for at least one of the plurality of peripheral devices, the lock signal also being provided to the master circuit via an output of the slave circuit,

generating a lock signal when an operation mode of the slave circuit requesting reception of the external clock signal is detected according to a timing mode different from a timing mode used by the at least one peripheral device, an

After receiving the lock signal, the external clock signal is sent according to a different timing pattern.

Drawings

Embodiments of the invention will now be described with reference to the accompanying drawings, provided by way of non-limiting example only, in which:

FIG. 1 is a schematic diagram of a circuit arrangement according to the present description;

FIG. 2 illustrates a first timing diagram of signals used by one embodiment of a circuit arrangement according to the present description;

FIG. 3 illustrates a second timing diagram of signals used by one embodiment of a circuit arrangement in accordance with the description of the present invention;

FIG. 4 shows a third timing diagram of signals used by one embodiment of a circuit arrangement according to the description of the present invention;

FIG. 5 illustrates a fourth timing diagram of signals used by one embodiment of a circuit arrangement according to the description of the present invention; and

FIG. 6 illustrates a flow chart representative of operations performed by one embodiment of a circuit arrangement in accordance with the present description.

Detailed Description

In the following description, numerous specific details are set forth in order to provide a thorough understanding of the embodiments. Embodiments may be provided without one or more of the specific details, or with other methods, components, materials, etc. In other instances, well-known structures, materials, or operations are not shown or described in detail to not obscure aspects of the embodiments.

Reference to "one embodiment" or "an embodiment" within the framework of the specification is intended to indicate that a particular configuration, structure, or characteristic described in connection with the embodiment is included in at least one embodiment. Thus, the appearances of the phrases such as "in one embodiment" or the like appearing in various places throughout the specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

The references used herein are provided for convenience only and thus do not define the scope of protection or the scope of the embodiments.

Some embodiments relate to a circuit arrangement and a corresponding method for controlling the circuit arrangement, which circuit arrangement operates to ensure proper communication between a microprocessor and a plurality of peripherals of a slave circuit comprised in the circuit arrangement, such as in case a peripheral of the plurality of peripherals shares a single clock signal source, however different timing has to be used for generating the clock signal.

Accordingly, fig. 1 is a schematic diagram of a circuit arrangement designated by reference numeral 10, which includes a microprocessor 11 and a slave circuit 12 (e.g., where the slave circuit 12 is implemented as an integrated circuit). In the specifically illustrated example, the slave circuit 12 is a synchronous type buck controller, wherein the buck controller controls a buck (buck) switching power converter. The buck controller 12 includes a plurality of peripherals including a serial communication peripheral or serial interface 122 and a non-volatile memory interface 124 for accessing non-volatile memory 125. The microprocessor 11 provides an external clock signal CKE at a single input clock pad CLK _ IN of the slave circuit 12. It may be noted that since the solution described herein for managing a plurality of peripherals is implemented within circuit arrangement 10 from circuit 12, some embodiments preferably do not include any mechanism of chip selection, device address matching, and communication start/stop or acknowledgement for the selection of each peripheral in circuit 12, with the goal of reducing the number of its own pins.

In some embodiments, the application of the continuous clock signal CLK _ EXT must occur without affecting the proper operation of the serial interface 122. In some embodiments, the serial interface 122 must not be active simultaneously with the non-volatile memory interface 124, and data transfer occurs based on the clock time slots IF _ CLK.

Fig. 1 shows only peripherals 122 and 124/125, but some embodiments such as those described below enable microprocessor 11 to communicate with possible peripherals inside slave circuit 12 and require clock sources with different timing, yet they are provided starting from a clock signal received on a single pad (e.g., input clock pad CLK _ IN).

In the circuit arrangement 10 illustrated in fig. 1, the slave circuit 12 further includes an input data pad DIN and an output data pad DOUT. The communication of the serial interface 122 with the microprocessor 11 envisages the use of interface input data and output data buses IDI and IDO coupled for providing respective signals designated by the same reference numerals at the input of the input data pad DIN and at the output of the output data pad DOUT, respectively, and an interface clock signal IF _ CLK derived from an external clock signal CKE on the current single input clock pad CLK _ IN for accessing the reading/writing of the internal register bank 123 comprised IN the slave circuit 12. The internal register group 123 includes a plurality of registers for storing the data D, and one of the plurality of registers is designated by 123 b. The register set 123 further includes a specific command storage register 123a and an unlock register 123 c. Thus, the serial interface 122 is configured for exchanging serial data D received on the interface input bus IDI with the internal register set 123; for example, it is configured to read and write serial data D in the internal register 123.

The microprocessor 11 operating as a host in the framework of the master/slave communication protocol manages communication with the serial interface 122, externally supplies the serial interface 122 with an interface clock IF _ CLK (which comes directly from the external clock CKE) when access to read or write to the internal register 123 is requested, and removes the input clock IF _ CLK when access to the internal register 123 is ended. In this regard, fig. 2 shows an example of writing in the register 123b, which represents a general-purpose data storage register of the register group 123. In particular, fig. 2 shows a diagram of the logic signals of the circuit arrangement 10 as a function of time t.

In fig. 2, IDI and IDO represent input and output signals of the respective interface input and output data buses.

The external clock signal present on the single input clock pad CLK _ IN is represented by CKE and is provided to non-volatile memory interface 124 for accessing non-volatile memory 125. Deriving an interface clock IF _ CLK from the above external clock signal CKE; thus, the two signals CLK _ EXT and IF _ CLK coincide and are represented by the same timing diagram in fig. 2.

Further, fig. 2 shows a timing chart of logical values stored in the register 123b, and the value of the data D is stored in the register 123b as an example of an internal register in the group 123.

Thus, the diagram of FIG. 2 also represents a timing diagram of the values stored in the command storage register 123a included in the internal register set 123, where the stored values represent commands for accessing the non-volatile memory 125, such as read or write commands. On output from this register, there is thus a value, depending on its content, so that signals (representing the memory write signal WM and the memory read signal RM) according to time are supplied to the non-volatile memory interface 124, the non-volatile memory interface 124 being configured to establish its own access pattern depending on the values of the above-mentioned signals RM, WM. The operation of writing to the register 123b via the serial interface 122 is shown in fig. 2. The only active signal is the data signal on the interface input bus IDI, which operates under the control of the interface clock IF _ CLK by writing data D into register 123 b. In this case, the memory write signal WM and the memory read signal RM for accessing the memory 125 are not necessary and are inactive, since the clock signal is sent to the interface 122 for its operation; in this example, they are at a low logic level.

Instead, as shown in fig. 3, the nonvolatile memory interface 124 manages access to read/write to the nonvolatile memory 125 based on a continuous clock CLK _ EXT provided on the same pad CLK _ EXT as the interface clock IF _ CLK.

In this case, the microprocessor 11 sends a preset number of interface clock pulses IF _ CLK via the serial interface 122, i.e. the time slots or time intervals PT of a given length of pulses, the preset number of interface clock pulses IF _ CLK being designed to: on the dedicated internal register (i.e., command storage register 123a), the type of access operation, i.e., a write or read access, to be performed on non-volatile memory 125, indicated by the access data or value a, is programmed based on whether signal WM or signal RM is asserted.

Fig. 3 shows that the above-mentioned access data a indicating the type of access to be made to the memory is loaded in the command storage register 123a at a given moment (for example, initialized with a logical zero), whereas before this moment a logical zero is present in the command storage register 123 a.

Once the operation has been programmed, IN continuous mode CT, a continuous clock CLK _ EXT is provided to non-volatile memory interface 124 at input clock pad CLK _ IN, and non-volatile memory interface 124 manages the required read or write operations on non-volatile memory 125.

During operation of the non-volatile memory 125, the serial interface 122 is in an active state and at each pulse of the continuous clock CLK EXT, the information present on the interface input data bus IDI continues to be read and decoded, thereby possibly changing state in an uncontrolled and undesired manner.

For this reason, some embodiments prevent sampling of data at the input of the serial interface 122 while communicating with the non-volatile memory interface 124 and subsequently accessing the non-volatile memory 125.

In some embodiments, to address the problem of clock sharing, the lock signal LK is generated by the first logic circuit 126 when the serial interface 122 does not need to be active. Specifically, the lock signal LK locks the shift register 122a inside the serial interface 122 and is generated when a read or write operation of the non-volatile memory 125 has been programmed on the internal register 123 or also during a particular operating mode of the device (e.g., a test mode that may require a continuous clock from the outside and does not contemplate the activity of the serial peripheral 122).

In fig. 1 and referring to the timing diagram of fig. 4, there is thus represented a logic lock signal LK, which is generated by the lock logic control circuit 126 and provided to the serial interface 122, the serial interface 122 being configured to: after receiving this lock signal LK set to a given logic state (in this example, a high logic state), the transmission of the serial data D is prevented, in particular by preventing storage in the shift register 122 a.

More precisely, as shown in fig. 2, the data D is data that is stored in the internal register 123 due to the serial data being transmitted on the interface input data bus IDI by the interface clock IF _ CLK.

The high lock signal LK does not prevent the transmission of serial data on the interface input data bus IDI but locks the shift register 122a inside the serial interface 122, for example, for the following reasons:

a particular mode of operation of the device requiring a continuous clock; or

Data A, shown in FIG. 4, is written to a special purpose register (e.g., command storage register 123a) for performing operations to access WM/RD of non-volatile memory 125.

In this way, the serial interface 122 does not evolve in an undesired manner when the microprocessor 11 continuously (in continuous mode CT) sends the external clock CKE, which is necessary for example to access the non-volatile memory 125 or to perform a test mode. In some embodiments, during continuous mode CT, the interface input data line IDI is simultaneously held at a low level.

The lock signal LK is also supplied to the second logic control circuit 121, and the second logic control circuit 121 transmits the lock signal LK to the microprocessor 11 through its output data pad DOUT. When the microprocessor 11 receives the lock signal LK in a given logic state, in this example a high logic state indicating the lock state of the interface 122, the microprocessor 11 is configured for sending an external clock signal CKE to the slave circuit 12 according to a continuous clock mode for performing the required operation mode, in particular for accessing the non-volatile memory 125.

Furthermore, an unlock logic signal CRLK is shown in fig. 1 (and fig. 4), which is generated by the contents of a specific unlock register 123c of the register bank 123 (in particular, for unlocking the registers of the shift register 122 a) and is supplied to the first lock logic control circuit 126 for resetting the lock signal LK in a logic state (in this example, a low logic state), in which a given transmission of serial data is no longer blocked; i.e. it is enabled.

Therefore, the lock signal LK is generated at the output on the output pad DOUT of the slave circuit 12 by the second logic circuit 121, so that the microprocessor 11 is notified of: the serial peripheral (e.g., serial interface 122) has been locked. It should be noted that the first logic circuit 126 and the second logic circuit 121 may form part of one and the same single logic circuit internal to the slave circuit 12.

Thus, in some embodiments, the microprocessor 11, after receiving the lock signal LK, is configured to: IN the continuous mode CT, the external clock CKE is transmitted as a continuous clock CLK _ EXT on a pad CLK _ IN at the input of the slave circuit 12, which is necessary for communicating with the non-volatile memory interface 124 or performing a required operation mode (e.g., test mode) without causing undesired operation of the serial peripheral device 122.

In the case where the microprocessor 11 needs to access the serial interface 122 again (for example, after the continuous mode CT), for example, in order to write data in the register group 123, it is necessary that the internal logic (i.e., specifically, the first logic circuit 126) erases the lock signal LK according to the mode required for serial communication and generates the interface lock signal IF _ CLK.

According to one embodiment, this may be done via two different erase modes represented in the timing diagrams of fig. 4 and 5.

In the first mode, the erase occurs in an automatic manner when the read/write operation in the internal memory 125 has been completed. In this regard, the first logic 126 receives the signals RM, WM from the interface 124 and determines when the read/write operation in the internal memory 125 is completed based on the signals RM and WM.

Thus, fig. 4 shows a timing diagram of signals representing signals operating in the circuit arrangement 10 described herein according to this first mode of operation. Initially, the logical contents of command storage register 123a are initialized with a logical value (e.g., a zero or low logical value). When the logic content of the command storage register 123a represents a read operation, the corresponding signal RM reaches the high logic level DH, the microprocessor 11 sends a continuous clock signal CLK _ EXT comprising a sequence of read pulses, and the first logic circuit 126 is configured to assert a lock signal LK, which reaches the high logic level for example, disabling the operation of the serial interface 122, in particular the operation of the shift register 122, simultaneously with sending the external clock signal CKE in continuous mode. The output signal on the output bus IDO goes to a high logic level. When the logic contents DH of the command storage register 123a change, for example they return a zero sequence, the read signal RM returns to a low logic level, so that the first logic circuit 126 (which receives the read signal RM) is configured to deactivate the lock signal LK, in particular to send it back to a low logic level, for example in response to the read signal RM returning to a low logic level. The serial interface 122 is again enabled for operation.

It should be noted that the register 123a generating the signal RM/WM is automatically erased when the read or write operation of the memory is completed. The corresponding status information is provided through the interface 124 that manages the operation of accessing the memory and is used as a signal to clear the above-mentioned register.

According to the second erase mode, after the unlock sequence is provided by the microprocessor 11 on the interface input data bus IDI at the input of the serial interface 122 and on the interface clock signal IF _ CLK, the lock signal LK is erased, which is interpreted as an operation of writing on a dedicated register, thereby generating the unlock signal CRLK.

After the unlock signal CRLK is generated, the first logic circuit 126 resets the lock signal LK to a low logic level, thereby unlocking the shift register 122a of the interface 122.

In the embodiment described herein, the unlock sequence shown in fig. 5 is initiated by the microprocessor 11, and when it is desired to reuse the serial interface 122, the microprocessor 11 sets the interface input data bus IDI to, for example, a high logic level at the input of the peripheral device 122, however no clock signal is generated on the interface clock signal line IF _ CLK.

Next, continuing to maintain the interface input data bus IDI high, the microprocessor 11 sends a sequence of interface clock pulses IF _ CLK required for writing the unlock signal CRLK in the special register 123c (the contents of which are represented in fig. 5) of the register bank 123. The address of register 123c is determined by the interface input data line IDI being at a high logic level.

At this time, the shift register 122a of the serial interface 122 is unlocked via the erasure of the lock signal LK.

The microprocessor 11 then removes the continuous clock on line CLK _ EXT and sends the interface clock IF _ CLK and the data on the interface input data line IDI when it wishes to access another internal register 123 via the serial interface 122.

If the serial interface 122 is to be locked again, the unlock signal CRLK must be erased by writing the value '0' in the special register 123 c.

With reference to the timing patterns CT and PT, a communication operation with the non-volatile memory interface 124 requires the application of a continuous clock signal CLK _ EXT, such as the timing pattern CT according to a continuous sequence of transmitted pulses. For example, the nonvolatile memory interface 124 operates in the presence of the continuous clock CLK _ EXT by executing an operation of programming in the special register 123 in the nonvolatile memory 125. When the non-volatile memory interface 124 is to be locked, no action is taken on the continuous clock CLK EXT that continues to operate in the continuous mode, but the command storage register 123a is programmed with a NOP (no operation) instruction. When the serial interface 122 towards the register 123 is not locked (the lock signal LK is at a low level), it transfers the data present on the interface input data bus IDI to the internal shift register 122a at each clock pulse interface IF _ CLK. These data encode various configurations or modes of operation of the device, including commands for the memory 125.

Thus, it is clear from what has been described that in some embodiments the circuit arrangement 10 comprises a slave circuit 12, the slave circuit 12 receiving an external clock signal CKE from a master circuit 11 (e.g. a microprocessor 11 in this example), the slave circuit 12 comprising a plurality of peripheral devices receiving respective clock signals derived from the external clock signal (whether interface clock signal IF _ CLK or continuous clock signal CLK _ EXT), wherein the external clock signal CKE is sent by the master circuit 11 according to at least two different timing modes for respective ones of the plurality of peripheral devices (e.g. a continuous timing mode CT for enabling access to the memory 125 through the respective interface 124, and a timing mode with a pulse time slot or mode PT for controlling the serial interface 122). In particular, some embodiments enable/disable the general purpose peripheral via a respective lock signal generated by programming an internal register (e.g., 123a) that generates the respective signal or sets a flag that enables the lock signal.

In this context, fig. 6 shows a flow diagram of an embodiment method 100 for controlling the circuit arrangement 10 according to an embodiment of the invention. Thus, the circuit arrangement 10 is configured for:

the external clock signal CKE from the master circuit 11 is received (step 110) by the slave circuit 12,

respective clock signals IF _ CLK, CLK _ EXT obtained from the external clock signal CKE are distributed (step 120) to a plurality of peripherals of the slave circuit. The allocation operation (step 120) includes: the external clock signal CKE is sent according to at least two different timing modes, e.g., a continuous timing mode CT and a pulse slot timing mode PT, for the respective peripheral devices, in this example, the respective serial interface 122 and the respective non-volatile memory interface 124 of the plurality of peripheral devices.

According to some embodiments, the circuit arrangement 10 is configured for carrying out the following operations:

detecting (step 130), for example via the access signals RM, WM, a given operating mode of the slave circuit 12 according to a timing mode used by at least one peripheral of the serial interface 122 (for example a continuous timing mode CT, which is different from the timing mode, for example a pulse-slot timing mode PT), and requesting to receive an external clock signal CKE upon detection of the operating mode;

at least one lock signal LK is generated (step 140) for at least one peripheral device of the plurality of peripheral devices, in this example the serial interface 122, the lock signal LK also being provided to the master circuit 11 by the output DOUT of the slave circuit 12. In particular, via the microprocessor 11, the circuit arrangement 10 is configured for programming a value (e.g. RM, WM) representative of a given operating mode in a command storage register 123a of the slave circuit 12 (the slave circuit in particular being interfaced via the serial interface 122), and detecting the given operating mode by reading the value representative of the given operating mode in the programmed register (i.e. the command storage register 123 a); and

after receiving the lock signal by the main circuit, e.g. the microprocessor 11, the external clock signal CKE is transmitted 150 according to a different timing mode, e.g. a continuous timing mode CT, in particular by the main circuit or the microprocessor.

FIG. 6 also shows an additional erase process, including: after step 150, it is verified (step 160) whether use of a peripheral device (e.g., interface 122) having different timing is required, and in the affirmative, the step 170 of erasing the lock signal LK and transmitting the clock signal CKE is performed in different timing modes. The erase operation via generation of the unlock signal CRLK (i.e., the second erase mode) is shown in fig. 6, but step 170 may also be implemented via the first erase mode, for example, by detecting the end of an operation request (e.g., access to the non-volatile memory 125) on the peripheral device.

Some embodiments advantageously enable the disabling of a slave circuit or other peripheral within the device (e.g., otherwise discovering itself to be in an indeterminate state or otherwise performing an undesired operation when it does not need to communicate with the microprocessor) when the microprocessor attempts to perform an operation on the peripheral (e.g., when a clock signal is continuously generated for another type of communication or for a particular mode of operation of the circuit arrangement). Some embodiments advantageously allow the microprocessor to change the mode of generation of the clock when the peripheral is activated.

Advantageously, some embodiments enable slave circuit 12 to have a reduced number of pins, and implementations of mechanisms such as chip select, device address match, and communication start/stop or acknowledge for selecting each peripheral in the slave circuit may be omitted.

Naturally, without prejudice to the principle of the invention, the details of construction and the embodiments may vary widely with respect to what has been described and illustrated herein purely by way of example, without thereby departing from the scope of the invention as defined by the annexed claims.

18页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:低速总线时间戳记方法和电路

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!