TWM623534U - Formatting system and addressable lighting device - Google Patents
Formatting system and addressable lighting device Download PDFInfo
- Publication number
- TWM623534U TWM623534U TW110209184U TW110209184U TWM623534U TW M623534 U TWM623534 U TW M623534U TW 110209184 U TW110209184 U TW 110209184U TW 110209184 U TW110209184 U TW 110209184U TW M623534 U TWM623534 U TW M623534U
- Authority
- TW
- Taiwan
- Prior art keywords
- data frame
- format
- access area
- driver
- memory access
- Prior art date
Links
- 230000002093 peripheral effect Effects 0.000 claims abstract description 16
- 239000003086 colorant Substances 0.000 claims description 5
- 230000005055 memory storage Effects 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 8
- 230000007246 mechanism Effects 0.000 description 2
- 238000000034 method Methods 0.000 description 2
- 238000012163 sequencing technique Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000002708 enhancing effect Effects 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Images
Landscapes
- Circuit Arrangement For Electric Light Sources In General (AREA)
- Control Of Indicators Other Than Cathode Ray Tubes (AREA)
Abstract
一種格式設定系統,其包括微控制器。微控制器利用外設接口耦接驅動器,驅動器具有第一資料框,微控制器包括記憶體和直接記憶體存取區。記憶體儲存第二資料框,第二資料框具有第二格式,記憶體傳輸第二資料框。直接記憶體存取區連接記憶體,直接記憶體存取區接收第二資料框並根據第一格式重新調整第二資料框,使第二格式相同於第一格式,直接記憶體存取區傳輸調整後第二資料框至驅動器。透過直接記憶體存取區的格式調整,能因應不同類型的驅動器。 A formatting system includes a microcontroller. The microcontroller is coupled to the driver using the peripheral interface, the driver has a first data frame, and the microcontroller includes a memory and a direct memory access area. The memory stores the 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, the direct memory access area receives the second data frame and readjusts 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 Adjusted the second data frame to the drive. Through the format adjustment of the direct memory access area, it can be adapted to different types of drives.
Description
本創作關於一種利用直接記憶體存取區的格式調整來配合各種不同格式驅動器之格式設定系統及可定址發光裝置。 The present invention relates to a format setting system and an addressable light-emitting device that utilizes the format adjustment of the direct memory access area to match various format drivers.
在控制可定址發光二極體時,微控制器根據可定址發光二極體的色彩資料框,透過外設接口傳輸對應的色彩資料框給可定址發光二極體上的驅動器。依據可定址發光二極體數量,微控制器將等數量的色彩資料框依序傳輸給對應的驅動器。然而,不同的驅動器型號,其定義的資料框長度或是色彩順序有所變更。 When controlling the addressable light-emitting diode, the microcontroller transmits the corresponding color data frame to the driver on the addressable light-emitting diode through the peripheral interface according to the color data frame of the addressable light-emitting diode. According to the number of addressable light-emitting diodes, the microcontroller transmits the same number of color data frames to the corresponding drivers in sequence. However, the length of the defined data frame or the order of colors may change for different drive models.
舉例來說,A廠驅動器定義色彩資料框為三位元組,其色彩順序為綠、紅、藍;B廠驅動器定義色彩資料框為三位元組,其色彩順序為紅、綠、藍。若微控制器的記憶體僅儲存A廠驅動器所定義的色彩資料框,由於A廠和B廠的色彩順序不同,使用者需重新編排A廠驅動器的色彩資料框為B廠驅動器的色彩資料框,並將重新編排後A廠驅動器的色彩資料框儲存至另一個記憶體;亦即,微控制器需要額外的記憶體儲存B廠驅動器的色彩資料框,此舉相當浪費記憶體空間。 For example, the driver of factory A defines the color data box as a triple, and its color sequence is green, red, and blue; the driver of factory B defines the color data box as a triple, and its color sequence is red, green, and blue. If the memory of the microcontroller only stores the color data frame defined by the driver of factory A, since the color sequence of factory A and factory B is different, the user needs to rearrange the color data frame of the driver of factory A to the color data frame of the driver of factory B , and store the rearranged color data frame of the factory A drive to another memory; that is, the microcontroller needs additional memory to store the color data frame of the factory B driver, which is a waste of memory space.
綜觀前所述,本創作之創作者思索並設計一種格式設定系統及可定址發光裝置,以期針對習知技術之缺失加以改善,進而增進產業上之實施利用。 In view of the foregoing, the creator of this creation has considered and designed a format setting system and an addressable light-emitting device, in order to improve the deficiencies of the prior art, thereby enhancing the implementation and utilization in the industry.
有鑑於上述習知之問題,本創作的目的在於提供一種格式設定系統及可定址發光裝置,用以解決習知技術中所面臨之問題。 In view of the above-mentioned problems in the prior art, the purpose of the present invention is to provide a format setting system and an addressable light-emitting device to solve the problems faced in the prior art.
基於上述目的,本創作提供一種格式設定系統,其包括微控制器。微控制器利用外設接口耦接驅動器,驅動器具有第一資料框,微控制器包括記憶體和直接記憶體存取區。記憶體儲存第二資料框,第二資料框具有第二格式,記憶體傳輸第二資料框。直接記憶體存取區連接記憶體,直接記憶體存取區接收第二資料框並根據第一格式重新調整第二資料框,使第二格式相同於第一格式,直接記憶體存取區傳輸調整後第二資料框至驅動器。透過直接記憶體存取區的格式調整,能因應不同類型的驅動器。 Based on the above purpose, the present invention provides a format setting system including a microcontroller. The microcontroller is coupled to the driver using the peripheral interface, the driver has a first data frame, and the microcontroller includes a memory and a direct memory access area. The memory stores the 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, the direct memory access area receives the second data frame and readjusts 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 Adjusted the second data frame to the drive. Through the format adjustment of the direct memory access area, it can be adapted to different types of drives.
可選地,第一格式包括第一資料框長度和第一色彩順序,第二格式包括第二資料框長度和第二色彩順序。 Optionally, the first format includes a first data box length and a first color order, and the second format includes a second data box length and a second color order.
可選地,直接記憶體存取區包括第一緩衝記憶體、排序電路以及第二緩衝記憶體,第一緩衝記憶體接收第二資料框,排序電路根據第一資料框長度和第一色彩順序重新排序第二資料框,使第二資料框長度和第二色彩順序相同於第一資料框長度和第一色彩順序,第二緩衝記憶體透過外設接口傳輸排序後第二資料框至驅動器。 Optionally, 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, and the sorting circuit is based on the length of the first data frame and the first color order. The second data frame is rearranged so that the second data frame length and the second color sequence are the same as the first data frame length and the first color sequence, and the second buffer memory transmits the sorted second data frame to the driver through the peripheral interface.
可選地,微控制器取得驅動器的位址,記憶體根據位址傳輸對應的第二資料框至直接記憶體存取區,直接記憶體存取區將對應的第二資料框重新調整並將其傳輸至具有位址的驅動器。 Optionally, the microcontroller obtains the address of the driver, and the memory transmits the corresponding second data frame to the direct memory access area according to the address, and the direct memory access area readjusts the corresponding second data frame and transfers it to the direct memory access area. It is transferred to the drive with the address.
基於上述目的,本創作提供一種可定址發光裝置,其包括驅動器、光源和微控制器。驅動器具有第一資料框,第一資料框具有第一格式。光源電性連接驅動器並根據第一資料框而發光。微控制器利用外設接口耦接驅動器,微控制器包括記憶體和直接記憶體存取區。記憶體儲存第二資料框,第二資料框具有第二格式,記憶體傳輸第二資料框。直接記憶體存取區連接記憶體,直接記憶體存取區接收第二資料框並根據第一格式重新調整第二資料框,使第二格式相同於第一格式,直接記憶體存取區傳輸調整後第二資料框至驅動器。 Based on the above purpose, the present invention provides an addressable light-emitting device, which includes a driver, a light source and a microcontroller. The driver has a first data frame, and the first data frame has 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 using a peripheral interface, and the microcontroller includes a memory and a direct memory access area. The memory stores the 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, the direct memory access area receives the second data frame and readjusts 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 Adjusted the second data frame to the drive.
可選地,第一格式包括第一資料框長度和第一色彩順序,第二格式包括第二資料框長度和第二色彩順序。 Optionally, the first format includes a first data box length and a first color order, and the second format includes a second data box length and a second color order.
可選地,直接記憶體存取區包括第一緩衝記憶體、排序電路以及第二緩衝記憶體,第一緩衝記憶體接收第二資料框,排序電路根據第一資料框長度和第一色彩順序重新排序第二資料框,使第二資料框長度和第二色彩順序相同於第一資料框長度和第一色彩順序,第二緩衝記憶體透過外設接口傳輸排序後第二資料框至驅動器。 Optionally, 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, and the sorting circuit is based on the length of the first data frame and the first color order. The second data frame is rearranged so that the second data frame length and the second color sequence are the same as the first data frame length and the first color sequence, and the second buffer memory transmits the sorted second data frame to the driver through the peripheral interface.
可選地,微控制器取得驅動器的位址,記憶體根據位址傳輸對應的第二資料框至直接記憶體存取區,直接記憶體存取區將對應的第二資料框重新調整並將其傳輸至具有位址的驅動器。 Optionally, the microcontroller obtains the address of the driver, and the memory transmits the corresponding second data frame to the direct memory access area according to the address, and the direct memory access area readjusts the corresponding second data frame and transfers it to the direct memory access area. It is transferred to the drive with the address.
可選地,光源的數目為複數個,驅動器和第二資料框的數目為複數個。 Optionally, the number of light sources is plural, and the number of drivers and the second data frame is plural.
可選地,記憶體傳輸對應各驅動器的第二資料框至直接記憶體存取區,直接記憶體存取區重新調整對應各驅動器的第二資料框並將其傳輸至各驅動器,各驅動器根據調整後第二資料框使各光源發出不同的顏色。 Optionally, the memory transmits the second data frame corresponding to each drive to the direct memory access area, and the direct memory access area readjusts the second data frame corresponding to each drive and transmits it to each drive, each drive according to After adjustment, the second data frame makes each light source emit different colors.
承上所述,本創作之格式設定系統及可定址發光裝置,利用直接記憶體存取區的格式調整,因應不同類型的驅動器,有效地利用記憶體空間。 Based on the above, the format setting system and the addressable light-emitting device of the present invention utilize the format adjustment of the direct memory access area to effectively utilize the memory space according to different types of drives.
10:微控制器 10: Microcontroller
11:記憶體 11: Memory
12:外設接口 12: Peripheral interface
20,20_1~20_N:驅動器 20,20_1~20_N: Drive
30,30-1~30-N:光源 30,30-1~30-N: light source
AC:排序電路 AC: Sequencing Circuit
BM1:第一緩衝記憶體 BM1: first buffer memory
BM2:第二緩衝記憶體 BM2: Second buffer memory
DMA:直接記憶體存取區 DMA: Direct Memory Access Area
DF1:第一資料框 DF1: first data frame
DF2、DF2_1~DF2_N、DF2_X、DF2_X’:第二資料框 DF2, DF2_1~DF2_N, DF2_X, DF2_X’: The second data frame
F1:第一格式 F1: first format
F2:第二格式 F2: Second format
LB:燈條 LB: light bar
第1圖為本創作之格式設定系統於在第一實施例的方塊圖。 Fig. 1 is a block diagram of the format setting system of the present creation in the first embodiment.
第2圖為本創作之格式設定系統於在第二實施例的方塊圖。 Fig. 2 is a block diagram of the format setting system of the present creation in the second embodiment.
第3圖為本創作之可定址發光裝置的方塊圖。 Figure 3 is a block diagram of the addressable light-emitting device created.
第4圖為本創作之可定址發光裝置的示意圖。 FIG. 4 is a schematic diagram of the addressable light-emitting device created.
本創作之優點、特徵以及達到之技術方法將參照例示性實施例及所附圖式進行更詳細地描述而更容易理解,且本創作可以不同形式來實現,故不應被理解僅限於此處所陳述的實施例,相反地,對所屬技術領域具有通常知識者而言,所提供的實施例將使本揭露更加透徹與全面且完整地傳達本創作的範疇,且本創作將僅為所附加的申請專利範圍所定義。 The advantages, features, and technical methods of the present creation will be described in more detail with reference to the exemplary embodiments and the accompanying drawings to make it easier to understand, and the present creation can be implemented in different forms, so it should not be construed as limited to what is described here. The stated embodiments, on the contrary, to those of ordinary skill in the art, the embodiments are provided so that this disclosure will be more thorough, complete and complete to convey the scope of the invention, and the invention will only be appended Defined by the scope of the patent application.
應當理解的是,儘管術語「第一」、「第二」等在本創作中可用於描述各種元件、部件、區域、層及/或部分,但是這些元件、部件、區域、層及/或部分不應受這些術語的限制。這些術語僅用於將一個元件、部件、區域、層及/或部分與另一個元件、部件、區域、層及/或部分區分開。因此,下文討論的「第一元件」、「第一部件」、「第一區域」、「第一層」及/或「第一部分」 可以被稱為「第二元件」、「第二部件」、「第二區域」、「第二層」及/或「第二部分」,而不悖離本創作的精神和教示。 It will be understood that although the terms "first", "second", etc. may be used in the present compositions to describe various elements, components, regions, layers and/or sections, these elements, components, regions, layers and/or sections You 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. Thus, the "first element," "first component," "first region," "first layer," and/or "first portion" discussed below may be referred to as a "second element," "second component," "second area," "second layer," and/or "second portion" without departing from the spirit and teachings of this creation.
另外,術語「包括」及/或「包含」指所述特徵、區域、整體、步驟、操作、元件及/或部件的存在,但不排除一個或多個其他特徵、區域、整體、步驟、操作、元件、部件及/或其組合的存在或添加。 Additionally, the terms "comprising" and/or "comprising" refer to the presence of stated features, regions, integers, steps, operations, elements and/or components, but do not exclude one or more other features, regions, integers, steps, operations , elements, components and/or the presence or addition of combinations thereof.
除非另有定義,本創作所使用的所有術語(包括技術和科學術語)具有與本創作所屬技術領域的普通技術人員通常理解的相同含義。將進一步理解的是,諸如在通常使用的字典中定義的那些術語應當被解釋為具有與它們在相關技術和本創作的上下文中的含義一致的定義,並且將不被解釋為理想化或過度正式的意義,除非本文中明確地這樣定義。 Unless otherwise defined, all terms (including technical and scientific terms) used in this creation have the same meaning as commonly understood by one of ordinary skill in the art to which this creation belongs. It will be further understood that terms such as those defined in commonly used dictionaries should be construed as having definitions consistent with their meanings in the context of the related art and the present creation, and are not to be construed as idealized or overly formal meaning, unless expressly defined as such herein.
請參閱第1圖,其為本創作之格式設定系統於在第一實施例的方塊圖。如第1圖所示,本創作之格式設定系統,其包括微控制器10。微控制器10利用外設接口12耦接驅動器20,驅動器20具有第一資料框DF1,第一資料框DF1具有第一格式F1,微控制器10包括記憶體11和直接記憶體存取區DMA。記憶體11儲存第二資料框DF2,第二資料框DF2具有第二格式F2,記憶體11傳輸第二資料框DF2。直接記憶體存取區DMA連接記憶體11,直接記憶體存取區DMA接收第二資料框DF2並根據第一格式F1重新調整第二資料框DF2,使第二格式F2相同於第一格式F1,直接記憶體存取區DMA傳輸調整後第二資料框DF2至驅動器20。透過直接記憶體存取區DMA的格式調整,能因應不同類型的驅動器20。在一實施例中,微控制器10可透過偵測方式來取得第一資料框DF1的第一格式F1,或者,使用者可直接將第一格式F1設定於微控制器10,使得微控制器10可根據第一格式F1進行資料處理。
Please refer to FIG. 1 , which is a block diagram of the format setting system of the present invention in the first embodiment. As shown in FIG. 1 , the format setting system of the present invention includes a microcontroller 10 . The microcontroller 10 is coupled to the
第一格式F1包括第一資料框長度和第一色彩順序,第二格式F2包括第二資料框長度和第二色彩順序,第一格式F1和第二格式F2還可包括其他關於控制驅動器20的資訊,而未侷限於本創作所列舉的範圍。直接記憶體存取區DMA包括第一緩衝記憶體BM1、排序電路AC以及第二緩衝記憶體BM2,第一緩衝記憶體BM1接收第二資料框DF2,排序電路AC根據第一資料框長度和第一色彩順序重新排序第二資料框DF2,使第二資料框長度和第二色彩順序相同於第一資料框長度和第一色彩順序,第二緩衝記憶體BM2透過外設接口12傳輸排序後第二資料框DF2至驅動器20。
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 may also include other information about the
請參閱第2圖,其為本創作之格式設定系統於在第二實施例的方塊圖。如第2圖所示,本創作之格式設定系統包括微控制器10、記憶體11、直接記憶體存取區DMA、外設接口12、驅動器20_1~20_N,其配置關係與第一實施例類似,於此不再加以重新敘述相似之處,但本創作之第二實施例與第一實施例仍有不同之處,其差異:本創作之格式設定系統對應複數個驅動器20_1~20_N,每個驅動器20_1~20_N具有位址,記憶體11儲存複數個第二資料框DF2_1~DF2_N,第二資料框DF2_1~DF2_N的數目等同於驅動器20_1~20_N的數目。其中,各個第二資料框DF2_1~DF2_N的第二資料框長度為3位元組,各個第二資料框DF2_1~DF2_N的第二色彩順序為綠紅藍,每個驅動器20_1~20_N之第一資料框DF1的第一資料框長度為3位元組,每個驅動器20_1~20_N之第一資料框DF1的第一色彩順序為紅綠藍。 Please refer to FIG. 2 , which is a block diagram of the format setting system of the present creation in the second embodiment. As shown in FIG. 2, the format setting system of the present invention includes a microcontroller 10, a memory 11, a direct memory access area (DMA), a peripheral interface 12, and drivers 20_1 to 20_N, the configuration of which is similar to that of the first embodiment. , the similarities will not be repeated here, but there are still differences between the second embodiment of the present invention and the first embodiment. The difference is that the format setting system of the present The drives 20_1 to 20_N have addresses, and the memory 11 stores a plurality of second data frames DF2_1 to DF2_N, and the number of the second data frames DF2_1 to DF2_N is equal to the number of the drives 20_1 to 20_N. The length of the second data frame of each of the second data frames DF2_1 to DF2_N is 3 bytes, the second color sequence of each of the second data frames DF2_1 to DF2_N is green, red and blue, and the first data of each driver 20_1 to 20_N The length of the first data frame of the frame DF1 is 3 bytes, and the first color sequence of the first data frame DF1 of each driver 20_1 to 20_N is red, green and blue.
先以單個驅動器20_1作說明,設定每個驅動器20_1~20_N的每個第一資料框DF1的第一資料框長度和第一色彩順序為相同,微控制器10取得驅動器20_1的位址並根據驅動器20_1的位址於記憶體11提取對應的第二資料框 DF2_1(DF2_X=DF2_1),記憶體11將第二資料框DF2_1傳輸至直接記憶體存取區DMA,直接記憶體存取區DMA重新排序第二資料框DF2_1的第二色彩順序為第二資料框DF2_1’(DF2_X’=DF2_1’)的第二色彩順序,第二資料框DF2_1’的第二色彩順序相同於第一資料框DF1的第一色彩順序,直接記憶體存取區DMA將第二資料框DF2_1’傳輸至驅動器20_1。其餘的驅動器20B~20N皆為利用前述機制取得相應的第二資料框DF2_2’~DF2_N’,於此不再重複敘述。 Taking a single driver 20_1 as an example, the first data frame length and the first color sequence of each first data frame DF1 of each driver 20_1 to 20_N are set to be the same. The microcontroller 10 obtains the address of the driver 20_1 and uses The address of 20_1 is extracted from the memory 11 and the corresponding second data frame DF2_1 (DF2_X=DF2_1), the memory 11 transfers the second data frame DF2_1 to the direct memory access area DMA, and the direct memory access area DMA reorders the second color order of the second data frame DF2_1 as the second data frame The second color sequence of DF2_1' (DF2_X'=DF2_1'), the second color sequence of the second data frame DF2_1' is the same as the first color sequence of the first data frame DF1, the direct memory access area DMA stores the second data Frame DF2_1' is transferred to drive 20_1. The rest of the drivers 20B to 20N all use the aforementioned mechanism to obtain the corresponding second data frames DF2_2' to DF2_N', and the description is not repeated here.
若各個第二資料框DF2_1~DF2_N的第二資料框長度為4位元組,各個第二資料框DF2_1~DF2_N的第二色彩順序為綠紅藍白,每個驅動器20_1~20_N之第一資料框DF1的第一資料框長度為3位元組,每個驅動器20_1~20_N之第一資料框DF1的第一色彩順序為紅藍綠,微處理器10則將儲存在記憶體11的各個第二資料框DF2_1~DF2_N的第二色彩順序中的白色部分填0再續行傳輸至直接記憶體存取區DMA,直接記憶體存取區DMA將各個第二資料框DF2_1~DF2_N的第二色彩順序重新排序以對應每個驅動器20_1~20_N之第一資料框DF1的第一色彩順序,並將排序後各個第二資料框DF2_1~DF2_N傳輸至各個對應的驅動器20_1~20_N;或者,微處理器10則將儲存在記憶體11的各個第二資料框DF2_1~DF2_N的第二資料框長度從4位元組刪除成1位元組,將各個第二資料框DF2_1~DF2_N的第二色彩順序中白色部分刪除,接續直接記憶體存取區DMA的重新排序的流程,以使第二資料框DF2_1~DF2_N的第二色彩順序等同於第一資料框DF1的第一色彩順序。 If the length of the second data frame of each second data frame DF2_1~DF2_N is 4 bytes, the second color sequence of each second data frame DF2_1~DF2_N is green, red, blue and white, and the first data of each driver 20_1~20_N The length of the first data frame of the frame DF1 is 3 bytes, and the first color sequence of the first data frame DF1 of each driver 20_1~20_N is red, blue, and green. The white part in the second color sequence of the two data frames DF2_1~DF2_N is filled with 0, and then the continuation line is transferred to the direct memory access area DMA. The direct memory access area DMA transfers the second color of each second data frame DF2_1~DF2_N. Reorder the sequence to correspond to the first color sequence of the first data frame DF1 of each driver 20_1~20_N, and transmit the sorted second data frame DF2_1~DF2_N to each corresponding driver 20_1~20_N; or, the microprocessor 10 deletes the length of the second data frame of each of the second data frames DF2_1 to DF2_N stored in the memory 11 from 4 bytes to 1 byte, and puts the second color order of each of the second data frames DF2_1 to DF2_N in the second color sequence. The white part is deleted, and the reordering process of the direct memory access area DMA is continued, so that the second color order of the second data frames DF2_1 to DF2_N is equal to the first color order of the first data frame DF1.
若各個第二資料框DF2_1~DF2_N的第二資料框長度為3位元組,各個第二資料框DF2_1~DF2_N的第二色彩順序為綠藍紅,每個驅動器20_1~20_N之第一資料框DF1的第一資料框長度為4位元組,每個驅動器 20_1~20_N之第一資料框DF1的第一色彩順序為紅藍綠白,微處理器10調整各個第二資料框DF2_1~DF2_N的第二資料框長度為4位元組並使各個第二資料框DF2_1~DF2_N的第二色彩順序添加白色,直接記憶體存取區DMA將各個第二資料框DF2_1~DF2_N的第二色彩順序重新排序以對應每個驅動器20_1~20_N之第一資料框DF1的第一色彩順序,並將排序後各個第二資料框DF2_1~DF2_N傳輸至各個對應的驅動器20_1~20_N。 If the length of the second data frame of each second data frame DF2_1~DF2_N is 3 bytes, the second color sequence of each second data frame DF2_1~DF2_N is green, blue and red, and the first data frame of each driver 20_1~20_N The first data frame of DF1 is 4 bytes long, each drive The first color sequence of the first data frames DF1 of 20_1 to 20_N is red, blue, green and white. The microprocessor 10 adjusts the length of the second data frames of each of the second data frames DF2_1 to DF2_N to 4 bytes and makes each second data White is added to the second color sequence of the frames DF2_1~DF2_N, and the direct memory access area DMA reorders the second color sequence of each second data frame DF2_1~DF2_N to correspond to the first data frame DF1 of each drive 20_1~20_N. the first color sequence, and transmit the sorted second data frames DF2_1 to DF2_N to the corresponding drivers 20_1 to 20_N.
請參閱第3圖,其為本創作之可定址發光裝置的方塊圖。如第3圖所示,本創作之可定址發光裝置,其包括複數個驅動器20-1~20-N、複數個光源30-1~30-N和微控制器10,複數個光源30-1~30-N整合為燈條LB。各驅動器20-1~20-N具有第一資料框DF1,第一資料框DF1具有第一格式F1。光源30-1~30-N電性連接驅動器20-1~20-N並根據第一資料框DF1而發光。微控制器10利用外設接口12耦接各驅動器20-1~20-N,微控制器10包括記憶體11和直接記憶體存取區DMA。記憶體11儲存複數個第二資料框DF2,各第二資料框DF2具有第二格式F2,記憶體11傳輸複數個第二資料框DF2。直接記憶體存取區DMA連接記憶體11,直接記憶體存取區DMA接收複數個第二資料框DF2並根據複數個第一格式F1重新調整各第二資料框DF2,使第二格式F2相同於第一格式F1,直接記憶體存取區DMA傳輸調整後複數個第二資料框DF2至驅動器20。
Please refer to FIG. 3 , which is a block diagram of the addressable light-emitting device of the present creation. As shown in FIG. 3, the addressable light-emitting device of the present invention includes a plurality of drivers 20-1~20-N, a plurality of light sources 30-1~30-N, a microcontroller 10, and a plurality of light sources 30-1 ~30-N integrated into light bar LB. Each of the drives 20-1 to 20-N has a first data frame DF1, and the first data frame DF1 has a first format F1. The light sources 30-1 to 30-N are electrically connected to the drivers 20-1 to 20-N and emit light according to the first data frame DF1. The microcontroller 10 is coupled to each of the drivers 20 - 1 to 20 -N through the peripheral interface 12 , and the microcontroller 10 includes a memory 11 and a direct memory access area (DMA). The memory 11 stores a plurality of second data frames DF2, each of the second data frames DF2 has a second format F2, and the memory 11 transmits the plurality of second data frames DF2. The direct memory access area DMA is connected to the memory 11, and the direct memory access area DMA receives a plurality of second data frames DF2 and readjusts each second data frame DF2 according to a plurality of first formats F1, so that the second format F2 is the same In the first format F1, the direct memory access area DMA transfers the adjusted plurality of second data frames DF2 to the
其中,第一格式F1包括第一資料框長度和第一色彩順序,第二格式F2包括第二資料框長度和第二色彩順序,第一格式F1和第二格式F2還可包括其他關於控制驅動器20的資訊,而未侷限於本創作所列舉的範圍。直接記憶體存取區DMA包括第一緩衝記憶體BM1、排序電路AC以及第二緩衝記憶體BM2,第一緩衝記憶體BM1接收第二資料框DF2,排序電路AC根據第一資料框長度和
第一色彩順序重新排序第二資料框DF2,使第二資料框長度和第二色彩順序相同於第一資料框長度和第一色彩順序,第二緩衝記憶體BM2透過外設接口12傳輸排序後第二資料框DF2至驅動器20。
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 may also include other information about the
每個驅動器皆具有位址和相同的第一格式F1,但每個驅動器所接收的第一資料框DF1的內容不同,因此每個光源30-1~30-N可發出不同顏色的光。舉例來說,驅動器20-1為第一驅動器,第一驅動器具有第一位址,第一驅動器所驅動的光源30-1為第一光源,微控制器10取得第一驅動器的第一地址,微控制器10根據第一位址於記憶體11提取對應的第二資料框DF2並傳輸對應的第二資料框DF2至第一緩衝記憶體BM1,排序電路AC重新調整對應的第二資料框DF2以使第二格式F2等同於第一格式F1,第二緩衝記憶體BM2將調整後第二資料框DF2傳輸至第一驅動器,第一驅動器根據調整後第二資料框DF2使第一光源發光。其餘的驅動器皆為利用前述機制取得相應的第二資料框,於此不再重複敘述。 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 to 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, and 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, and the sorting circuit AC readjusts 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 other drivers all use the aforementioned mechanism to obtain the corresponding second data frame, and the description is not repeated here.
請參閱第4圖,其為本創作之可定址發光裝置的示意圖。如第4圖所示,本創作之可定址發光裝置可例如為電競鍵盤而其具有多條燈條LB來發出不同顏色的光,本創作之可定址發光裝置也可為其他類型的具有位址的發光裝置,而未侷限於本創作所列舉的範圍。 Please refer to FIG. 4 , which is a schematic diagram of the addressable light-emitting device of the present invention. As shown in Figure 4, the addressable light-emitting device of the present invention can be, for example, a gaming keyboard with a plurality of light bars LB to emit light of different colors. The addressable light-emitting device of the present invention can also be other types of The light-emitting device of the address is not limited to the scope enumerated in this creation.
承上所述,本創作之格式設定系統及可定址發光裝置,利用直接記憶體存取區DMA的格式調整,因應不同類型的光源驅動器,有效地利用記憶體空間。 Based on the above, the format setting system and the addressable light-emitting device of the present invention utilize the format adjustment of the direct memory access area DMA to effectively utilize the memory space according to different types of light source drivers.
以上所述僅為舉例性,而非為限制性者。任何未脫離本創作之精神與範疇,而對其進行之等效修改或變更,均應包含於後附之申請專利範圍中。 The above description is exemplary only, not limiting. Any equivalent modifications or changes that do not depart from the spirit and scope of this creation should be included in the scope of the appended patent application.
10:微控制器 10: Microcontroller
11:記憶體 11: Memory
12:外設接口 12: Peripheral interface
20:驅動器 20: Drive
AC:排序電路 AC: Sequencing Circuit
BM1:第一緩衝記憶體 BM1: first buffer memory
BM2:第二緩衝記憶體 BM2: Second buffer memory
DMA:直接記憶體存取區 DMA: Direct Memory Access Area
DF1:第一資料框 DF1: first data frame
DF2:第二資料框 DF2: Second data frame
F1:第一格式 F1: first format
F2:第二格式 F2: Second format
Claims (10)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW110209184U TWM623534U (en) | 2021-08-04 | 2021-08-04 | Formatting system and addressable lighting device |
| CN202122224848.0U CN216162895U (en) | 2021-08-04 | 2021-09-14 | Format setting system and addressable light emitting device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW110209184U TWM623534U (en) | 2021-08-04 | 2021-08-04 | Formatting system and addressable lighting device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| TWM623534U true TWM623534U (en) | 2022-02-21 |
Family
ID=80850198
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW110209184U TWM623534U (en) | 2021-08-04 | 2021-08-04 | Formatting system and addressable lighting device |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN216162895U (en) |
| TW (1) | TWM623534U (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| TWI782652B (en) * | 2021-08-04 | 2022-11-01 | 新唐科技股份有限公司 | Format setting system and addressable light-emitting device |
-
2021
- 2021-08-04 TW TW110209184U patent/TWM623534U/en unknown
- 2021-09-14 CN CN202122224848.0U patent/CN216162895U/en not_active Withdrawn - After Issue
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| TWI782652B (en) * | 2021-08-04 | 2022-11-01 | 新唐科技股份有限公司 | Format setting system and addressable light-emitting device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN216162895U (en) | 2022-04-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN103687228B (en) | A kind of landscape decorative lamp system and geocoding thereof and display control method | |
| CN110379357B (en) | A control method and device for a parallel LED drive circuit | |
| CN102402949A (en) | Backlight apparatus, display apparatus including the backlight apparatus and lighting apparatus | |
| TWM623534U (en) | Formatting system and addressable lighting device | |
| CN102903334A (en) | Full color LED (Light-Emitting Diode) display screen | |
| CN107734746A (en) | A kind of control system of LED lamp | |
| CN115665924A (en) | Lamp point address distribution method and device for LED lamp string | |
| US11295907B2 (en) | Backlight module and operation method thereof | |
| TWI782652B (en) | Format setting system and addressable light-emitting device | |
| CN109041332B (en) | An LED light string and its control chip | |
| CN110782804A (en) | Display device and lighting system | |
| CN109285479B (en) | LED perforated lamp advertising word plate made by hands | |
| CN1750724A (en) | Lighting network control system and control method | |
| CN201251045Y (en) | Light-emitting diode lamp and synchronous light-emitting diode lamp string | |
| KR20240128634A (en) | Performance directing system | |
| CN107333352B (en) | Control system and control method of light-emitting element | |
| CN112351540A (en) | Burning sequencing point-controlled light-emitting diode lamp and operation method thereof | |
| CN110868776B (en) | Intelligent LED equipment driver | |
| TWI723350B (en) | Light-emitting device of power supply and light-emitting control method thereof | |
| KR102303575B1 (en) | Lighting memory device and memory module | |
| CN116246585A (en) | Display devices and associated SoCs | |
| TWI662412B (en) | Light bar recognition system and recognition method | |
| TWI705732B (en) | Point-controlled led light with burnable sequence and method of operating the same | |
| TWM673573U (en) | Electronic device for controlling light-emitting diodes via serial signal | |
| CN118692352B (en) | Display system and method for time-division multiplexing of control signals |