Semiconductor device and electronic apparatus

By designing the logic circuit and output stage in the semiconductor device to enable the synchronization bit to pass through the output, the problem of sampling error accumulation in traditional semiconductor devices is solved, the risk of overflow errors is reduced, and the communication speed is maintained.

CN118575441AInactive Publication Date: 2024-08-30ROHM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202280088995.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-01-19
Filing Date
2022-12-09
Publication Date
2024-08-30
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Traditional semiconductor devices have accumulation of sampling errors in multi-level connections, resulting in an increased risk of overflow errors, and increasing the number of protection bits to prevent overflow errors will lead to a decrease in communication speed.

Method used

Design a semiconductor device, which includes a logic circuit and an output stage. The logic circuit samples the frame signal at a baud rate corresponding to the synchronization bit. The output stage passes the synchronization bit before sampling through the output without passing the synchronization bit through the logic circuit. , thereby avoiding the accumulation of sampling errors.

Benefits of technology

It effectively eliminates the accumulation of sampling errors in multi-level connections, reduces the possibility of overflow errors, while maintaining communication speed and avoiding the decrease in communication speed caused by too long protection bits.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118575441A
    Figure CN118575441A
Patent Text Reader

Abstract

A semiconductor device 1 serves as one of a plurality of slave devices connected to a master device in a plurality of stages, and sequentially transmits a frame signal output from the master device from a previous stage to a subsequent stage. The frame signal includes a synchronization bit SYNC and a message string MSG (e.g., a command bit CMD, an address bit ADR, and a guard bit GB) following the synchronization bit SYNC. The semiconductor device (1) includes a logic circuit (10) configured to sample the frame signal at a Baud rate corresponding to the synchronization bits, and an output stage (20) configured to directly output the synchronization bits (SYNC) before sampling without passing through the logic circuit (10).
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention disclosed herein relates to a semiconductor device and an electronic device including the semiconductor device. Background Art

[0002] Semiconductor devices having a serial communication function are used in various applications.

[0003] An example of known technology related to the technology that has just been mentioned is found in Patent Document 1 identified below.

[0004] Prior art literature

[0005] Patent Literature

[0006] Patent Document 1: Japanese Patent Application Laid-Open No. 06-177940 Summary of the invention

[0007] Problems to be solved by the invention

[0008] Inconveniently, conventional semiconductor devices leave room for improvement in coping with the accumulation of sampling errors in multi-stage connections.

[0009] In view of the above challenges encountered by the present inventors, an object of the present invention is to provide a semiconductor device capable of eliminating accumulation of sampling errors in multi-stage connections, and also to provide an electronic device including such a semiconductor device.

[0010] Means of solving problems

[0011] For example, according to one aspect of the disclosure, a semiconductor device is used as one of a plurality of slave devices connected to a master device in a plurality of stages. The semiconductor device is configured to sequentially transmit a frame signal output from the master device from a previous stage to a subsequent stage. The frame signal includes a synchronization bit and a message string following the synchronization bit. The semiconductor device includes a logic circuit and an output stage, the logic circuit being configured to sample the frame signal at a baud rate corresponding to the synchronization bit, and the output stage being configured to through-output the synchronization bit before sampling without passing the synchronization bit through the logic circuit.

[0012] Other features, elements, steps, benefits and characteristics of the present invention will become more apparent with reference to the following detailed description of preferred embodiments of the present invention with reference to the accompanying drawings.

[0013] Effects of the Invention

[0014] According to the invention disclosed herein, it is possible to provide a semiconductor device capable of eliminating accumulation of sampling errors in multi-stage connections, and also provide an electronic device including such a semiconductor device. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 It is a schematic diagram showing a structural example of an electronic device.

[0016] Figure 2 It is a schematic diagram showing a structural example of data of a frame signal.

[0017] Figure 3 is a schematic diagram showing an example of accumulation of sampling errors.

[0018] Figure 4 2 is a schematic diagram showing the through-output operation of the synchronization bit (first embodiment).

