Format setting system and addressable light emitting device

By adjusting the data frame format through direct memory access (DMA), the problem of memory waste caused by different driver models is solved, and efficient use of memory space is achieved.

CN115707163BActive Publication Date: 2025-11-28NUVOTON
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111074188.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2021-08-04
Filing Date
2021-09-14
Publication Date
2025-11-28
Estimated Expiration
2041-09-14

AI Technical Summary

Technical Problem

In the prior art, the color data frames of different driver models have different lengths or orders, which causes the microcontroller to need additional memory space to store the color data frames of different manufacturers, thus wasting memory space.

Method used

The format is adjusted using a direct memory access area (DMA). The second data frame is readjusted according to the first format to make it the same as the first format. The direct memory access area includes a buffer memory and a sorting circuit to achieve matching of data frame length and color order.

Benefits of technology

It effectively utilizes memory space, adapts to different types of drives, and avoids additional memory storage requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115707163B_ABST
    Figure CN115707163B_ABST
Patent Text Reader

Abstract

A format setting system and an addressable light emitting device, the format setting system includes a microcontroller. The microcontroller is coupled to a driver by a peripheral interface, the driver has a first data frame, the microcontroller includes a memory and a direct memory access area. The memory stores a second data frame, the second data frame has a second format, the memory transmits the second data frame. The direct memory access area is connected to the memory, the direct memory access area receives the second data frame and re-adjusts the second data frame according to the first format of the first data frame so that the second format is the same as the first format, the direct memory access area transmits the adjusted second data frame to the driver. Through the format adjustment of the direct memory access area, different types of drivers can be adapted.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present invention relates to a format setting system and addressable light emitting device using format adjustment of direct memory access area to cooperate with various different format drivers. BACKGROUND

[0002] In controlling addressable light emitting diodes, a microcontroller transmits corresponding color data frames to drivers on the addressable light emitting diodes through a peripheral interface according to color data frames of the addressable light emitting diodes. According to the number of the addressable light emitting diodes, the microcontroller sequentially transmits an equal number of color data frames to corresponding drivers. However, different driver models have different defined data frame lengths or color sequences.

[0003] For example, an A factory driver defines a color data frame as a three-tuple, and its color sequence is green, red, and blue. A B factory driver defines a color data frame as a three-tuple, and its color sequence is red, green, and blue. If the memory of the microcontroller only stores the color data frame defined by the A factory driver, because the color sequences of the A factory and the B factory are different, the user needs to rearrange the color data frame of the A factory driver into the color data frame of the B factory driver, and store the rearranged color data frame of the A factory driver into another memory; that is, the microcontroller needs an additional memory to store the color data frame of the B factory driver, which is quite a waste of memory space.

[0004] In view of the foregoing, the inventor of the present invention conceives and designs a format setting system and addressable light emitting device to improve the prior art and to enhance industrial implementation. SUMMARY

[0005] In view of the foregoing, the inventor of the present invention conceives and designs a format setting system and addressable light emitting device to improve the prior art and to enhance industrial implementation.

[0006] To achieve the above object, the present invention provides a format setting system, which includes a microcontroller. The microcontroller is coupled to a driver through a peripheral interface, the driver has a first data frame, and the microcontroller includes a memory and a direct memory access area. The memory stores a second data frame, the second data frame has a second format, and the memory transmits the second data frame. The direct memory access area is connected to the memory, receives the second data frame, and adjusts the second data frame according to the first format so that the second format is the same as the first format, and the direct memory access area transmits the adjusted second data frame to the driver. Through the format adjustment of the direct memory access area, different types of drivers can be accommodated.

[0007] Optionally, the first format includes a first data frame length and a first color sequence, and the second format includes a second data frame length and a second color sequence.

[0008] Optionally, the DMA region includes a first buffer memory, a sorting circuit, and a second buffer memory. The first buffer memory receives the second data frame. The sorting circuit reorders the second data frame according to the first data frame length and the first color order, so that the second data frame length and the second color order are the same as the first data frame length and the first color order. The second buffer memory transmits the reordered second data frame to the driver through the peripheral interface.

[0009] Optionally, the microcontroller obtains the address of the driver. The memory transmits the corresponding second data frame to the DMA region according to the address. The DMA region re-adjusts the corresponding second data frame and transmits it to the driver with the address.

