Control device

The control device addresses the challenge of accessing storage units with different voltages by using conversion units and generation units to manage voltage signals, ensuring efficient communication and reducing interference, thereby facilitating access to multiple storage units.

JP7548154B2Active Publication Date: 2024-09-10TOYOTA INDUSTRIES CORP
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2021127640
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-08-03
Publication Date
2024-09-10
Estimated Expiration
2041-08-03

AI Technical Summary

Technical Problem

The challenge of accessing multiple storage sections with different operating voltages using a control unit is addressed, as conventional methods struggle with compatibility and efficient communication due to voltage differences.

Method used

A control device with conversion units that convert voltage signals between storage units and a control unit, utilizing an SPI protocol for serial communication, and generation units to control conversion operations based on binary instruction signals, enabling access to storage units with different voltage levels without additional terminals or circuits.

Benefits of technology

The control device effectively accesses and communicates with storage units operating at different voltages, ensuring seamless operation and minimizing interference from pull-up circuits, thus enhancing communication efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000015_0000
    Figure 00000015_0000
  • Figure 00000015_0001
    Figure 00000015_0001
Patent Text Reader

Abstract

To provide a control apparatus capable of accessing a plurality of storage units by signals converted by a conversion unit.SOLUTION: A control apparatus 1 comprises a control unit 10, a first storage unit 20, a second storage unit 30, first conversion units 50-1 and 50-2, a second conversion unit 60, and a generation unit 70a. The control unit 10 controls, by a signal of a first voltage, an object to be controlled. The first storage unit 20 operates at a second voltage and inputs and outputs a signal of the second voltage. The second storage unit 30 operates at the first voltage and inputs and outputs the signal of the first voltage. The first conversion units 50-1 and 50-2 convert the signal of the first voltage into the signal of the second voltage. The second conversion unit 60 converts the signal of the second voltage to the signal of the first voltage or stops the conversion operation based on an instruction signal. The generation unit 70a generates the instruction signal. The control unit 10, the first storage unit 20, and the second storage unit 30 serially communicate with each other by an SPI protocol.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a control device. [Background technology]

[0002] 2. Description of the Related Art Conventionally, there is known a technique in which a control unit such as a CPU (Central Processing Unit) accesses a plurality of storage units such as memories (see, for example, Patent Document 1). [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2014-106604 A Summary of the Invention [Problem to be solved by the invention]

[0004] Here, when the operating voltages of the multiple storage units are different from one another, it is difficult for the control unit to access all of the storage units. [Means for solving the problem]

[0005] A control device for achieving the above object includes a control unit that controls a controlled object by a signal of a first voltage, a first storage unit that operates at a second voltage different from the first voltage and inputs and outputs a signal of the second voltage, a second storage unit that operates at the first voltage and inputs and outputs a signal of the first voltage, a first conversion unit that converts a signal of the first voltage into a signal of the second voltage, a second conversion unit that converts the signal of the second voltage into the signal of the first voltage or stops a conversion operation based on a binary instruction signal of a first level or a second level, and a generation unit that generates the instruction signal, wherein the control unit, the first storage unit, and the second storage unit are connected via an SPI (Serial Peripheral the first storage unit and the second storage unit communicate with the control unit when a chip select signal of a second level is input; the first conversion unit converts the data signal of the first voltage output by the control unit into the data signal of the second voltage, converts the clock signal of the first voltage output by the control unit into the clock signal of the second voltage, and converts the chip select signal of the first voltage output by the control unit into the chip select signal of the second voltage; the second conversion unit converts the data signal of the second voltage output by the first storage unit into the data signal of the first voltage when the instruction signal is at a first level, and stops a conversion operation when the instruction signal is at a second level; and the chip select signal converted to the second voltage is input to the first storage unit.

[0006] According to this configuration, the control unit can access the multiple storage units using the signal converted by the conversion unit. In the above control device, the chip select signal includes a first chip select signal and a second chip select signal, the first memory unit receives the first chip select signal converted to the second voltage, the second memory unit receives the second chip select signal of the first voltage output by the control unit, the generation unit is a NOT circuit, and the NOT circuit may generate, as the instruction signal, a signal that is an inversion of the first chip select signal converted to the second voltage by the first conversion unit.

[0007] With this configuration, the control device can control the conversion operation of the second conversion unit without providing a terminal in the control unit for outputting a chip select signal or a circuit for converting a first voltage signal into a second voltage signal.

[0008] The control device further includes a third storage unit that operates at the second voltage and inputs and outputs a signal of the second voltage, the control unit, the first storage unit, the second storage unit, and the third storage unit communicate serially with the control unit using an SPI protocol, the first storage unit, the second storage unit, and the third storage unit communicate with the control unit when the chip select signal of a second level is input, the chip select signal includes a first chip select signal, a second chip select signal, and a third chip select signal, and the first conversion unit converts the third chip select signal of the first voltage output by the control unit into a signal of the second voltage. the first chip select signal converted to the second voltage is input to the first storage unit, the third chip select signal converted to the second voltage is input to the third storage unit, and the second chip select signal of the first voltage output by the control unit is input to the second storage unit; the generation unit may be a NAND circuit, and the NAND circuit may generate, as the instruction signal, a signal obtained by inverting a logical product of the first chip select signal converted to the second voltage by the first conversion unit and the third chip select signal converted to the second voltage by the first conversion unit.

[0009] With this configuration, the control device can control the conversion operation of the second conversion unit without providing a terminal in the control unit for outputting a chip select signal or a circuit for converting a first voltage signal into a second voltage signal. Effect of the Invention

[0010] According to the present invention, the control unit can access a plurality of storage units using the signal converted by the conversion unit. [Brief description of the drawings]

[0011] [Figure 1] 1 is a diagram illustrating an example of a configuration of a control device 1 according to a first embodiment. [Diagram 2] FIG. 11 is a diagram illustrating an example of the configuration of a control device 2 according to a second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0012] First Embodiment A first embodiment of a control device will be described below with reference to the drawings. [Overall configuration] As shown in Fig. 1, the control device 1 includes a control unit 10. The control unit 10 is realized, for example, by a hardware processor such as a CPU (Central Processing Unit) executing a program (software). Some or all of these components may be realized by hardware (including circuitry) such as an LSI (Large Scale Integration), an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array), or a GPU (Graphics Processing Unit), or may be realized by a combination of software and hardware.

