TW201415846A - Lighting device controlling chip, apparatus and addressing method thereof - Google Patents

Lighting device controlling chip, apparatus and addressing method thereof Download PDF

Info

Publication number
TW201415846A
TW201415846A TW101137644A TW101137644A TW201415846A TW 201415846 A TW201415846 A TW 201415846A TW 101137644 A TW101137644 A TW 101137644A TW 101137644 A TW101137644 A TW 101137644A TW 201415846 A TW201415846 A TW 201415846A
Authority
TW
Taiwan
Prior art keywords
switch circuit
luminaire
address
data
wafer
Prior art date
Application number
TW101137644A
Other languages
Chinese (zh)
Other versions
TWI511511B (en
Inventor
Chun-Fu Lin
Chun-Ting Kuo
Cheng-Han Hsieh
Original Assignee
My Semi Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by My Semi Inc filed Critical My Semi Inc
Priority to TW101137644A priority Critical patent/TWI511511B/en
Publication of TW201415846A publication Critical patent/TW201415846A/en
Application granted granted Critical
Publication of TWI511511B publication Critical patent/TWI511511B/en

Links

Landscapes

  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The present invention relates to a lighting device controlling chip, an apparatus and an addressing method thereof. The lighting device has a trigger terminal for receiving a first setting voltage, an output terminal for outputting a second setting voltage and a signal receiving interface for receiving a data packet having a plurality of serial transmitted data slots. The lighting device controlling chip may automatically set an address thereof according to the voltage level of the first setting voltage and a counting signal corresponding to the number of the received data slots. Also the lighting device controlling chip would store the address so that the trigger terminal could be used for another function when the address is set.

Description

燈具控制晶片、裝置、系統與其定址方法 Lamp control chip, device, system and addressing method thereof

本發明是有關於一種燈具控制裝置,且特別是有關於一種適用於DMX(Digital MultipleX)512協定的燈具控制晶片、裝置、系統與方法。 The present invention relates to a luminaire control apparatus, and more particularly to a luminaire control wafer, apparatus, system and method suitable for DMX (Digital MultipleX) 512 protocol.

LED的應用愈來愈廣泛,主要應用在照明與燈號顯示,其中最常用的LED的控制標準是DMX512標準。DMX512是一種數位通訊介面的標準,主要應用於燈光設備之間的通訊協定,其內容包括資料傳輸的數據格式、設備的電氣特性與連接器類型。DMX512協議最先是由美國劇院技術協會(Engineering Commission of United States Institute for Theatre Technology,USITT)所發展制定。在DMX512協議制訂之前就有很多燈光控制協定應用在燈光設備上,但隨著系統愈來愈複雜,不同產品之間的互容性需求就愈來愈高,DMX512便是在這種情況下因應而生。 LED applications are becoming more and more extensive, mainly used in lighting and signal display. The most commonly used LED control standard is DMX512 standard. DMX512 is a standard for digital communication interfaces. It is mainly used in communication protocols between lighting devices. The content includes data format of data transmission, electrical characteristics of devices and connector types. The DMX512 protocol was first developed by the Engineering Commission of the United States Institute for Theatre Technology (USITT). Before the DMX512 protocol was developed, there were many lighting control agreements applied to lighting equipment. However, as the system became more and more complex, the mutual compatibility requirements between different products became higher and higher, and the DMX512 responded in this case. Born.

DMX512資料是採用非同步串列資料傳輸方式(asynchronous serial format)進行傳輸,每個資料封包包括一個起始碼(START CODE)與最多512個通道資料,其中第1個資料槽(slot 0,也可稱為時槽)用來傳輸起始碼,其後的第2個資料槽(slot 1)至第512個資料槽(slot 512)是用來傳送通道資料。目前國際、國內電腦燈普遍採用DMX512資料格式編寫程式檔。DMX512資料流程的速度是250K,即每個位元為標準長度的4微秒(us),符合協議的位元長度是介於3.92us~4.08us之間。 DMX512 data is transmitted in asynchronous serial format. Each data packet includes a start code (START CODE) and a maximum of 512 channels. The first data slot (slot 0, also It can be called time slot) used to transmit the start code, and the second data slot (slot 1) to the 512th data slot (slot 512) are used to transmit channel data. At present, international and domestic computer lights generally use the DMX512 data format to write programs. The speed of the DMX512 data flow is 250K, that is, each bit is 4 microseconds (us) of the standard length, and the bit length of the protocol is between 3.92us and 4.08us.

使用DMX512標準或其延伸的標準協定來控制燈具需要設定控制晶片的定址,一般的作法是使用腳位設定或是逐一寫入位址至各個控制晶片中。不論是何種作法,在習知技術中,控制晶片需要個別進行寫入位址的動作,無法自動辨識其連接的位置與順序。 The use of the DMX512 standard or its extended standard protocol to control the luminaires requires setting the addressing of the control wafer. The general practice is to use pad settings or write addresses one by one to each control chip. Regardless of the method, in the prior art, the control chip needs to individually write the address, and the position and order of the connection cannot be automatically recognized.

本發明提供一種燈具控制晶片、裝置與系統,其中個別晶片可自動辨識本身的排列順序並且自動設定位址以達到自動設定位置的功效。 The present invention provides a luminaire control wafer, apparatus and system in which individual wafers can automatically identify their own ordering and automatically set the address to achieve the effect of automatically setting the position.

本發明提供一種燈具控制方法,初始時利用已接收的資料槽數量來辨識本身晶片的排列順序以自動設定晶片位址,並進行記錄,避免中間有晶片損壞時,後端晶片無法判讀資料。 The invention provides a lamp control method. Initially, the number of received data slots is used to identify the order of the wafers themselves to automatically set the wafer addresses, and to record, to avoid the wafers being damaged in the middle, the back-end wafers cannot read the data.

本發明提供一種燈具控制晶片、裝置與系統,其中個別晶片可自動辨識本身的排列順序並且自動設定位址,並進行記錄,爾後使用若有損壞可方便替換。 The invention provides a lamp control chip, device and system, wherein individual wafers can automatically identify their own sorting order and automatically set the address, and record, and then use if damaged, it can be easily replaced.

本發明提出一種燈具控制晶片,適用於根據一第一設定電壓與一資料封包驅動一個或多個燈具,其中該資料封包具有多數個串列傳輸的資料槽,其特徵在於該燈具控制晶片包括一觸發端、一輸出端與一信號接收介面,該觸發端用以接收該第一設定電壓,該輸出端用以輸出一第二設定電壓,該信號接收介面用以接收該資料封包,其中,該燈具控制晶片具有一定址模式,當該燈具控制晶片進入該定址模式時,該燈具控制晶片根據該第一設定電壓的電壓位準與該燈具控制晶片已接收到的資料槽數量決定該燈具控制晶片的一位址並且該燈具記錄該位址,當該燈具控制晶片離開該 定址模式時,該燈具控制晶片經由該觸發端或輸出端輸出一晶片偵測資料。 The present invention provides a luminaire control chip adapted to drive one or more luminaires according to a first set voltage and a data packet, wherein the data packet has a plurality of serially transmitted data slots, wherein the luminaire control wafer comprises a a triggering end, an output end and a signal receiving interface, the triggering end is configured to receive the first set voltage, the output end is configured to output a second set voltage, and the signal receiving interface is configured to receive the data packet, wherein the The luminaire control chip has an address mode. When the luminaire controls the wafer to enter the addressing mode, the luminaire control chip determines the luminaire control chip according to the voltage level of the first set voltage and the number of data slots that the luminaire control wafer has received. One location and the luminaire records the address when the luminaire controls the wafer to leave the In the addressing mode, the luminaire control chip outputs a wafer detection data via the trigger terminal or the output terminal.

本發明另提出一種燈具控制裝置,適用於根據一第一設定電壓與一資料封包驅動多數個燈具,其中該資料封包具有多數個串列傳輸的資料槽,該燈具控制裝置包括一第一燈具控制晶片與一第二燈具控制晶片。第一燈具控制晶片具有一第一觸發端、一第一輸出端與一第一信號接收介面,其中該第一觸發端用以接收該第一設定電壓,該第一輸出端用以輸出一第二設定電壓,該第一信號接收介面用以接收該資料封包。第二燈具控制晶片具有一第二觸發端、一第二輸出端與一第二信號接收介面,其中該第二觸發端耦接於該第一輸出端,該第二信號接收介面用以接收該資料封包。 The invention further provides a lamp control device, which is adapted to drive a plurality of lamps according to a first set voltage and a data packet, wherein the data packet has a plurality of serially transmitted data slots, and the lamp control device comprises a first lamp control The wafer and a second luminaire control the wafer. The first illuminating control chip has a first triggering end, a first output end and a first signal receiving interface, wherein the first triggering end is configured to receive the first set voltage, and the first output end is configured to output a first And setting a voltage, the first signal receiving interface is configured to receive the data packet. The second luminaire control chip has a second triggering end, a second output end and a second signal receiving interface, wherein the second triggering end is coupled to the first output end, and the second signal receiving interface is configured to receive the second Data packet.

其中,當該第一燈具控制晶片進入一定址模式時,該第一燈具控制晶片根據該第一設定電壓的電壓位準與該第一燈具控制晶片已接收到的資料槽數量決定該第一燈具控制晶片的一第一位址,並且,該第一燈具控制晶片記憶該第一位址;該第二燈具控制晶片根據該第二設定電壓的電壓位準與該第二燈具控制晶片已接收到的資料槽數量決定該第二燈具控制晶片的一第二位址,並且,該第二燈具控制晶片記憶該第二位址; 其中,當該第一燈具控制晶片離開該定址模式時,該第一燈具控制晶片經由該第一觸發端輸出一晶片偵測資料。 Wherein, when the first luminaire controls the wafer to enter the address mode, the first luminaire control chip determines the first luminaire according to the voltage level of the first set voltage and the number of data slots that the first luminaire control wafer has received Controlling a first address of the wafer, and the first luminaire controls the chip to memorize the first address; the second luminaire controls the wafer to receive the voltage according to the second set voltage and the second luminaire control chip has received The number of data slots determines a second address of the second luminaire control chip, and the second luminaire controls the chip to memorize the second address; The first luminaire control chip outputs a wafer detection data via the first trigger terminal when the first luminaire controls the wafer to leave the addressing mode.

從另一個角度來看,本發明提出一種燈具控制晶片的定址方法,適用於一燈具控制晶片,該燈具控制晶片包括一觸發端、一輸出端與一信號接收介面,其中該觸發端用以接收一第一 設定電壓,該輸出端用以輸出一第二設定電壓,該信號接收介面用以接收一資料封包,其中該資料封包具有多數個串列傳輸的資料槽,其特徵在於該定址方法包括下列步驟:計數該燈具控制晶片已接收的資料槽數量以產生一計數信號;根據該第一設定電壓的電壓位準與對應於已接收到的資料槽數量的該計數信號決定該燈具控制晶片的一位址;記憶該位址;以及用該觸發端以及該輸出端執行一指定功能。 From another point of view, the present invention provides a method for addressing a luminaire control chip, which is suitable for a luminaire control chip. The luminaire control chip includes a trigger end, an output end and a signal receiving interface, wherein the trigger end is configured to receive First The output terminal is configured to output a second set voltage, and the signal receiving interface is configured to receive a data packet, wherein the data packet has a plurality of serially transmitted data slots, wherein the addressing method comprises the following steps: Counting the number of data slots that the luminaire control wafer has received to generate a count signal; determining a position of the luminaire control wafer according to the voltage level of the first set voltage and the count signal corresponding to the number of received data slots Remembering the address; and performing a specified function with the trigger and the output.

本發明實施例可以在被觸發時根據已接收的資料槽自動設定位址,之後儲存被自動設定的位址。本發明的燈具控制晶片不需要外部的設定機構或逐一手動設定的程序,便可自動偵測本身的排列順序並設定對應的位址。藉此,本發明的燈具控制晶片可以隨意調整各別晶片的排列順序,個別晶片會在接收到資料封包時會自動設定對應的位址,另外,在設定完畢後,晶片的觸發端以及輸出端可用以作另一指定功能。不會浪費晶片的腳位,當任何一燈具晶片損壞,無需全部重新設定,只需更換損壞的晶片及可運行。 In the embodiment of the present invention, the address can be automatically set according to the received data slot when triggered, and then the automatically set address is stored. The lamp control chip of the invention can automatically detect its own arrangement order and set the corresponding address without an external setting mechanism or a manually set program. Therefore, the lamp control chip of the present invention can adjust the arrangement order of the individual chips at will, and the individual chips will automatically set the corresponding address when receiving the data package, and after the setting is completed, the trigger end and the output end of the chip. Can be used for another specified function. The wafer's pins are not wasted. When any of the luminaires are damaged, it is not necessary to completely reset them. It is only necessary to replace the damaged wafers and operate them.

為使能更進一步瞭解本發明之特徵及技術內容,請參閱以下有關本發明之詳細說明與附圖,但是此等說明與所附圖式僅係用來說明本發明,而非對本發明的權利範圍作任何的限制。 The detailed description of the present invention and the accompanying drawings are to be understood by the claims The scope is subject to any restrictions.

在下文中,將藉由圖式說明本發明之實施例來詳細描述本發明,而圖式中的相同參考數字可用以表示類似的元件。 In the following, the invention will be described in detail by the embodiments of the invention, and the same reference numerals are used in the drawings.

(第一實施例) (First Embodiment)

圖1為根據本發明第一實施例的燈光系統示意圖。圖2為根據本發明第一實施例的燈光系統之信號波形圖。請同時參考 圖1以及圖2,首先,第一燈具控制晶片111先接收到第一設定電壓,此第一設定電壓為邏輯高電位,因此第一燈具控制晶片111會設定本身的位址為第一順位,表示其位於所有燈具控制晶片111~119中的第一個。然後,在間隔一個資料槽後,第二設定電壓會被第一燈具控制晶片111轉換為邏輯高電位以觸發第二燈具控制晶片112設定其位址。 1 is a schematic view of a lighting system in accordance with a first embodiment of the present invention. 2 is a signal waveform diagram of a lighting system in accordance with a first embodiment of the present invention. Please also refer to 1 and 2, first, the first lamp control chip 111 first receives a first set voltage, and the first set voltage is a logic high level, so the first lamp control chip 111 sets its own address as the first order. Indicates that it is located in the first of all luminaire control wafers 111-119. Then, after spacing one of the data slots, the second set voltage is converted to a logic high by the first luminaire control wafer 111 to trigger the second luminaire control wafer 112 to set its address.

由於第二設定電壓轉換為邏輯高電壓的位置是位於起始資料槽slot 0,所以第二燈具控制晶片112會偵測到起始資料槽slot 0,藉此第二燈具控制晶片112會設定位址以對應於排列順序為第二的燈具控制晶片。同理,在間隔一個資料槽後,第二燈具控制晶片112會在偵測到第1資料槽slot 1後將其輸出端143所輸出的電壓(第三設定電壓)轉換為邏輯高電位以觸發下一級的第三燈具控制晶片113以設定位址。此外,通道間時間219(Mark time between slots)為時槽與時槽間的間隔,介於0~1秒,且中斷後時間MAB的時間介於8微秒至1秒之間。 Since the position where the second set voltage is converted to the logic high voltage is located in the start data slot slot 0, the second lamp control chip 112 detects the start data slot slot 0, whereby the second lamp control chip 112 sets the bit. The wafer is controlled by a luminaire corresponding to the second order. Similarly, after a data slot is separated, the second lamp control chip 112 converts the voltage (the third set voltage) outputted from the output terminal 143 into a logic high level to trigger after detecting the first data slot 1 . The third luminaire of the next stage controls the wafer 113 to set the address. In addition, the inter-channel time 219 (Mark time between slots) is the interval between the time slot and the time slot, which is between 0 and 1 second, and the time of the MAB after the interruption is between 8 microseconds and 1 second.

圖3為根據本發明第一實施例的燈光系統示意圖。請參照圖3,燈光系統300包括N個燈具,依照排列順序,以第一至第N燈具331~339表示。燈光系統300包括燈具控制裝置310,其包括第一至第N燈具控制晶片311~319,其中第一至第N燈具控制晶片311~319分別耦接於第一至第N燈具331~339,用以分別驅動第一至第N燈具331~339,其中N為正整數。 Figure 3 is a schematic illustration of a lighting system in accordance with a first embodiment of the present invention. Referring to FIG. 3, the lighting system 300 includes N lamps, which are represented by first to Nth lamps 331 to 339 in accordance with the arrangement order. The lighting system 300 includes a luminaire control device 310, which includes first to Nth luminaire control wafers 311-319, wherein the first to Nth luminaire control wafers 311-319 are coupled to the first to Nth illuminators 331-339, respectively. To drive the first to Nth lamps 331 to 339, respectively, where N is a positive integer.

第一至第N燈具控制晶片311~319的觸發端341與輸出端343以串聯方式連接,每個燈具控制晶片具有觸發端341、輸出端343與信號接收介面342,前一級的燈具控制晶片的輸 出端342耦接於下一級的燈具控制晶片的觸發端341。第一燈具控制晶片311的觸發端341則耦接於第一設定電壓,其中第一設定電壓為固定的直流電壓位準,例如5V或3V,但本發明不限制於此。上述燈具則例如是發光二極體(light emitting diode ,LED)燈具,但本發明不限制於此。相較於第1圖的燈光系統圖,本實施例的燈光系統中,每一個燈具控制晶片311~319皆有內建一個位址記憶單元,一般可以用揮發性記憶體(例如DRAM、SRAM)、非揮發性記憶體(例如EPROM、FLASH)實施。 The trigger terminals 341 and the output terminals 343 of the first to Nth luminaire control chips 311 319 are connected in series. Each luminaire control chip has a trigger end 341, an output end 343 and a signal receiving interface 342. The luminaire of the previous stage controls the wafer. lose The output end 342 is coupled to the trigger end 341 of the luminaire control wafer of the next stage. The triggering end 341 of the first luminaire control chip 311 is coupled to the first set voltage, wherein the first set voltage is a fixed DC voltage level, such as 5V or 3V, but the invention is not limited thereto. The above lamp is, for example, a light emitting diode (LED) lamp, but the invention is not limited thereto. Compared with the lighting system diagram of FIG. 1 , in the lighting system of the embodiment, each of the lamp control chips 311 319 319 has a built-in address memory unit, and generally can use volatile memory (such as DRAM, SRAM). Non-volatile memory (eg EPROM, FLASH) is implemented.

第一至第N燈具控制晶片311~319的信號接收介面342皆會耦接於DMX512控制器320的輸出介面以接收對應於DMX512標準的資料封包,其中每個資料封包具有多數個串列傳輸的資料槽(slot)。如圖3所示,第一至第N燈具控制晶片311~319的信號接收介面342是以並聯的方式連接至DMX512控制器320的輸出介面以接收DMX控制信號(即資料封包)。也就是說,在本實施例中,第一至第N燈具控制晶片311~319的觸發端341與輸出端343可視為單線的定址介面,是以串聯的方式連接。第一至第N燈具控制晶片311~319的信號接收介面342可視為信號接收的介面,是以並聯的方式連接至DMX512控制器320的輸出介面。 The signal receiving interfaces 342 of the first to Nth lamp control chips 311-319 are all coupled to the output interface of the DMX512 controller 320 to receive data packets corresponding to the DMX512 standard, wherein each data packet has a plurality of serial transmissions. Data slot. As shown in FIG. 3, the signal receiving interfaces 342 of the first through Nth lamp control chips 311-319 are connected in parallel to the output interface of the DMX512 controller 320 to receive DMX control signals (ie, data packets). That is to say, in the present embodiment, the triggering end 341 and the output end 343 of the first to Nth luminaire control wafers 311 to 319 can be regarded as a single-line addressing interface, which are connected in series. The signal receiving interfaces 342 of the first to Nth lamp control chips 311 to 319 can be regarded as a signal receiving interface, and are connected in parallel to the output interface of the DMX512 controller 320.

DMX512控制器320的輸出介面例如是RS485標準的差動傳輸介面,也稱為EIA-485傳輸介面,但本發明不限制於此。RS485是差動介面,因此其末端會連接電阻R以形成迴路。信號接收介面342適用接收符合EIA-485標準的信號。DMX512控制器320輸出資料封包的速度可依照系統需求而定,例如採用DMX512標準或者是兩倍速DMX512標準或是四倍速 DMX512標準,但本發明並不限制於此。所謂兩倍速DMX512標準或是四倍速DMX512標準就是將標準的DMX512的頻率加倍以在相同週期中傳送更多個資料封包。另外,另一種DMX規範名叫RDM(remote device management),它的時間規範和DMX512一模一樣,但是它可以藉由差動介面把裝置的狀態回傳到DMX控制器,所以這個介面有可能是雙向(接收及傳送)的信號傳送介面。本發明的信號接收介面342也可採用符合上述RDM規範的介面來實現。 The output interface of the DMX512 controller 320 is, for example, a differential transmission interface of the RS485 standard, also referred to as an EIA-485 transmission interface, but the invention is not limited thereto. RS485 is the differential interface, so the resistor R is connected to the end to form a loop. The signal receiving interface 342 is adapted to receive signals conforming to the EIA-485 standard. The speed of the DMX512 controller 320 output data packet can be determined according to the system requirements, such as the DMX512 standard or the double speed DMX512 standard or quadruple speed. DMX512 standard, but the invention is not limited thereto. The so-called double-speed DMX512 standard or quad-speed DMX512 standard doubles the frequency of the standard DMX512 to transmit more data packets in the same cycle. In addition, another DMX specification called RDM (remote device management), its time specification is exactly the same as DMX512, but it can pass the state of the device back to the DMX controller through the differential interface, so this interface may be bidirectional ( Receive and transmit) signal transmission interface. The signal receiving interface 342 of the present invention can also be implemented using an interface that conforms to the RDM specifications described above.

第一至第N燈具控制晶片311~319會依照觸發端341所接收到的電壓位準與對應於已接收到的資料槽數量的計數信號決定燈具控制晶片的一位址以表示本身的連接順序(如第一個或第二個)。以第一燈具控制晶片311為例,在接收到資料封包時,第一燈具控制晶片311會計數所接收到的資料槽的數量以產生計數信號。計數資料槽數量的方式有很多種,例如偵測每個資料槽中僅會出現一次的信號,其信號例如是(1)起始碼(start bit);(2)資料槽中的8位元資料(8bit data);(3)停止位元(stop bits);(4)通道間標記(mark between slot),因為上述四個信號在1個資料槽中,都只會出現一次。換言之,計數資料槽的方式可經由對應於資料槽的格式或信號來偵測,以間接的方式來推算出資料槽的數量。 The first to Nth lamp control chips 311 to 319 determine the address of the lamp control wafer to indicate the connection order of the lamp according to the voltage level received by the trigger terminal 341 and the count signal corresponding to the number of received data slots. (such as the first or second). Taking the first luminaire control wafer 311 as an example, when receiving the data packet, the first luminaire control wafer 311 counts the number of received data slots to generate a count signal. There are many ways to count the number of data slots, such as detecting a signal that appears only once in each data slot. The signals are, for example, (1) start bit (start bit); (2) 8-bit data slot. Data (8bit data); (3) stop bits; (4) mark between slots, because the above four signals will appear only once in one data slot. In other words, the manner in which the data slot is counted can be detected via a format or signal corresponding to the data slot, and the number of data slots can be inferred in an indirect manner.

第一至第N燈具控制晶片311~319會由其信號接收介面342所收到的資料封包中的第1個資料槽(slot 0)的資料決定進入定址模式或離開定址模式。換言之,第1個資料槽(slot 0)具有兩種資料類型,分別對應於定址模式與正常顯示模式。舉例來說,假設所接收到的資料封包中的第1個資料槽(slot 0)全部為邏輯1時,就表示要開始進行燈具控制晶片311~319 的位址設定,第一至第N燈具控制晶片311~319會進入定址模式。當所接收到的資料封包中的第1個資料槽(slot 0)全部為邏輯0時,就表示要離開定址模式,進入正常的顯示模式。 The first to Nth lamp control chips 311 to 319 are determined to enter the address mode or leave the address mode by the data of the first data slot (slot 0) in the data packet received by the signal receiving interface 342. In other words, the first data slot (slot 0) has two data types, which correspond to the addressing mode and the normal display mode, respectively. For example, if the first data slot (slot 0) in the received data packet is all logic 1, it means that the lamp control chip 311~319 is to be started. The address setting, the first to Nth lamp control chips 311~319 will enter the addressing mode. When the first data slot (slot 0) in the received data packet is all logic 0, it indicates that the address mode is to be left and the normal display mode is entered.

在進行定址時,DMX512控制器120可以先傳送一個定址用的資料封包,讓燈具控制晶片311~319進入定址模式以進行定址。在定址完成後,DMX512控制器120再傳送正常畫面顯示用的資料封包,讓定址後的燈具控制晶片311~319驅動第一至第N燈具331~339以及回傳晶片內部的晶片偵測資料。換言之,燈具控制晶片311~319在接收到非定址用的資料封包時,便會離開定址模式。此外,在定址用的資料封包中,除了第1個資料槽外,其餘的資料槽可以用來傳送驅動資料。因此,燈具控制晶片311~319也可自定址用的資料封包中取得驅動資料以驅動第一至第N燈具339。 When addressing, the DMX512 controller 120 may first transmit a data packet for addressing, allowing the luminaire control wafers 311-319 to enter the addressing mode for addressing. After the address is completed, the DMX512 controller 120 transmits the data packet for normal screen display, and the addressed lamp control chips 311 to 319 drive the first to Nth lamps 331 to 339 and the wafer detection data inside the chip. In other words, when the lamp control chips 311 to 319 receive the data packet for non-addressing, they leave the address mode. In addition, in the data packet for addressing, in addition to the first data slot, the remaining data slots can be used to transmit the driving data. Therefore, the lamp control chips 311 to 319 can also obtain driving data from the data packets for addressing to drive the first to Nth lamps 339.

在正常的畫面顯示模式中,燈具控制晶片311~319的觸發端341可以用來輸出晶片內部的晶片偵測資料,而燈具控制晶片311~319的輸出端343可以用來接收後一級燈具控制晶片311~319所輸出的晶片偵測資料。換言之,串接的燈具控制晶片311~319可以回傳其內部的晶片偵測資料。晶片偵測資料例如晶片溫度、電流輸出狀態、位址資訊以及錯誤偵測資料等,但本實施例不受限於此。 In the normal picture display mode, the trigger terminals 341 of the lamp control chips 311 to 319 can be used to output the wafer detection data inside the wafer, and the output terminals 343 of the lamp control chips 311 to 319 can be used to receive the latter stage lamp control chip. The wafer detection data output from 311 to 319. In other words, the serially connected luminaire control wafers 311-319 can return their internal wafer detection data. The wafer detection data such as the wafer temperature, the current output state, the address information, the error detection data, and the like, but the embodiment is not limited thereto.

值得注意的是,在第1個資料槽(slot 0)中,對應定址模式的資料例如是00001111或00001100,而對應正常顯示模式的資料例如是00000000或11110000,本實施例不限制兩種模式所對應的資料,只要兩種資料不同即可。另外,上述正常顯示模式中也可以視為離開定址模式下的操作模式,也就是說,只要第一至第N燈具控制晶片311~319未進入定址模式,即表 示位於正常顯示模式,因此在此種設定下,僅需定義對應定址模式的資料即可。當第一至第N燈具控制晶片311~319未偵測到對應於定址模式的資料時,即離開定址模式並且自動進入正常顯示模式。 It should be noted that, in the first data slot (slot 0), the data corresponding to the addressing mode is, for example, 00001111 or 00001100, and the data corresponding to the normal display mode is, for example, 00000000 or 11110000, and the present embodiment does not limit the two modes. Corresponding information, as long as the two materials are different. In addition, the above normal display mode can also be regarded as leaving the operation mode in the address mode, that is, as long as the first to Nth lamp control chips 311 to 319 do not enter the address mode, that is, the table The display is in the normal display mode, so in this setting, only the data corresponding to the addressing mode needs to be defined. When the first to Nth lamp control chips 311 to 319 do not detect the data corresponding to the address mode, they leave the address mode and automatically enter the normal display mode.

在定址模式下,第一至第N燈具控制晶片311~319會根據其觸發端341所接收到的設定電壓的電壓位準變化的時機與當時所接收到的資料槽數量來決定本身的位址。舉例來說,當偵測到第一設定電壓轉換為邏輯高電位時,第一燈具控制晶片311會根據對應於已接收到的資料槽數量的計數信號決定第一燈具控制晶片311的位址。舉例來說,若第一設定電壓在系統啟動時就是邏輯高電位,則第一燈具控制晶片311會在接收到任何資料槽前就偵測到其觸發端141的位準為邏輯高電位。因此,當接收到第一個資料槽(slot 0)表示進入定址模式時,第一燈具控制晶片311就會知道本身是位於所有燈具控制晶片中的第一個,並據此設定本身的位址,然後第一燈具控制晶片311會將上述位址記錄在其311內部的位址記憶單元中。 In the addressing mode, the first to Nth lamp control chips 311 to 319 determine the address of the device according to the timing of the voltage level change of the set voltage received by the trigger terminal 341 and the number of data slots received at that time. . For example, when it is detected that the first set voltage is converted to a logic high level, the first lamp control wafer 311 determines the address of the first lamp control chip 311 according to the count signal corresponding to the number of received data slots. For example, if the first set voltage is logic high when the system is started, the first lamp control chip 311 detects that the level of the trigger terminal 141 is logic high before receiving any data slot. Therefore, when the first data slot (slot 0) is received to indicate that the address mode is entered, the first lamp control chip 311 knows that it is the first one in all the lamp control chips, and sets its own address accordingly. Then, the first luminaire control chip 311 records the above address in the address memory unit inside its 311.

然後,第一燈具控制晶片311會繼續計數所接收到的資料槽數量,在間隔一預定數量的資料槽(例如1個資料槽或是兩個資料槽,可以依需求而定)之後,會將第一燈具控制晶片311的輸出端343所輸出的第二設定電壓轉換至預設電位(即邏輯高電位)以觸發第二燈具控制晶片312。 Then, the first lamp control chip 311 continues to count the number of received data slots, after a predetermined number of data slots (for example, one data slot or two data slots, which can be determined according to requirements) The second set voltage output by the output 343 of the first luminaire control wafer 311 is switched to a preset potential (ie, a logic high) to trigger the second luminaire control wafer 312.

同理,第二燈具控制晶片312會在偵測到其觸發端341的電位(即第一燈具控制晶片311的輸出端343所輸出的第二設定電壓)轉會為邏輯高電位時,根據對應於已接收到的資料槽數量的計數信號決定第二燈具控制晶片312的位址。舉例來說,若第一燈具控制晶片311是在間隔一個資料槽後將其輸出端 343轉換為邏輯高電位。第二燈具控制晶片312會先接收到一個資料槽後才會偵測到其觸發端341的電位轉換為邏輯高電位。因此,第二燈具控制晶片312會得知本身是位於所有燈具控制晶片中的第二個,並據此設定本身的位址,之後,第二燈具控制晶片312會將上述位址記錄在其312內部的位址記憶單元中。 Similarly, the second lamp control chip 312 will detect the potential of the trigger terminal 341 (ie, the second set voltage outputted by the output terminal 343 of the first lamp control wafer 311) to a logic high level, according to the corresponding The count signal of the number of received data slots determines the address of the second luminaire control wafer 312. For example, if the first luminaire control wafer 311 is at an output after spacing a data slot 343 is converted to a logic high. The second lamp control chip 312 will first detect that the potential of the trigger terminal 341 is converted to a logic high level after receiving a data slot. Thus, the second luminaire control wafer 312 will know that it is the second of all luminaire control wafers and set its own address accordingly, after which the second luminaire control wafer 312 will record the above address at its 312. Internal address memory unit.

以此類推,每個燈具控制晶片311~319可以在其觸發端341的電位轉換為邏輯高電位的時(即觸發端341被觸發時),依據已接收到的資料槽數量得知本身的排列順序然後決定燈具控制晶片的位址。在第一至第N燈具控制晶片311~319設定好本身的位址後,便可依照其位址讀取資料封包中的資料槽以驅動對應的第一至第N燈具331~339。舉例來說,第一燈具控制晶片311讀取資料封包中的第1資料槽(slot 1),而第二燈具控制晶片312讀取資料封包中的第2資料槽(slot 2),其餘燈具控制晶片依此類推,在此不再累述。 By analogy, each of the luminaire control chips 311 319 319 can learn its own arrangement according to the number of received data slots when the potential of the trigger terminal 341 is converted to a logic high level (ie, when the trigger terminal 341 is triggered). The sequence then determines the address of the luminaire control wafer. After the first to Nth lamp control chips 311 to 319 are set to their own addresses, the data slots in the data packet can be read according to the address to drive the corresponding first to Nth lamps 331 to 339. For example, the first luminaire control wafer 311 reads the first data slot (slot 1) in the data packet, and the second luminaire control wafer 312 reads the second data slot (slot 2) in the data packet, and the remaining luminaires control The same is true for wafers and will not be described here.

另外,值得注意的是,每個燈具控制晶片也可以一次讀取多個資料槽,例如第一燈具控制晶片311讀取資料封包中的第1至第3資料槽(slot 1~slot 3),而第二燈具控制晶片312讀取資料封包中的第4~第6資料槽(slot 4~slot 6),其餘燈具控制晶片依此類推依此類推,在此不再累述。也就是說,第一至第N燈具控制晶片311~319會分別依據其觸發端341的電壓位準與對應於已接收到的資料槽數量的計數信號決定燈具控制晶片的位址,並於結束後,用其內部的位址記憶單元記憶上述位址。 In addition, it is worth noting that each of the luminaire control wafers can also read a plurality of data slots at a time. For example, the first luminaire control wafer 311 reads the first to third data slots (slot 1 to slot 3) in the data packet. The second luminaire control chip 312 reads the 4th to 6th data slots (slot 4~slot 6) in the data packet, and the rest of the luminaire control wafers are deduced by analogy, and will not be described here. That is to say, the first to Nth lamp control chips 311 to 319 determine the address of the lamp control chip according to the voltage level of the trigger terminal 341 and the counting signal corresponding to the number of received data slots, respectively, and end. After that, the above address is memorized by its internal address memory unit.

接下來,配合資料封包的波形進一步說明上述第一至第N燈具控制晶片311~319的位址設定方式。請一併參照圖4,圖 4為根據本發明第一實施例的信號波形圖。一般而言,DMX512的資料封包中,最先傳遞的資料槽slot 0為起始碼(start code),可用於區別所連接的燈具類型,在本實施例中,假設第1個資料槽(slot 0)全部為邏輯1時,就表示要開始進行燈具控制晶片311~319的位址設定。此外,通道間時間419(Mark time between slots)為時槽與時槽間的間隔,介於0~1秒,且中斷後時間MAB的時間介於8微秒至1秒之間。 Next, the address setting manners of the first to Nth lamp control chips 311 to 319 described above are further described in conjunction with the waveform of the data packet. Please refer to Figure 4 together. 4 is a signal waveform diagram according to the first embodiment of the present invention. Generally, in the data packet of the DMX512, the data slot slot 0 that is first transmitted is a start code, which can be used to distinguish the type of the connected fixture. In this embodiment, the first data slot (slot) is assumed. 0) When all are logic 1, it indicates that the address setting of the lamp control chips 311 to 319 is to be started. In addition, the inter-channel time 419 (Mark time between slots) is the interval between the time slot and the time slot, which is between 0 and 1 second, and the time of the MAB after the interruption is between 8 microseconds and 1 second.

