Serial peripheral equipment interface working mode conversion circuit

By using the combination of components such as XOR gate, NOR gate, buffer and latch in the SPI interface circuit, the clock signal conversion from operating mode 3 to operating mode 0 is realized, and the components and costs in the prior art are solved. High problem simplifies the circuit structure and improves the conversion effect.

CN221946482UActive Publication Date: 2024-11-01GIANTEC SEMICON LTD INC +1
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202420441057.4
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-03-07
Publication Date
2024-11-01
Estimated Expiration
2034-03-07

AI Technical Summary

Technical Problem

The existing SPI operating mode conversion circuit has many components and high design costs, making it difficult to support the SPI bus interface protocols of working mode 0 and working mode 3 at the same time.

Method used

A serial peripheral device interface working mode conversion circuit is designed, including XOR gate, NGO gate, buffer, latch and AND gate components. The working mode conversion of SPI clock signal is realized through the combination of these components, simplifying the circuit. structure.

Benefits of technology

The clock signal conversion from working mode 3 to working mode 0 is realized, the level conversion effect is good, and the converted clock signal changes consistently in each cycle by adjusting the time parameters, which reduces circuit cost and improves reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN221946482U_ABST
    Figure CN221946482U_ABST
Patent Text Reader

Abstract

The utility model provides a serial peripheral equipment interface working mode conversion circuit. The serial peripheral equipment interface working mode conversion circuit comprises an exclusive-OR gate component, a NOT gate component, a buffer component, a latch component and an AND gate component, the input end of the exclusive-OR gate component is connected with a chip selection signal input end and a clock signal input end, and the output end of the exclusive-OR gate component is connected with the enabling end of the latch component; the input end of the NOT gate component is connected to the chip selection signal input end, and the output end is connected to the input end of the buffer component; the output end of the buffer component is connected to the data input end of the latch component; the Q end of the latch part and the clock signal input end are connected to the AND gate part, and the output end of the AND gate part is connected to the clock signal output end. According to the serial peripheral equipment interface working mode conversion circuit of the utility model, the input of a clock signal in a working mode 3 and the output of a clock signal in a working mode 0 are realized through simple circuit elements, and the serial peripheral equipment interface working mode conversion circuit has the advantage of good level conversion effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to a serial peripheral device interface working mode conversion circuit. Background Art

[0002] With the popularity of consumer electronic products, semiconductor memory plays a key role in consumer electronic products. When storing data in program memory, the interface protocol usually uses the SPI (Serial Peripheral Interface) bus protocol. The standard SPI bus protocol has four working modes (working mode 0, working mode 1, working mode 2, and working mode 3). In order to implement an SPI bus interface protocol that can support working mode 0 and working mode 3 at the same time, the memory controller needs to be able to realize SPI working mode conversion. The existing solution is mainly achieved by setting an SPI working mode conversion circuit. The existing SPI working mode conversion circuit has the problem of many components and high design cost. Utility Model Content

[0003] The utility model aims to provide a serial peripheral device interface working mode conversion circuit, which has the advantage of simple structure.

[0004] To achieve the above object, the utility model provides a serial peripheral device interface working mode conversion circuit, which comprises:

[0005] A chip select signal input terminal, a clock signal input terminal and a clock signal output terminal as well as an XOR gate component, a NOT gate component, a buffer component, a latch component and an AND gate component;

[0006] The two input ends of the XOR gate component are connected to the chip selection signal input end and the clock signal input end respectively, and the output end of the XOR gate component is connected to the enable end of the latch component;

[0007] The input end of the NOT gate component is connected to the chip selection signal input end, and the output end of the NOT gate component is connected to the input end of the buffer component;

[0008] The output terminal of the buffer component is connected to the data input terminal of the latch component;

[0009] The Q end of the latch component and the clock signal input end are respectively connected to the two input ends of the AND gate component, and the output end of the AND gate component is connected to the clock signal output end.