[0013] The control device 1 includes a plurality of storage units. In this embodiment, a case will be described in which the control device 1 includes two storage units, a first storage unit 20 and a second storage unit 30. The first storage unit 20 and the second storage unit 30 are realized, for example, by an Electrically Erasable Programmable Read Only Memory (EEPROM), a Read Only Memory (ROM), a Random Access Memory (RAM), or the like. In the following description, when there is no need to distinguish between the first storage unit 20 and the second storage unit 30, they will simply be referred to as "storage units."

[0014] The control unit 10 operates with a first voltage and controls the controlled object with a signal of the first voltage. The first storage unit 20 operates with a second voltage different from the first voltage and inputs and outputs a signal of the second voltage. The second storage unit 30 operates with the first voltage and inputs and outputs a signal of the first voltage. The first voltage is, for example, 5 [V], and the second voltage is, for example, 3.3 [V]. Note that the values ​​of the first voltage and the second voltage are merely examples and are not limited to these.

[0015] The control unit 10 and the storage unit are connected to each other and perform serial communication using the SPI (Serial Peripheral Interface) protocol. The control unit 10 has, for example, a data output terminal SO, a data input terminal SI, a clock terminal SCK, a first chip select terminal CS1, and a second chip select terminal CS2. The data output terminal SO is a terminal that outputs a data signal of a first voltage. The data input terminal SI is a terminal to which a data signal of a first voltage is input. The clock terminal SCK is a terminal that outputs a clock signal of the first voltage. The first chip select terminal CS1 is a terminal that outputs a first chip select signal of the first voltage. The second chip select terminal CS2 is a terminal that outputs a second chip select signal of the first voltage.

[0016] The data signal, the first chip select signal, the second chip select signal, and the clock signal are all binary signals of a first level or a second level. In the following description, the first level will be referred to as a "high level" and the second level will be referred to as a "low level." In addition, in the following description, when the first chip select signal and the second chip select signal are not to be distinguished from each other, they will be simply referred to as "chip select signals."

[0017] The storage unit has, for example, a data output terminal SO, a data input terminal SI, a clock terminal CK, and a chip select terminal CS. The clock terminal CK is a terminal to which a clock signal is input. The chip select terminal CS is a terminal to which a chip select signal is input. Below, a case will be described in which the storage unit inputs and outputs a data signal when the input chip select signal is at a low level.

[0018] The control device 1 includes, for example, a first conversion unit 50 and a second conversion unit 60. The first conversion unit 50 converts a signal of a first voltage into a signal of a second voltage. The control device 1 of this embodiment includes two first conversion units 50, a first conversion unit 50-1 and a first conversion unit 50-2. The first conversion unit 50 has two input terminals and two output terminals. Specifically, the first conversion unit 50-1 has output terminals A1 and A2 and input terminals B1 and B2. The first conversion unit 50-2 has output terminals A3 and A4 and input terminals B3 and B4. The first conversion unit 50 converts a signal of a first voltage input to the input terminal into a signal of a second voltage and outputs it from the output terminal. Specifically, the first conversion unit 50-1 converts a signal input to the input terminal B1 and outputs it from the output terminal A1, and converts a signal input to the input terminal B2 and outputs it from the output terminal A2. The first conversion unit 50-2 converts a signal input to an input terminal B3 and outputs the converted signal from an output terminal A3, and converts a signal input to an input terminal B4 and outputs the converted signal from an output terminal A4.

[0019] The second conversion unit 60 converts the signal of the second voltage into a signal of the first voltage, or stops the conversion operation, based on the instruction signal. The instruction signal is, for example, a binary signal of a first level or a second level. In the present embodiment, the second conversion unit 60 converts the signal of the first voltage into a signal of the second voltage when the instruction signal is at a "high level", and stops the conversion operation when the instruction signal is at a "low level". The second conversion unit 60 has a terminal C, a terminal D, and a conversion direction terminal DIR. A signal of the second voltage is input to the terminal C, and a signal of the first voltage is output from the terminal D. An instruction signal of the second voltage is input to the conversion direction terminal DIR.

[0020] The control device 1 includes a generating unit 70a that generates an instruction signal. The generating unit 70a is realized by a NOT circuit CT1. The generating unit 70a includes an input terminal t1 and an output terminal t2. The generating unit 70a inverts a signal input to the input terminal t1 by the NOT circuit CT1, and outputs the inverted signal from the output terminal t2 as an instruction signal.

[0021] [Connection of each component] The control unit 10 and the second storage unit 30 are connected to each other. The control unit 10 and the first storage unit 20 are connected to each other via the first conversion unit 50 and the second conversion unit 60. The control device 1 may use components common to a control device having three storage units, the first storage unit 20, the second storage unit 30, and the third storage unit 40. In this embodiment, the control device 1 does not include the third storage unit 40 and the third storage unit 40 is not mounted, but has pads, wiring, etc. on which the third storage unit 40 can be mounted. The third storage unit 40 has, for example, the same functions as the other storage units.

[0022] The wiring L11 connects the data output terminal SO of the control unit 10, the input terminal B1 of the first conversion unit 50-1, and the data input terminal SI of the second storage unit 30. The wiring L12 connects the data input terminal SI of the control unit 10, the terminal D of the second conversion unit 60, and the data output terminal SO of the second storage unit 30. The wiring L13 connects the clock terminal SCK of the control unit 10, the input terminal B2 of the first conversion unit 50-1, and the clock terminal CK of the second storage unit 30. The wiring L14 connects the second chip select terminal CS2 of the control unit 10, the input terminal B3 of the first conversion unit 50-2, and the chip select terminal CS of the second storage unit 30. The wiring L15 connects the first chip select terminal CS1 of the control unit 10 and the input terminal B4 of the first conversion unit 50-2.

