Semiconductor device and communication system
The semiconductor device's update control unit with a relative calculation unit reduces serial communication by efficiently updating PWM duty settings using relative mode calculations, addressing the inefficiency in existing technologies and enhancing communication efficiency in vehicle systems.
Patent Information
- Application Number
- PCT/JP2024/020847
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-07-06
- Filing Date
- 2024-06-07
- Publication Date
- 2025-01-09
AI Technical Summary
Existing semiconductor devices require a significant amount of data to be transmitted via serial communication for setting PWM control, which is inefficient and increases communication load, especially in applications like vehicle communication systems.
A semiconductor device configuration that includes an interface unit for receiving write data via serial communication, an update control unit with a relative calculation unit to update PWM duty setting data by calculating based on polarity, gain, and relative change values, allowing for efficient reduction of data transmission by using relative mode updates in high or low resolution settings.
This configuration reduces the amount of serial communication required for setting PWM control, optimizing data transmission and improving efficiency, particularly in high-frequency applications like vehicle systems by allowing relative updates with less data.
Smart Images

Figure JP2024020847_09012025_PF_FP_ABST
Abstract
Description
Semiconductor device and communication system
[0001] The present disclosure relates to a semiconductor device and a communication system.
[0002] Semiconductor devices having a serial communication function are used in a variety of applications.
[0003] An example of circuit technology relating to serial communication is disclosed in Japanese Patent Application Laid-Open No. 2003-222299.
[0004] Japanese Patent Application Laid-Open No. 2017-224946
[0005] [Summary] Here, a semiconductor device may have a function of performing PWM (Pulse Width Modulation) dimming as a device for driving a light-emitting element, for example. When performing PWM control such as PWM dimming, the duty may be set by serial communication. In this case, it is desirable to reduce the amount of data transmitted to the semiconductor device by serial communication as much as possible.
[0006] An object of the present disclosure is to provide a semiconductor device that can reduce the amount of serial communication when setting PWM control.
[0007] For example, a semiconductor device according to one aspect of the present disclosure comprises: an interface unit configured to receive write data transmitted via serial communication from the outside; an update control unit having a relative calculation unit configured to perform calculations based on the write data; and a register configured to store duty setting data indicating a PWM duty value, wherein the write data includes polarity data indicating a decrease or an increase, gain data indicating a gain value, and relative value data indicating a relative change value, wherein the relative calculation unit calculates a calculation result by subtracting or adding a value obtained by multiplying the relative change value by the gain value to a current value of the duty setting data according to the polarity data, and the update control unit updates the duty setting data based on the calculation result.
[0008] FIG. 1 is a diagram illustrating a configuration of a communication system according to an exemplary embodiment of the present disclosure. FIG. 2 is a diagram illustrating a configuration of a semiconductor device according to an exemplary embodiment of the present disclosure. FIG. 3 is a diagram illustrating a data configuration of received data RX. FIG. 4 is a diagram illustrating an example configuration related to updating dimming settings in the semiconductor device. FIG. 5 is a diagram illustrating a register map in high-resolution mode. FIG. 6 is a diagram illustrating a correspondence relationship between addresses transmitted by received data RX and data corresponding to the addresses. FIG. 7 is a diagram illustrating an example configuration of updating dimming setting data in high-resolution mode and relative mode. FIG. 8A is a diagram illustrating an example of data transmitted by received data RX in high-resolution mode and absolute mode. FIG. 8B is a diagram illustrating an example of data transmitted by received data RX in high-resolution mode and absolute mode. FIG. 8C is a diagram illustrating an example of data transmitted by received data RX in high-resolution mode and absolute mode. FIG. 9 is a diagram illustrating an example configuration of updating dimming setting data in high-resolution mode and absolute mode. FIG. 10 is a diagram illustrating an example of a correspondence relationship between an on-duty range and a step for changing the on-duty when performing gradation dimming. FIG. 11 is a diagram illustrating a register map in low-resolution mode. Fig. 12 is a block diagram showing an example of updating dimming setting data in low resolution mode and absolute mode. Fig. 13 is a diagram showing a register map related to the group setting function. Fig. 14 is a block diagram showing an example of updating dimming setting data using the group setting function.
[0009] DETAILED DESCRIPTION Exemplary embodiments of the present disclosure will now be described with reference to the drawings.
[0010] 1 is a diagram illustrating a configuration of a communication system 501 according to an exemplary embodiment of the present disclosure. The communication system 501 includes an MCU (Micro Controller Unit) 20, a CAN (Controller Area Network) transceiver 30, a CAN transceiver 40, and a plurality of semiconductor devices 10. Note that the communication system 501 is used, for example, in a vehicle.
[0011] Communication between the MCU 20 and the CAN transceiver 30 is performed using UART (Universal Asynchronous Receiver / Transmitter). UART is a protocol for exchanging serial data between two devices. With UART, bidirectional communication is performed between the sending and receiving sides using two lines.
[0012] Communication between the CAN transceivers 30 and 40 is performed via a CAN bus 35. CAN is a serial communication protocol standardized by international standards such as ISO11898.
[0013] The CAN transceiver 30 has a TXD (transmit data input) terminal 30A and an RXD (receive data output) terminal 30B. The CAN transceiver 30 outputs data input to the TXD terminal 30A to the CAN bus 35, and outputs data input from the CAN bus 35 from the RXD terminal 30B.
[0014] The CAN transceiver 40 has an RXD terminal 40A and a TXD terminal 40B. The CAN transceiver 40 outputs data input to the TXD terminal 40B to the CAN bus 35, and outputs data input from the CAN bus 35 from the RXD terminal 40A.
[0015] The semiconductor device 10 is an IC (integrated circuit) in which circuits with predetermined functions are integrated, and is configured as, for example, an LED (light-emitting diode) driver IC. All of the multiple semiconductor devices 10 may be LED driver ICs, or some of the semiconductor devices may be LED driver ICs. Details of the semiconductor device 10 as an LED driver IC will be described later.
[0016] The semiconductor device 10 has an RX (receive data input) terminal 10A and a TX (transmit data output) terminal 10B. The RX terminals 10A of the semiconductor devices 10 are commonly connected to an RXD terminal 40A. The TX terminals 10B of the semiconductor devices 10 are commonly connected to a TXD terminal 40B.
[0017] The received data RX output from the RXD terminal 40A is input to the RX terminal 10A of each of the plurality of semiconductor devices 10. The received data RX specifies the device address of one of the plurality of semiconductor devices 10. Furthermore, the transmitted data TX output from the TX terminal 10B of each of the plurality of semiconductor devices 10 is input to the TXD terminal 40B.
[0018] 2. Configuration of Semiconductor Device> Fig. 2 is a diagram showing the configuration of a semiconductor device 10 according to an exemplary embodiment of the present disclosure. The semiconductor device 10 shown in Fig. 2 is configured as an LED driver IC that drives an LED 6. An LED is an example of a light-emitting element. In other words, an LED driver is an example of a light-emitting element driving device.
[0019] The LEDs 6 are provided in multiple channels. Hereinafter, the number of channels of the LEDs 6 will be assumed to be 24 as an example. The number of channels of the LEDs 6 may be multiple channels other than 24, or may be a single channel. The LEDs 6 in each channel are configured by connecting LED elements in series. However, the LEDs 6 in each channel may be configured by connecting LED elements in series / parallel, or may be configured by a single LED element.
[0020] The semiconductor device 10 includes an integrated UART interface 1, a control unit 2, a PWM generating unit 3, and a current driver 4. The semiconductor device 10 also includes an RX terminal 10A, a TX terminal 10B, and a cathode terminal 10C as external terminals for establishing electrical connection with the outside.
[0021] As described above, received data RX input from the outside to the RX terminal 10A is input to the UART interface 1. Also, transmitted data TX output from the UART interface 1 is output to the outside from the TX terminal 10B, as described above.
[0022] The control unit 2 has a register 21. When the receive data RX input to the UART interface 1 indicates a write, the control unit 2 updates the data in the register 21 based on the write data included in the receive data RX. On the other hand, when the receive data RX input to the UART interface 1 indicates a read, the control unit 2 reads data from the register 21. Details of the RX data will be described later.
[0023] A PWM generation unit 3 is provided corresponding to each channel of the LED 6. Therefore, if the LED 6 has 24 channels, a PWM generation unit 3 is provided for each of channels CH01 to CH24. Channel CHn corresponds to the nth channel. The register 21 stores dimming setting data for each channel. The PWM generation unit 3 for each channel generates a PWM signal with an on-duty based on the dimming setting data for that channel. In other words, the dimming setting data for each channel represents the on-duty for PWM dimming for that channel.
[0024] A PWM signal is a pulse signal consisting of high and low levels. In one cycle (PWM cycle), the period when the PWM signal is at a first level (e.g., high level) is an on-period, and the period when the PWM signal is at a second level (e.g., low level) is an off-period.
[0025] A current driver 4 is provided corresponding to each channel of the LED 6. Therefore, if the LED 6 has 24 channels, a current driver 4 is provided for each of channels CH01 to CH24. The current driver 4 for each channel is connected to the cathode of the LED 6 of that channel via the corresponding cathode terminal 10C. The anodes of the LEDs 6 of each channel are commonly connected to the application terminal of the power supply voltage Vcc.
[0026] Each PWM signal generated by the PWM generating unit 3 of each channel is used to control the on / off of the current driver 4 of each channel. Specifically, the current driver 4 is in the on state during the on period of the PWM signal, and is in the off state during the off period of the PWM signal. When the current driver 4 is in the on state, a constant current flows through the LED 6, causing the LED 6 to emit light. When the current driver 4 is in the off state, no constant current flows through the LED 6, causing the LED 6 to turn off. The on-duty of PWM dimming is the proportion of the on-period in one cycle. The higher the on-duty, the brighter the LED 6.
[0027] With this configuration, the dimming setting data for each channel is updated based on the received data RX via UART communication, and the LEDs 6 for each channel can be PWM dimmed based on the on-duty set for each channel. As will be described later, in this embodiment, the dimming setting data for all 24 channels can be updated by a single communication of received data RX, or the dimming setting data for only some of the channels (single or multiple channels) can be updated.
[0028] 3. Structure of Received Data Fig. 3 shows the data structure of received data RX. In UART, communication is performed using data units called frames. A frame is made up of bit data from a start bit to a stop bit. The start bit is at low level, and the stop bit is at high level. A predetermined number of bits of bit data are placed between the start bit and the stop bit. In the following, the predetermined number of bits is assumed to be 8 bits as an example. In this case, a frame is made up of 10 bits of bit data.
[0029] As shown in FIG. 3, the received data RX includes, from the beginning, a synchronization frame SYNC, a device frame Device, a data number frame NumovData, an address frame Address, data frames Data1 to DataN (N is an integer greater than or equal to 1), a CRC (Cyclic Redundancy Check) lower frame CRC16L, and a CRC upper frame CRC16H.
[0030] The synchronization frame SYNC is bit data for setting the baud rate in the semiconductor device 10 .
[0031] The device frame Device includes a device address and a Read / Write bit, etc. The device address is bit data indicating the address of the target device (semiconductor device 10). The Read / Write bit is bit data indicating read or write.
[0032] The data number frame NumovData is bit data indicating the number of frames (ie, N) of the data frames Data1 to DataN.
[0033] The address frame Address is bit data that indicates an address for accessing the register 21 .
[0034] The data frames Data1 to DataN are bit data indicating data for updating the data in the register 21. When the Read / Write bit in the device frame Device indicates a read, the data frames Data1 to DataN are not included in the received data RX.
[0035] The CRC lower frame CRC16L and the CRC upper frame CRC16H are bit data indicating error detection codes added to the data frames Data1 to DataN.
[0036] 4. Updating Dimming Settings Next, a description will be given of a method for updating dimming setting data in the register 21. Fig. 4 is a diagram showing an example of a configuration related to updating dimming settings in the semiconductor device 10.
[0037] As shown in Fig. 4, the UART interface 1 has a buffer 11. When receive data RX is input to the UART interface 11, receive data 11A is stored in the buffer 11. The receive data 11A includes address data Address and write data WDT. The write data WDT is data transmitted in a data frame DataN (Fig. 3).
[0038] The control unit 2 has a register 21 and an update control unit 22. The update control unit 22 updates the dimming setting data DIMSET01 to DIMSET24 in the register 21 based on the received data 11A. The update control unit 22 has a relative calculation unit 221. The relative calculation unit 221 is used in the case of relative updating of the dimming setting data, which will be described later.
[0039] The register 21 stores dimming setting data DIMSET01 to DIMSET24. The dimming setting data DIMSETn is the dimming setting for channel CHn and indicates the on-duty of channel CHn. The on-duty is a value between 0 and 100%.
[0040] The register 21 stores resolution setting data HAMODE and relative mode setting data RELMODE.
[0041] The resolution setting data HAMODE is 1-bit data and indicates the setting of high-resolution mode or low-resolution mode. The high-resolution mode is a mode in which the dimming setting data DIMSETn is updated using a first predetermined number of bits (e.g., 12 bits), and the on-duty can be adjusted with the resolution of the first predetermined number of bits. If the first predetermined number of bits is, for example, 12 bits, the on-duty can be adjusted in steps of approximately 0.02%. The low-resolution mode is a mode in which the dimming setting data DIMSETn is updated using a second predetermined number of bits (e.g., 8 bits) lower than the first predetermined number of bits, and the on-duty can be adjusted with the resolution of the second predetermined number of bits. If the second predetermined number of bits is, for example, 8 bits, the on-duty can be adjusted in steps of approximately 0.4%.
[0042] The relative mode setting data RELMODE is 1-bit data and indicates the setting of relative mode or absolute mode. The relative mode is a mode in which the dimming setting data DIMSETn is updated based on a relative change from the current value. The absolute mode is a mode in which the dimming setting data DIMSETn is updated with an absolute value.
[0043] <<High Resolution Mode>> Here, a method for updating the dimming setting data when the resolution mode is set to the high resolution mode (HAMODE = 1) will be described. Here, the first predetermined number of bits is assumed to be 12 bits, for example.
[0044] Fig. 5 is a diagram showing how the dimming setting data DIMSETn is stored in the register 21 in the high-resolution mode. That is, Fig. 5 shows a register map. Fig. 5 shows the correspondence between addresses in the register 21 and the dimming setting data DIMSETn stored at those addresses. As shown in Fig. 5, 8-bit data can be stored in one address. The number of bits that can be stored in one address in the register 21 is the second predetermined number of bits (the number of bits of low resolution).
[0045] Note that the address values shown in Figure 5 and subsequent figures are merely examples. Address 0x4B stores the upper 8 bits of DIMSET01. Address 0x4C stores the lower 4 bits of DIMSET01 in the upper bits, and the lower 4 bits of DIMSET02 in the lower bits. Address 0x4D stores the upper 8 bits of DIMSET02. Similar to this storage pattern of dimming setting data at addresses 0x4B to 0x4D, addresses 0x4E and onward store DIMSET03 to DIMSET24. In this way, 12 bits of DIMSET01 to DIMSET24 can be stored in each of the consecutive addresses from 0x4B to 0x6E.
[0046] Here, a case where high resolution mode and relative mode (RELMODE = 1) are set will be described. Fig. 6 is a diagram showing the correspondence between the addresses transmitted by the received data RX in this case and the data corresponding to those addresses. The addresses shown in Fig. 6 are transmitted by the address frame Address (Fig. 3). The 8-bit data (Bit [7:0]) shown in Fig. 6 is transmitted by the data frame DataN (Fig. 3).
[0047] The 8-bit data includes polarity data CHnSG, gain data CHnGAIN, and relative value data DUTYn. The polarity data CHnSG, gain data CHnGAIN, and relative value data DUTYn are data corresponding to the channel CHn.
[0048] The polarity data CHnSG is 1-bit data and indicates a decrease or increase from the value of the current dimming setting data DIMSETn. For example, CHnSG=0 indicates a decrease, and CHnSG=1 indicates an increase.
[0049] The gain data CHnGAIN is 2-bit data and indicates a gain value. For example, CHnGAIN=0 indicates a gain of 1, CHnGAIN=1 indicates a gain of 2, CHnGAIN=2 indicates a gain of 8, and CHnGAIN=3 indicates a gain of 16.
[0050] The relative value data DUTYn is 5-bit data and indicates a relative change value. The relative value data DUTYn can take a value from 0 to 31.
[0051] The dimming setting data DIMSETn for channel CHn is updated by the polarity data CHnSG, gain data CHnGAIN, and relative value data DUTYn as follows: DIMSETn = DIMSETn ± DUTYn × CHnGAIN Note that DIMSETn on the right side indicates the current value, and DIMSETn on the left side indicates the updated value. Also, ± indicates + (increase) or - (decrease) according to the polarity data CHnSG.
[0052] For example, when CHnSG=0, CHnGAIN=1, and DUTYn=5, DIMSETn=DIMSETn-5×2.
[0053] 6 is the data transmitted in the first data frame Data1 when the address is transmitted in the address frame Address. It is possible to transmit only one channel's worth of data in the first data frame Data1, but in the case of transmission of multiple channels, data for consecutive channels is transmitted in multiple data frames starting from the first data frame Data1. For example, when transmitting data for 24 channels, the address transmitted in the address frame Address is set to 0x4B, and 24 channels' worth of data (CH01SG to CH24SG, CH01GAIN to CH24GAIN, DUTY01 to DUTY24) is transmitted in 24 data frames Data1 to Data24.
[0054] 7 is a block diagram (corresponding to FIG. 4) showing an example of updating the dimming setting data DIMSETn in the high-resolution mode and relative mode (HAMODE=1, RELMODE=1). The example in FIG. 7 shows a case where an address of 0x4B is transmitted by the address frame Address.
[0055] Received data RX is input to the UART interface 1, and received data 11A is stored in the buffer 11. The received data 11A includes write data WDT along with an address 0x4B. The write data WDT includes polarity data CH01SG, gain data CH01GAIN, and relative value data DUTY01 corresponding to channel CH01. In this case, the relative calculation unit 221 performs the following calculation: DIMSET01=DIMSET01±DUTY01×CH01GAIN
[0056] The value of the dimming setting data DIMSET01 in the register 21 is updated based on the value of the dimming setting data DIMSET01 for the channel CH01 calculated as described above.
[0057] Note that the dimming setting data DIMSETn for channels CH02 and onward, which are not shown in FIG. 7, is updated in the same manner as above.
[0058] Next, a method for updating the dimming setting data when the high resolution mode and the absolute mode (HAMODE=1, RELMODE=0) are set will be described.
[0059] In this case, the following transmission is performed by the receive data RX: An address corresponding to the first channel for which it is desired to update the dimming setting data in the register map (FIG. 5) of the register 21 is specified in the address frame Address. Furthermore, dimming setting data DIMSETn corresponding to consecutive addresses from the specified address in the register map is transmitted by the data frame DataN for the required number of channels.
[0060] 8A shows data transmitted by the receive data RX when the only channel desired to be updated is channel CH01. In this case, 0x4B is specified in the address frame Address, the upper bits of DIMSET01 are transmitted by data frame Data1, and the lower bits of DIMSET01 are transmitted by data frame Data2. In this case, the lower bits of DIMSET02 for channel CH02 are set as dummy data.
[0061] 8B shows data transmitted by the receive data RX when the channels desired to be updated are channels CH01 and CH02. In this case, 0x4B is specified in the address frame Address, the upper bits of DIMSET01 are transmitted by the data frame Data1, the lower bits of DIMSET01 and the lower bits of DIMSET02 are transmitted by the data frame Data2, and the upper bits of DIMSET02 are transmitted by the data frame Data3.
[0062] 8C shows data transmitted by the receive data RX when the only channel desired to be updated is channel CH02. In this case, 0x4C is specified in the address frame Address, the lower bits of DIMSET02 are transmitted by data frame Data1, and the upper bits of DIMSET02 are transmitted by data frame Data2. In this case, the lower bits of DIMSET01 for channel CH01 are set as dummy data.
[0063] The dimming setting data DIMSETn transmitted as described above updates the dimming setting data DIMSETn in the register 21. However, the data in the register 21 is not updated by dummy data.
[0064] 9 is a block diagram (corresponding to FIG. 4) showing an example of updating the dimming setting data DIMSETn in the high-resolution mode and absolute mode (HAMODE=1, RELMODE=0). The example in FIG. 9 shows a case where only the dimming setting data DIMSET01 of channel CH01 is updated.
[0065] Received data RX is input to the UART interface 1, and received data 11A is stored in the buffer 11. The received data 11A includes write data WDT along with address 0x4B. The write data WDT stores the upper and lower bits of DIMSET01 and the lower bits of DIMSET02 (FIG. 8A). As a result, the update control unit 22 updates DIMSET01 in the register 21 based on the address 0x4B and the upper and lower bits of DIMSET01.
[0066] As described above, this embodiment makes it possible to update the high-resolution (e.g., 12-bit) dimming setting data DIMSETn relatively or absolutely. FIG. 10 shows an example of the correspondence between the on-duty range and the step by which the on-duty is changed when performing gradation dimming. As shown, the higher the duty, the larger the step. In gradation dimming, the on-duty is increased from the current value to the target value in specified steps. By expressing the on-duty with high resolution, the minimum step can be reduced. In such gradation dimming, the required step is small, so dimming is possible by updating the dimming setting data in relative mode. Note that, if a large change in the on-duty is required, absolute mode can be used.
[0067] For example, when updating dimming setting data for 24 channels, in absolute mode, 24ch x 12 bits = 36 bytes of data transmission is required, but in relative mode, only 24ch x 8 bits = 24 bytes of data transmission is required, making it possible to reduce the amount of communication. Reducing the amount of communication is particularly effective when the PWM frequency is high.
[0068] 1, it is assumed that the semiconductor devices 10 are LED driver ICs when the RX terminals 10A of the semiconductor devices 10 are commonly connected to the same RXD terminal 40A of the CAN transceiver 40. In this case, when updating dimming setting data in each of the semiconductor devices 10, it is necessary to transmit the received data RX sequentially to each of the semiconductor devices 10 by serial communication, and it is effective to reduce the amount of communication per transmission.
[0069] <<In the Case of Low Resolution Mode>> Next, a method for updating the dimming setting data when the resolution mode is set to the low resolution mode (HAMODE=0) will be described. Here, it is assumed that the second predetermined number of bits is 8 bits, for example.
[0070] 11 is a diagram (register map) showing storage of dimming setting data DIMSETn in the register 21 in the low resolution mode. Fig. 11 shows the correspondence between addresses in the register 21 and the dimming setting data DIMSETn stored at those addresses.
[0071] Each of the consecutive addresses from 0x4B to 0x62 stores 8-bit data DIMSET01 to DIMSET24. Therefore, in the low-resolution mode, the register map is changed from that in the high-resolution mode (FIG. 5).
[0072] In this case, the following transmission is performed by the receive data RX: An address corresponding to the first channel for which it is desired to update the dimming setting data in the register map (FIG. 11) of the register 21 is specified in the address frame Address. Furthermore, dimming setting data DIMSETn corresponding to consecutive addresses from the specified address in the register map is transmitted by the data frame DataN for the required number of channels.
[0073] For example, when transmitting data for 24 channels, 0x4B is specified in the address frame Address, and DIMSET01 to DIMSET24 are transmitted using data frames Data1 to Data24.
[0074] FIG. 12 is a configuration diagram (corresponding to FIG. 4) showing an example of updating the dimming setting data DIMSETn in the low resolution mode and absolute mode (HAMODE=0, RELMODE=0).
[0075] In the example of Fig. 12, receive data RX is input to the UART interface 1, and receive data 11A is stored in the buffer 11. The receive data 11A includes write data WDT along with an address 0x4B. The write data WDT includes DIMSET01, DIMSET02, etc. As a result, the update control unit 22 updates DIMSET01, DIMSET02, etc. in the register 21 based on the address 0x4B and DIMSET01, DIMSET02, etc.
[0076] In the low resolution mode, by using a register map such as that shown in Fig. 11, if an address is specified by the address frame Address, the dimming setting data DIMSETn can be updated at an address incremented from the specified address. In other words, when updating the dimming setting data DIMSETn for multiple channels, it is possible to update by transmitting the received data RX once, thereby reducing the amount of communication.
[0077] In the low resolution mode, the amount of communication is reduced even for absolute updates, so the relative mode is not set.
[0078] 5. Group Setting Function The semiconductor device 10 of this embodiment may have a group setting function as described below.
[0079] 13 is a diagram showing a register map of the register 21 related to the group setting function. In the example of FIG. 13, group setting data CHnDTYGRP is stored in each of consecutive addresses from 0x32 to 0x37. The group setting data CHnDTYGRP is 2-bit data and indicates the group setting for channel CHn. For example, when CHnDTYGRP=01, the channel is set to the first group, when CHnDTYGRP=10, the channel is set to the second group, and when CHnDTYGRP=11, the channel is set to the third group.
[0080] In FIG. 13, specifically, CH04DTYGRP to CH01DTYGRP are stored in address 0x32 in order from the most significant bit, CH08DTYGRP to CH05DTYGRP are stored in address 0x33 in order from the most significant bit, and so on up to CH24DTYGRP.
[0081] 13, duty setting value data DTYGRPm is stored in successive addresses from 0x38 to 0x3C. The duty setting value data DTYGRPm is 12-bit data and indicates the on-duty value set in the m-th group.
[0082] 13, specifically, the upper 8 bits of DTYGRP1 are stored at address 0x38, the lower 4 bits of DTYGRP2 and the lower 4 bits of DTYGRP1 are stored at address 0x39, the upper 8 bits of DTYGRP2 are stored at address 0x3A, the upper 8 bits of DTYGRP3 are stored at address 0x3B, and the lower 4 bits of DTYGRP3 are stored at address 0x3C. Also, all channel update mode setting data GRPALL (1 bit) is stored at address 0x3C.
[0083] In the receive data RX, the address 0x32 is specified in the address frame Address, and in addition to the group setting data CH01DTYGRP to CH24DTYGRP, the duty setting value data DTYGRPm for the required number of groups is transmitted in the data frame DataN.
[0084] As described above, based on the data transmitted by the reception data RX, the group setting data CH01DTYGRP to CH24DTYGRP and the duty setting value data DTYGRPm are updated in the register 21. Then, the dimming setting data DIMSETn of the channels CHn grouped by the group setting data CH01DTYGRP to CH24DTYGRP is updated based on the duty setting value data DTYGRPm corresponding to each group.
[0085] Fig. 14 is a configuration diagram (corresponding to Fig. 4) showing an example of updating dimming setting data DIMSETn using the group setting function. In the example of Fig. 14, receive data RX is input to the UART interface 1, and receive data 11A is stored in the buffer 11. The receive data 11A includes write data WDT along with address 0x32. The write data WDT includes group setting data CH01DTYGRP to CH24DTYGRP and duty setting value data DTYGRP1 and DTYGRP2. That is, in the example of Fig. 14, the number of groups to be divided is set to 2.
[0086] The update control unit 22 updates the group setting data CH01DTYGRP to CH24DTYGRP in the register 21 based on the group setting data CH01DTYGRP to CH24DTYGRP, and also updates the duty setting value data DTYGRP1 and DTYGRP2 in the register 12 based on the duty setting value data DTYGRP1 and DTYGRP2.
[0087] For example, when channels CH01 to CH08 are set to the first group and channels CH09 to CH24 are set to the second group by the group setting data CH01DTYGRP to CH24DTYGRP, the dimming setting data DIMSET01 to DIMSET08 are updated by the duty setting value data DTYGRP1, and the dimming setting data DIMSET09 to DIMSET24 are updated by the duty setting value data DTYGRP2 in the register 21, as shown in FIG.
[0088] 14, in order to update the dimming setting data for 24 channels, in addition to the 6 bytes (=2 bits×24 ch) required for transmitting the group setting data CH01DTYGRP to CH24DTYGRP, 3 bytes are required for transmitting the duty setting value data DTYGRP1 and 2 for two groups, for a total of 9 bytes to be transmitted. In contrast, in the case of the high-resolution mode and absolute mode described above, 12 bits×24 ch=36 bytes must be transmitted, and the group setting function can reduce the amount of communication traffic.
[0089] When the all-channel update mode setting data GRPALL is, for example, 0, the group setting function is enabled and the all-channel update mode is disabled. On the other hand, when GRPALL is, for example, 1, the group setting function is disabled and the all-channel update mode is enabled. In this case, the dimming setting data DIMSETn for all channels (24 channels) is updated to the same value based on, for example, DTYGRP3.
[0090] <6. Others> In addition to the above-described embodiments, the various technical features disclosed in this specification can be modified in various ways without departing from the spirit of the technical creation. In other words, the above-described embodiments should be considered to be illustrative and not restrictive in all respects, and the technical scope of the present disclosure should not be limited to the above-described embodiments, but should be understood to include all modifications that fall within the meaning and scope equivalent to the claims.
[0091] For example, serial communication is not limited to UART communication. 2 C communication may also be used.
[0092] 7. Supplementary Note As described above, a semiconductor device (10) according to an aspect of the present disclosure includes: an interface unit (1) configured to receive write data (WDT) transmitted via serial communication from an external device; an update control unit (22) having a relative calculation unit (221) configured to perform calculations based on the write data; and a register (21) configured to store duty setting data (DIMSETn) indicating a PWM duty value, wherein the write data includes polarity data (CHnSG) indicating a decrease or increase, gain data (CHnGAIN) indicating a gain value, and relative value data (DUTYn) indicating a relative change value, wherein the relative calculation unit calculates a calculation result by subtracting or adding a value obtained by multiplying the relative change value by the gain value to a current value of the duty setting data according to the polarity data, and the update control unit updates the duty setting data based on the calculation result (first configuration).
[0093] This configuration allows the PWM duty value to be updated relatively, reducing the amount of data to be written, thereby solving the problem of reducing the amount of serial communication traffic when setting PWM control.
[0094] In the first configuration, the gain value may be set to 1 by the gain data (second configuration).
[0095] In addition, in the first or second configuration, the total number of bits (e.g., 8 bits) of the polarity data, the gain data, and the relative value data may be smaller than the first predetermined number of bits (e.g., 12 bits) of the duty setting data (third configuration).
[0096] Furthermore, in the third configuration, the fourth configuration may have a relative mode in which the update control unit updates the duty setting data based on the calculation result, and an absolute mode in which the update control unit updates the duty setting data stored in the register based on the duty setting data of the first predetermined number of bits included in the write data transmitted by the serial communication.
[0097] Furthermore, in the third or fourth configuration, a fifth configuration may be provided which has a high resolution mode in which the duty setting data stored in the register has the first predetermined number of bits (e.g., 12 bits), and a low resolution mode in which the duty setting data stored in the register has a second predetermined number of bits (e.g., 8 bits) that is smaller than the first predetermined number of bits (e.g., 5 bits).
[0098] Furthermore, in the fifth configuration, the number of data bits that can be stored in one address in the register may be the second predetermined number of bits, and in the high-resolution mode, the register stores the most significant bits of the duty setting data for a first channel in a first address (e.g., 0x4B), stores the most significant bits of the duty setting data for the first channel and the most significant bits of the duty setting data for a second channel in a second address (e.g., 0x4C) obtained by incrementing the first address, and stores the most significant bits of the duty setting data for the second channel in a third address (e.g., 0x4D) obtained by incrementing the second address. In the low-resolution mode, the register stores the duty setting data for each channel in successive addresses (sixth configuration, FIGS. 5 and 11).
[0099] In addition, in any of the first to sixth configurations, the register may store the duty setting data for multiple channels, and the polarity data, the gain data, and the relative value data may correspond to the multiple channels (seventh configuration).
[0100] In addition, in any of the first to seventh configurations, a configuration may be adopted in which PWM dimming can be performed based on the duty setting data (eighth configuration).
[0101] In addition, in the eighth configuration, the higher the on-duty of the PWM dimming, the larger the step by which the on-duty is changed, and gradation dimming in which the on-duty is increased according to the step may be possible (ninth configuration).
[0102] Furthermore, in any of the first to ninth configurations, when the register stores the duty setting data for a plurality of channels, and the write data includes group setting data (CHnDTYGRP) for setting a group for each of the plurality of channels, and duty setting value data (DTYGRPm) for setting the duty value for each of the groups, the update control unit may be configured to update the duty setting data based on the group setting data and the duty setting value data (tenth configuration).
[0103] Furthermore, in the above-mentioned tenth configuration, a configuration may be adopted in which it is possible to switch between a mode in which the duty setting data is updated based on the group setting data and the duty setting value data, and a mode in which the duty setting data corresponding to all of the multiple channels is updated based on the duty setting value data corresponding to a predetermined group (eleventh configuration).
[0104] In any one of the first to eleventh configurations, the serial communication may be UART communication (twelfth configuration).
[0105] Furthermore, a communication system (501) according to one aspect of the present disclosure is configured to include a semiconductor device (10) having any one of the first to twelfth configurations described above, and a transmitting device (40) configured to transmit the write data (thirteenth configuration).
[0106] In addition, in the above-mentioned thirteenth configuration, the input terminals (10A) provided in each of the plurality of semiconductor devices and configured to input the write data may be commonly connected to the same output terminal (40A) provided in the transmitting device (fourteenth configuration).
[0107] The present disclosure can be used, for example, in an in-vehicle communication system.
[0108] REFERENCE SIGNS LIST 1 UART interface 2 Control unit 3 PWM generation unit 4 Current driver 6 LED 10 Semiconductor device 10A RX terminal 10B TX terminal 10C Cathode terminal 11 Buffer 11A Received data 21 Register 22 Update control unit 30, 40 CAN transceiver 30A TXD terminal 30B RXD terminal 35 CAN bus 40A RXD terminal 40B TXD terminal 221 Relative calculation unit 501 Communication system
Claims
1. A semiconductor device comprising: an interface unit configured to receive write data transmitted from the outside via serial communication; an update control unit having a relative calculation unit configured to perform calculations based on the write data; and a register configured to store duty setting data indicating a PWM duty value, wherein the write data includes polarity data indicating a decrease or increase, gain data indicating a gain value, and relative value data indicating a relative change value, wherein the relative calculation unit calculates a calculation result by subtracting or adding a value obtained by multiplying the relative change value by the gain value to a current value of the duty setting data according to the polarity data, and the update control unit updates the duty setting data based on the calculation result.
2. The semiconductor device according to claim 1, wherein said gain value can be set to 1 by said gain data.
3. The semiconductor device according to claim 1 or 2, wherein the total number of bits of the polarity data, the gain data, and the relative value data is smaller than a first predetermined number of bits of the duty setting data.
4. The semiconductor device according to claim 3, having a relative mode in which the update control unit updates the duty setting data based on the calculation result, and an absolute mode in which the update control unit updates the duty setting data stored in the register based on the first predetermined number of bits of the duty setting data included in the write data transmitted by the serial communication.
5. A semiconductor device as described in claim 3 or claim 4, having a high resolution mode, in which the duty setting data stored in the register has the first predetermined number of bits, and a low resolution mode, in which the duty setting data stored in the register has a second predetermined number of bits smaller than the first predetermined number of bits.
6. The semiconductor device of claim 5, wherein the number of data bits that can be stored in one address in the register is the second predetermined number of bits, and in the high resolution mode, in the register, the higher bits of the duty setting data for the first channel are stored in a first address, the lower bits of the duty setting data for the first channel and the lower bits of the duty setting data for the second channel are stored in a second address obtained by incrementing the first address, and the higher bits of the duty setting data for the second channel are stored in a third address obtained by incrementing the second address, and in the low resolution mode, the duty setting data for each channel is stored in each successive address in the register.
7. The semiconductor device according to claim 1, wherein the duty setting data for a plurality of channels is stored in the register, and the polarity data, the gain data, and the relative value data correspond to the plurality of channels.
8. The semiconductor device according to claim 1, wherein PWM dimming can be performed based on the duty setting data.
9. The semiconductor device according to claim 8, wherein the higher the on-duty of the PWM dimming, the larger the step by which the on-duty is changed, and gradation dimming is possible in which the on-duty is increased according to the step.
10. A semiconductor device as described in any one of claims 1 to 9, wherein, in the register, the duty setting data for multiple channels is stored, and when the write data includes group setting data for setting a group for each channel of the multiple channels and duty setting value data for setting the duty value for each group, the update control unit updates the duty setting data based on the group setting data and the duty setting value data.
11. The semiconductor device according to claim 10, capable of switching between a mode in which the duty setting data is updated based on the group setting data and the duty setting value data, and a mode in which the duty setting data corresponding to all of the multiple channels is updated based on the duty setting value data corresponding to a specific one of the groups.
12. The semiconductor device according to claim 1, wherein the serial communication is UART communication.
13. A communication system comprising: a semiconductor device according to any one of claims 1 to 12; and a transmitting device configured to transmit the write data.
14. The communication system according to claim 13, wherein an input terminal provided in each of the plurality of semiconductor devices and configured to receive the write data is commonly connected to a same output terminal provided in the transmission device.
Citation Information
Patent Citations
Method and apparatus for high power factor controlled power delivery using a single switching stage per load
JP2009526365A
Sinusoidal drive system and method for phototherapy
JP2017506569A
Cited By
Semiconductor device and communication system for updating setting data of multiple channels
US12549409B2
Semiconductor device and communication system
US20250016023A1