[0010] To achieve the above object, the present application provides an addressable light emitting device, which includes a driver, a light source, and a microcontroller. The driver has a first data frame with a first format. The light source is electrically connected to the driver and emits light according to the first data frame. The microcontroller is coupled to the driver through a peripheral interface. The microcontroller includes a memory and a DMA region. The memory stores a second data frame with a second format and transmits the second data frame. The DMA region is connected to the memory. The DMA region receives the second data frame and re-adjusts the second data frame according to the first format, so that the second format is the same as the first format. The DMA region transmits the adjusted second data frame to the driver.

[0011] Optionally, the first format includes a first data frame length and a first color order. The second format includes a second data frame length and a second color order.

[0012] Optionally, the DMA region includes a first buffer memory, a sorting circuit, and a second buffer memory. The first buffer memory receives the second data frame. The sorting circuit reorders the second data frame according to the first data frame length and the first color order, so that the second data frame length and the second color order are the same as the first data frame length and the first color order. The second buffer memory transmits the reordered second data frame to the driver through the peripheral interface.

[0013] Optionally, the microcontroller obtains the address of the driver. The memory transmits the corresponding second data frame to the DMA region according to the address. The DMA region re-adjusts the corresponding second data frame and transmits it to the driver with the address.

[0014] Optionally, the number of the light sources is multiple. The number of the drivers and the number of the second data frames are multiple.

[0015] Optionally, the memory transfers the second data frame corresponding to each driver to a direct memory access area, the direct memory access area adjusts the second data frame corresponding to each driver and transfers it to each driver, and each driver causes each light source to emit different colors according to the adjusted second data frame.

[0016] As described above, the format setting system and the addressable light emitting device of the present application utilize the format adjustment of the direct memory access area to effectively utilize the memory space according to different types of drivers. BRIEF DESCRIPTION OF DRAWINGS

[0017] Figure 1 A block diagram of the format setting system of the present application in a first embodiment.

[0018] Figure 2 A block diagram of the format setting system of the present application in a second embodiment.

[0019] Figure 3 A block diagram of the addressable light emitting device of the present application.

[0020] Figure 4 A schematic diagram of the addressable light emitting device of the present application.

[0021] SYMBOL DESCRIPTION

[0022] 10: microcontroller

[0023] 11: memory

[0024] 12: peripheral interface

[0025] 20, 20_1-20_N: driver

[0026] 30, 30-1-30-N: light source

[0027] AC: sequencing circuit

[0028] BM1: first buffer memory

[0029] BM2: second buffer memory

[0030] DMA: direct memory access area

[0031] DF1: first data frame

[0032] DF2, DF2_1-DF2_N, DF2_X, DF2_X': second data frame

[0033] F1: first format

[0034] F2: second format

[0035] LB: light bar DETAILED DESCRIPTION

[0036] The advantages, features and technical methods achieved by the present application will be more easily understood by referring to the exemplary embodiments and the accompanying drawings, and the present application can be implemented in different forms, so it should not be understood as being limited to the embodiments described herein, on the contrary, the embodiments provided will make the present disclosure more thorough and comprehensive, and will fully convey the scope of the present application, and the present application will be defined only by the scope of the appended claims.

[0037] It should be understood that, although the terms "first", "second", etc. can be used herein to describe various elements, components, regions, layers and / or sections, these elements, components, regions, layers and / or sections should not be limited by these terms. These terms are only used to distinguish one element, component, region, layer and / or section from another element, component, region, layer and / or section. Therefore, "first element", "first component", "first region", "first layer" and / or "first section" discussed below can be called "second element", "second component", "second region", "second layer" and / or "second section" without departing from the spirit and teachings of the present application.

[0038] In addition, the terms "comprise" and / or "include" refer to the existence of the stated features, regions, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, regions, integers, steps, operations, elements, components and / or combinations thereof.

[0039] Unless otherwise defined, all terms used herein, including technical and scientific terms, have the same meaning as commonly understood by one of ordinary skill in the art to which the present application belongs. It will be further understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and the present application, and should not be interpreted in an idealized or overly formal sense, unless expressly so defined herein.