在圖4中,第一設定電壓表示第一燈具控制晶片311的觸發端341所接收到的電壓,而第二設定電壓則表示第二燈具控制晶片312的觸發端341所接收到的電壓(同時也是第一燈具控制晶片311的輸出端343所輸出的電壓),第三設定電壓則表示第三燈具控制晶片313的觸發端341所接收到的電壓(同時也是第二燈具控制晶片312的輸出端343所輸出的電壓)。 In FIG. 4, the first set voltage represents the voltage received by the trigger terminal 341 of the first lamp control wafer 311, and the second set voltage represents the voltage received by the trigger terminal 341 of the second lamp control wafer 312 (at the same time) The voltage output by the output terminal 343 of the first lamp control wafer 311, and the third set voltage indicates the voltage received by the trigger terminal 341 of the third lamp control wafer 313 (also the output of the second lamp control wafer 312). 343 output voltage).

在系統啟動時,第一設定電壓預設為邏輯高電位(H),若第一燈具控制晶片311收到起始資料槽(slot 0)為全部邏輯1,則第一燈具控制晶片311會設定本身的位址為第一順位,表示其位於所有燈具控制晶片311~319中的第一個。然後,在間隔一個資料槽後,第二設定電壓會被第一燈具控制晶片311轉換為邏輯高電位以觸發第二燈具控制晶片312設定其位址。由於第二設定電壓轉換為邏輯高電壓的時間是位於資料槽slot 1,所以第二燈具控制晶片312會偵測到資料槽slot 1,藉此第二燈具控制晶片312會設定位址以對應於排列順序為第二的燈具控制晶片。同理,在間隔一個資料槽後,第二燈具控制晶片312會在偵測到第1資料槽slot 2後將其輸出端343所輸出的電壓(第三設定電壓)轉換為邏輯高電位以觸發下一級的第三燈具控制晶片313以設定位址。同理類推,後端的燈具控制晶片會 依序被觸發並且依據觸發時已接收到的資料槽數量推知本身的排列順序以決定本身的位址。 When the system is started, the first set voltage is preset to a logic high level (H). If the first lamp control chip 311 receives the start data slot (slot 0) as all logic 1, the first lamp control chip 311 is set. The address of itself is the first order, indicating that it is located in the first of all the lamp control chips 311~319. Then, after spacing one of the data slots, the second set voltage is converted to a logic high by the first luminaire control wafer 311 to trigger the second luminaire control wafer 312 to set its address. Since the time when the second set voltage is converted to the logic high voltage is located in the data slot 1 , the second lamp control chip 312 detects the data slot 1 , and the second lamp control chip 312 sets the address to correspond to The luminaire control wafer in the second order. Similarly, after a data slot is separated, the second lamp control chip 312 converts the voltage (the third set voltage) outputted from the output terminal 343 into a logic high level to trigger after detecting the first data slot 2 . The third luminaire of the next stage controls the wafer 313 to set the address. Similarly, the back end of the luminaire control chip will It is triggered in sequence and infers its own order according to the number of data slots that have been received at the time of triggering to determine its own address.

