Communication module
The communication module addresses the issue of setting mismatches in high-frequency communication systems by employing error detection mechanisms in its serial interfaces to prevent incorrect command execution, ensuring consistent configurations across slave devices.
Patent Information
- Application Number
- PCT/JP2024/004286
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-19
- Filing Date
- 2024-02-08
- Publication Date
- 2024-10-24
AI Technical Summary
In high-frequency communication modules, reception errors can lead to mismatches in settings between slave devices when a command intended for one device is received by another, causing inconsistencies in their configurations.
The implementation of a communication module with a first and second slave device connected via a serial bus, each having storage units and serial interfaces that detect command reception errors, preventing execution of commands intended for the wrong device by setting values in registers only when errors are detected, thus minimizing setting mismatches.
This solution reduces the likelihood of setting mismatches between slave devices by ensuring that commands are correctly executed only for their intended recipients, maintaining consistency in their configurations and operations.
Smart Images

Figure JP2024004286_24102024_PF_FP_ABST
Abstract
Description
Communication Module
[0001] The present invention relates to a communication module.
[0002] A technique for performing data communication between a master device and multiple slave devices via a serial bus in a high-frequency communication module is known (see Patent Document 1). A slave ID for identification is assigned to each of the multiple slave devices. When the master device transmits a command via the serial bus specifying a slave ID that designates one of the multiple slave devices, the slave device having the slave ID set in the command executes processing according to the command.
[0003] Each of the plurality of slave devices has a monitor unit that receives and stores a command in which a slave ID that designates another slave device is set. The monitor unit of each of the plurality of slave devices can receive commands addressed to the other slave device and modify its own settings in response to the commands.
[0004] US Patent Application Publication No. 2016 / 0242057
[0005] When one slave device receives a command that sets its own slave ID, a reception error may occur. If a reception error occurs, the slave device will not change the settings according to the command. In this case, if the monitor unit of another slave device receives this command and executes the command, a mismatch in the settings between the two slave devices may occur.
[0006] An object of the present invention is to provide a communication module that can prevent inconsistencies in settings between slave devices when a command sent to one slave device is also received by another slave device.
[0007] According to one aspect of the present invention, there is provided a system comprising a first slave device and a second slave device connected to a serial bus and assigned different slave IDs, wherein the second slave device comprises: a second storage unit including a plurality of registers; and a second serial interface unit that receives a command specifying the slave ID of the second slave device through the serial bus and sets a result of executing a process corresponding to the received command in at least one register of the second storage unit; the first slave device comprises: a first storage unit including a plurality of registers; a second sub-storage unit including at least one register; a first serial interface unit that receives a command specifying the slave ID of the first slave device through the serial bus and sets a result of executing a process corresponding to the received command in at least one register of the first storage unit; and a second sub-serial interface unit that receives a command specifying the slave ID of the second slave device through the serial bus and sets a result of executing a process corresponding to the received command in at least one register of the second sub-storage unit; and the second serial interface unit has a function of detecting a command reception error, and when a reception error is detected, does not execute a process of setting a value in the register of the second storage unit corresponding to the command in which the reception error was detected, The second secondary serial interface unit has a function of detecting a command reception error, and when a reception error is detected, a communication module is provided that does not execute the process of setting the value of the register of the second secondary memory unit according to the command for which the reception error was detected.
[0008] When the second secondary serial interface unit of the first slave device detects a command reception error, it does not perform the process of setting the register value of the second secondary memory unit, just like the second serial interface unit of the second slave device, so that inconsistencies in the setting contents are less likely to occur between the first slave device and the second slave device.
[0009] FIG. 1 is a block diagram of a communication module according to a first embodiment. FIGS. 2A and 2B are diagrams showing a plurality of registers included in the second memory unit and the second sub-memory unit, respectively. FIG. 3 is a block diagram of a first slave device and a second slave device. FIG. 4 is a flowchart showing a processing procedure executed by the second sub-serial interface unit of the first slave device. FIG. 5 is a block diagram of a communication module according to a comparative example. FIG. 6 is a flowchart showing a processing procedure executed by the second sub-serial interface unit of the first slave device of the communication module according to the second embodiment. FIG. 7A is a block diagram of a portion of the first slave device of a communication module according to a third embodiment, and FIG. 7B is a truth table of the setting value PA_Enable_Original, the output value Valid, and the output value PA_Enable.
[0010] [First Embodiment] A communication module according to a first embodiment will be described with reference to Figures 1, 2, and 3. Figure 1 is a block diagram of a communication module 50 according to the first embodiment. A master device 30, a first slave device 10, and a second slave device 20 are connected to a serial bus 40. Serial data (SDATA) such as various information, such as commands for performing various settings and operations, and response messages to commands, is communicated between the master device 30 and the first slave device 10, and between the master device 30 and the second slave device 20. A clock signal (SCLK) is transmitted from the master device 30 to the first slave device 10 and the second slave device 20 via a clock line 41.
[0011] A slave ID is assigned to the first slave device 10 and the second slave device 20 to identify one of the multiple slave devices. The IDs assigned to the first slave device 10 and the second slave device 20 are denoted as #1 and #2, respectively. A command sent from the master device 30 through the serial bus 40 includes a slave ID to identify the slave device to which the command is addressed.
[0012] The second slave device 20 includes a second serial interface unit 21, a second storage unit 22, a second decoder 23, and a second function unit 24. The second storage unit 22 includes a plurality of registers for setting various information. The second serial interface unit 21 receives a command through the serial bus 40, determines whether the slave ID set in the received command is its own slave ID #2, and executes processing according to the command in which its own slave ID #2 is set.
[0013] If the received command is a command to set a value in a register, the second serial interface unit 21 writes the value specified in the received command to the corresponding register in the second storage unit 22. If the received command is a command to read a value from a register, the second serial interface unit 21 reads the value of the corresponding register in the second storage unit 22 and returns a message notifying the master device 30 of the register value. If the received command is a command to change the slave ID, the second serial interface unit 21 changes its own slave ID #2 to the value specified in the command. The value of the changed slave ID #2 is stored in a slave ID storage unit 216 in the second serial interface unit 21, which will be described later with reference to FIG. 3.
[0014] The second decoder 23 decodes the values of the multiple registers in the second storage unit 22 and transmits a control value that characterizes the operation of the second functional unit 24 to the second functional unit 24. The second functional unit 24 is, for example, an antenna switch that connects multiple power amplifiers to multiple antennas. The second functional unit 24 is set to a state in which one of the multiple power amplifiers is connected to one of the multiple antenna elements, for example, by the control value from the second decoder 23.
[0015] The first slave device 10 includes a first serial interface unit 11, a first storage unit 12, a first decoder 13, a first function unit 14, a second sub-serial interface unit 21S, and a second sub-storage unit 22S. The first storage unit 12 includes a plurality of registers for setting various information. The first serial interface unit 11 receives a command set with a slave ID #1 that specifies the first slave device 10, and executes processing according to the command.
[0016] If the received command is a command to set a value in a register, the first serial interface unit 11 writes the value specified in the received command to the corresponding register in the first storage unit 12. If the received command is a command to read a register value, the first serial interface unit 11 reads the value of the corresponding register in the first storage unit 12 and returns a message notifying the master device 30 of the register value. If the received command is a command to change the slave ID, the first serial interface unit 11 changes its own slave ID #1 to the value specified in the command. The changed value of slave ID #1 is stored in the slave ID storage unit in the first serial interface unit 11.
[0017] The second sub-serial interface unit 21S receives a command set with slave ID #2 that designates the second slave device 20, and executes processing according to the command. That is, the first slave device 10 receives not only commands addressed to the first slave device 10, but also commands addressed to other second slave devices 20, and executes processing according to the commands.
[0018] If the received command is a command to set a value in a register, the second sub-serial interface unit 21S writes the value specified in the received command to the corresponding register in the second sub-storage unit 22S. If the received command is a command to change the slave ID, the second sub-serial interface unit 21S changes its own slave ID #2 to the value specified in the command. The changed value of slave ID #2 is stored in a slave ID storage unit 216S in the second sub-serial interface unit 21S, which will be described later with reference to FIG. 3.
[0019] The first decoder 13 decodes the values of various registers in the first memory unit 12 and the second sub-memory unit 22S, and transmits control values that characterize the operation of the first functional unit 14 to the first functional unit 14. The first functional unit 14 is, for example, a power amplifier. The control values provided to the power amplifier include, for example, a control value for operating in a normal power mode, a control value for operating in a low power mode, and the like.
[0020] 2A is a diagram showing multiple registers included in the second storage unit 22. The meaning of each of the multiple registers will be explained below. The second storage unit 22 includes a first control register 221 and a second control register 222 for controlling the second function unit 24 (e.g., an antenna switch). The value of the second control register 222 is also used to control the first function unit 14 (power amplifier).
[0021] The second storage unit 22 also includes multiple registers. These registers will be briefly described below. The low power mode setting register 223 is a register that sets a register update trigger and a power mode. The product ID_1 register 224 and the manufacturer ID register 225 are registers in which a product ID (product ID) and a manufacturer ID (manufacturer ID) are set, respectively. The unique slave ID register 226 is a register in which a slave ID is set. The product ID_2 register 227 is a register in which an extended product ID is set. The group slave ID register 228 is a register in which a group slave ID is set. The error and reset register 229 includes an error flag and a flag for performing a soft reset. The fuse register 230 is a register for fuse control. The adjustment register 231 is a register for analog adjustment.
[0022] 2B is a diagram showing multiple registers included in the second secondary memory unit 22S. The second secondary memory unit 22S includes, among the multiple registers of the second memory unit 22, registers used to control the first functional unit 14 ( FIG. 1 ), registers required for changing the slave ID, registers used for error detection, and the like. Specifically, the second secondary memory unit 22S includes a second control register 222S, a low-power mode setting register 223S, a product ID_1 register 224S, an ID register 225S indicating the manufacturer, a unique slave ID register 226S, a product ID_2 register 227S, a group slave ID register 228S, and an error and reset register 229S. The meanings of these registers are the same as those of the corresponding registers in the second memory unit 22.
[0023] Of the registers in the second storage unit 22, the registers corresponding to the first control register 221, the Fuse register 230, and the adjustment register 231 are not included in the second sub-storage unit 22S. The values of the registers corresponding to the first control register 221, the Fuse register 230, and the adjustment register 231 are not used for controlling the first function unit 14 ( FIG. 1 ). For example, the second sub-storage unit 22S includes at least the registers necessary for controlling the first function unit 14. Note that the second sub-storage unit 22S does not have to include registers that are not necessary for controlling the first function unit 14, but may include them.
[0024] 3 is a block diagram of the first slave device 10 and the second slave device 20. First, the function of the second serial interface unit 21 of the second slave device 20 will be described. The data receiving unit 212 receives a command transmitted over the serial bus 40. The error detecting unit 211 detects errors in the received command. For example, the command is provided with an error detecting code such as a parity bit, and the error detecting unit 211 detects a reception error in the command based on the error detecting code and provides the error detection result to the register write control unit 217.
[0025] The initial value of its own slave ID #2 is stored in the ID initial value storage unit 214. When the second slave device 20 is reset, the initial value of the slave ID is set in the slave ID storage unit 216. If no error is detected in the received command, the command is a command to update the slave ID, and the destination of the command is its own current slave ID, the slave ID update unit 213 updates the value of the slave ID stored in the slave ID storage unit 216 to the value specified in the command. From the next command onwards, the slave ID of the destination of the command is compared with the updated slave ID. Note that the value stored in the slave ID storage unit 216 is the same as the value stored in the unique slave ID register 226 (FIG. 2A) of the second storage unit 22.
[0026] The ID comparison unit 215 compares the value of the slave ID set in the command received by the data receiving unit 212 with the value of the slave ID stored in the slave ID memory unit 216, and provides the comparison result to the register write control unit 217.
[0027] When the received command is a command to rewrite the value of a register, the data receiving unit 212 stores the address of the target register in the second storage unit 22 in the register address holding unit 218 based on the content of the received command. Furthermore, the data receiving unit 212 stores the value (data) to be set in the write data holding unit 219 based on the content of the command.
[0028] If the error detection unit 211 does not detect an error and the comparison result by the ID comparison unit 215 is "match," the register write control unit 217 writes the data stored in the write data holding unit 219 to the register specified by the address stored in the register address holding unit 218. If the error detection unit 211 detects an error or the comparison result by the ID comparison unit 215 is "mismatch," the register write control unit 217 does not write data to the second storage unit 22. In other words, the process of setting the register value is not executed.
[0029] Next, the functions of the first serial interface unit 11 and the second sub-serial interface unit 21S of the first slave device 10 will be described. The second sub-serial interface unit 21S includes an error detection unit 211S, a data receiving unit 212S, a slave ID update unit 213S, an ID initial value storage unit 214S, an ID comparison unit 215S, a slave ID storage unit 216S, a register write control unit 217S, a register address holding unit 218S, and a write data holding unit 219S. The functions of these blocks are the same as the functions of the corresponding blocks of the second serial interface unit 21.
[0030] The initial ID value stored in the ID initial value storage unit 214S of the second sub-serial interface unit 21S is the same as the initial ID value stored in the ID initial value storage unit 214 of the second serial interface unit 21. A command to update the slave ID is received by both the second serial interface unit 21 and the second sub-serial interface unit 21S, and the values in the slave ID storage unit 216 of the second serial interface unit 21 and the slave ID storage unit 216S of the second sub-serial interface unit 21S are updated simultaneously. Therefore, the value in the slave ID storage unit 216 of the second serial interface unit 21 and the value in the slave ID storage unit 216S of the second sub-serial interface unit 21S are always the same. The value stored in the slave ID storage unit 216S is the same as the value stored in the unique slave ID register 226S ( FIG. 2B ) of the second sub-storage unit 22S.
[0031] The function of the first serial interface unit 11 is the same as the function of the second serial interface unit 21, so a detailed description thereof will be omitted. Note that the initial value of the slave ID of the first serial interface unit 11 is different from the initial value of the slave ID of the second serial interface unit 21.
[0032] Next, a processing procedure executed by the second sub-serial interface unit 21S (FIG. 1) of the first slave device 10 will be described with reference to Fig. 4. Fig. 4 is a flowchart showing the processing procedure executed by the second sub-serial interface unit 21S (FIG. 1) of the first slave device 10. When the second sub-serial interface unit 21S receives a command addressed to the second slave device 20 (step S1), it decodes the command (step S2).
[0033] If the received command is a command to read a register value, the command reception process ends without executing the register value read process. Note that the second serial interface unit 21 of the second slave device 20, which is assigned the same slave ID #2 as the slave ID #2 of the second sub-serial interface unit 21S, also receives the same command. In response to the received command, the second serial interface unit 21 reads the register value and transmits a reply message to the master device 30.
[0034] If the command received by the second sub-serial interface unit 21S is not a command for reading a register value, the second sub-serial interface unit 21S performs an operation according to the content of the command (step S4). When the reception process for one command is completed, the processing procedure shown in FIG. 4 is resumed, and the next command detection process is executed.
[0035] Next, the excellent effects of the first embodiment will be described in comparison with a comparative example shown in FIG. 5. FIG. 5 is a block diagram of a communication module 50 according to the comparative example. Unlike the first embodiment (FIG. 1), the first slave device 10 of the communication module 50 according to the comparative example does not include a second auxiliary serial interface unit 21S and a second auxiliary memory unit 22S. Instead, information stored in the second memory unit 22 of the second slave device 20 is provided to the first decoder 13 of the first slave device 10. As a result, the number of wires between the first slave device 10 and the second slave device 20 increases.
[0036] The wiring connecting the first slave device 10 and the second slave device 20 is arranged inside the module substrate on which the first slave device 10 and the second slave device 20 are mounted. Since it is necessary to secure space for laying out the wiring inside the module substrate, the dimensions of the communication module 50 end up being large.
[0037] In contrast, in the first embodiment, the second auxiliary storage unit 22S that stores the information to be input to the first decoder 13 is located within the first slave device 10, so there is no need to provide wiring for transferring the information in the second storage unit 22 between the first slave device 10 and the second slave device 20. This makes it possible to reduce the size of the communication module 50.
[0038] When the second serial interface unit 21 of the second slave device 20 receives a command to update its slave ID #2, it updates its own slave ID #2. This command is also received by the second sub-serial interface unit 21S of the first slave device 10, and the second sub-serial interface unit 21S updates its own slave ID #2. Therefore, no mismatch occurs in the value of the slave ID #2 between the second serial interface unit 21 of the second slave device 20 and the second sub-serial interface unit 21S of the first slave device 10.
[0039] If an error is contained in a command transmitted over the serial bus 40 and addressed to the second slave device 20, the error is detected in the second slave device 20, and the register rewrite process corresponding to the command is not executed. In the first embodiment, the error detection unit 211S (FIG. 3) of the second sub-serial interface unit 21S of the first slave device 10 has the same command reception error detection function as the error detection unit 211 (FIG. 3) of the second serial interface unit 21 of the second slave device 20.
[0040] Therefore, if an error is contained in a command transmitted over the serial bus 40 and addressed to the second slave device 20, the error is also detected in the second secondary serial interface unit 21S of the first slave device 10, and the register rewrite process corresponding to the command is not executed. This prevents a mismatch between the register values in the second storage unit 22 and the register values in the second secondary storage unit 22S. This makes it possible to maintain the consistency of operation between the first functional unit 14 of the first slave device 10 and the second functional unit 24 of the second slave device 20.
[0041] In the first embodiment, even if the second sub-serial interface unit 21S (FIG. 1) of the first slave device 10 receives a command to read a register value, it does not execute the register read process (step S3 in FIG. 4). This avoids a conflict in which both the second serial interface unit 21 (FIG. 1) and the second sub-serial interface unit 21S (FIG. 1) respond to a single register read command for which the slave ID #2 of the second slave device 20 is set.
[0042] Next, a modification of the first embodiment will be described. In the first embodiment, the first slave device 10 and the second slave device 20 are connected to the serial bus 40, but three or more slave devices may be connected. If the contents of the memory units of not only the second slave device 20 but also other slave devices (e.g., a third slave device) are to be used during operation of the first slave device 10, the first slave device 10 may include a third secondary serial interface unit and a third secondary memory unit. The third secondary serial interface unit of the first slave device 10 receives a command addressed to the third slave device and performs processing according to the command. The register value of the third secondary memory unit of the first slave device 10 becomes the same as the corresponding register value of the memory unit of the third slave device. At this time, the first decoder 13 transmits a control value based on the register values of the first memory unit 12, the second secondary memory unit 22S, and the third secondary memory unit to the first function unit 14.
[0043] When at least one slave device other than the first slave device 10 (for example, a third slave device) operates using values in the memory units of the other slave devices, the third slave device may be provided with a secondary serial interface unit and a secondary memory unit having functions similar to those of the second secondary serial interface unit 21S and the second secondary memory unit 22S of the first slave device 10 (Figure 1).
[0044] Second Embodiment Next, a communication module according to a second embodiment will be described with reference to Fig. 6. Below, a description of the configuration common to the communication module according to the first embodiment described with reference to Figs. 1 to 4 will be omitted.
[0045] The communication module according to the second embodiment has two operating modes: an operational mode and a test mode. The operating mode is set when the second serial interface unit 21 and the second sub-serial interface unit 21S receive a command addressed to the second slave device 20. Fig. 6 is a diagram showing whether the second sub-serial interface unit 21S (Fig. 1) of the first slave device 10 and the second serial interface unit 21 of the second slave device 20 read register values when they receive a command addressed to them requesting that the values be read from the registers.
[0046] When the operation mode is the operation mode, upon receiving a command requesting the reading of a register value, the second serial interface unit 21 reads the register value and returns a message to the master device 30. At this time, the second sub-serial interface unit 21S also receives the same command, but the second sub-serial interface unit 21S does not read the register value or return a message to the master device 30. When the operation mode is the test mode, it is possible to set the second serial interface unit 21 so that it does not read register values, or to set the second sub-serial interface unit 21S so that it does not read register values. If the second serial interface unit 21 is set not to read register values, the second serial interface unit 21 does not return a message to the master device 30. Instead, the second sub-serial interface unit 21S reads the register value and returns a message to the master device 30.
[0047] When the master device 30 sets the slave ID of the second slave device 20 and sends a command requesting the reading of the register value, only one of the second serial interface unit 21 and the second sub-serial interface unit 21S returns a message, thereby avoiding conflicts in return messages.
[0048] Next, the advantageous effects of the second embodiment will be described. In the second embodiment, by setting the operation mode of the second secondary storage unit 22S to test mode, the master device 30 can read the register values of the second secondary storage unit 22S. This makes it easier to test and debug the communication module.
[0049] [Third Example] Next, a communication module according to a third example will be described with reference to Figures 7A and 7B. Below, a description of the configuration common to the communication module according to the first example described with reference to Figures 1 to 4 will be omitted.
[0050] 7A is a block diagram of a portion of the first slave device 10 of the communication module according to the third embodiment. The first storage unit 12 includes an operation enable register 121 that specifies whether the first functional unit 14 is enabled. The setting value PA_Enable_Original of the operation enable register 121 can take either the value "function enabled: 1" or "function disabled: 0." The setting value PA_Enable_Original being "function enabled: 1" means that the first slave device 10 has received a command to operate the first functional unit 14.
[0051] The first decoder 13 includes a partial decoder 13A and an enable / disable determination unit 13B. The values of some registers in the second sub-storage unit 22S are decoded by the partial decoder 13A to output an output value Valid. The output value Valid can take either a value of "valid: 1" or a value of "invalid: 0". If the value of the output value Valid is "invalid: 0", this means that when operating the first functional unit 14, the setting value of the second storage unit 22 of the second slave device 20 is not normal, and therefore there is a possibility that a problem will occur in the linked operation of the first functional unit 14 and the second functional unit 24.
[0052] The enable determination unit 13B outputs an output value PA_Enable based on the set value PA_Enable_Original and the output value Valid. The output value PA_Enable can take either a value of "valid state: 1" or a value of "invalid state: 0".
[0053] 7B is a truth table of the set value PA_Enable_Original, the output value Valid, and the output value PA_Enable. The enable / disable determination unit 13B is configured with an AND circuit, and the value of the output value PA_Enable becomes "valid state: 1" only when the value of the set value PA_Enable_Original is "function enabled: 1" and the value of the output value Valid is "valid: 1". In other cases, the value of the output value PA_Enable is "invalid state: 0".
[0054] That is, only when the value of the register of the second secondary storage unit 22S is valid, the first function unit 14 is set to the valid state, that is, the first function unit 14 operates.
[0055] Next, the advantageous effects of the third embodiment will be described. In the third embodiment, when a command to operate the first functional unit 14 of the first slave device 10 is received, if the information for controlling the second functional unit 24 of the second slave device 20, i.e., the register value of the second secondary storage unit 22S, does not satisfy the condition for operating the first functional unit 14 (if the value of the output value Valid is "invalid: 0"), the first functional unit 14 is not operated. This prevents problems from occurring in the linked operation of the first functional unit 14 and the second functional unit 24.
[0056] As an example, if the first functional unit 14 is a power amplifier and the second functional unit 24 is an antenna switch that sets a transmission path between the power amplifier and an antenna, operating the power amplifier with an incorrect antenna switch setting may result in the power amplifier failing. In the third embodiment, the power amplifier does not operate if the antenna switch setting is incorrect. This prevents the power amplifier from failing due to a mismatch between the states of the first slave device 10 and the second slave device 20.
[0057] The above-described embodiments are merely examples, and it goes without saying that partial substitution or combination of the configurations shown in different embodiments is possible. Similar effects resulting from similar configurations of multiple embodiments will not be mentioned sequentially for each embodiment. Furthermore, the present invention is not limited to the above-described embodiments. For example, it will be obvious to those skilled in the art that various modifications, improvements, combinations, etc. are possible.
[0058] 10 First slave device 11 First serial interface unit 12 First storage unit 13 First decoder 13A Partial decoder 13B Enable / disable determination unit 14 First function unit 20 Second slave device 21 Second serial interface unit 21S Second sub-serial interface unit 22 Second storage unit 22S Second sub-storage unit 23 Second decoder 24 Second function unit 30 Master device 40 Serial bus 41 Clock line 50 Communication module 121 Operation enable register 211, 211S Error detection unit 212, 212S Data receiving unit 213, 213S Slave ID update unit 214, 214S ID initial value storage unit 215, 215S ID comparison unit 216, 216S Slave ID storage unit 217, 217S Register write control unit 218, 218S Register address holding unit 219, 219S Write data holding unit 221 First control register 222, 222S Second control register 223, 223S Low power mode setting register 224, 224S Product ID_1 register 225, 225S ID register indicating manufacturer 226, 226S Unique slave ID register 227, 227S Product ID_2 register 228, 228S Group slave ID register 229, 229S Error and reset register 230 Fuse register 231 Adjustment register
Claims
1. A system comprising a first slave device and a second slave device connected to a serial bus and assigned different slave IDs, the second slave device comprising: a second storage unit including a plurality of registers; and a second serial interface unit configured to receive a command specifying the slave ID of the second slave device through the serial bus and set a result of executing a process corresponding to the received command in at least one register of the second storage unit; the first slave device comprising: a first storage unit including a plurality of registers; a second sub-storage unit including at least one register; a first serial interface unit configured to receive a command specifying the slave ID of the first slave device through the serial bus and set a result of executing a process corresponding to the received command in at least one register of the first storage unit; and a second sub-serial interface unit configured to receive a command specifying the slave ID of the second slave device through the serial bus and set a result of executing a process corresponding to the received command in at least one register of the second sub-storage unit; the second serial interface unit having a function of detecting a command reception error, and upon detecting a reception error, not executing a process of setting a value in a register of the second storage unit corresponding to the command in which the reception error was detected, The second secondary serial interface unit has a function of detecting a command reception error, and when a reception error is detected, the second secondary serial interface unit does not execute a process of setting the value of a register of the second secondary memory unit corresponding to the command for which the reception error was detected.
2. The communication module described in claim 1, wherein when the second serial interface unit receives a command to update the slave ID, it updates its own slave ID in accordance with the contents of the received command, and when the second sub-serial interface unit receives a command to update the slave ID for the second slave device, it updates its own slave ID in accordance with the contents of the received command.
3. A communication module as described in claim 1 or 2, wherein the second serial interface unit, when receiving a command to read the value of the register of the second memory unit, replies with a message including the value of the register of the second memory unit, and the second sub-serial interface unit, even when receiving a command to read the value of the register of the second memory unit, does not replies with a message.
4. A communications module as described in claim 3, wherein the second secondary serial interface unit can be configured to return a message setting the value of the register of the second secondary memory unit when it receives a command to read the value of the register of the second secondary memory unit.
5. A communications module described in any one of claims 1 to 4, wherein the second sub-memory unit includes a portion of the multiple registers of the second memory unit, and the remaining registers are not included in the second sub-memory unit.
6. A communication module as described in any one of claims 1 to 5, wherein the first slave device further has a first functional unit that performs processing according to a value set in a register of the first memory unit and a value set in a register of the second sub-memory unit, and the second slave device further has a second functional unit that performs processing according to a value set in a register of the second memory unit.
7. A communications module as described in claim 6, wherein the first memory unit includes an operation enable register that specifies whether or not the first functional unit is enabled, and the first slave device further has an enable / disable determination unit that determines whether or not the value of the register of the second sub-memory unit is a normal value for operating the first functional unit, and if the value is not normal, does not set the first functional unit to an enabled state regardless of the value of the operation enable register.
Citation Information
Patent Citations
Communication device, communication method, program, and communication system
JP2017208712A
Circuits, devices, and methods for monitoring a serial bus
US20160242057A1