[0040] Reference is made to Figure 1 which is a block diagram of the format setting system of the present application in the first embodiment. As shown in Figure 1As shown, the format setting system of the present application includes a microcontroller 10. The microcontroller 10 is coupled to a driver 20 through a peripheral interface 12, the driver 20 has a first data frame DF1, the microcontroller 10 includes a memory 11 and a direct memory access region DMA. The memory 11 stores a second data frame DF2, the second data frame DF2 has a second format F2, the memory 11 transmits the second data frame DF2. The direct memory access region DMA is connected to the memory 11, the direct memory access region DMA receives the second data frame DF2 and re-adjusts the second data frame DF2 according to the first format F1 so that the second format F2 is the same as the first format F1, the direct memory access region DMA transmits the adjusted second data frame DF2 to the driver 20. Through the format adjustment of the direct memory access region DMA, different types of drivers 20 can be corresponded. In an embodiment, the microcontroller 10 can detect the first format F1 of the first data frame DF1, or the user can directly set the first format F1 in the microcontroller 10 so that the microcontroller 10 can process data according to the first format F1.

[0041] The first format F1 includes a first data frame length and a first color order, the second format F2 includes a second data frame length and a second color order, the first format F1 and the second format F2 can also include other information about controlling the driver 20, which is not limited to the scope listed in the present application. The direct memory access region DMA includes a first buffer memory BM1, an order circuit AC and a second buffer memory BM2, the first buffer memory BM1 receives the second data frame DF2, the order circuit AC reorders the second data frame DF2 according to the first data frame length and the first color order so that the second data frame length and the second color order are the same as the first data frame length and the first color order, the second buffer memory BM2 transmits the reordered second data frame DF2 to the driver 20 through the peripheral interface 12.

[0042] Please refer to Figure 2 , which is a block diagram of the format setting system of the present application in a second embodiment. As shown, Figure 2As shown, the format setting system of the present application includes a microcontroller 10, a memory 11, a direct memory access area DMA, a peripheral interface 12, and drivers 20_1-20_N, which are configured similarly to the first embodiment, and thus similar parts are not described again. However, the second embodiment of the present application is different from the first embodiment in that the format setting system of the present application corresponds to a plurality of drivers 20_1-20_N, each of which has an address, the memory 11 stores a plurality of second data frames DF2_1-DF2_N, and the number of the second data frames DF2_1-DF2_N is equal to the number of the drivers 20_1-20_N. Among them, the second data frame length of each of the second data frames DF2_1-DF2_N is 3 bytes, the second color order of each of the second data frames DF2_1-DF2_N is green-red-blue, the first data frame length of the first data frame DF1 of each of the drivers 20_1-20_N is 3 bytes, and the first color order of the first data frame DF1 of each of the drivers 20_1-20_N is red-green-blue.

[0043] First, a single driver 20_1 is described. The first data frame length and the first color order of each of the first data frames DF1 of each of the drivers 20_1-20_N are set to be the same. The microcontroller 10 obtains the address of the driver 20_1 and extracts the corresponding second data frame DF2_1 (DF2_X = DF2_1) from the memory 11 according to the address of the driver 20_1. The memory 11 transmits the second data frame DF2_1 to the direct memory access area DMA. The direct memory access area DMA reorders the second color order of the second data frame DF2_1 to the second color order of the second data frame DF2_1' (DF2_X' = DF2_1'), and the second color order of the second data frame DF2_1' is the same as the first color order of the first data frame DF1. The direct memory access area DMA transmits the second data frame DF2_1' to the driver 20_1. The remaining drivers 20B-20N all obtain the corresponding second data frames DF2_2'-DF2_N' by using the above mechanism, and thus the description is not repeated.