另外,值得注意的是,切換輸出端電壓的時間可以選擇在傳送資料槽的期間中的任一位置,如圖4中的第二設定電壓所示,只要燈具控制晶片可以計數已接收的資料槽數量即可。在本發明另一實施例中,切換輸出端電壓的時間也可以在對應的資料槽傳遞完成後再進行切換,本發明並不限制於此。經由上述說明可知,本發明的燈具控制晶片可以自動偵測本身的排列順序並設定對應的位址以讀取對應的資料槽。在燈具控制晶片中,從觸發端341被觸發(接收到預設電位的設定電壓)到轉換其輸出端343所輸出的設定電壓的間隔時間可為一個或多個資料槽(或資料槽的週期)。所有串聯的燈具控制晶片的間隔時間必須相同,這樣燈具控制晶片才能經由計數所接收的資料槽來推知本身的排列位置。 In addition, it is worth noting that the time for switching the output voltage can be selected at any position during the transmission of the data slot, as indicated by the second set voltage in FIG. 4, as long as the luminaire control chip can count the received data slots. The quantity is fine. In another embodiment of the present invention, the time for switching the voltage of the output terminal may also be switched after the corresponding data slot is transmitted, and the present invention is not limited thereto. It can be seen from the above description that the lamp control chip of the present invention can automatically detect its own arrangement order and set a corresponding address to read the corresponding data slot. In the luminaire control chip, the interval from when the trigger terminal 341 is triggered (the set voltage of the preset potential is received) to the set voltage outputted by the output terminal 343 thereof may be one or more data slots (or the period of the data slot) ). The interval between all series of luminaire control wafers must be the same so that the luminaire control wafer can infer its position by counting the received data slots.