[0023] The wiring L21 connects the output terminal A1 of the first conversion unit 50-1, the data input terminal SI of the first storage unit 20, and the pad on which the data input terminal SI of the third storage unit 40 is mounted. The wiring L22 connects the output terminal A2 of the first conversion unit 50-1, the clock terminal CK of the first storage unit 20, and the pad on which the clock terminal CK of the third storage unit 40 is mounted. The wiring L23 connects the output terminal A3 of the first conversion unit 50-2 and the pad on which the chip select terminal CS of the third storage unit 40 is mounted. The wiring L24 connects the terminal C of the second conversion unit 60, the data output terminal SO of the first storage unit 20, and the pad on which the data output terminal SO of the third storage unit 40 is mounted. The wiring L25 connects the conversion direction terminal DIR of the second conversion unit 60 and the output terminal t2 of the generation unit 70a. The wiring L26 connects the output terminal A4 of the first conversion unit 50-2, the chip select terminal CS of the first storage unit 20, and the input terminal t1 of the generation unit 70a.

[0024] The control device 1 includes a pull-up circuit PU on a line connecting the data input terminal SI and the data output terminal SO. In detail, the control device 1 includes a pull-up circuit PU1 that pulls up the lines L11 and L12 to a first voltage, and a pull-up circuit PU2 that pulls up the lines L21 and L24 to a second voltage.

[0025] As described above, the first conversion unit 50 converts the signal output from the control unit 10 to the first storage unit 20 from the first voltage to the second voltage. The second conversion unit 60 converts the signal output from the first storage unit 20 to the control unit 10 from the second voltage to the first voltage. On the other hand, the second conversion unit 60 stops the conversion operation when the control unit 10 and the second storage unit 30 communicate with each other. By the second conversion unit 60 stopping the conversion, the potential of the wiring L24 pulled up by the pull-up circuit PU2 is prevented from affecting the communication between the control unit 10 and the second storage unit 30. The operation of the control device 1 will be described in detail below.

[0026] [Operation of control device 1] As described above, when the input chip select signal is at a low level, the storage unit inputs and outputs a data signal. Therefore, the control unit 10 outputs a low-level chip select signal to a storage unit to be read or written, and outputs a high-level chip select signal to storage units other than the storage unit to be read or written. Details of communication between the control unit 10 and each storage unit are described below.

[0027] [Writing process of the first storage unit 20] The following describes the case where the control unit 10 communicates with the first storage unit 20 and performs a write process on the first storage unit 20. The control unit 10 outputs a low-level first chip select signal from the first chip select terminal CS1 and a high-level second chip select signal from the second chip select terminal CS2 until the write process is completed. The control unit 10 then outputs a write command and a data signal indicating the information to be written from the data output terminal SO. The second storage unit 30 stops the read operation and the write operation in response to the high-level second chip select signal being input to the chip select terminal CS.

[0028] The first conversion unit 50-2 converts the low-level first chip select signal input to the input terminal B4 and outputs it from the output terminal A4. The first conversion unit 50-2 also converts the high-level second chip select signal input to the input terminal B3 and outputs it from the output terminal A3.

[0029] A low-level first chip select signal is input to an input terminal t1 of the generating unit 70a. A NOT circuit CT1 included in the generating unit 70a inverts the low-level first chip select signal to a high-level signal. The generating unit 70a outputs the high-level signal as an instruction signal from an output terminal t2.

[0030] A high-level signal is input as an instruction signal to the conversion direction terminal DIR of the second conversion unit 60. Therefore, the second conversion unit 60 converts the data signal of the second voltage input to the terminal C into a data signal of the first voltage and outputs it to the terminal D. However, since the first storage unit 20 is in a write operation, it does not output a data signal from the data output terminal SO. Therefore, the data signal of the second voltage is not input to the terminal C. Therefore, the second conversion unit 60 is in a standby state.

[0031] The first conversion unit 50-1 converts the clock signal of the first voltage input to the input terminal B2 into a clock signal of the second voltage and outputs it from the output terminal A2. The first conversion unit 50-1 also converts the data signal of the first voltage input to the input terminal B1 into a data signal of the second voltage and outputs it from the output terminal A1. The first storage unit 20 executes various processes at the timing of the clock signal input to the clock terminal CK. In detail, the first storage unit 20 stores the contents of the data signal of the second voltage input to the data input terminal SI while the first chip select signal of low level is input to the chip select terminal CS. This allows the control unit 10 to write information to the first storage unit 20.

[0032] [Reading process of the first storage unit 20] The following describes a case where the control unit 10 communicates with the first storage unit 20 and performs a read process on information stored in the first storage unit 20. The control unit 10 outputs a low-level first chip select signal from the first chip select terminal CS1 and a high-level second chip select signal from the second chip select terminal CS2 until the read process is completed. The control unit 10 then outputs a data signal indicating a read command from the data output terminal SO and waits until the data signal is input to the data input terminal SI. The second storage unit 30 stops the read operation and the write operation in response to the high-level second chip select signal being input to the chip select terminal CS.

[0033] The operation of the first conversion unit 50 and the operation of the generation unit 70a are similar to the write process of the first storage unit 20 described above, and therefore a description thereof will be omitted. When a low-level first chip select signal is input to the chip select terminal CS and a data signal of a second voltage input to the data input terminal SI indicates a read command, the first storage unit 20 executes a read process. In detail, the first storage unit 20 outputs a data signal indicating data designated by the read command from the data output terminal SO among the data to be stored.

[0034] The second conversion unit 60 receives a high-level signal as an instruction signal at the conversion direction terminal DIR. Therefore, the second conversion unit 60 converts the data signal of the second voltage input to the terminal C into a data signal of the first voltage and outputs it to the terminal D. The data signal converted to the first voltage is input to the data input terminal SI of the control unit 10. This allows the control unit 10 to read out information stored in the first storage unit 20.

[0035] [Writing process of the second storage unit 30] The following describes the case where the control unit 10 communicates with the second storage unit 30 and performs a write process on the second storage unit 30. The control unit 10 outputs a high-level first chip select signal from the first chip select terminal CS1 and a low-level second chip select signal from the second chip select terminal CS2 until the write process is completed. Then, the control unit 10 outputs a write command and a data signal indicating the information to be written from the data output terminal SO.