[0044] If the second data frame length of each second data frame DF2_1~DF2_N is 4 bytes, the second color order of each second data frame DF2_1~DF2_N is green-red-blue-white, the first data frame length of the first data frame DF1 of each driver 20_1~20_N is 3 bytes, and the first color order of the first data frame DF1 of each driver 20_1~20_N is red-blue-green, the microcontroller 10 fills 0 to the white part in the second color order of each second data frame DF2_1~DF2_N stored in the memory 11 and then transmits the second color order of each second data frame DF2_1~DF2_N to the direct memory access area DMA, the direct memory access area DMA reorders the second color order of each second data frame DF2_1~DF2_N to correspond to the first color order of the first data frame DF1 of each driver 20_1~20_N, and then transmits each reordered second data frame DF2_1~DF2_N to the corresponding driver 20_1~20_N; or, the microcontroller 10 deletes the second data frame length of each second data frame DF2_1~DF2_N stored in the memory 11 from 4 bytes to 1 byte, deletes the white part in the second color order of each second data frame DF2_1~DF2_N, and then continues the reordering process of the direct memory access area DMA, so that the second color order of each second data frame DF2_1~DF2_N is equivalent to the first color order of the first data frame DF1.

[0045] If the second data frame length of each second data frame DF2_1~DF2_N is 3 bytes, the second color order of each second data frame DF2_1~DF2_N is green-blue-red, the first data frame length of the first data frame DF1 of each driver 20_1~20_N is 4 bytes, and the first color order of the first data frame DF1 of each driver 20_1~20_N is red-blue-green-white, the microcontroller 10 adjusts the second data frame length of each second data frame DF2_1~DF2_N to 4 bytes and adds white to the second color order of each second data frame DF2_1~DF2_N, the direct memory access area DMA reorders the second color order of each second data frame DF2_1~DF2_N to correspond to the first color order of the first data frame DF1 of each driver 20_1~20_N, and then transmits each reordered second data frame DF2_1~DF2_N to the corresponding driver 20_1~20_N.

[0046] Please refer to Figure 3 , which is a block diagram of the addressable light emitting device of the present application. As shown in Figure 3As shown, the addressable light emitting device of the present application includes a plurality of drivers 20-1~20-N, a plurality of light sources 30-1~30-N integrated as a light bar LB, and a microcontroller 10. Each driver 20-1~20-N has a first data frame DF1 with a first format F1. The light sources 30-1~30-N are electrically connected to the drivers 20-1~20-N and emit light according to the first data frame DF1. The microcontroller 10 is coupled to each driver 20-1~20-N via a peripheral interface 12, and includes a memory 11 and a direct memory access (DMA) region. The memory 11 stores a plurality of second data frames DF2, each second data frame DF2 having a second format F2, and transmits the plurality of second data frames DF2. The DMA region is connected to the memory 11, receives the plurality of second data frames DF2, re-adjusts each second data frame DF2 according to the plurality of first formats F1 so that the second format F2 is identical to the first format F1, and transmits the adjusted plurality of second data frames DF2 to the drivers 20.

[0047] Wherein the first format F1 includes a first data frame length and a first color sequence, the second format F2 includes a second data frame length and a second color sequence, and the first format F1 and the second format F2 can further include other information about controlling the drivers 20 without being limited to the scope listed in the present application. The DMA region includes a first buffer memory BM1, a sequencing circuit AC, and a second buffer memory BM2. The first buffer memory BM1 receives the second data frames DF2, the sequencing circuit AC re-sequences the second data frames DF2 according to the first data frame length and the first color sequence so that the second data frame length and the second color sequence are identical to the first data frame length and the first color sequence, and the second buffer memory BM2 transmits the sequenced second data frames DF2 to the drivers 20 via the peripheral interface 12.

[0048] Each driver has an address and the same first format F1, but the content of the first data frame DF1 received by each driver is different, so each light source 30-1~30-N can emit light of different colors. For example, the driver 20-1 is the first driver, the first driver has a first address, the light source 30-1 driven by the first driver is the first light source, the microcontroller 10 obtains the first address of the first driver, the microcontroller 10 extracts the corresponding second data frame DF2 from the memory 11 according to the first address and transmits the corresponding second data frame DF2 to the first buffer memory BM1, the sorting circuit AC adjusts the corresponding second data frame DF2 to make the second format F2 equal to the first format F1, the second buffer memory BM2 transmits the adjusted second data frame DF2 to the first driver, and the first driver makes the first light source emit light according to the adjusted second data frame DF2. The rest of the drivers all use the above-mentioned mechanism to obtain the corresponding second data frame, which will not be repeated here.