舉例來說,假設間隔時間為兩個資料槽,當燈具控制晶片被觸發時已接收的資料槽為10個(或接收到第9資料槽,即slot 10),表示此燈具控制晶片是排列在第6個。除此之外,在本實施例中,串接的燈具控制晶片的數目並不受限,例如兩個或多個燈具控制晶片。根據上述本實施例之說明,本技術領域具有通常知識者應當可以推知其他實施方式,在此不加累述。 For example, suppose the interval is two data slots. When the luminaire control chip is triggered, the number of received data slots is 10 (or the ninth data slot is received, ie, slot 10), indicating that the luminaire control chip is arranged in The sixth. In addition, in the present embodiment, the number of serially connected luminaire control wafers is not limited, such as two or more luminaire control wafers. Based on the above description of the present embodiment, those skilled in the art should be able to infer other embodiments, which are not described herein.

當位址經由上述的方式設定完畢後,由於每一個晶片的位址皆已經被其內部的位址記憶單元所儲存,因此觸發端341與輸出端343便可以不需要使用。也因此,若有任何其中一個晶片在運作的途中發生損壞,不需要重新進行一次位址設定,可以直接更換。另外,在位址設定完成後,上述所有燈具控制晶片的觸發端341與輸出端343會被用以作為判斷燈具控制晶 片內部的驅動單元是否有問題的排除程序故障功能。以下以將燈具控制晶片內部的細節電路作為第二實施例以說明此功能。 After the address is set in the above manner, since the address of each chip has been stored by its internal address memory unit, the trigger terminal 341 and the output terminal 343 may not be used. Therefore, if any one of the wafers is damaged during operation, it is not necessary to perform an address setting again, and it can be directly replaced. In addition, after the address setting is completed, the trigger end 341 and the output end 343 of all the above lamp control chips are used as the judgment lamp control crystal. Whether the drive unit inside the chip has a problem with the program troubleshooting function. The following is to illustrate the function of the detail circuit inside the luminaire control wafer as a second embodiment.

(第二實施例) (Second embodiment)

第一至第N燈具控制晶片311~319中的定址方式可以利用韌體或電路實現,本發明並不限制。以電路為例,請參照圖5,圖5為根據本發明第二實施例的燈具控制晶片的電路示意圖。其中,圖5是以第一燈具控制晶片311為例說明,其餘燈具控制晶片的結構相同,可由圖5推知。請參照圖5,第一燈具控制晶片311包括位址記憶單元510、計數器520、驅動單元530、第一開關540、第二開關541、移位暫存器550,其中計數器520耦接於信號接收介面342、第一開關540、第二開關541、輸出端343以及位址記憶單元510。驅動單元530耦接於位址記憶單元510、信號接收介面342以及移位暫存器550。 The addressing modes in the first to Nth lamp control wafers 311 to 319 can be implemented by a firmware or a circuit, and the present invention is not limited thereto. Taking a circuit as an example, please refer to FIG. 5. FIG. 5 is a circuit diagram of a lamp control wafer according to a second embodiment of the present invention. 5 is an example of the first lamp control wafer 311. The rest of the lamp control wafers have the same structure, which can be inferred from FIG. 5. Referring to FIG. 5, the first lamp control chip 311 includes an address memory unit 510, a counter 520, a driving unit 530, a first switch 540, a second switch 541, and a shift register 550, wherein the counter 520 is coupled to the signal receiving. The interface 342, the first switch 540, the second switch 541, the output terminal 343, and the address memory unit 510. The driving unit 530 is coupled to the address memory unit 510, the signal receiving interface 342, and the shift register 550.

當進行位址設定時,也就是起始資料槽(slot 0)為全部邏輯1時,第一開關540將觸發端341耦接到計數器520且第二開關541將輸出端343耦接到計數器520,計數器520開始計數所接收的資料槽數量,並在第一設定電壓的電壓位準轉換至預設電位(如邏輯高電位)時輸出對應於已接收的資料槽數量的計數信號MD給位址記憶單元510。位址記憶單元510根據計數信號MD設定位址並記憶位址。然後,驅動單元530根據所設定的位址自所接收到的資料封包中讀取對應的一個或多個資料槽以驅動第一燈具控制晶片311所連接的一個或多個燈具。值得注意的是,上述輸出端343的電壓可由其他電路實現,例如驅動單元530輸出,上述圖5僅為本發明的一實施例,本發明並不受限於此。在本實施例中,上述第一設定電壓的預設電位是以邏輯高電位為例說明,但在本發明另一實施例中, 上述預設電位也可依照設計需求設定為邏輯低電位,本發明並不受限於此。 When address setting is performed, that is, when the start data slot (slot 0) is all logic 1, the first switch 540 couples the trigger terminal 341 to the counter 520 and the second switch 541 couples the output terminal 343 to the counter 520. The counter 520 starts counting the number of data slots received, and outputs a count signal MD corresponding to the number of received data slots to the address when the voltage level of the first set voltage is switched to a preset potential (such as a logic high level). Memory unit 510. The address memory unit 510 sets an address based on the count signal MD and memorizes the address. Then, the driving unit 530 reads the corresponding one or more data slots from the received data packets according to the set address to drive the one or more luminaires to which the first luminaire control wafer 311 is connected. It should be noted that the voltage of the output terminal 343 can be implemented by other circuits, such as the output of the driving unit 530. The above FIG. 5 is only an embodiment of the present invention, and the present invention is not limited thereto. In this embodiment, the preset potential of the first set voltage is exemplified by a logic high potential, but in another embodiment of the present invention, The above preset potential can also be set to a logic low level according to design requirements, and the present invention is not limited thereto.