[0036] The operation of the first conversion unit 50 is the same as the processing related to the first storage unit 20 described above, and therefore a description thereof will be omitted. The first storage unit 20 stops read and write operations when a high-level first chip select signal is input to the chip select terminal CS. Since the first storage unit 20 stops read and write operations, it does not process the data signal converted by the first conversion unit 50-1.

[0037] A high-level first chip select signal is input to the input terminal t1 of the generating unit 70a. A NOT circuit CT1 included in the generating unit 70a inverts the high-level first chip select signal to a low-level signal. The generating unit 70a outputs a low-level signal as an instruction signal from the output terminal t2. Therefore, a low-level signal is input as an instruction signal to the conversion direction terminal DIR of the second converting unit 60. As described above, when a low-level signal is input as an instruction signal to the conversion direction terminal DIR, the second converting unit 60 stops the conversion operation.

[0038] The second storage unit 30 stores the contents of the data signal of the first voltage input to the data input terminal SI while the second chip select signal of low level is input to the chip select terminal CS. This allows the control unit 10 to write information to the second storage unit 30.

[0039] [Reading process of second storage unit 30] The following describes a case where the control unit 10 communicates with the second storage unit 30 and performs a read process on information stored in the second storage unit 30. The control unit 10 outputs a high-level first chip select signal from the first chip select terminal CS1 and a low-level second chip select signal from the second chip select terminal CS2 until the read process is completed. The control unit 10 then outputs a data signal indicating a read command from the data output terminal SO and waits until the data signal is input to the data input terminal SI.

[0040] The operation of the first conversion unit 50 and the operation of the generation unit 70a are the same as the write process of the second storage unit 30 described above, and therefore a description thereof will be omitted. The first storage unit 20 stops the read operation and the write operation in response to a high-level first chip select signal being input to the chip select terminal CS. Since the first storage unit 20 stops the read operation and the write operation, it does not process the data signal converted by the first conversion unit 50-1.

[0041] The second conversion unit 60 stops the conversion operation because a low-level signal is input as an instruction signal to the conversion direction terminal DIR. The second storage unit 30 executes a read process when a low-level second chip select signal is input to the chip select terminal CS and the data signal of the first voltage input to the data input terminal SI indicates a read command. In detail, the second storage unit 30 outputs a data signal indicating data designated by the read command from among the data to be stored, from the data output terminal SO. The data signal of the first voltage is input to the data input terminal SI of the control unit 10. This enables the control unit 10 to read out information stored in the second storage unit 30.

[0042] [When not communicating with the memory unit] The following describes a case where the control unit 10 and the storage unit do not communicate. The control unit 10 outputs a high-level first chip select signal from the first chip select terminal CS1, and outputs a high-level second chip select signal from the second chip select terminal CS2. The first storage unit 20 stops reading and writing operations in response to a high-level first chip select signal being input to the chip select terminal CS. The second storage unit 30 stops reading and writing operations in response to a high-level second chip select signal being input to the chip select terminal CS.

[0043] [Effects of the control device 1 of the first embodiment] According to the present embodiment described above in detail, the following effects are achieved. (1-1) The control device 1 of this embodiment includes a control unit 10, a first storage unit 20, a second storage unit 30, a first conversion unit 50, a second conversion unit 60, and a generation unit 70a. The control unit 10 controls the control target by a signal of a first voltage. The first storage unit 20 operates at a second voltage different from the first voltage, and inputs and outputs a signal of the second voltage. The second storage unit 30 operates at the first voltage, and inputs and outputs a signal of the first voltage. The first conversion unit 50 converts a signal of the first voltage into a signal of the second voltage. The second conversion unit 60 converts a signal of the second voltage into a signal of the first voltage, or stops the conversion operation, based on a binary instruction signal of a high level or a low level. In detail, when the instruction signal is at a high level, the second conversion unit 60 converts a data signal of the second voltage output by the first storage unit 20 into a data signal of the first voltage, and when the instruction signal is at a low level, stops the conversion operation. The generating unit 70a generates an instruction signal. The control unit 10, the first storage unit 20, and the second storage unit 30 communicate serially by the SPI protocol. The first storage unit 20 and the second storage unit 30 communicate with the control unit 10 when a low-level chip select signal is input. The first conversion unit 50 converts a data signal of a first voltage output by the control unit 10 into a data signal of a second voltage, converts a clock signal of the first voltage output by the control unit 10 into a clock signal of the second voltage, and converts a first chip select signal of the first voltage output by the control unit 10 into a second chip select signal of the second voltage. The first storage unit 20 receives the first chip select signal converted to the second voltage.

[0044] Generally, in SPI communication, the data input terminal SI of the control unit 10 is connected to the data output terminal SO of the storage unit via a bus, and the data input terminal SI of the storage unit is connected to the data output terminal SO of the control unit 10 via a bus. However, the first storage unit 20 provided in the control device 1 of this embodiment operates at a second voltage, whereas the control unit 10 and the second storage unit 30 operate at a first voltage. Therefore, the first storage unit 20 cannot directly connect the data input terminal SI or the data output terminal SO to a bus.

[0045] Meanwhile, by providing the first conversion unit 50 and the second conversion unit 60 between the control unit 10 and the first storage unit 20 as in the control device 1 of this embodiment, the control unit 10 and the first storage unit 20 can communicate with each other by the converted signals. Therefore, the control unit 10 can communicate with a plurality of storage units such as the first storage unit 20 and the second storage unit 30, which have different operating voltages, by the signals converted by the first conversion unit 50 and the second conversion unit 60.

[0046] In the control device 1 of this embodiment, the wirings L11, L12, L21, and L24 connecting the data input terminal SI and the data output terminal SO of the control unit 10 and the first storage unit 20 are provided with a pull-up circuit PU. Here, if the second conversion unit 60 converts a high-level signal generated on the wiring L24 by the pull-up circuit PU2 and propagates it to the wiring L12, it may affect the communication between the control unit 10 and the second storage unit 30. On the other hand, the second conversion unit 60 stops the conversion operation based on the instruction signal generated by the generation unit 70a except when the control unit 10 and the first storage unit 20 are communicating. As a result, the control device 1 of this embodiment can suppress the influence of the pull-up circuit PU2 on the communication between the control unit 10 and the second storage unit 30.