[0019] Figure 5 is a schematic diagram showing an example of eliminating accumulation of sampling errors.

[0020] Figure 6 It is a schematic diagram showing the structure of a main part of a semiconductor device (second embodiment).

[0021] Figure 7 is a schematic diagram showing how sampling errors accumulate.

[0022] Figure 8 is a schematic diagram showing how to eliminate the accumulation of sampling errors. DETAILED DESCRIPTION

[0023] <Electronic equipment>

[0024] Figure 1 1 is a schematic diagram showing a structural example of an electronic device. The electronic device 100 of this structural example includes a plurality of semiconductor devices 1 (for example, up to 100 semiconductor devices 1 (#1 to #100)) as a plurality of slave devices, and the plurality of slave devices are connected in a plurality of stages (cascade connection) to a master device (not shown). An MCU (micro control unit) is suitable for use as the master device.

[0025] According to an asynchronous serial communication protocol such as UART [Universal Asynchronous Receiver Transmitter], the semiconductor devices 1 (#1 to #100) serially transmit frame signals output from a host device sequentially from a preceding stage to a succeeding stage.

[0026] According to the diagram, the semiconductor device 1 (#1) receives the transmission signal TX0 transmitted one bit at a time from the previous host device as the reception signal RX1, while transmitting the transmission signal TX1 to the subsequent semiconductor device 1 (#2) one bit at a time. Similarly, the semiconductor device 1 (#2) receives the transmission signal TX1 transmitted one bit at a time from the previous semiconductor device 1 (#1) as the reception signal RX2, while transmitting the transmission signal TX2 to the subsequent semiconductor device 1 (#3) one bit at a time. More generally, the semiconductor device 1 (#m) (where m = 1, 2, ..., 100) receives the transmission signal TX(m-1) transmitted one bit at a time from the previous stage as the reception signal RXm, while transmitting the transmission signal TXm to the subsequent stage one bit at a time.

[0027] The semiconductor devices 1 (#1 to #100) can be given slave addresses that increment by 1 (in this diagram, from 0x00 to 0x63).

[0028] <Frame signal>

[0029] Figure 2 1 is a schematic diagram showing a configuration example of data of a reception signal RX in the semiconductor device 1 . Figure 2 The receive signal RX is a multi-bit (e.g., 30-bit) frame signal used in asynchronous serial communications such as UART, and includes a start bit SB, a synchronization bit SYNC, a command bit CMD, an address bit ADR, a data bit DAT, and a guard bit GB from beginning to end.

[0030] The start bit SB is a bit signal (for example, 1 bit) for notifying the semiconductor device 1 that the asynchronous serial communication is started.

[0031] The synchronization bit SYNC is a bit signal (e.g., 8 bits, "10101010b" in the figure) for setting the baud rate in the semiconductor device 1. The baud rate is a value indicating how many times digital data can be modulated in one second. For example, in serial communication in which one bit of digital data is sent per modulation, the baud rate can be understood as a value indicating the communication speed (given in bps [bits per second]).

[0032] The command bits CMD are, for example, bit signals (eg, 4 bits) for sending a write or read command to the semiconductor device 1. As shown in the figure, the command bits CMD may be sequentially sent and received starting from the least significant bit LSB (D0→D1→D2→D3).

[0033] The address bits ADR are bit signals (eg, 7 bits) for transmitting a slave address to the semiconductor device 1. As shown in the schematic diagram, the address bits ADR may be transmitted and received sequentially from the least significant bit LSB (A0→A1→...→A5→A6).

[0034] The data bits DAT are bit signals (eg, 7 bits) for transmitting data to the semiconductor device 1. As shown in the diagram, the data bits DAT may be sequentially transmitted and received starting from the least significant bit LSB (B0→B1→...→B5→B6).

[0035] The guard bits GB are pseudo bits (eg, bit 3, "111b" in the diagram) for preventing an overflow error.

[0036] In the above packet elements, the command bit CMD, the address bit ADR, the data bit DAT and the guard bit GB can be understood as the message string MSG following the synchronization bit SYNC.

[0037] <Discussion on the Accumulation of Sampling Errors>

[0038] Figure 3 1 is a schematic diagram showing an example of accumulation of sampling errors in multi-stage connection of semiconductor devices 1 (semiconductor devices 1 (# 1 to # 4 ) are assumed in the schematic diagram). Figure 3 From top to bottom, transmission signal TX0 / reception signal RX1, transmission signal TX1 / reception signal RX2, transmission signal TX2 / reception signal RX3, transmission signal TX3 / reception signal RX4, and transmission signal TX4 / reception signal RX5 are depicted. The shaded portion in the schematic diagram represents the guard bit GB, and the hollow portion represents the packet elements (i.e., the start bit SB, the synchronization bit SYNC, the command bit CMD, and the data bit DAT) other than the guard bit GB.

[0039] The transmission signals TX1 to TX4 of the semiconductor devices 1 (#1 to #4) include sampling errors in the semiconductor devices 1 (#1 to #4), respectively. In particular, in a structure in which the synchronization bit SYNC of each of the reception signals RX1 to RX4 is sequentially sampled by the semiconductor devices 1 (#1 to #4) and transmitted to the subsequent stages, the sampling errors in the previous stages are accumulated as the stages proceed.

[0040] That is, in the semiconductor device 1(#i) (where i=2, 3, 4) in the second stage or any subsequent stage, the transmission signal TXi includes not only the sampling error in the semiconductor device 1(#i) itself, but also the sampling error in the semiconductor device 1(#1 to #(i-1)) provided in the stage before the semiconductor device 1(#1).

[0041] On the other hand, the transmission signals TX1 to TX4 have the same output timing because it coincides with the arrival timing of the start bit SB. Therefore, as shown in the figure, the guard bit GB becomes shorter as the stage advances, which increases the risk of overflow error.

[0042] For example, assuming that the baud rate is 100 kbps, the operating clock frequency is 1.8 MHz, and the sampling error is 2clk / 4 bits (i.e., 12clk / frame); then, the cumulative value of the sampling error in the semiconductor device 1 (#100) in the 100th stage is 1200clk (12×100). Therefore, even in the case of a 3-bit (54-clk) protection bit GB, an overflow error may occur.

[0043] Increasing the number of bits in the guard bit GB can prevent overflow errors, but results in a decrease in the communication speed in the entire system.

[0044] In view of the above discussion, the following description proposes a novel semiconductor device that can eliminate the accumulation of sampling errors in multi-stage connections.

[0045] <Semiconductor Device (First Embodiment)>

[0046] Figure 4 1 is a schematic diagram showing a through output operation of the synchronization bit SYNC in the semiconductor device 1 according to the first embodiment, and illustrates a reception signal RX, a selection signal SLT, and a transmission signal TX from top to bottom.

[0047] When the selection signal SLT (details will be given later) is at a low level, the semiconductor device 1 of this embodiment does not sample the synchronization bit SYNC in the reception signal RX and outputs it as a transmission signal TX as it is (that is, outputs it as it is). In the semiconductor device 1 of this embodiment, when the selection signal SLT is at a high level, the message string MSG (command bit CMD, address bit ADR, data bit DAT, and guard bit GB) of the reception signal RX is sampled and then output as a transmission signal TX.

[0048] Figure 5 is a schematic diagram showing an example of eliminating the accumulation of sampling errors in multi-stage connections of semiconductor devices 1 (semiconductor devices 1 (#1 to #4) in the schematic diagram). Figure 3 , Figure 5 From top to bottom, transmission signal TX0 / reception signal RX1, transmission signal TX1 / reception signal RX2, transmission signal TX2 / reception signal RX3, transmission signal TX3 / reception signal RX4, and transmission signal TX4 / reception signal RX5 are depicted. The shaded portion in the schematic diagram represents the guard bit GB, and the hollow portion represents the packet elements (i.e., the start bit SB, the synchronization bit SYNC, the command bit CMD, and the data bit DAT) other than the guard bit GB.

[0049] As described above, the semiconductor device 1 (#1 to #4) of this embodiment outputs the synchronization bit SYNC for setting the baud rate to the subsequent stage without sampling. Therefore, even when the stage advances, the sampling error from the previous stage is not accumulated. Therefore, even when the semiconductor device 1 (#1 to #4) is connected in a multi-stage manner, the guard bit (GB) does not become shorter, and this makes the overflow error less likely. Here, the semiconductor device 1 (#1 to #4) has a sampling error caused by the MCU mode.

[0050] <Semiconductor Device (Second Embodiment)>

[0051] Figure 6 1 is a schematic diagram showing the structure of the main part of the semiconductor device 1 according to the second embodiment (an internal structure example for implementing the above-mentioned first embodiment). Figure 6 As shown, the semiconductor device 1 of this embodiment includes a logic circuit 10 and an output stage 20 .

[0052] The logic circuit 10 samples the received signal RX at a baud rate corresponding to the synchronization bit SYNC and controls the output of the transmitted signal TX in the output stage 20. Figure 6 As shown, the logic circuit 10 includes a synchronization bit detector 11, a baud rate calculator 12, a counter 13, a controller 14, an input shift register 15 and an output shift register 16.

[0053] The synchronization bit detector 11 detects a synchronization bit SYNC from the reception signal RX.

[0054] The baud rate calculator 12 calculates the baud rate (and thus calculates the sampling timing, the output timing, etc.) based on the synchronization bit SYNC detected by the synchronization bit detector 11.

[0055] The counter 13 performs a counting operation based on the output signal (ie, the baud rate) of the baud rate calculator 12 to control various timings such as sampling timing and output timing.

[0056] The controller 14 controls the output stage 20 by switching the logic level of the selection signal SLT according to the output signal of the counter 13 (ie, the output timing control signal).

[0057] For example, the controller 14 switches the logic level of the selection signal SLT to output the reception signal RX as it is as the transmission signal TX during the output period of the synchronization bit SYNC, and outputs the second signal S2 (details will be given later) obtained by sampling in the logic circuit 10 as the transmission signal TX during the output period of the message string MSG after the synchronization bit SYNC.

[0058] More specifically, the controller 14 maintains the selection signal SLT at a low level during the output period of the synchronization bit SYNC, and maintains the selection signal SLT at a high level during the output period of the message string MSG (see the previously referenced Figure 4 ).

[0059] The input shift register 15 (corresponding to the first register) samples the reception signal RX according to the output signal (baud rate) of the baud rate calculator 12 and the output signal (sampling timing control signal) of the counter 13. Then, the input shift register 15 outputs the sampled reception signal RX as the first signal S1 to the output shift register 16. The input shift register 15 outputs information required for the operation of the semiconductor device 1 (such as the address bit ADR and the data bit DAT) in the sampled reception signal RX to the internal circuit (not shown) of the semiconductor device 1.

[0060] The output shift register 16 (corresponding to the second register) samples the first signal S1 according to the output signal (baud rate) of the baud rate calculator 12 and the output signal (sampling timing control signal) of the counter 13. The output shift register 16 outputs the sampled first signal S1 as the second signal S2 to the output stage 20. When a read command is fed to the semiconductor device 1, a signal value read from an internal register (not shown) is stored in the output shift register 16, and then output as the second signal S2 to the output stage 20.

[0061] The output stage 20 is a multiplexer configured to output the reception signal RX or the second signal S2 as the transmission signal TX according to an instruction (i.e., the selection signal SLT) from the controller 14. For example, when the selection signal SLT is at a low level, the output stage 20 selects and outputs the reception signal RX as the transmission signal TX, and when the selection signal SLT is at a high level, the output stage 20 selects and outputs the second signal S2 as the transmission signal TX.

[0062] That is, during the output period of the synchronization bit SYNC, the output stage 20 outputs the reception signal RX as it is as the transmission signal TX, and during the output period of the message string MSG after the synchronization bit SYNC, outputs the second signal S2 obtained by sampling in the logic circuit 10 as the transmission signal TX.

[0063] In this manner, the output stage 20 outputs the synchronization bits SYNC before sampling through without passing them through the logic circuit 10 based on the selection signal SLT generated in the logic circuit 10, and then outputs the message string MSG after sampling.

[0064] Figure 71 is a diagram showing how sampling errors accumulate if the synchronization bit SYNC is not output through in the semiconductor device 1 (the first-stage semiconductor device 1 (#1) is assumed in the diagram) (as a comparative example to be compared with the embodiment). For the sake of convenience of discussion, if the synchronization bit SYNC after sampling in the reception signal RX1 is output to the subsequent stage, the synchronization bit SYNC in the transmission signal TX1 includes a sampling error.

[0065] For example, consider a case where, due to a sampling error in semiconductor device 1(#m) (where m=1, 2, ..., 100), the synchronization bit SYNC of a received signal RX(m+1) in semiconductor device 1(#m+1) becomes 1.01 times the synchronization bit SYNC in a received signal RXm in semiconductor device 1(#m).

[0066] In this case, the synchronization bit SYNC in the reception signal RX100 in the semiconductor device 1 (#100) becomes approximately 2.70 (=1.01) of the synchronization bit SYNC in the reception signal RX1 in the semiconductor device 1 (#1). 100 Therefore, in order to avoid overflow errors, the guard bit GB needs to be long enough, which leads to a decrease in communication speed.

[0067] Figure 8 1 is a schematic diagram showing how to eliminate the accumulation of sampling errors by through-outputting the synchronization bit SYNC in the semiconductor device 1 of the second embodiment (the semiconductor devices 1 (#1 to #7) are assumed in the schematic diagram). Figure 8 From top to bottom, transmission signal TX0 / reception signal RX1, transmission signal TX1 / reception signal RX2, transmission signal TX2 / reception signal RX3, transmission signal TX3 / reception signal RX4, transmission signal TX4 / reception signal RX5, transmission signal TX5 / reception signal RX6, and transmission signal TX6 / reception signal RX7 are depicted. The pulse portion in the schematic diagram represents the synchronization bit SYNC, and the shaded portion represents the guard bit GB. The hollow portion represents the packet elements (i.e., command bit CMD and data bit DAT) other than the synchronization bit SYNC and the guard bit GB.

[0068] As described above, the semiconductor device 1 (#1 to #7) of the second embodiment outputs the synchronization bit SYNC for setting the baud rate to the subsequent stage without sampling. That is, as indicated by the dotted box in the schematic diagram, the synchronization bit SYNC in each of the reception signals RX1 to RX7 has the same length, and even as the stage advances, the sampling error from the previous stage is not accumulated. Therefore, even when the semiconductor device 1 (#1 to #7) is connected in a plurality of stages, the guard bit GB does not become shorter, and this makes the overflow error less likely.

[0069] <Overview>

[0070] The following is a summary of the various implementations described above.

[0071] For example, according to one aspect of the content disclosed herein, a semiconductor device is used as one of a plurality of slave devices connected to a master device in a plurality of stages. The semiconductor device is configured to sequentially transmit a frame signal output from the master device from a previous stage to a subsequent stage. The frame signal includes a synchronization bit and a message string following the synchronization bit. The semiconductor device includes: a logic circuit configured to sample the frame signal at a baud rate corresponding to the synchronization bit; and an output stage configured to output the synchronization bit before sampling directly without passing the synchronization bit through the logic circuit. (First Structure)

[0072] In the semiconductor device according to the first structure described above, preferably, the output stage outputs the message string after sampling after the synchronization bit before sampling. (Second Structure)

[0073] In the semiconductor device according to the second structure described above, preferably, the logic circuit includes: a synchronization bit detector configured to detect the synchronization bit from a frame signal input as a reception signal; a baud rate calculator configured to calculate the baud rate from the synchronization bit; a counter configured to control timing based on the baud rate; a controller configured to control the output stage; a first register configured to receive the reception signal to output a first signal; and a second register configured to receive the first signal to output a second signal. (Third Structure)

[0074] In the semiconductor device according to the third structure, preferably, the output stage is a multiplexer configured to output one of the reception signal and the second signal as a transmission signal according to an instruction from the controller. (Fourth Structure)

[0075] In the semiconductor device according to the fourth structure, the controller is preferably configured to control the multiplexer so that the received signal is output as the transmission signal during the output period of the synchronization bit, and the second signal is output as the transmission signal during the output period of the message string. (Fifth Structure)

[0076] In the semiconductor device according to any one of the first to fifth structures described above, preferably, the message string includes a command bit, an address bit, a data bit, and a protection bit. (Sixth Structure)

[0077] For example, according to another aspect of the disclosure, an electronic device includes a semiconductor device according to any one of the first to sixth structures as each of a plurality of slave devices connected to a master device in a plurality of stages. (Seventh Structure)

[0078] <Other Modifications>

[0079] The various technical features disclosed herein can be implemented in any other manner than in the above-mentioned embodiments, and any modification is allowed without departing from their technical originality. That is, the above-mentioned embodiments should be considered to be illustrative in all aspects and should not be considered to be restrictive. It should be understood that the technical scope of the present invention is limited by the scope of the claims, and is included in any modification made in the scope and sense equivalent to the scope of the claims.

[0080] Description of Reference Numerals

[0081] 1Semiconductor device

[0082] 10Logic Circuit

[0083] 11 Synchronous bit detector

[0084] 12 Baud Rate Calculator

[0085] 13. Counter

[0086] 14 Controller

[0087] 15 Input shift register

[0088] 16 Output shift register

[0089] 20 output stages (multiplexers)

[0090] 100 Electronic devices

[0091] ADR Address Bit

[0092] CMD command bit

[0093] DAT data bit

[0094] GB protection bit

[0095] MSG message string

[0096] RX Receive signal

[0097] S1 First signal

[0098] S2 Second signal

[0099] SB Start bit

[0100] SLT Select Signal

[0101] SYNC Synchronization bit

[0102] TX transmits signal.

Claims

1. A semiconductor device used as one of a plurality of slave devices connected to a master device in a plurality of stages, the semiconductor device being configured to sequentially transmit a frame signal output from the master device from a preceding stage to a succeeding stage, in, The frame signal includes a synchronization bit and a message string following the synchronization bit, and The semiconductor device comprises: a logic circuit configured to sample the frame signal at a baud rate corresponding to the synchronization bit; and The output stage is configured to output the synchronization bit before sampling without passing the synchronization bit through the logic circuit.

2. The semiconductor device according to claim 1, wherein The output stage causes the message string after sampling to be output after the synchronization bit before sampling.

3. The semiconductor device according to claim 2, wherein: The logic circuit comprises: a synchronization bit detector configured to detect the synchronization bit from a frame signal input as a received signal; a baud rate calculator configured to calculate the baud rate from the synchronization bit; a counter configured to control timing based on the baud rate; a controller configured to control the output stage; a first register configured to receive the received signal to output a first signal; and The second register is configured to receive the first signal and output a second signal.

4. The semiconductor device according to claim 3, wherein: The output stage is a multiplexer configured to output one of the reception signal and the second signal as a transmission signal in accordance with an instruction from the controller.

5. The semiconductor device according to claim 4, wherein: The controller is configured to control the multiplexer so that: During the output period of the synchronization bit, the reception signal is output as the transmission signal, and During the output period of the message string, the second signal is output as the transmission signal.

6. The semiconductor device according to any one of claims 1 to 5, wherein: The message string includes a command bit, an address bit, a data bit and a protection bit. 7 . An electronic device comprising the semiconductor device according to claim 1 as each of a plurality of slave devices connected to a master device in a plurality of stages.