當位址設定完成後,第一開關540將觸發端341耦接到移位暫存器550且第二開關會將輸出端343耦接到移位暫存器550。第1燈具控制晶片311的驅動單元530收到資料槽(slot 1)的資料後,若運作正常時,便會把運作正常的旗標(例如邏輯1)送給移位暫存器550,移位暫存器550便會將邏輯1輸出給第一燈具控制晶片311的觸發端。當第二燈具控制晶片312的驅動單元530收到資料槽(slot 2)的資料後,若運作不正常時,其驅動單元530會把運作不正常的旗標(例如邏輯0)傳送給其內部的移位暫存器550,移位暫存器550便會將邏輯0輸出給第二燈具控制晶片312的觸發端。 When the address setting is completed, the first switch 540 couples the trigger terminal 341 to the shift register 550 and the second switch couples the output terminal 343 to the shift register 550. After the driving unit 530 of the first lamp control chip 311 receives the data of the data slot (slot 1), if the operation is normal, the normal operation flag (for example, logic 1) is sent to the shift register 550. The bit register 550 outputs a logic 1 to the trigger terminal of the first lamp control wafer 311. When the driving unit 530 of the second lamp control chip 312 receives the data of the data slot (slot 2), if the operation is not normal, the driving unit 530 transmits an abnormally operating flag (for example, logic 0) to the inside thereof. The shift register 550, the shift register 550 outputs a logic 0 to the trigger terminal of the second lamp control wafer 312.

由於N個燈具控制晶片311~319的觸發端341與輸出端343與相互串接,因此使用者只需要從第1個燈具控制晶片311的觸發端作讀取,便可以發現第2個輸出的邏輯是邏輯0,使用者便可以知道,第二燈具控制晶片312有損壞或功能不正常,因此,使用者可以對此晶片312進行緊急處理,例如更換或重新設定。另外,移位暫存器550不一定要如上述僅用以接收旗標做除錯,驅動單元530仍可以回傳燈具狀態,例如;燈具溫度,LED開路/短路,目前的位置資訊回讀等等...。因此本發明不以上述實施例為限。 Since the trigger end 341 and the output end 343 of the N luminaire control chips 311 319 are connected in series with each other, the user only needs to read from the trigger end of the first luminaire control chip 311 to find the second output. The logic is logic 0, and the user can know that the second luminaire control wafer 312 is damaged or not functioning properly, so the user can perform emergency processing, such as replacement or resetting, on the wafer 312. In addition, the shift register 550 does not have to be used to receive the flag for debugging as described above, and the driving unit 530 can still return the status of the lamp, for example; lamp temperature, LED open/short circuit, current position information readback, etc. Wait.... Therefore, the present invention is not limited to the above embodiments.

當位址設定完成後,第一開關540將觸發端341耦接到移位暫存器550且第二開關541會將輸出端343耦接到移位暫存器550。第1燈具控制晶片311的驅動單元530收到資料槽(slot 1)的資料後,若運作正常時,便會把運作正常的旗標(例如邏輯1)送給移位暫存器550,移位暫存器550便會將邏輯1 輸出給第一燈具控制晶片311的輸出端。當第二燈具控制晶片312的驅動單元530收到資料槽(slot 2)的資料後,若運作不正常時,其驅動單元530會把運作不正常的旗標(例如邏輯0)傳送給其內部的移位暫存器550,移位暫存器550便會將邏輯0輸出給第二燈具控制晶片312的輸出端。 When the address setting is completed, the first switch 540 couples the trigger terminal 341 to the shift register 550 and the second switch 541 couples the output terminal 343 to the shift register 550. After the driving unit 530 of the first lamp control chip 311 receives the data of the data slot (slot 1), if the operation is normal, the normal operation flag (for example, logic 1) is sent to the shift register 550. Bit register 550 will be logic 1 Output to the output of the first luminaire control wafer 311. When the driving unit 530 of the second lamp control chip 312 receives the data of the data slot (slot 2), if the operation is not normal, the driving unit 530 transmits an abnormally operating flag (for example, logic 0) to the inside thereof. The shift register 550, the shift register 550 outputs a logic 0 to the output of the second lamp control wafer 312.

由於N個燈具控制晶片311~319的觸發端341與輸出端343與相互串接,因此使用者只需要從第N個燈具控制晶片319的輸出端作讀取,便可以發現倒數第2個輸出的邏輯是邏輯0,使用者便可以知道,第二燈具控制晶片312有損壞或功能不正常,因此,使用者可以對此晶片312進行緊急處理,例如更換或重新設定。另外,移位暫存器550不一定要如上述僅用以接收旗標做除錯,驅動單元530仍可以回傳燈具狀態,例如:燈具溫度,LED開路/短路,目前的位置資訊回讀等等...。因此本發明不以上述實施例為限。 Since the trigger end 341 and the output end 343 of the N luminaire control chips 311 319 are connected in series with each other, the user only needs to read from the output end of the Nth luminaire control chip 319 to find the second output from the last. The logic is logic 0, and the user can know that the second luminaire control wafer 312 is damaged or not functioning properly, so the user can perform emergency processing, such as replacement or resetting, on the wafer 312. In addition, the shift register 550 does not have to be used to receive the flag for debugging as described above, and the driving unit 530 can still return the status of the lamp, such as: lamp temperature, LED open/short circuit, current position information readback, etc. Wait.... Therefore, the present invention is not limited to the above embodiments.

值得注意的是,由於本發明的移位暫存器550可以雙向傳輸,因此使用者可以由燈具控制晶片311的觸發端341接收資料或是由燈具控制晶片311的輸出端343接收資料。位移暫存器550可接收驅動單元530所輸出的指定訊息,並且受驅動單元530的控制以傳送指定訊息至第一開關電路540或第二開關電路541,然後經由觸發端341或輸出端343輸出。換言之,本發明之燈具控制晶片311~319在串接後,可以經由第一個燈具控制晶片311的觸發端341或最後一個燈具控制晶片319的輸出端輸出資料。 It should be noted that since the shift register 550 of the present invention can be transmitted in both directions, the user can receive data from the trigger terminal 341 of the lamp control chip 311 or receive data from the output terminal 343 of the lamp control chip 311. The shift register 550 can receive the specified message output by the driving unit 530, and is controlled by the driving unit 530 to transmit the specified message to the first switch circuit 540 or the second switch circuit 541, and then output through the trigger terminal 341 or the output terminal 343. . In other words, after the luminaire control wafers 311-319 of the present invention are serially connected, the data can be output via the trigger terminal 341 of the first luminaire control wafer 311 or the output of the last luminaire control wafer 319.