[0047] (1-2) In this embodiment, the chip select signal includes a first chip select signal and a second chip select signal. The first memory unit 20 receives the first chip select signal converted to the second voltage by the first conversion unit 50-2. The second memory unit 30 receives the second chip select signal of the first voltage output by the control unit 10. The generation unit 70a is a NOT circuit CT1, and the NOT circuit CT1 generates, as an instruction signal, a signal obtained by inverting the first chip select signal converted to the second voltage by the first conversion unit 50-2.

[0048] As described above, in order to suppress the influence of the pull-up circuit PU2 on the communication between the control unit 10 and the second storage unit 30, it is required to stop the conversion operation of the second conversion unit 60. Here, it is required that the instruction signal of the second voltage is input to the conversion direction terminal DIR. When the control unit 10 generates and outputs the instruction signal input to the conversion direction terminal DIR, it is necessary to provide the control unit 10 with a terminal for outputting the instruction signal or to further provide the first conversion unit 50 for converting the instruction signal of the first voltage output by the control unit 10 into an instruction signal of the second voltage. On the other hand, the control device 1 of this embodiment can control the conversion operation of the second conversion unit 60 without providing the control unit 10 with a terminal for outputting the instruction signal or providing the first conversion unit 50 for converting the instruction signal of the first voltage into an instruction signal of the second voltage.

[0049] <Second embodiment> A second embodiment of the control device will be described below with reference to the drawings. [Overall configuration] 2, the control device 2 includes a generation unit 70b instead of the generation unit 70a included in the control device 1. The generation unit 70b is realized by a NAND circuit CT2. The generation unit 70b includes input terminals t1 and t3 and an output terminal t2. The generation unit 70b performs a logical operation on signals input to the input terminals t1 and t3 using the NAND circuit CT2, and outputs a signal indicating the operation result from the output terminal t2 as an instruction signal.

[0050] In addition to the configuration of the control device 1, the control device 1 further includes a third storage unit 40. The third storage unit 40 is realized by, for example, an EEPROM, a ROM, a RAM, or the like. In the following description, when there is no need to distinguish between the first storage unit 20, the second storage unit 30, and the third storage unit 40, they are simply referred to as "storage units." As described above, the control unit 10 and the storage units are connected to each other and communicate serially using the SPI protocol.

[0051] The third storage unit 40 has the same functions as the other storage units. In detail, the third storage unit 40 has, for example, a data output terminal SO, a data input terminal SI, a clock terminal CK, and a chip select terminal CS. When the input chip select signal is at a low level, the third storage unit 40 inputs and outputs a data signal. In addition, the third storage unit 40 operates by a second voltage, and inputs and outputs a signal of the second voltage.

[0052] The control unit 10 of this embodiment includes a first chip select terminal CS1, a second chip select terminal CS2, and a third chip select terminal CS3 as terminals for outputting chip select signals. The control unit 10 outputs the first chip select signal from the first chip select terminal CS1, outputs the second chip select signal from the second chip select terminal CS2, and outputs the third chip select signal from the third chip select terminal CS3.

[0053] [Connection of each component] The control unit 10 and the first storage unit 20 are connected to each other. The control unit 10 and the second storage unit 30 and the third storage unit 40 are connected to each other via the first conversion unit 50 and the second conversion unit 60. The control device 2 of this embodiment further includes a wiring L16, which connects the second chip select terminal CS2 of the control unit 10 and the chip select terminal CS of the second storage unit 30.

[0054] In the control device 2 of this embodiment, the wiring L14, the wiring L21, the wiring L22, the wiring L23, and the wiring L24 are connected differently from the control device 1 described above. In detail, the wiring L14 connects the third chip select terminal CS3 of the control unit 10 and the input terminal B3 of the first conversion unit 50-2. In addition, the wiring L21 connects the output terminal A1 of the first conversion unit 50-1, the data input terminal SI of the first storage unit 20, and the data input terminal SI of the third storage unit 40. The wiring L22 connects the output terminal A2 of the first conversion unit 50-1, the clock terminal CK of the first storage unit 20, and the clock terminal CK of the third storage unit 40. The wiring L23 connects the output terminal A3 of the first conversion unit 50-2, the chip select terminal CS of the third storage unit 40, and the input terminal t3 of the generation unit 70b. The wiring L24 connects the terminal C of the second conversion unit 60, the data output terminal SO of the first storage unit 20, and the data output terminal SO of the third storage unit 40. The other connections are the same as those of the control device 1 described above, and therefore will not be described.

[0055] As described above, the first conversion unit 50 converts the signal output from the control unit 10 to the first storage unit 20 or the third storage unit 40 from the first voltage to the second voltage. The second conversion unit 60 converts the signal output from the first storage unit 20 to the control unit 10 or the signal output from the third storage unit 40 to the control unit 10 from the second voltage to the first voltage. On the other hand, the second conversion unit 60 stops the conversion operation when the control unit 10 and the second storage unit 30 communicate with each other. By stopping the conversion by the second conversion unit 60, the potential of the wiring L24 pulled up by the pull-up circuit PU2 is prevented from affecting the communication between the control unit 10 and the second storage unit 30. The operation of the control device 2 will be described in detail below.

[0056] [Operation of control device 2] As described above, when the input chip select signal is at a low level, the storage unit inputs and outputs a data signal. Therefore, the control unit 10 outputs a low-level chip select signal to a storage unit to be read or written, and outputs a high-level chip select signal to storage units other than the storage unit to be read or written. Details of communication between the control unit 10 and each storage unit are described below.

[0057] [Writing process of the first storage unit 20] The following describes the case where the control unit 10 communicates with the first storage unit 20 and performs a write process on the first storage unit 20. Until the write process is completed, the control unit 10 outputs a low-level first chip select signal from the first chip select terminal CS1, outputs a high-level second chip select signal from the second chip select terminal CS2, and outputs a high-level third chip select signal from the third chip select terminal CS3. Then, the control unit 10 outputs a write command and a data signal indicating the information to be written from the data output terminal SO. The second storage unit 30 stops the read operation and the write operation in response to the high-level second chip select signal being input to the chip select terminal CS.