[0049] Please refer to Figure 4 , which is a schematic diagram of the addressable light-emitting device of the present application. As shown in Figure 4 , the addressable light-emitting device of the present application may, for example, be a gaming keyboard and have a plurality of light bars LB to emit light of different colors, and the addressable light-emitting device of the present application can also be other types of addressable light-emitting devices and is not limited to the scope listed in the present application.

[0050] As described above, the format setting system and the addressable light-emitting device of the present application use the format adjustment of the direct memory access area DMA to effectively utilize the memory space in response to different types of light source drivers.

[0051] The above is only exemplary and not limiting. Any equivalent modification or change made without departing from the spirit and scope of the present application shall be included in the scope of protection of the claims.

Claims

1. A formatting system, characterized by, The application relates to a display device, comprising: a microcontroller coupled to a driver via a peripheral interface, the driver having a first data frame with a first format, the microcontroller comprising: a memory storing a second data frame with a second format, the memory transmitting the second data frame; and a direct memory access area connected to the memory, the direct memory access area receiving the second data frame and re-adjusting the second data frame according to the first format, the adjusted second data frame having the same format as the first format, the direct memory access area transmitting the adjusted second data frame to the driver; wherein the microcontroller obtains an address of the driver, the memory transmits the corresponding second data frame to the direct memory access area according to the address, and the direct memory access area re-adjusts the corresponding second data frame and transmits it to the driver having the address.

2. The format setting system according to claim 1, wherein The first format comprises a first data frame length and a first color sequence, and the second format comprises a second data frame length and a second color sequence.

3. The format setting system according to claim 2, wherein The direct memory access area comprises a first buffer memory, a sorting circuit and a second buffer memory, the first buffer memory receives the second data frame, the sorting circuit reorders the second data frame according to the first data frame length and the first color sequence, the reordered second data frame has the same length and color sequence as the first data frame length and the first color sequence, and the second buffer memory transmits the reordered second data frame to the driver via the peripheral interface.

4. An addressable light emitting device, characterized in that The application relates to a display device, comprising: a driver having a first data frame with a first format; a light source electrically connected to the driver and emitting light according to the first data frame; and a microcontroller coupled to the driver via a peripheral interface, the microcontroller comprising: a memory storing a second data frame with a second format, the memory transmitting the second data frame; and a direct memory access area connected to the memory, the direct memory access area receiving the second data frame and re-adjusting the second data frame according to the first format, the adjusted second data frame having the same format as the first format, the direct memory access area transmitting the adjusted second data frame to the driver; wherein the microcontroller obtains an address of the driver, the memory transmits the corresponding second data frame to the direct memory access area according to the address, and the direct memory access area re-adjusts the corresponding second data frame and transmits it to the driver having the address. The first format comprises a first data frame length and a first color sequence, and the second format comprises a second data frame length and a second color sequence.

5. The addressable light emitting device of claim 4, wherein, The direct memory access area comprises a first buffer memory, a sorting circuit and a second buffer memory, the first buffer memory receives the second data frame, the sorting circuit reorders the second data frame according to the first data frame length and the first color sequence, the reordered second data frame has the same length and color sequence as the first data frame length and the first color sequence, and the second buffer memory transmits the reordered second data frame to the driver via the peripheral interface.

6. The addressable light emitting device of claim 5, wherein, The direct memory access area includes a first buffer memory, a sorting circuit and a second buffer memory, the first buffer memory receives the second data frame, the sorting circuit reorders the second data frame according to the first data frame length and the first color order, so that the second data frame length and the second color order are the same as the first data frame length and the first color order, and the second buffer memory transmits the reordered second data frame to the driver through the peripheral interface.

7. The addressable light emitting device of claim 4, wherein, The number of the light sources is multiple, and the number of the driver and the second data frame is multiple.

8. The addressable light emitting device of claim 7, wherein, The memory transmits the second data frame corresponding to each of the driver to the direct memory access area, the direct memory access area adjusts the second data frame corresponding to each of the driver and transmits it to each of the driver, and each of the driver makes each of the light sources emit different colors according to the adjusted second data frame.

Citation Information

Patent Citations

  • Driving method and driving apparatus for light emitting diodes in keyboard

    CN111278188A

  • Format setting system and addressable light-emitting device

    CN216162895U