[0010] Optionally, when the enable input of the latch component is low, the Q output value of the latch component is the same as the input value of the data input terminal of the latch component.

[0011] Optionally, the buffer component includes two buffers connected in series.

[0012] Optionally, the clock frequency of the serial peripheral interface is 100 MHz.

[0013] Optionally, the delay of the buffer component is 20ns.

[0014] Optionally, the chip select signal at the chip select signal input terminal is valid when it is at a low level.

[0015] In summary, compared with the prior art, the serial peripheral device interface working mode conversion circuit provided by the utility model has the following beneficial effects:

[0016] The serial peripheral device interface working mode conversion circuit of the utility model realizes inputting a clock signal of working mode 3 and outputting a clock signal of working mode 0 through simple circuit elements, has the advantage of good level conversion effect, and by adjusting the time parameters, the converted clock changes in each cycle are consistent. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 This is a component connection diagram of the serial peripheral device interface working mode conversion circuit of the utility model.

[0018] Figure 2 This is the timing diagram of the conversion circuit in working mode 0.

[0019] Figure 3 This is the timing diagram of the conversion circuit in working mode 3. DETAILED DESCRIPTION

[0020] The following will be combined with the appended examples in the present utility model Figure 1 ~Attached Figure 3 , the technical scheme, structural features, objectives achieved and effects in the embodiments of the utility model are described in detail.

[0021] It should be noted that the drawings are in a very simplified form and use non-precise proportions. They are only used to conveniently and clearly assist in explaining the implementation methods of the utility model, and are not used to limit the conditions for the implementation of the utility model. Therefore, they have no substantive technical significance. Any structural modification, change in proportional relationship or adjustment of size should still fall within the scope of the technical content disclosed by the utility model without affecting the efficacy and purpose that can be achieved by the utility model.

[0022] It should be noted that, in the present invention, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only the elements explicitly listed, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0023] like Figure 1 As shown, the utility model provides a serial peripheral device interface working mode conversion circuit, the input signal port of the conversion circuit includes a chip select signal input terminal and a clock signal input terminal, and the output signal port of the conversion circuit includes a clock signal output terminal. An XOR gate component, a NOT gate component, a buffer component, a latch component and an AND gate component are arranged inside the conversion circuit. The serial peripheral device interface working mode conversion circuit is used to convert the SPI clock signal SCLK_3 input as working mode 3 into the SPI clock signal SCLK_0 output of working mode 0. When the SPI bus is in working mode 3, the SPI clock signal SCLK_3 is at a high level in the idle state, and data is collected on the second edge "rising edge". As shown Figure 2 As shown, when the SPI bus is in working mode 0, the SPI clock signal SCLK_0 is at a low level in the idle state, and data is collected on the first edge "rising edge".

[0024] The two input ends of the XOR gate component are connected to the chip select signal input end and the clock signal input end respectively, and the output end of the XOR gate component is connected to the enable end of the latch component. The chip select signal input to the chip select signal input end and the SPI clock signal SCLK_3 of the working mode 3 input to the clock signal input end are XORed and the result is used as the input of the enable end En of the latch component to control whether the output of the Q end of the latch component changes according to the change of the data input end D. In this embodiment, when the input of the enable end En of the latch component is low, the output value of the Q end of the latch component is the same as the input value of the data input end D of the latch component, that is, the output value of the Q end of the latch component changes with the input value of the data input end D; when the input of the enable end of the latch component is high, the output of the Q end of the latch component does not change with the change of the input end D, and always outputs the latched value.

[0025] The input end of the NOT gate component is connected to the chip select signal input end, and the output end of the NOT gate component is connected to the input end of the buffer component. The output end of the buffer component is connected to the data input end D of the latch component, and the chip select signal input from the chip select signal input end is input to the data input end D of the latch component after the NOT operation of the NOT gate component and the delay of the buffer component. In this embodiment, the buffer component includes two buffers connected in series, the clock frequency of the serial peripheral device interface is 100MHz, the delay of the buffer component is 20ns, and the delay time of the buffer component can be adjusted according to the clock frequency of the SPI.