[0058] The first conversion unit 50-2 converts the low-level first chip select signal input to the input terminal B4 and outputs it from the output terminal A4. The first conversion unit 50-2 also converts the high-level third chip select signal input to the input terminal B3 and outputs it from the output terminal A3. The third storage unit 40 stops reading and writing operations in response to the high-level third chip select signal being input to the chip select terminal CS.

[0059] A low-level first chip select signal is input to the input terminal t1 of the generating unit 70b, and a high-level third chip select signal is input to the input terminal t3. The NAND circuit CT2 included in the generating unit 70b calculates the logical product of the low-level first chip select signal and the high-level third chip select signal, and inverts the calculation result. In other words, the generating unit 70b outputs a high-level signal as an instruction signal from the output terminal t2.

[0060] A high-level signal is input as an instruction signal to the conversion direction terminal DIR of the second conversion unit 60. Therefore, the second conversion unit 60 converts the data signal of the second voltage input to the terminal C into a data signal of the first voltage and outputs it to the terminal D. However, since the first storage unit 20 is in a write operation and the third storage unit 40 is in a stopped state, the first storage unit 20 and the third storage unit 40 do not output data signals from the data output terminal SO. Therefore, the data signal of the second voltage is not input to the terminal C. Therefore, the second conversion unit 60 is in a standby state.

[0061] The first conversion unit 50-1 converts the clock signal of the first voltage input to the input terminal B2 into a clock signal of the second voltage and outputs it from the output terminal A2. The first conversion unit 50-1 also converts the data signal of the first voltage input to the input terminal B1 into a data signal of the second voltage and outputs it from the output terminal A1. The first storage unit 20 executes various processes at the timing of the clock signal input to the clock terminal CK. In detail, the first storage unit 20 stores the contents of the data signal of the second voltage input to the data input terminal SI while the first chip select signal of low level is input to the chip select terminal CS. This allows the control unit 10 to write information to the first storage unit 20.

[0062] [Reading process of the first storage unit 20] The following describes a case where the control unit 10 communicates with the first storage unit 20 and performs a read process on information stored in the first storage unit 20. The control unit 10 outputs a low-level first chip select signal from the first chip select terminal CS1, outputs a high-level second chip select signal from the second chip select terminal CS2, and outputs a high-level third chip select signal from the third chip select terminal CS3 until the read process is completed. The control unit 10 then outputs a data signal indicating a read command from the data output terminal SO, and waits until a data signal is input to the data input terminal SI. The second storage unit 30 stops the read operation and the write operation in response to the high-level second chip select signal being input to the chip select terminal CS.

[0063] The operation of the first conversion unit 50 and the operation of the generation unit 70b are omitted because they are similar to the write process of the first storage unit 20 described above. The third storage unit 40 stops the read operation and the write operation when a high-level third chip select signal is input to the chip select terminal CS.

[0064] When a low-level first chip select signal is input to the chip select terminal CS and a data signal of a second voltage input to the data input terminal SI indicates a read command, the first storage unit 20 executes a read process. In detail, the first storage unit 20 outputs a data signal indicating data designated by the read command from the data output terminal SO among the data to be stored.

[0065] The second conversion unit 60 receives a high-level signal as an instruction signal at the conversion direction terminal DIR. Therefore, the second conversion unit 60 converts the data signal of the second voltage input to the terminal C into a data signal of the first voltage and outputs it to the terminal D. The data signal converted to the first voltage is input to the data input terminal SI of the control unit 10. This allows the control unit 10 to read out information stored in the first storage unit 20.

[0066] [Writing process of the third storage unit 40] The following describes the case where the control unit 10 communicates with the third storage unit 40 and performs a write process on the third storage unit 40. Until the write process is completed, the control unit 10 outputs a high-level first chip select signal from the first chip select terminal CS1, outputs a high-level second chip select signal from the second chip select terminal CS2, and outputs a low-level third chip select signal from the third chip select terminal CS3. Then, the control unit 10 outputs a write command and a data signal indicating the information to be written from the data output terminal SO. The second storage unit 30 stops the read operation and the write operation in response to the high-level second chip select signal being input to the chip select terminal CS.

[0067] The operation of the first conversion unit 50 is not described here because it is the same as the processing related to the first storage unit 20 described above. When a high-level first chip select signal is input to the chip select terminal CS, the first storage unit 20 stops the read operation and the write operation.

[0068] A high-level first chip select signal is input to the input terminal t1 of the generating unit 70b, and a low-level third chip select signal is input to the input terminal t3. The NAND circuit CT2 included in the generating unit 70b calculates the logical product of the high-level first chip select signal and the low-level third chip select signal, and inverts the calculation result. In other words, the generating unit 70b outputs a high-level signal as an instruction signal from the output terminal t2.

[0069] A high-level signal is input as an instruction signal to the conversion direction terminal DIR of the second conversion unit 60. Therefore, the second conversion unit 60 converts the data signal of the second voltage input to the terminal C into a data signal of the first voltage and outputs it to the terminal D. However, since the third storage unit 40 is in a write operation and the first storage unit 20 is in a stopped state, the first storage unit 20 and the third storage unit 40 do not output a data signal from the data output terminal SO. Therefore, the data signal of the second voltage is not input to the terminal C. Therefore, the second conversion unit 60 is in a standby state.

[0070] The third storage unit 40 executes various processes at the timing of the clock signal input to the clock terminal CK. In detail, the third storage unit 40 stores the contents of the data signal of the second voltage input to the data input terminal SI while a low-level third chip select signal is input to the chip select terminal CS. This allows the control unit 10 to write information to the third storage unit 40.

[0071] [Reading process of the third storage unit 40] The following describes a case where the control unit 10 communicates with the third storage unit 40 and performs a read process on information stored in the third storage unit 40. The control unit 10 outputs a high-level first chip select signal from the first chip select terminal CS1, outputs a high-level second chip select signal from the second chip select terminal CS2, and outputs a low-level third chip select signal from the third chip select terminal CS3 until the read process is completed. The control unit 10 then outputs a data signal indicating a read command from the data output terminal SO, and waits until a data signal is input to the data input terminal SI. The second storage unit 30 stops the read operation and the write operation in response to the high-level second chip select signal being input to the chip select terminal CS.