在本實施例中,移位暫存器550雙向傳輸功能可以由多種不同實施方式來實現,舉例來說,移位暫存器550可以利用兩組正反器來實現,其中一組正反器負責由第一開關電路540至 第二開關電路541,另一組正反器負責由第二開關電路541至第一開關電路540,兩組正反器可以利用開關進行切換。另一種實施方式則是在移位暫存器550中設置可以調整傳輸方向的開關元件,藉由開關元件的切換達到傳輸方向的切換。舉例來說,移位暫存器550中可以包括兩個三端開關元件與一移位暫存單元,其中一個開關元件耦接於第一開關電路540與移位暫存單元的兩端(輸入端與輸出端),另一個開關元件耦接於第二開關電路541與移位暫存單元的兩端。透過開關元件的切換即可調整移位暫存器550的傳輸方向。經由上述實施例的說明,本技術領域具有通常知識者應可輕易推知移位暫存器550的實施方式,在此不加贅述。 In this embodiment, the shift register 550 bidirectional transfer function can be implemented by a plurality of different implementations. For example, the shift register 550 can be implemented by using two sets of flip-flops, wherein one set of flip-flops Responsible for the first switch circuit 540 to The second switch circuit 541, the other set of flip-flops is responsible for switching from the second switch circuit 541 to the first switch circuit 540, and the two sets of flip-flops can be switched by the switch. In another embodiment, a switching element capable of adjusting the transmission direction is disposed in the shift register 550, and switching of the transmission direction is achieved by switching of the switching elements. For example, the shift register 550 can include two three-terminal switching elements and a shift temporary storage unit, wherein one switching element is coupled to both ends of the first switching circuit 540 and the shift register unit (input The other switching element is coupled to both ends of the second switching circuit 541 and the shift register unit. The transmission direction of the shift register 550 can be adjusted by switching the switching elements. Through the description of the above embodiments, those skilled in the art should be able to easily infer the implementation of the shift register 550, and no further details are provided herein.

(第三實施例) (Third embodiment)

圖6為根據本發明第三實施例的燈具控制晶片的電路示意圖。其中,圖6是以第一燈具控制晶片311為例說明,其餘燈具控制晶片的結構相同,可由圖6推知。請參照圖6,第一燈具控制晶片311包括位址記憶單元610、計數器620、驅動單元630、多工器640、D型正反器650、第一開關660、第二開關670,其中計數器620耦接於信號接收介面342、多工器640、輸出端343、第一開關660、第二開關670以及位址記憶單元610。驅動單元630耦接於位址記憶單元610、信號接收介面342、多工器640以及D型正反器650。 Figure 6 is a circuit diagram of a luminaire control wafer in accordance with a third embodiment of the present invention. 6 is an example of the first lamp control wafer 311. The rest of the lamp control wafers have the same structure, which can be inferred from FIG. 6. Referring to FIG. 6 , the first lamp control chip 311 includes an address memory unit 610 , a counter 620 , a driving unit 630 , a multiplexer 640 , a D-type flip-flop 650 , a first switch 660 , and a second switch 670 . The signal is coupled to the signal receiving interface 342, the multiplexer 640, the output terminal 343, the first switch 660, the second switch 670, and the address memory unit 610. The driving unit 630 is coupled to the address memory unit 610, the signal receiving interface 342, the multiplexer 640, and the D-type flip-flop 650.

由於定址的方式與上述相同第二實施例相同,因此不予贅述。本實施例僅聚焦於如何利用晶片的觸發端與輸出端增加額外功能。當位址設定完成後,且進行例如回傳燈具狀態時,第一開關660將觸發端341耦接到D型正反器650且第二開關670會將輸出端343耦接到多工器640。多工器640的輸出端會依 據選擇信號先與驅動單元630連接,因此驅動單元630便可以將燈具狀態資料傳送給D型正反器650,並依據驅動單元630所傳送的一觸發信號儲存燈具狀態資料。接下來,選擇信號切換多工器640的輸出端連接至第二開關670,而驅動單元630內部的DMX解碼器產生一個同歩信號作為D型正反器650的觸發信號,因此在串接的應用下,利用第一個燈具控制晶片311的觸發端341便可以依序讀取出每個燈具的狀態。另外,D型正反器650不一定要如上述僅用以讀取出燈具狀態,驅動單元630仍可以回傳例如:燈具溫度、LED開路/短路、目前的位置資訊回讀、除錯訊息等等...。因此本發明不以上述實施例為限。 Since the manner of addressing is the same as the second embodiment described above, it will not be described again. This embodiment focuses only on how to add additional functionality to the trigger and output terminals of the wafer. When the address setting is completed and the backlight status is returned, for example, the first switch 660 couples the trigger terminal 341 to the D-type flip-flop 650 and the second switch 670 couples the output terminal 343 to the multiplexer 640. . The output of the multiplexer 640 will depend on The selection signal is first connected to the driving unit 630. Therefore, the driving unit 630 can transmit the lamp status data to the D-type flip-flop 650, and store the lamp status data according to a trigger signal transmitted by the driving unit 630. Next, the output of the selection signal switching multiplexer 640 is connected to the second switch 670, and the DMX decoder inside the driving unit 630 generates a homogenous signal as a trigger signal of the D-type flip-flop 650, and thus is connected in series. In application, the triggering end 341 of the first luminaire control wafer 311 can sequentially read the status of each luminaire. In addition, the D-type flip-flop 650 does not have to be used to read out the state of the lamp as described above, and the driving unit 630 can still return, for example, the lamp temperature, the LED open/short circuit, the current position information readback, the debug message, and the like. Wait.... Therefore, the present invention is not limited to the above embodiments.

(第四實施例) (Fourth embodiment)

根據上述實施例的說明,本發明可歸納出一種燈具控制晶片的定址方法,適用於一燈具控制晶片。此燈具控制晶片包括一觸發端、一輸出端與一信號接收介面,其中觸發端用以接收一第一設定電壓,輸出端用以輸出一第二設定電壓,信號接收介面用以接收一資料封包,其中資料封包具有多數個串列傳輸的資料槽。燈具控制晶片的結構請參照上述第一實施例的說明。定址方法的流程圖請參照圖7,圖7為根據本發明第三實施例的定址方法流程圖。首先,計數燈具控制晶片已接收的資料槽數量以產生一計數信號(步驟S710),然後根據第一設定電壓的電壓位準與對應於已接收到的資料槽數量的計數信號決定該燈具控制晶片的一位址(步驟S720)。之後,記憶上述位址(步驟S730)。在離開定址模式後,使用上述觸發端以及輸出端執行一指定功能(步驟S740),也就是經由觸發端以及輸出端傳送指令以使串接的燈具控制晶片輸出一晶片偵測資料 。 According to the description of the above embodiments, the present invention can be summarized as a method for addressing a lamp control wafer, which is suitable for a lamp control wafer. The luminaire control chip includes a trigger end, an output end and a signal receiving interface, wherein the trigger end is configured to receive a first set voltage, the output end is configured to output a second set voltage, and the signal receiving interface is configured to receive a data packet , wherein the data packet has a plurality of data slots for serial transmission. For the structure of the lamp control wafer, please refer to the description of the first embodiment described above. Please refer to FIG. 7 for a flowchart of the addressing method. FIG. 7 is a flowchart of an addressing method according to a third embodiment of the present invention. First, the counting lamp controls the number of data slots that the wafer has received to generate a counting signal (step S710), and then determines the lamp control chip according to the voltage level of the first set voltage and the counting signal corresponding to the number of received data slots. One address (step S720). Thereafter, the above address is memorized (step S730). After leaving the addressing mode, the triggering terminal and the output terminal are used to perform a specified function (step S740), that is, the command is transmitted through the trigger terminal and the output terminal to enable the serially connected lamp control chip to output a wafer detection data. .

步驟S710進一步包括根據第一個資料槽(slot 0)的資料決定進入或離開定址模式。 Step S710 further includes determining whether to enter or leave the addressing mode based on the data of the first data slot (slot 0).

步驟S720進一步包括在偵測到第一設定電壓的電壓位準轉換為一預設電位時,根據已接收到的資料槽數量決定第一燈具控制晶片的位址,然後在間隔一預定數量的資料槽之後,將輸出端所輸出的第二設定電壓轉換至預設電位(例如邏輯高電位)。本發明之定址方法的其餘細節,本技術領域具有通常知識者應可由上述第一實施例的說明中推知,在此不加累述。 Step S720 further includes: when detecting that the voltage level of the first set voltage is converted to a preset potential, determining an address of the first luminaire control chip according to the number of received data slots, and then spacing a predetermined amount of data After the slot, the second set voltage outputted by the output is converted to a preset potential (eg, a logic high). The remaining details of the addressing method of the present invention, those of ordinary skill in the art, should be inferred from the description of the first embodiment described above, and are not described herein.

步驟S740進一步包括:1.利用觸發端接收前一晶片輸出的一指定訊息以及利用輸出端所輸出之該指定訊息資料進行指定功能;或利用輸出端接收前一晶片輸出的一指定訊息以及利用觸發端所輸出之該指定訊息進行該指定功能。上述指定功能包括回傳燈具溫度、開路短路狀態、目前位址資訊回讀、除錯等等...。 Step S740 further includes: 1. using the trigger terminal to receive a specified message outputted by the previous chip and using the specified message data outputted by the output terminal to perform a designated function; or using the output terminal to receive a specified message output by the previous chip and using the trigger The specified message output by the terminal performs the specified function. The above specified functions include the return lamp temperature, open circuit short circuit status, current address information readback, debugging, etc...

此外,值得注意的是,上述元件之間的耦接關係包括直接或間接的電性連接,只要可以達到所需的電信號傳遞功能即可,本發明並不受限。上述實施例中的技術手段可以合併或單獨使用,其元件可依照其功能與設計需求增加、去除、調整或替換,本發明並不受限。在經由上述實施例之說明後,本技術領域具有通常知識者應可推知其實施方式,在此不加累述。 In addition, it is to be noted that the coupling relationship between the above elements includes a direct or indirect electrical connection as long as the desired electrical signal transfer function can be achieved, and the invention is not limited. The technical means in the above embodiments may be combined or used alone, and the components may be added, removed, adjusted or replaced according to their functions and design requirements, and the invention is not limited. After the description of the above embodiments, those skilled in the art should be able to deduce the embodiments thereof, and will not be described herein.

綜上所述,本發明的精神主要是可以在被觸發時根據已接收的資料槽自動設定位址,之後可以儲存被自動設定的位址。本發明的燈具控制晶片不需要外部的設定機構或逐一手動設定的程序,便可自動偵測本身的排列順序並設定對應的位址。藉此,本發明的燈具控制晶片可以隨意調整各別晶片的排列順 序,個別晶片會在接收到資料封包時會自動設定對應的位址,另外,在設定完畢後,晶片的觸發端以及輸出端可用以作另一指定功能。不會浪費晶片的腳位,當任何一燈具晶片損壞,無需全部重新設定,只需更換損壞的晶片及可運行。 In summary, the spirit of the present invention is mainly that the address can be automatically set according to the received data slot when triggered, and then the automatically set address can be stored. The lamp control chip of the invention can automatically detect its own arrangement order and set the corresponding address without an external setting mechanism or a manually set program. Thereby, the luminaire control wafer of the present invention can freely adjust the alignment of the individual wafers. In sequence, the individual chips will automatically set the corresponding address when receiving the data packet. In addition, after the setting is completed, the trigger end and the output end of the chip can be used for another designated function. The wafer's pins are not wasted. When any of the luminaires are damaged, it is not necessary to completely reset them. It is only necessary to replace the damaged wafers and operate them.

在較佳實施例之詳細說明中所提出之具體實施例僅用以方便說明本發明之技術內容,而非將本發明狹義地限制於上述實施例,在不超出本發明之精神及以下申請專利範圍之情況,所做之種種變化實施,皆屬於本發明之範圍。因此本發明之保護範圍當視後附之申請專利範圍所界定者為准。 The specific embodiments of the present invention are intended to be illustrative only and not to limit the invention to the above embodiments, without departing from the spirit of the invention and the following claims. The scope of the invention and the various changes made are within the scope of the invention. Therefore, the scope of the invention is defined by the scope of the appended claims.

100、300‧‧‧燈光系統 100,300‧‧‧Lighting system

110、310‧‧‧第一燈具控制裝置 110,310‧‧‧First lamp control device

111~119、311~319‧‧‧第一至第N燈具控制晶片 111~119, 311~319‧‧‧First to Nth luminaire control wafers

120、320‧‧‧DMX512控制器 120, 320‧‧‧DMX512 controller

131~139、331~339‧‧‧第一至第N燈具 131~139, 331~339‧‧‧first to Nth lamps

141、341‧‧‧觸發端 141, 341‧‧‧ trigger

142、342‧‧‧信號接收介面 142, 342‧‧‧ signal receiving interface

143、343‧‧‧輸出端 143, 343‧‧‧ output

R‧‧‧電阻 R‧‧‧resistance

slot 0~slot 2‧‧‧資料槽 Slot 0~slot 2‧‧‧ data slot

BREAK‧‧‧中斷 BREAK‧‧‧interrupted

MAB‧‧‧中斷後時間 MAB‧‧‧ After the interruption

H‧‧‧邏輯高電位 H‧‧‧Logical high potential

L‧‧‧邏輯低電位 L‧‧‧Logical low potential

219、419‧‧‧通道間時間 219, 419‧‧‧ inter-channel time

510、610‧‧‧位址記憶單元 510, 610‧‧‧ address memory unit

520、620‧‧‧計數器 520, 620‧‧‧ counter

530、630‧‧‧驅動單元 530, 630‧‧‧ drive unit

550‧‧‧移位暫存器 550‧‧‧Shift register

540、660‧‧‧第一開關 540, 660‧‧‧ first switch

541、670‧‧‧第二開關 541, 670‧‧‧ second switch

MD‧‧‧計數信號 MD‧‧‧counting signal

S710~S740‧‧‧本發明實施例的各個步驟 S710~S740‧‧‧ steps of the embodiment of the present invention

640‧‧‧多工器 640‧‧‧Multiplexer

650‧‧‧D型正反器 650‧‧‧D type flip-flop

圖1為根據本發明第一實施例的燈光系統示意圖。 1 is a schematic view of a lighting system in accordance with a first embodiment of the present invention.

圖2為根據本發明第一實施例的燈光系統之信號波形圖。 2 is a signal waveform diagram of a lighting system in accordance with a first embodiment of the present invention.

圖3為根據本發明第一實施例的燈光系統示意圖。 Figure 3 is a schematic illustration of a lighting system in accordance with a first embodiment of the present invention.

圖4為根據本發明第一實施例的信號波形圖。 Figure 4 is a signal waveform diagram in accordance with a first embodiment of the present invention.

圖5為根據本發明第二實施例的燈具控制晶片的電路示意圖。 Figure 5 is a circuit diagram of a luminaire control wafer in accordance with a second embodiment of the present invention.

圖6為根據本發明第三實施例的燈具控制晶片的電路示意圖。 Figure 6 is a circuit diagram of a luminaire control wafer in accordance with a third embodiment of the present invention.

圖7為根據本發明第四實施例的定址方法流程圖。 FIG. 7 is a flow chart of an addressing method according to a fourth embodiment of the present invention.

100‧‧‧燈光系統 100‧‧‧Lighting system

110‧‧‧第一燈具控制裝置 110‧‧‧First lamp control device

111~119‧‧‧第一至第N燈具控制晶片 111~119‧‧‧First to Nth luminaire control wafers

120‧‧‧DMX512控制器 120‧‧‧DMX512 controller

131~139‧‧‧第一至第N燈具 131~139‧‧‧First to Nth lamps

141‧‧‧觸發端 141‧‧‧Trigger

142‧‧‧信號接收介面 142‧‧‧Signal receiving interface

143‧‧‧輸出端 143‧‧‧output

R‧‧‧電阻 R‧‧‧resistance

Claims (16)

一種燈具控制晶片,適用於根據一第一設定電壓與一資料封包驅動一個或多個燈具,其中該資料封包具有多數個串列傳輸的資料槽,其特徵在於該燈具控制晶片包括一觸發端、一輸出端與一信號接收介面,該觸發端用以接收該第一設定電壓,該輸出端用以輸出一第二設定電壓,該信號接收介面用以接收該資料封包,其中,該燈具控制晶片具有一定址模式,當該燈具控制晶片進入該定址模式時,該燈具控制晶片根據該第一設定電壓的電壓位準與該燈具控制晶片已接收到的資料槽數量決定該燈具控制晶片的一位址並且該燈具記錄該位址,當該燈具控制晶片離開該定址模式時,該燈具控制晶片經由該觸發端或輸出端輸出一晶片偵測資料。 A luminaire control chip is adapted to drive one or more luminaires according to a first set voltage and a data packet, wherein the data packet has a plurality of serially transmitted data slots, wherein the luminaire control chip includes a trigger end, An output end and a signal receiving interface, the trigger end is configured to receive the first set voltage, the output end is configured to output a second set voltage, and the signal receiving interface is configured to receive the data packet, wherein the luminaire controls the chip Having an address mode, when the luminaire controls the wafer to enter the addressing mode, the luminaire control chip determines a bit of the luminaire control chip according to the voltage level of the first set voltage and the number of data slots that the luminaire control wafer has received And the luminaire records the address, and when the luminaire controls the wafer to leave the addressing mode, the luminaire controls the wafer to output a wafer detection data via the trigger or output. 如申請專利範圍第1項所述的燈具控制晶片,其中該燈具控制晶片進入該定址模式時,在偵測到該第一設定電壓的電壓位準轉換至一預設電位時,根據該計數信號決定該燈具控制晶片的該位址,然後在間隔一預定數量的資料槽之後,將該輸出端所輸出的該第二設定電壓轉換至該預設電位。 The luminaire control chip of claim 1, wherein the luminaire controls the voltage level of the first set voltage to be converted to a preset potential when the wafer enters the addressing mode, according to the counting signal Determining the address of the luminaire control wafer, and then switching the second set voltage outputted by the output to the predetermined potential after being separated by a predetermined number of data slots. 如申請專利範圍第1項所述的燈具控制晶片,其中該燈具控制晶片包括:一計數器,耦接於該信號接收介面與該觸發端,用以計數已接收的資料槽數量,並在該第一設定電壓的電壓位準轉換至一預設電位時輸出對應於已接收的資料槽數量的一計數信號;一位址記憶單元,耦接於該計數器,根據該計數信號 設定該位址,並記憶該位址;以及一驅動單元,耦接於該位址記憶單元與該信號接收介面,根據該位址自所接收到的該資料封包中讀取對應的一個或多個資料槽以驅動該燈具控制晶片所連接的一個或多個燈具。 The luminaire control chip of claim 1, wherein the luminaire control chip comprises: a counter coupled to the signal receiving interface and the trigger end for counting the number of received data slots, and When a voltage level of the set voltage is converted to a preset potential, a count signal corresponding to the number of received data slots is output; an address memory unit coupled to the counter, according to the count signal Setting the address and memorizing the address; and a driving unit coupled to the address memory unit and the signal receiving interface, and reading the corresponding one or more from the received data packet according to the address A data slot drives the luminaire to control one or more luminaires to which the wafer is attached. 如申請專利範圍第1項所述的燈具控制晶片,其中該資料封包對應於DMX512標準的資料格式,該第一設定電壓為一直流電壓,該信號接收介面適用於接收符合EIA-485標準的信號。 The luminaire control chip according to claim 1, wherein the data packet corresponds to a data format of the DMX512 standard, and the first set voltage is a DC voltage, and the signal receiving interface is adapted to receive a signal conforming to the EIA-485 standard. . 如申請專利範圍第3項所述的燈具控制晶片,更包括:一第一開關電路,包括一第一端、一第二端以及一第三端,其中,該第一開關電路的該第一端耦接於該觸發端,該第一開關電路的該第二端耦接於該計數器;一第二開關電路,包括一第一端、一第二端以及一第三端,其中,該第二開關電路的該第一端耦接於該輸出端,該第二開關電路的該第二端耦接於該計數器;以及一位移暫存器,耦接於該第一開關電路的該第三端與該第二開關電路的該第三端,且該位移暫存器的一觸發端耦接該驅動單元以接收一觸發信號;其中,當該燈具控制晶片進行該定址模式時,該第一開關電路的該第一端與該開關電路的該第二端導通,該第一開關電路的該第一端與該開關電路的該第三端不導通,該第二開關電路的該第一端與該開關電路的該第二端導通,該第二開關電路的該第一端與該開關電路的該第三端不導通; 當該燈具控制晶片進行完成該定址模式時,該第一開關電路的該第一端與該開關電路的該第二端不導通,該第一開關電路的該第一端與該開關電路的該第三端導通,該第二開關電路的該第一端與該開關電路的該第二端不導通,該第二開關電路的該第一端與該開關電路的該第三端導通;其中,該位移暫存器可接收該驅動單元所輸出的一指定訊息,並且受該驅動單元的控制以傳送該指定訊息至該第一開關電路或該第二開關電路。 The luminaire control chip of claim 3, further comprising: a first switch circuit comprising a first end, a second end and a third end, wherein the first of the first switch circuit The second end of the first switch circuit is coupled to the counter; the second switch circuit includes a first end, a second end, and a third end, wherein the The first end of the second switch circuit is coupled to the output end, the second end of the second switch circuit is coupled to the counter, and a displacement register coupled to the third end of the first switch circuit And the third end of the second switch circuit, and a trigger end of the displacement register is coupled to the driving unit to receive a trigger signal; wherein, when the lamp controls the wafer to perform the addressing mode, the first The first end of the switch circuit is electrically connected to the second end of the switch circuit, the first end of the first switch circuit is non-conducting with the third end of the switch circuit, and the first end of the second switch circuit Conducting with the second end of the switch circuit, the second switch circuit The first end is not conductive to the third end of the switch circuit; When the luminaire controls the wafer to complete the addressing mode, the first end of the first switch circuit and the second end of the switch circuit are non-conducting, the first end of the first switch circuit and the switch circuit The third end is turned on, the first end of the second switch circuit is non-conducting with the second end of the switch circuit, and the first end of the second switch circuit is electrically connected to the third end of the switch circuit; The shift register can receive a specified message output by the driving unit, and is controlled by the driving unit to transmit the specified message to the first switch circuit or the second switch circuit. 如申請專利範圍第1項所述的燈具控制晶片,其中,該晶片偵測資料包括晶片溫度、電流輸出狀態、位址資訊以及錯誤偵測資料。 The luminaire control chip of claim 1, wherein the wafer detection data includes a wafer temperature, a current output state, address information, and error detection data. 如申請專利範圍第3項所述的燈具控制晶片,更包括:一第一開關電路,包括一第一端、一第二端以及一第三端,其中,該第一開關電路的第一端耦接於該觸發端,該第一開關電路的第二端耦接於該計數器;一第二開關電路,包括一第一端、一第二端以及一第三端,其中,該第二開關電路的第一端耦接於該輸出端,該第二開關電路的第二端耦接於該計數器;一多工器,包括一第一端、一第二端、一輸出端以及一控制端,其中,該多工器電路的第一端耦接於該第二開關電路的第三端,該多工器的第二端耦接於該驅動單元以接收該驅動單元所輸出的指定訊息;以及一D型正反器,包括一輸入端,一輸出端以及一觸發端,其中該D型正反器的輸入端耦接該多工器的輸出端, 該位D型正反器的輸出端耦接該第一開關電路的第三端,該D型正反器的觸發端耦接該驅動單元以接收該驅動單元所輸出的一觸發信號,其中,當該燈具控制晶片進行該定址模式時,該第一開關電路的第一端與該開關電路的該第二端導通,該第一開關電路的該第一端與該開關電路的該第三端不導通,該第二開關電路的該第一端與該開關電路的該第二端導通,該第二開關電路的該第一端與該開關電路的該第三端不導通,其中,當該燈具控制晶片離開該定址模式,該第一開關電路的該第一端與該開關電路的該第二端不導通,該第一開關電路的該第一端與該開關電路的該第三端導通,該第二開關電路的該第一端與該開關電路的該第二端不導通,該第二開關電路的該第一端與該開關電路的該第三端導通,該多工器的控制端接收一選擇信號,使該多工器的該第二端電性耦接到該多工器的該輸出端,其中,該D型正反器的該輸入端用以接收該驅動單元所輸出的一指定訊息,其中,當該D型正反器的觸發端接收到該驅動單元所輸出的該觸發信號,該D型正反器將該D型正反器的該輸入端所接收的資料傳送到該D型正反器的該輸出端。 The luminaire control chip of claim 3, further comprising: a first switch circuit comprising a first end, a second end and a third end, wherein the first end of the first switch circuit The first switch circuit is coupled to the counter, and the second switch circuit includes a first end, a second end, and a third end, wherein the second switch The first end of the circuit is coupled to the output end, and the second end of the second switch circuit is coupled to the counter; a multiplexer includes a first end, a second end, an output end, and a control end The first end of the multiplexer circuit is coupled to the third end of the second switch circuit, and the second end of the multiplexer is coupled to the drive unit to receive the specified message output by the drive unit; And a D-type flip-flop, comprising an input end, an output end and a trigger end, wherein the input end of the D-type flip-flop is coupled to the output end of the multiplexer, The output end of the D-type flip-flop is coupled to the third end of the first switch circuit, and the trigger end of the D-type flip-flop is coupled to the drive unit to receive a trigger signal output by the drive unit, where When the luminaire controls the wafer to perform the addressing mode, the first end of the first switch circuit is electrically connected to the second end of the switch circuit, the first end of the first switch circuit and the third end of the switch circuit Non-conducting, the first end of the second switch circuit is electrically connected to the second end of the switch circuit, and the first end of the second switch circuit is non-conducting with the third end of the switch circuit, wherein The first control terminal of the first switch circuit is non-conducting with the second end of the switch circuit, and the first end of the first switch circuit is electrically connected to the third end of the switch circuit. The first end of the second switch circuit is non-conducting with the second end of the switch circuit, the first end of the second switch circuit is electrically connected to the third end of the switch circuit, and the multiplexer is controlled Receiving a selection signal to make the multiplexer The terminal is electrically coupled to the output end of the multiplexer, wherein the input end of the D-type flip-flop is configured to receive a specified message output by the driving unit, wherein when the D-type flip-flop is The trigger terminal receives the trigger signal output by the driving unit, and the D-type flip-flop transmits the data received by the input end of the D-type flip-flop to the output end of the D-type flip-flop. 如申請專利範圍第1項所述的燈具控制晶片,其中該燈具控制晶片根據該資料封包中的第一個資料槽的資料決定進入該定址模式或離開該定址模式。 The luminaire control chip of claim 1, wherein the luminaire control chip determines to enter the address mode or leave the address mode according to the data of the first data slot in the data packet. 一種燈具控制裝置,適用於根據一第一設定電壓與一資料封包驅動多數個燈具,其中該資料封包具有多數個串 列傳輸的資料槽,該燈具控制裝置包括:一第一燈具控制晶片,具有一第一觸發端、一第一輸出端與一第一信號接收介面,其中該第一觸發端用以接收該第一設定電壓,該第一輸出端用以輸出一第二設定電壓,該第一信號接收介面用以接收該資料封包;以及一第二燈具控制晶片,具有一第二觸發端、一第二輸出端與一第二信號接收介面,其中該第二觸發端耦接於該第一輸出端,該第二信號接收介面用以接收該資料封包;其中,當該第一燈具控制晶片進入一定址模式時,該第一燈具控制晶片根據該第一設定電壓的電壓位準與該第二燈具控制晶片已接收到的資料槽數量決定該第一燈具控制晶片的一第一位址,並且,該第一燈具控制晶片記憶該第一位址;該第二燈具控制晶片根據該第二設定電壓的電壓位準與該第二燈具控制晶片已接收到的資料槽數量決定該第二燈具控制晶片的一第二位址,並且,該第二燈具控制晶片記憶該第二位址;其中,當該第一燈具控制晶片離開該定址模式時,該第一燈具控制晶片經由該第一觸發端或第一輸出端輸出一晶片偵測資料。 A lamp control device is adapted to drive a plurality of lamps according to a first set voltage and a data packet, wherein the data packet has a plurality of strings The data transmission device of the column, the lamp control device includes: a first lamp control chip, having a first trigger end, a first output end and a first signal receiving interface, wherein the first trigger end is configured to receive the data a first output terminal for outputting a second set voltage, the first signal receiving interface for receiving the data packet, and a second lamp control chip having a second trigger end and a second output And the second signal receiving interface, wherein the second triggering end is coupled to the first output end, the second signal receiving interface is configured to receive the data packet; wherein, when the first luminaire controls the chip to enter the address mode The first lamp control chip determines a first address of the first lamp control chip according to the voltage level of the first set voltage and the number of data slots that the second lamp control chip has received, and the first a luminaire control chip memorizes the first address; the second luminaire controls the chip according to the voltage level of the second set voltage and the number of data slots that the second luminaire control wafer has received The second luminaire controls a second address of the wafer, and the second luminaire controls the chip to memorize the second address; wherein, when the first luminaire controls the wafer to leave the addressing mode, the first luminaire controls the wafer via The first trigger terminal or the first output terminal outputs a wafer detection data. 如申請專利範圍第9項所述的燈具控制裝置,其中該第一燈具控制晶片進入該定址模式時,在偵測到該第一設定電壓的電壓位準轉換為一預設電位時,根據該第一計數信號決定該第一燈具控制晶片的該第一位址,然後在間隔一預定數量的資料槽之後,將該第一輸出端所輸出的該第二設定電壓轉換至該預設電位。 The luminaire control device of claim 9, wherein when the first luminaire controls the wafer to enter the addressing mode, when detecting that the voltage level of the first set voltage is converted to a predetermined potential, The first counting signal determines the first address of the first lamp control wafer, and then switches the second set voltage outputted by the first output terminal to the preset potential after being separated by a predetermined number of data slots. 如申請專利範圍第9項所述的燈具控制裝置,其中 該第一燈具控制晶片包括:一計數器,耦接於該第一信號接收介面與該第一觸發端,用以計數已接收到的資料槽數量以產生一第一計數信號;一位址記憶單元,耦接於該計數器,根據該第一計數信號設定該第一位址,並記憶該第一位址;以及一驅動單元,耦接於該位址記憶單元與該第一信號接收介面,根據該第一位址自所接收到的該資料封包中讀取對應的一個或多個資料槽以驅動該第一燈具控制晶片所連接的一個或多個燈具。 The luminaire control device according to claim 9 of the patent application, wherein The first lamp control chip includes: a counter coupled to the first signal receiving interface and the first trigger terminal for counting the number of received data slots to generate a first counting signal; and an address memory unit And being coupled to the counter, setting the first address according to the first counting signal, and memorizing the first address; and a driving unit coupled to the address memory unit and the first signal receiving interface, according to The first address reads the corresponding one or more data slots from the received data packet to drive the one or more light fixtures to which the first light fixture control wafer is connected. 如申請專利範圍第9項所述的燈具控制裝置,其中該第一燈具控制晶片根據該資料封包中的第一個資料槽的資料決定進入該定址模式或離開該定址模式。 The luminaire control device of claim 9, wherein the first luminaire control chip determines to enter the address mode or leave the address mode according to the data of the first data slot in the data packet. 一種燈具控制晶片的定址方法,適用於一燈具控制晶片,該燈具控制晶片包括一觸發端、一輸出端與一信號接收介面,其中該觸發端用以接收一第一設定電壓,該輸出端用以輸出一第二設定電壓,該信號接收介面用以接收一資料封包,其中該資料封包具有多數個串列傳輸的資料槽,其特徵在於該定址方法包括:在一定址模式中,計數該燈具控制晶片已接收的資料槽數量以產生一計數信號;根據該第一設定電壓的電壓位準與對應於已接收到的資料槽數量的該計數信號決定該燈具控制晶片的一位址;以及記憶該位址。 A method for addressing a luminaire control chip is applicable to a luminaire control chip. The luminaire control chip includes a trigger end, an output end and a signal receiving interface, wherein the trigger end is configured to receive a first set voltage, and the output end is configured to receive a first set voltage. To output a second set voltage, the signal receiving interface is configured to receive a data packet, wherein the data packet has a plurality of serially transmitted data slots, wherein the addressing method comprises: counting the luminaire in an address mode Controlling the number of data slots that have been received by the wafer to generate a count signal; determining, according to the voltage level of the first set voltage and the count signal corresponding to the number of received data slots; determining an address of the luminaire control chip; The address. 如申請專利範圍第13項所述的燈具控制晶片的定址方法,在決定該燈具控制晶片的該位址之步驟更包括:在偵測到該第一設定電壓的電壓位準轉換為一預設電位時, 根據該計數信號決定該燈具控制晶片的該位址,然後在間隔一預定數量的資料槽之後,將該輸出端所輸出的該第二設定電壓轉換至該預設電位。 The method for determining the address of the lamp control chip according to claim 13 is as follows: the step of determining the address of the lamp control chip further comprises: converting the voltage level of the first set voltage to a preset At potential Determining the address of the lamp control chip according to the counting signal, and then switching the second set voltage outputted by the output terminal to the preset potential after being separated by a predetermined number of data slots. 如申請專利範圍第13項所述的燈具控制晶片的定址方法,其中該資料封包對應於DMX512標準的資料格式,該第一設定電壓為一直流電壓,該信號接收介面適用於接收符合EIA-485標準的信號。 The method for addressing a luminaire control chip according to claim 13, wherein the data packet corresponds to a data format of the DMX512 standard, and the first set voltage is a DC voltage, and the signal receiving interface is adapted to receive EIA-485. Standard signal. 如申請專利範圍第13項所述的燈具控制晶片的定址方法,其中在計數該燈具控制晶片已接收的資料槽數量以產生該計數信號之步驟更包括:根據該資料封包中的第一個資料槽的資料決定進入該定址模式或離開該定址模式。 The method for addressing a luminaire control wafer according to claim 13 , wherein the step of counting the number of data slots that the luminaire control wafer has received to generate the counting signal further comprises: according to the first data in the data packet The data of the slot determines whether to enter the address mode or leave the address mode.
TW101137644A 2012-10-12 2012-10-12 Lighting device controlling chip, apparatus and addressing method thereof TWI511511B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW101137644A TWI511511B (en) 2012-10-12 2012-10-12 Lighting device controlling chip, apparatus and addressing method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW101137644A TWI511511B (en) 2012-10-12 2012-10-12 Lighting device controlling chip, apparatus and addressing method thereof

Publications (2)

Publication Number Publication Date
TW201415846A true TW201415846A (en) 2014-04-16
TWI511511B TWI511511B (en) 2015-12-01

Family

ID=55182128

Family Applications (1)

Application Number Title Priority Date Filing Date
TW101137644A TWI511511B (en) 2012-10-12 2012-10-12 Lighting device controlling chip, apparatus and addressing method thereof

Country Status (1)

Country Link
TW (1) TWI511511B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI681369B (en) * 2017-01-30 2020-01-01 日商松下知識產權經營股份有限公司 Lighting system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6777891B2 (en) * 1997-08-26 2004-08-17 Color Kinetics, Incorporated Methods and apparatus for controlling devices in a networked lighting system
US6806659B1 (en) * 1997-08-26 2004-10-19 Color Kinetics, Incorporated Multicolored LED lighting method and apparatus
TWI425879B (en) * 2009-07-30 2014-02-01 My Semi Inc Driving system of light emitting diode and driving apparatus thereof
TWI444094B (en) * 2010-12-06 2014-07-01 My Semi Inc Lighting device controlling chip, apparatus, system and addressing method thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI681369B (en) * 2017-01-30 2020-01-01 日商松下知識產權經營股份有限公司 Lighting system

Also Published As

Publication number Publication date
TWI511511B (en) 2015-12-01

Similar Documents

Publication Publication Date Title
TWI444094B (en) Lighting device controlling chip, apparatus, system and addressing method thereof
CN103731948B (en) Lighting fixture control chip, device and its addressing method
US10114080B2 (en) LED lighting device and a method to verify its lifespan
CN109479356B (en) General intelligent lighting gateway
JP5654182B2 (en) LED lighting apparatus and life verification method of LED lighting apparatus
AU2015202557B2 (en) Illumination Regulating System in Synchronization with AC Power Frequency and Method Using the Same
US20130043801A1 (en) Lighting device
EP2627153A1 (en) Led lighting apparatus with a dimmer switch to adjust both colour temperature and intensity
CN102573184B (en) Lighting fixture control chip, device, system as well as addressing method thereof
CN107431640B (en) Power receiving device, power supply equipment device, power over Ethernet network system and method thereof
CN110390904B (en) Electronic device and driving device and method of LED array
US20210302013A1 (en) Carry-signal controlled led light with low power consumption and led light string having the same
TW201403103A (en) Testing device
TWI511511B (en) Lighting device controlling chip, apparatus and addressing method thereof
CN110868784B (en) Stage lighting data bidirectional synchronous communication method and system, storage medium and device
TWI698123B (en) Display device
CN109195263B (en) Device state synchronous control device and synchronous control method
CN201726563U (en) Novel operating astral lamp
JP2008153027A (en) Light control device
CN219577087U (en) Household intelligent gateway
JP7480651B2 (en) Lighting Control System
CN218630079U (en) Tooling plate of robot control panel of pitching machine
CN212163779U (en) Light-operated synchronous circuit of LED lamp and LED lamp
CN215734951U (en) Simple microswitch direct-drive LED lamp circuit for ATS
JP4976150B2 (en) Dimming control system