[0026] The Q end of the latch component and the clock signal input end are respectively connected to the two input ends of the AND gate component, and the output end of the AND gate component is connected to the clock signal output end. After the Q end of the latch component and the clock signal input end are input with the SPI clock signal SCLK_3 of working mode 3, the SPI clock signal SCLK_0 of working mode 0 is output after the AND operation.

[0027] The chip select signal at the chip select signal input terminal is valid when it is at a low level. When data transmission stops, the delay between the SPI clock signal SCLK_3 in working mode 3 and the chip select signal CS returning to the idle state is 30ns. Figure 3 As shown, in the idle state, the chip select signal CS and the SPI clock signal SCLK_3 of working mode 3 are both high. When starting to send data, the chip select signal CS is low, delaying 10ns, and then sending the SCLK_3 clock. When stopping sending data, first restore SCLK_3 to the idle state, delay T 1 = 30ns, and then set the chip select signal CS to a high level.

[0028] In specific implementation, the high level width of the last cycle of the output clock is related to two delay times. These two time parameters will affect the high level width of the last cycle of the generated working mode 0. The ideal calculation formula is:

[0029] T 2 =T delaycell +T 1

[0030] Where, T 2 is the high level time of the last cycle of the generated clock, T delaycell is the delay time caused by the buffer component, T 1 It is the delay time between the rising edge of SCLK_3 and the recovery of the chip select signal CS to the idle state when data transmission stops.

[0031] Therefore, in practical applications, by changing T delaycell and T 1 To adjust the high level width of the last cycle.

[0032] The serial peripheral device interface working mode conversion circuit of the utility model replaces the multiplexer with a latch, can meet the fast conversion of high-frequency SPI level signals, simplify the circuit structure, reduce the circuit manufacturing cost, and improve the circuit operation reliability.

[0033] Although the content of the utility model has been described in detail through the above preferred embodiments, it should be appreciated that the above description should not be considered as a limitation of the utility model. After reading the above content, various modifications and substitutions of the utility model will be obvious to those skilled in the art. Therefore, the protection scope of the utility model should be limited by the attached claims.

Claims

1. A serial peripheral device interface working mode conversion circuit, It is characterized in that The conversion circuit comprises: A chip select signal input terminal, a clock signal input terminal and a clock signal output terminal as well as an XOR gate component, a NOT gate component, a buffer component, a latch component and an AND gate component; The two input ends of the XOR gate component are connected to the chip selection signal input end and the clock signal input end respectively, and the output end of the XOR gate component is connected to the enable end of the latch component; The input end of the NOT gate component is connected to the chip selection signal input end, and the output end of the NOT gate component is connected to the input end of the buffer component; The output terminal of the buffer component is connected to the data input terminal of the latch component; The Q end of the latch component and the clock signal input end are respectively connected to the two input ends of the AND gate component, and the output end of the AND gate component is connected to the clock signal output end.

2. The serial peripheral device interface working mode conversion circuit according to claim 1, It is characterized in that When the enable terminal input of the latch component is low, the Q terminal output value of the latch component is the same as the input value of the data input terminal of the latch component.

3. The serial peripheral device interface working mode conversion circuit according to claim 1, It is characterized in that The buffer component includes two buffers connected in series.

4. The serial peripheral device interface working mode conversion circuit as claimed in claim 1, It is characterized in that The clock frequency of the serial peripheral device interface is 100 MHz.

5. The serial peripheral device interface working mode conversion circuit as claimed in claim 4, It is characterized in that The delay of the buffer component is 20ns.

6. The serial peripheral device interface working mode conversion circuit as claimed in claim 1, It is characterized in that The chip select signal at the chip select signal input terminal is effective when it is at a low level.

Citation Information

Cited By

  • Mode conversion circuit

    CN119788054A

  • Mode conversion circuit

    CN119788054B