[0072] The operation of the first conversion unit 50 and the operation of the generation unit 70b are similar to the above-mentioned processing related to the first storage unit 20 or the write processing of the third storage unit 40, and therefore will not be described here. The first storage unit 20 stops the read operation and the write operation when a high-level third chip select signal is input to the chip select terminal CS.

[0073] The third storage unit 40 executes a read process when a low-level third chip select signal is input to the chip select terminal CS and the data signal of the second voltage input to the data input terminal SI indicates a read command. In detail, the third storage unit 40 outputs a data signal indicating data designated by the read command from the data output terminal SO among the data to be stored.

[0074] The second conversion unit 60 receives a high-level signal as an instruction signal at the conversion direction terminal DIR. Therefore, the second conversion unit 60 converts the data signal of the second voltage input to the terminal C into a data signal of the first voltage and outputs it to the terminal D. The data signal converted to the first voltage is input to the data input terminal SI of the control unit 10. This enables the control unit 10 to read out information stored in the third storage unit 40.

[0075] [Writing process of the second storage unit 30] The following describes the case where the control unit 10 communicates with the second storage unit 30 and performs a write process on the second storage unit 30. Until the write process is completed, the control unit 10 outputs a high-level first chip select signal from the first chip select terminal CS1, outputs a low-level second chip select signal from the second chip select terminal CS2, and outputs a high-level third chip select signal from the third chip select terminal CS3. Then, the control unit 10 outputs a write command and a data signal indicating the information to be written from the data output terminal SO.

[0076] The operation of the first conversion unit 50 is the same as the processing related to the first storage unit 20 and the third storage unit 40 described above, and therefore a description thereof will be omitted. The first storage unit 20 and the third storage unit 40 stop reading and writing operations when a high-level first chip select signal is input to the chip select terminal CS. In addition, since the first storage unit 20 and the third storage unit 40 stop reading and writing operations, they do not process the data signal converted by the first conversion unit 50-1.

[0077] A high-level first chip select signal is input to the input terminal t1 of the generating unit 70b, and a high-level third chip select signal is input to the input terminal t3. The NAND circuit CT2 included in the generating unit 70b calculates the logical product of the high-level first chip select signal and the high-level third chip select signal, and inverts the calculation result. That is, the generating unit 70b outputs a low-level signal as an instruction signal from the output terminal t2. Therefore, a low-level signal is input as an instruction signal to the conversion direction terminal DIR of the second conversion unit 60. As described above, when a low-level signal is input as an instruction signal to the conversion direction terminal DIR, the second conversion unit 60 stops the conversion operation.

[0078] The second storage unit 30 stores the contents of the data signal of the first voltage input to the data input terminal SI while the second chip select signal of low level is input to the chip select terminal CS. This allows the control unit 10 to write information to the second storage unit 30.

[0079] [Reading process of second storage unit 30] The following describes a case where the control unit 10 communicates with the second storage unit 30 and performs a read process on information stored in the second storage unit 30. Until the read process is completed, the control unit 10 outputs a high-level first chip select signal from the first chip select terminal CS1, outputs a low-level second chip select signal from the second chip select terminal CS2, and outputs a high-level third chip select signal from the third chip select terminal CS3. The control unit 10 then outputs a data signal indicating a read command from the data output terminal SO, and waits until a data signal is input to the data input terminal SI.

[0080] The operation of the first conversion unit 50 and the operation of the generation unit 70b are similar to the processing related to the first storage unit 20 and the third storage unit 40 described above, and therefore a description thereof will be omitted. The first storage unit 20 and the third storage unit 40 stop reading and writing operations when a high-level first chip select signal is input to the chip select terminal CS. In addition, since the first storage unit 20 and the third storage unit 40 stop reading and writing operations, they do not process the data signal converted by the first conversion unit 50-1.

[0081] A low-level signal is input as an instruction signal to the conversion direction terminal DIR of the second conversion unit 60, and therefore the conversion operation is stopped. The second storage unit 30 executes a read process when a low-level second chip select signal is input to the chip select terminal CS and the data signal of the first voltage input to the data input terminal SI indicates a read command. In detail, the second storage unit 30 outputs a data signal indicating data designated by the read command from among the data to be stored, from the data output terminal SO. The data signal of the first voltage is input to the data input terminal SI of the control unit 10. This enables the control unit 10 to read out information stored in the second storage unit 30.

[0082] [When not communicating with the memory unit] Hereinafter, a case where the control unit 10 and the storage unit do not communicate with each other will be described. The control unit 10 outputs a high-level first chip select signal from the first chip select terminal CS1, outputs a high-level second chip select signal from the second chip select terminal CS2, and outputs a high-level third chip select signal from the third chip select terminal CS3. The first storage unit 20 stops the read operation and the write operation in response to the high-level first chip select signal being input to the chip select terminal CS. The second storage unit 30 stops the read operation and the write operation in response to the high-level second chip select signal being input to the chip select terminal CS. The third storage unit 40 stops the read operation and the write operation in response to the high-level third chip select signal being input to the chip select terminal CS.

[0083] [Effects of the control device 2 of the second embodiment] According to the present embodiment described above in detail, the following effects are achieved. (2-1) The control device 2 of this embodiment further includes a third storage unit 40 that operates at the second voltage and inputs and outputs a signal of the second voltage. The control unit 10, the first storage unit 20, the second storage unit 30, and the third storage unit 40 communicate serially with each other using the SPI protocol, and the first storage unit 20, the second storage unit 30, and the third storage unit 40 communicate with the control unit 10 when a low-level chip select signal is input. The chip select signal includes a first chip select signal, a second chip select signal, and a third chip select signal. The first conversion unit 50 converts the third chip select signal of the first voltage output by the control unit 10 into a third chip select signal of the second voltage. The first storage unit 20 receives the first chip select signal converted to the second voltage, the third storage unit 40 receives the third chip select signal converted to the second voltage, and the second storage unit 30 receives the second chip select signal of the first voltage output by the control unit 10. The generation unit 70b is realized by a NAND circuit CT2, which generates, as an instruction signal, a signal that is an inverted logical product of the first chip select signal converted to a second voltage by the first conversion unit 50 and the third chip select signal converted to a second voltage by the first conversion unit 50.

[0084] As in the control device 2 of this embodiment, by providing the first conversion unit 50 and the second conversion unit 60 between the control unit 10 and the first storage unit 20 and the third storage unit 40, the control unit 10 can communicate with the first storage unit 20 and the third storage unit 40 by the converted signals. Therefore, the control unit 10 can communicate with a plurality of storage units, such as the first storage unit 20, the third storage unit 40, and the second storage unit 30, which have different operating voltages, by the signals converted by the first conversion unit 50 and the second conversion unit 60.

[0085] Furthermore, the control device 2 of this embodiment can control the conversion operation of the second conversion unit 60 without providing a terminal for outputting an instruction signal to the control unit 10 or a first conversion unit 50 for converting an instruction signal of a first voltage into an instruction signal of a second voltage.

[0086] The above-described embodiments may be modified as follows: The above-described embodiments and the following examples may be combined with each other as long as they are not technically inconsistent. The control device 1 does not need to have wiring on which the third storage unit 40 can be mounted. In this case, the wiring L21, L22, L23, L24, etc. only need to connect the first conversion unit 50 and the second conversion unit 60 to the first storage unit 20, and do not need to be connected to the pad on which the third storage unit 40 is mounted.

[0087] The first conversion units 50-1 and 50-2 may be implemented by one first conversion unit 50. In this case, the first conversion unit 50 has output terminals A1 to A4 and input terminals B1 to B4, and has four circuits that convert signals of the first voltage into signals of the second voltage.

[0088] When a low-level signal is input to the conversion direction terminal DIR, the second conversion unit 60 may convert the signal of the first voltage into a signal of the second voltage. For example, when a low-level signal is input to the conversion direction terminal DIR, both the first storage unit 20 and the third storage unit 40 stop reading and writing operations. Therefore, even if the potential of the wiring L12 connected to the terminal D of the second conversion unit 60 changes due to communication between the control unit 10 and the second storage unit 30, and the second conversion unit 60 converts the change in potential from the first voltage to the second voltage as a signal, the first storage unit 20 and the second storage unit 30 are not affected.

[0089] The storage unit may input and output a data signal when the input chip select signal is at a high level. In this case, the control device 1 may not include the generation unit 70a and the wiring L25, and the wiring L26 may be connected to the conversion direction terminal DIR of the second conversion unit 60. The generation unit 70b may include an EXOR circuit or the like instead of the NAND circuit CT2.

[0090] The control device 2 may include either the first storage unit 20 or the third storage unit 40. [Explanation of symbols]

[0091] 1, 2...control device, 10...control unit, 20...first memory unit, 30...second memory unit, 40...third memory unit, 50, 50-1, 50-2...first conversion unit, 60...second conversion unit, 70a, 70b...generation unit, CT1...NOT circuit, CT2...NAND circuit, PU, ​​PU1, PU2...pull-up circuits.

Claims

1. a control unit that controls a controlled object by a signal of a first voltage; a first storage unit that operates at a second voltage different from the first voltage and inputs and outputs a signal of the second voltage; a second storage unit that operates at the first voltage and inputs and outputs a signal of the first voltage; a first conversion unit that converts the first voltage signal into the second voltage signal; a second conversion unit that converts the signal of the second voltage into the signal of the first voltage or stops the conversion operation based on a binary instruction signal of a first level or a second level; a generating unit that generates the instruction signal, the control unit, the first storage unit, and the second storage unit communicate serially with each other using an SPI (Serial Peripheral Interface) protocol; the first storage unit and the second storage unit communicate with the control unit when a chip select signal of a second level is input; the first conversion unit converts the data signal of the first voltage output by the control unit into the data signal of the second voltage, converts the clock signal of the first voltage output by the control unit into the clock signal of the second voltage, and converts the chip select signal of the first voltage output by the control unit into the chip select signal of the second voltage; the second conversion unit converts the data signal of the second voltage output by the first storage unit into the data signal of the first voltage when the instruction signal is at a first level, and stops a conversion operation when the instruction signal is at a second level; The chip select signal converted to the second voltage is input to the first storage unit. A control device comprising:

2. the chip select signals include a first chip select signal and a second chip select signal; the first storage unit receives the first chip select signal converted to the second voltage; a second chip select signal of the first voltage output by the control unit is input to the second storage unit, the generating unit is a NOT circuit, the NOT circuit generates, as the instruction signal, an inverted signal of the first chip select signal converted to the second voltage by the first conversion unit; The control device according to claim 1 .

3. a third storage unit that operates at the second voltage and inputs and outputs a signal of the second voltage, the control unit, the first storage unit, the second storage unit, and the third storage unit communicate serially with each other using an SPI protocol; the first storage unit, the second storage unit, and the third storage unit communicate with the control unit when the chip select signal of a second level is input; the chip select signals include a first chip select signal, a second chip select signal, and a third chip select signal; the first conversion unit converts the third chip select signal of the first voltage output by the control unit into a third chip select signal of the second voltage; the first storage unit receives the first chip select signal converted to the second voltage; the third storage unit receives the third chip select signal converted into the second voltage, a second chip select signal of the first voltage output by the control unit is input to the second storage unit, the generating unit is a NAND circuit, the NAND circuit generates, as the indication signal, a signal obtained by inverting a logical product of the first chip select signal converted to the second voltage by the first conversion unit and the third chip select signal converted to the second voltage by the first conversion unit. The control device according to claim 1 .

Citation Information

Patent Citations

  • Semiconductor device and memory access method

    JP2014106604A

  • Intelligent connectors and bus controllers

    JP2015531110A

  • Optical transceiver and control method of the same

    JP2020150525A

  • Communication modem for supporting multiple interfaces and method of setting an interface in the same

    US20140355657A1

  • Bus system

    US20170153997A1