TWI479360B - Optical sensing device capable of switching operation mode and control method thereof - Google Patents
Optical sensing device capable of switching operation mode and control method thereof Download PDFInfo
- Publication number
- TWI479360B TWI479360B TW100148341A TW100148341A TWI479360B TW I479360 B TWI479360 B TW I479360B TW 100148341 A TW100148341 A TW 100148341A TW 100148341 A TW100148341 A TW 100148341A TW I479360 B TWI479360 B TW I479360B
- Authority
- TW
- Taiwan
- Prior art keywords
- sensing device
- operation mode
- optical sensing
- line
- signal
- Prior art date
Links
Landscapes
- Electronic Switches (AREA)
- Optical Communication System (AREA)
Description
本發明係有關於一種光學感測裝置,特別是有關於一種能夠切換光學感測裝置之操作模式,使光學感測裝置除了具備光感測之功能外,更兼具如遙控器等其它不同功能的可切換操作模式的光學感測裝置及其控制方法。 The present invention relates to an optical sensing device, and more particularly to an operation mode capable of switching an optical sensing device, so that the optical sensing device not only has the function of light sensing, but also has other functions such as a remote controller. Optical sensing device of switchable operation mode and control method thereof.
近年來,光學感測裝置被大量的應用在各種電子產品上。舉凡智慧型手機(Smart Phone)、桌上型電腦(Desk Top Computer)、筆記型電腦(Note Book)、平板電腦(Tablet Computer)、液晶顯示器(Liquid Crystal Displayer,LCD)、電漿電視(Plasma TV)及多媒體導覽機(Kiosh Station)等需要偵測特定光源之電子設置,均裝備有光學感測裝置。 In recent years, optical sensing devices have been widely used in various electronic products. Smart Phone, Desk Top Computer, Note Book, Tablet Computer, Liquid Crystal Displayer (LCD), Plasma TV (Plasma TV) And electronic navigation devices such as Kiosh Station, which need to detect specific light sources, are equipped with optical sensing devices.
其中,近接感測器(Proximity Sensor)可以感測是否有物體接近感測器。以常見的智慧型手機為例,近接感測器被設置在手機上,以偵測使用者是否靠近手機,使手機能夠做出不同的反應,除此之外,此近接感測器並無其它的功能。然而,近接感測器上所配備之紅外線發光二極體其實還可以有多種用途。因此,如何開發出一種光學感測裝置,在被配置於電子裝置內時,除了執行 光感測工作外,還能夠利用其配備之紅外線發光二極體執行其它不同的功能,即為本發明所欲解決之問題。 Among them, the Proximity Sensor can sense whether an object is close to the sensor. Taking a common smart phone as an example, the proximity sensor is set on the mobile phone to detect whether the user is close to the mobile phone, so that the mobile phone can react differently, and the proximity sensor has no other. The function. However, the infrared light-emitting diodes provided on the proximity sensor can actually be used for a variety of purposes. Therefore, how to develop an optical sensing device, in addition to being executed when being disposed in an electronic device In addition to the light sensing operation, it is also possible to perform other different functions by using the infrared light emitting diode provided therein, which is the problem to be solved by the present invention.
有鑑於上述習知技藝之問題,本發明之目的就是在提供一種可切換操作模式的光學感測裝置及其控制方法,以解決習知技藝之光學感測裝置僅能執行光感測工作,功能不足等問題。 In view of the above problems of the prior art, an object of the present invention is to provide an optical sensing device and a control method thereof that can switch operating modes, so as to solve the optical sensing device of the prior art, which can only perform light sensing work, functions. Insufficient issues.
根據本發明之目的,提出一種可切換操作模式的光學感測裝置,係包含:紅外線發光二極體,係發出紅外光;多工器,具有輸出端、第一輸入端及第二輸入端,輸出端與紅外線發光二極體連結;感測裝置驅動器,係連結於多工器之第一輸入端及從動裝置,從動裝置係連結於多工器之第一輸入端,再經由串列資料線(Serial Data Line,SDA)及串列時脈線(Serial Clock Line,SCK)與主控裝置(Master Device)連結;以及;直接存取線,係將多工器之第二輸入端直接與串列資料線連結;其中,當處於正常模式時,多工器將輸出端與第一輸入端連通,使主控裝置根據外部指令,經由串列資料線及串列時脈線傳送訊號至從動裝置(Slave Device),使感測裝置驅動器控制紅外線發光二極體執行光感測工作;當處於直接存取模式時,多工器將該輸出端與第二輸入端連通,使多工器由發光二極體驅動器切換至直接存取線,由主控裝置接收外部指令直接控制紅外線發光二極體。 According to an object of the present invention, an optical sensing device capable of switching operation modes is provided, comprising: an infrared light emitting diode emitting infrared light; and a multiplexer having an output end, a first input end and a second input end, The output end is coupled to the infrared light emitting diode; the sensing device driver is coupled to the first input end of the multiplexer and the driven device, and the driven device is coupled to the first input end of the multiplexer, and then connected through the serial The Serial Data Line (SDA) and the Serial Clock Line (SCK) are connected to the Master Device; and the direct access line directly connects the second input of the multiplexer. Connecting with the serial data line; wherein, when in the normal mode, the multiplexer connects the output end to the first input end, so that the main control device transmits the signal to the serial data line and the serial clock line according to an external command to The slave device enables the sensing device driver to control the infrared light emitting diode to perform light sensing work; when in the direct access mode, the multiplexer connects the output end with the second input terminal to enable multiplexing Illuminated by Diode driver switches to the direct access line, the external command received by the master device directly controls the infrared light emitting diode.
根據本發明之目的,再提出一種切換光學感測裝置操作模式的控制方法,係包含下列步驟:利用直接存取線將多工器之第二輸入端直接與串列資料線連結;利用主控裝置,在處於正常操作模式時,將多工器之輸出端與第一輸入端連通,再透過串列資料線及 串列時脈線傳送訊號至從動裝置,使感測裝置驅動器控制紅外線發光二極體執行光感測工作;經由主控裝置接收外部指令,使多工器將輸出端與該第二輸入端連通,使多工器由發光二極體驅動器切換至直接存取線,以進入直接存取模式;以及藉由主控裝置接收外部指令,直接控制紅外線發光二極體。 According to the purpose of the present invention, a control method for switching an operation mode of an optical sensing device is further provided, which comprises the steps of: directly connecting a second input end of the multiplexer to the serial data line by using a direct access line; using the main control The device, when in the normal operation mode, connects the output end of the multiplexer to the first input end, and then transmits the serial data line and The serial clock transmits a signal to the slave device, so that the sensing device driver controls the infrared light emitting diode to perform the light sensing operation; and receives an external command via the master device, so that the multiplexer outputs the output terminal and the second input terminal Connected, the multiplexer is switched from the LED driver to the direct access line to enter the direct access mode; and the external control unit receives the external command to directly control the infrared illuminator.
其中,當從動裝置偵測到串列時脈線傳輸之訊號停止時,則切換為直接存取模式。 Wherein, when the slave device detects that the signal of the pulse transmission stops in the serial sequence, it switches to the direct access mode.
其中,當從動裝置偵測到串列時脈線之電壓固定於電源電壓(VDD)或零,則判斷串列時脈線傳輸訊號停止。 Wherein, when the slave device detects that the voltage of the pulse line is fixed to the power supply voltage (V DD ) or zero, it is determined that the serial line pulse transmission signal stops.
其中,可經由主控裝置接收外部指令,驅動串列時脈線重新傳送訊號,從動裝置感測到完整的指令訊號由串列時脈線輸入時,則將直接存取模式切換為正常操作模式。 Wherein, the external command can be received by the main control device to drive the serial pulse line to retransmit the signal, and when the slave device senses that the complete command signal is input by the serial clock line, the direct access mode is switched to the normal operation. mode.
其中,當從動裝置感測到複數個時序週期的訊號由串列時脈線輸入時,則將直接存取模式切換為正常操作模式。 Wherein, when the slave device senses that the signals of the plurality of timing periods are input by the serial clock line, the direct access mode is switched to the normal operation mode.
其中,當主控裝置及從動裝置可使用內部整合電路(Inter-Integrated Circuit,I2C)通訊協定或系統管理匯流排(System Management Bus,SMBUS)通訊協定。 Among them, when the master device and the slave device can use an Inter-Integrated Circuit (I 2 C) communication protocol or a system management bus (SMBUS) communication protocol.
其中,光學感測裝置可為近接感測器(Proximity Sensor)。 Wherein, the optical sensing device can be a Proximity Sensor.
承上所述,依本發明之可切換操作模式的光學感測裝置及其控制方法,其可具有一或多個下述優點: In view of the above, an optical sensing device and a control method thereof according to the switchable operation mode of the present invention may have one or more of the following advantages:
(1)此可切換操作模式的光學感測裝置及其控制方法可藉由切換光學感測裝置之操作模式,使光學感測裝置除了執行光感測的工 作外,還能夠做為其它的用途,因此實用性極佳。 (1) The optical sensing device of the switchable operation mode and the control method thereof can be performed by switching the operation mode of the optical sensing device, so that the optical sensing device performs the light sensing In addition, it can be used for other purposes, so it is very practical.
(2)此可切換操作模式的光學感測裝置及其控制方法不需要增加太多額外的電路,故能夠以很低的成本,即能夠達到切換光學感測裝置操作模式的目的,因此很有效率。 (2) The optical sensing device and the control method thereof of the switchable operation mode do not need to add too much extra circuit, so that the operation mode of switching the optical sensing device can be achieved at a low cost, so effectiveness.
1‧‧‧光學感測裝置 1‧‧‧Optical sensing device
4~6‧‧‧近接感測器 4~6‧‧‧ proximity sensor
11‧‧‧從動裝置 11‧‧‧Driver
12‧‧‧感測裝置驅動器 12‧‧‧Sensor device driver
13‧‧‧多工器 13‧‧‧Multiplexer
131、431‧‧‧第一輸入端 131, 431‧‧‧ first input
132、432‧‧‧第二輸入端 132, 432‧‧‧ second input
133、433‧‧‧輸出端 133, 433‧‧‧ output
14、44‧‧‧紅外線發光二極體 14, 44‧‧‧ Infrared light-emitting diode
15‧‧‧直接存取線 15‧‧‧Direct access line
16‧‧‧串列資料線 16‧‧‧ Serial data line
17‧‧‧串列時脈線 17‧‧‧ Serial clock line
18、48‧‧‧切換信號線 18, 48‧‧‧Switch signal line
40‧‧‧I2C主控裝置 40‧‧‧I 2 C master control unit
41‧‧‧I2C從動裝置 41‧‧‧I 2 C slave
42‧‧‧近接感測器驅動器 42‧‧‧ proximity sensor driver
43‧‧‧多工器 43‧‧‧Multiplexer
45‧‧‧直接存取線 45‧‧‧Direct access line
46‧‧‧串列資料線 46‧‧‧ Serial data line
47‧‧‧串列時脈線 47‧‧‧ Serial clock line
51、61‧‧‧手機 51, 61‧‧‧ mobile phones
62‧‧‧電視 62‧‧‧TV
VDD‧‧‧電源 V DD ‧‧‧ power supply
S31~S33、S71~S74‧‧‧步驟流程 S31~S33, S71~S74‧‧‧ Step procedure
第1圖係為本發明之可切換操作模式的光學感測裝置之第一實施例之方塊圖。 1 is a block diagram of a first embodiment of an optical sensing device of the switchable mode of operation of the present invention.
第2A及2B圖係為本發明之可切換操作模式的光學感測裝置之第一實施例之示意圖。 2A and 2B are schematic views of a first embodiment of the optical sensing device of the switchable operation mode of the present invention.
第3圖係為本發明之可切換操作模式的光學感測裝置之第一實施例之流程圖。 Figure 3 is a flow diagram of a first embodiment of an optical sensing device of the switchable mode of operation of the present invention.
第4圖係為本發明之可切換操作模式的光學感測裝置之第二實施例之電路圖。 Figure 4 is a circuit diagram of a second embodiment of the optical sensing device of the switchable mode of operation of the present invention.
第5圖係為本發明之可切換操作模式的光學感測裝置之第三實施例之示意圖。 Figure 5 is a schematic illustration of a third embodiment of the optical sensing device of the switchable mode of operation of the present invention.
第6圖係為本發明之可切換操作模式的光學感測裝置之第四實施例之示意圖。 Figure 6 is a schematic illustration of a fourth embodiment of an optical sensing device of the switchable mode of operation of the present invention.
第7圖係為本發明之切換光學感測裝置操作模式之控制方法之流程圖。 Figure 7 is a flow chart showing a method of controlling the operation mode of the switching optical sensing device of the present invention.
以下將參照相關圖式,說明依本發明之可切換操作模式的光學感測裝置及其控制方法之實施例,為使便於理解,下列所述實施例中之相同元件係以相同之符號標示來說明。 Embodiments of the optical sensing device and the control method thereof according to the switchable operation mode of the present invention will be described below with reference to the related drawings. For ease of understanding, the same components in the following embodiments are denoted by the same reference numerals. Description.
請參閱第1圖,係為本發明之可切換操作模式的光學感測裝置之 第一實施例之方塊圖。如圖所示,光學感測裝置1包含感測裝置驅動器12、多工器13、紅外線發光二極體14、直接存取線15及切換信號線18。 Please refer to FIG. 1 , which is an optical sensing device of the switchable operation mode of the present invention. A block diagram of the first embodiment. As shown, the optical sensing device 1 includes a sensing device driver 12, a multiplexer 13, an infrared light emitting diode 14, a direct access line 15, and a switching signal line 18.
在正常操作模式時,多工器13將輸出端133與第一輪入端131連通。主控裝置(Master Device)係透過串列資料線16(Serial Data Line,SDA),傳送串列資料至從動裝置(Slave Device)11,再經由感測裝置驅動器12處理後,經多工器13傳送至紅外線發光二極體14。同時,主控裝置係透過串列時脈線16(Serial Clock Line,SCK)傳送時脈訊號至從動裝置11。因此,感測裝置驅動器12可根據上述各訊號來操作發光二極體14執行一般的光感測工作。 In the normal operating mode, the multiplexer 13 communicates the output 133 with the first wheel-in terminal 131. The master device transmits the serial data to the slave device 11 through the Serial Data Line (SDA), and then passes through the sensing device driver 12, and then passes through the multiplexer. 13 is transmitted to the infrared light emitting diode 14. At the same time, the master device transmits the clock signal to the slave device 11 through the serial clock line 16 (SCK). Therefore, the sensing device driver 12 can operate the LED 26 according to each of the above signals to perform a general photo sensing operation.
其中,此主控裝置與從動裝置11可以使用內部整合電路(Inter-Integrated Circuit,I2C)通訊協定或系統管理匯流排(System Management Bus,SMBUS)通訊協定等。 The master device and the slave device 11 can use an Inter-Integrated Circuit (I 2 C) communication protocol or a System Management Bus (SMBUS) communication protocol.
而此光學感測裝置11更包含一直接存取線15。當串列時脈線訊號停止時則進入直接存取模式(Direct Access Mode)時,為了能夠讓使用者藉由直接輸入訊號來控制紅外線發光二極體14,串列時脈線17也需要停止傳送時脈訊號102。而當從動裝置11偵測到該串列時脈線17之訊號停止時,則透過切換信號線18傳送切換信號至多工器13,使其將輸出端133與第二輸入端132連通。此時,多工器13已由感測裝置驅動器12切換至直接存取線115。這樣一來,使用者則可以直接輸入訊號來控制紅外線發光二極體14。而在實際的應用上,可將串列時脈線17接地或是將串列時脈線17連結電源(Vcc),使串列時脈線12之電壓固定在電源電壓VDD或零 ,以停止其傳送時脈訊號102。 The optical sensing device 11 further includes a direct access line 15. When the serial pulse signal is stopped and enters the direct access mode (Direct Access Mode), in order to allow the user to control the infrared light-emitting diode 14 by directly inputting the signal, the serial clock line 17 also needs to be stopped. The clock signal 102 is transmitted. When the slave device 11 detects that the signal of the pulse line 17 is stopped, the switching signal line 18 transmits a switching signal to the multiplexer 13 to connect the output terminal 133 with the second input terminal 132. At this time, the multiplexer 13 has been switched by the sensing device driver 12 to the direct access line 115. In this way, the user can directly input the signal to control the infrared light-emitting diode 14. In practical applications, the serial clock line 17 can be grounded or the serial clock line 17 can be connected to the power supply (Vcc) to fix the voltage of the serial clock line 12 to the power supply voltage V DD or zero. Stop transmitting the clock signal 102.
使用者若欲使此光學感測裝置1回到正常操作模式,即可經由輸入外部指令,控制從動裝置11將該直接存取模式切換為正常操作模式。除此之外,使用者也可以利用驅動串列時脈線12重新傳送時脈訊號102,當從動裝置11感測到複數個時脈週期的時脈訊號102時,會透過切換信號線18傳送切換信號至多工器13,將直接存取模式切換為正常操作模式。 If the user wants to return the optical sensing device 1 to the normal operation mode, the slave device 11 can be controlled to switch the direct access mode to the normal operation mode by inputting an external command. In addition, the user can retransmit the clock signal 102 by driving the serial clock pulse line 12. When the slave device 11 senses the clock signal 102 of the plurality of clock cycles, the signal line 18 is transmitted through the switching signal line 18. The switching signal is transmitted to the multiplexer 13, and the direct access mode is switched to the normal operation mode.
其中,當使用者輸入外部指令以切換光學感測裝置1至正常操作模式時,從動裝置11必須要接收到此外部指令之完整的指令訊號,才能夠透過切換信號線18傳送切換信號至多工器13,使光學感測裝置能夠回到正常作模式。在此同時,此外部指令之部份內容則會透過紅外線發光二極體14傳送出去,因此會產生無法辨識的訊號。當然,使用者也能夠經由切換串列時脈線17,使從動裝置11偵測到串列時脈線17有數個時序週期的訊號,如此則能夠切換至正常操作模式。 When the user inputs an external command to switch the optical sensing device 1 to the normal operation mode, the slave device 11 must receive the complete command signal of the external command to transmit the switching signal to the multiplex through the switching signal line 18. The device 13 enables the optical sensing device to return to the normal mode of operation. At the same time, part of the external command is transmitted through the infrared light-emitting diode 14, and thus an unrecognizable signal is generated. Of course, the user can also switch the serial clock pulse 17 to cause the slave device 11 to detect the signal of the serial pulse line 17 having several timing cycles, so that the user can switch to the normal operation mode.
因此,利用本發明所提出的概念,可以利用於任何具備紅外線發光二極體之光學感測裝置。例如,近接感測器(Proximity Sensor)等,藉由切換光學感測裝置的操作模式,使光學感測裝置除了能夠執行一般的光感測工作外,更能夠執行其它不同的功能。 Therefore, the concept proposed by the present invention can be utilized in any optical sensing device having an infrared light emitting diode. For example, a proximity sensor or the like, by switching the operation mode of the optical sensing device, enables the optical sensing device to perform other different functions in addition to performing general light sensing operations.
舉例而言,將一具備本發明之構造的近接感測器設置於智慧手機中,經由軟體的控制,使其可以做為條碼產生器(Barcode Generator)或是遙控器(Remote Controller)等不同的用途。 For example, a proximity sensor having the structure of the present invention is disposed in a smart phone, and can be used as a bar code generator or a remote controller through software control. use.
請參閱第2A圖,係為本發明之可切換操作模式的光學感測裝置之第一實施例之示意圖。如圖所示,當使用者輸入指令將光學感測裝置切換至直接存取模式後,即可經由串列資料線(SDA)直接控制紅外線發光二極體。而當使用者輸入指令欲將光學感測裝置切換回正常操作模式時,由於從動裝置必須要接收到完整的指令訊號,才能夠使光學感測裝置能夠回到正常操作模式,因此,會有部份的指令內容經由紅外線發光二極體傳送出去,故紅外線發光二極體此時則會發出無意義的訊號。 Please refer to FIG. 2A, which is a schematic diagram of a first embodiment of an optical sensing device of the switchable operation mode of the present invention. As shown in the figure, when the user inputs an instruction to switch the optical sensing device to the direct access mode, the infrared light emitting diode can be directly controlled via the serial data line (SDA). When the user inputs an instruction to switch the optical sensing device back to the normal operating mode, the optical sensing device can return to the normal operating mode because the slave device must receive the complete command signal. Some of the command content is transmitted through the infrared light-emitting diode, so the infrared light-emitting diode emits a meaningless signal at this time.
請參閱第2B圖,係為本發明之可切換操作模式的光學感測裝置之第一實施例之示意圖。在本實施例中,使用者透過切換串列時脈線,使其產生數個時序週期的訊號,而當從動裝置接收到此訊號時,即可將光學感測裝置切換為正常操作模式。 Please refer to FIG. 2B, which is a schematic diagram of a first embodiment of an optical sensing device of the switchable operation mode of the present invention. In this embodiment, the user switches the serial pulse line to generate a plurality of timing signals, and when the slave receives the signal, the optical sensing device can be switched to the normal operation mode.
請參閱第3圖,係為本發明之可切換操作模式的光學感測裝置之第一實施例之流程圖。 Please refer to FIG. 3, which is a flow chart of the first embodiment of the optical sensing device of the switchable operation mode of the present invention.
在步驟S31中,利用主控裝置在正常操作模式時,透過串列資料線及串列時脈線分別傳輸串列資料及時脈訊號至從動裝置,以透過感測裝置驅動器控制紅外線發光二極體執行光感測工作。 In step S31, the main control device transmits the serial data and the pulse signal to the slave device through the serial data line and the serial clock line in the normal operation mode to control the infrared light emitting diode through the sensing device driver. The body performs light sensing work.
在步驟S32中,由主控裝置接受外部指令,使多工器由感測裝置驅動器切換為直接存取線,並將串列時脈線接地,以進入直接存取模式。 In step S32, the external control device accepts an external command to switch the multiplexer from the sensing device driver to the direct access line, and grounds the serial clock line to enter the direct access mode.
在步驟S33中,透過主控裝置接收外部指令,直接控制紅外線發光二極體。 In step S33, an external command is received by the master device to directly control the infrared light emitting diode.
請參閱第4圖,係為本發明之可切換操作模式的光學感測裝置之 第二實施例之電路圖。在本實施例中,近接感測器4被設置於手機。此近接感測器4包含內部整合電路(I2C)從動裝置41、近接感測器驅動器42、多工器43、紅外線發光二極體44及切換信號線48。 Please refer to FIG. 4, which is a circuit diagram of a second embodiment of the optical sensing device of the switchable operation mode of the present invention. In this embodiment, the proximity sensor 4 is disposed on the handset. The proximity sensor 4 includes an internal integrated circuit (I 2 C) slave device 41, a proximity sensor driver 42, a multiplexer 43, an infrared light emitting diode 44, and a switching signal line 48.
同樣的,當近接感測器4在正常操作模式中執行光感測工作時,多工器43將輸出端433與第一輸入端431連通。由I2C主控裝置40經由串列資料線46傳輸串列資料至I2C從動裝置41。同時,I2C主控裝置40並經由串列時脈線47傳輸時脈信號至I2C從動裝置41。而近接感測器驅動器42則可根據上述訊號來操作紅外線發光二極體44,使近接感測器4能執行正常的光感測工作。 Similarly, when the proximity sensor 4 performs a light sensing operation in the normal operation mode, the multiplexer 43 communicates the output terminal 433 with the first input terminal 431. The serial data is transmitted by the I 2 C master device 40 via the serial data line 46 to the I 2 C slave device 41. At the same time, the I 2 C master device 40 transmits the clock signal to the I 2 C slave device 41 via the serial clock line 47. The proximity sensor driver 42 can operate the infrared light emitting diode 44 according to the above signals, so that the proximity sensor 4 can perform normal light sensing work.
而當手機的使用者欲使用近接感測器4來執行不同的功能時,經由I2C主控裝置40輸入指令,將正常操作模式切換為直接存取模式。此時,串列時脈線47接地,近接感測器驅動器42偵測到串列時脈線47之訊號停止時,透過切換信號線48傳送切換訊號至多工器43,多工器43則將近接感測器驅動器42切換成直接存取線45。這樣一來,使用者即可直接控制紅外線發光二極體44。 When the user of the mobile phone wants to use the proximity sensor 4 to perform different functions, the normal operation mode is switched to the direct access mode by inputting an instruction via the I 2 C master device 40. At this time, the serial clock line 47 is grounded, and when the proximity sensor driver 42 detects that the signal of the serial line pulse 47 is stopped, the switching signal is transmitted to the multiplexer 43 through the switching signal line 48, and the multiplexer 43 will The proximity sensor driver 42 is switched to the direct access line 45. In this way, the user can directly control the infrared illuminating diode 44.
請參閱第5圖,係為本發明之可切換操作模式的光學感測裝置之第三實施例之示意圖。如圖所示,使用者欲使用手機51之近接感測器5來做為條碼產生器使用。使用者輸入指令,啟動手機之條碼產生器之功能。而手機5內儲存之條碼可利用軟體,將其轉換為相應於條碼之黑白相間條紋的數位訊號,近接感測器5則根據此數位訊號,發出相應的明暗訊號。這樣一來,即可將手機51之近接感測器5來做為條碼產生器使用。 Please refer to FIG. 5, which is a schematic diagram of a third embodiment of the optical sensing device of the switchable operation mode of the present invention. As shown, the user wants to use the proximity sensor 5 of the handset 51 as a barcode generator. The user inputs an instruction to activate the function of the barcode generator of the mobile phone. The barcode stored in the mobile phone 5 can be converted into a digital signal corresponding to the black and white stripes of the barcode by using the software, and the proximity sensor 5 sends a corresponding light and dark signal according to the digital signal. In this way, the proximity sensor 5 of the mobile phone 51 can be used as a barcode generator.
請參閱第6圖,係為本發明之可切換操作模式的光學感測裝置之第四實施例之示意圖。如圖所示,使用者欲使用手機61之近接感測器6來做為遙控器來控制電視62。使用者先將近接感測器6之操作模式切換為直接存取模式,此時則可藉由軟體來控制近接感測器6之紅外線發光二極體模擬與紅外線遙控器相同的光訊號,使手機也能夠做為一般市面上常見的紅外線遙控器來使用。 Please refer to FIG. 6 , which is a schematic diagram of a fourth embodiment of the optical sensing device of the switchable operation mode of the present invention. As shown, the user wants to use the proximity sensor 6 of the handset 61 as a remote control to control the television 62. The user first switches the operation mode of the proximity sensor 6 to the direct access mode. In this case, the infrared light emitting diode of the proximity sensor 6 can be controlled by the software to simulate the same optical signal as the infrared remote control. Mobile phones can also be used as infrared remote controls that are commonly found on the market.
儘管前述在說明本發明之可切換操作模式的光感測器的過程中,亦已同時說明本發明之切換光感測器操作模式之控制方法的概念,但為求清楚起見,以下仍另繪示流程圖詳細說明。 Although the foregoing description of the method of controlling the operation mode of the switching photosensor of the present invention has been described in the course of explaining the photosensor of the switchable operation mode of the present invention, for the sake of clarity, the following is still A detailed description of the flow chart is shown.
請參閱第7圖,係為本發明之切換光學感測裝置操作模式之控制方法之流程圖。 Please refer to FIG. 7 , which is a flow chart of a method for controlling the operation mode of the switching optical sensing device of the present invention.
在步驟S71中,利用直接存取線將串列資料線,經由多工器,直接連結至紅外線發光二極體。 In step S71, the serial data line is directly connected to the infrared light emitting diode via the multiplexer by the direct access line.
在步驟S72中,利用主控裝置,在處於正常操作模式時,透過串列資料線及串列時脈線傳送訊號至從動裝置,以透過感測裝置驅動器控制紅外線發光二極體執行光感測工作。 In step S72, the main control device transmits the signal to the slave device through the serial data line and the serial clock line when in the normal operation mode, and controls the infrared light emitting diode to perform the light sense through the sensing device driver. Test work.
在步驟S73中,經由主控裝置接收外部指令,將多工器由感測裝置驅動器切換至直接存取線,並停止串列時脈線傳輸訊號,以進入直接存取模式。 In step S73, an external command is received via the master device, the multiplexer is switched from the sensing device driver to the direct access line, and the serial clock transmission signal is stopped to enter the direct access mode.
在步驟S74中,藉由主控裝置接收外部指令,直接控制紅外線發光二極體。 In step S74, the infrared light-emitting diode is directly controlled by the master device receiving an external command.
本發明之切換光學感測裝置操作模式之控制方法的詳細說明以及 實施方式已於前面敘述本發明之可切換操作模式的光學感測裝置時描述過,在此為了簡略說明便不再重覆敘述。 Detailed description of the control method of the operation mode of the switching optical sensing device of the present invention The embodiment has been described above in connection with the optical sensing device of the switchable operation mode of the present invention, and will not be repeatedly described herein for the sake of brevity.
綜上所述,本發明之可切換操作模式的光學感測裝置及其控制方法可藉由切換光學感測裝置之操作模式,使光學感測裝置除了執行光感測的工作外,還能夠做為其它的用途,因此實用性極佳。在另一方面,本發明在不需要在光學感測裝置中增加太多額外的電路元件,故能夠以很低的成本,達到切換光學感測裝置操作模式的目的,因此很有效率。可見本發明在突破先前之技術下,確實已達到所欲增進之功效,且也非熟悉該項技藝者所易於思及,其所具之進步性、實用性,顯已符合專利之申請要件,爰依法提出專利申請,懇請貴局核准本件發明專利申請案,以勵創作,至感德便。 In summary, the optical sensing device of the switchable operation mode of the present invention and the control method thereof can enable the optical sensing device to perform the work of the light sensing device by switching the operation mode of the optical sensing device. For other uses, it is extremely practical. On the other hand, the present invention does not require the addition of too many additional circuit components in the optical sensing device, so that the purpose of switching the operation mode of the optical sensing device can be achieved at a low cost, and thus is very efficient. It can be seen that the present invention has achieved the desired effect under the prior art, and is not familiar with the skill of the artist, and its progressiveness and practicability have been met with the patent application requirements.提出 Submit a patent application in accordance with the law, and ask your bureau to approve the application for this invention patent, in order to encourage creation, to the sense of virtue.
以上所述僅為舉例性,而非為限制性者。任何未脫離本發明之精神與範疇,而對其進行之等效修改或變更,均應包含於後附之申請專利範圍中。 The above is intended to be illustrative only and not limiting. Any equivalent modifications or alterations to the spirit and scope of the invention are intended to be included in the scope of the appended claims.
1‧‧‧光學感測裝置 1‧‧‧Optical sensing device
11‧‧‧從動裝置 11‧‧‧Driver
12‧‧‧感測裝置驅動器 12‧‧‧Sensor device driver
13‧‧‧多工器 13‧‧‧Multiplexer
131‧‧‧第一輸入端 131‧‧‧ first input
132‧‧‧第二輸入端 132‧‧‧second input
133‧‧‧輸出端 133‧‧‧output
14‧‧‧紅外線發光二極體 14‧‧‧Infrared light-emitting diode
15‧‧‧直接存取線 15‧‧‧Direct access line
16‧‧‧串列資料線 16‧‧‧ Serial data line
17‧‧‧串列時脈線 17‧‧‧ Serial clock line
18‧‧‧切換信號線 18‧‧‧Switch signal line
VDD‧‧‧電源 V DD ‧‧‧ power supply
Claims (14)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW100148341A TWI479360B (en) | 2011-12-23 | 2011-12-23 | Optical sensing device capable of switching operation mode and control method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW100148341A TWI479360B (en) | 2011-12-23 | 2011-12-23 | Optical sensing device capable of switching operation mode and control method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201327267A TW201327267A (en) | 2013-07-01 |
TWI479360B true TWI479360B (en) | 2015-04-01 |
Family
ID=49225060
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW100148341A TWI479360B (en) | 2011-12-23 | 2011-12-23 | Optical sensing device capable of switching operation mode and control method thereof |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI479360B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI616794B (en) * | 2016-12-20 | 2018-03-01 | 友達光電股份有限公司 | Photo sensing circuit and defect curing method thereof |
CN114026533B (en) * | 2019-08-14 | 2024-10-11 | 谷歌有限责任公司 | Reducing flicker pixels in a display |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5631757A (en) * | 1995-06-07 | 1997-05-20 | Lucent Technologies Inc. | Full-duplex data communication system using different transmit and receive data symbol lengths |
US20040208632A1 (en) * | 2002-04-03 | 2004-10-21 | Mitsubishi Electric Research Laboratories, Inc. | Communication using bi-directional LEDs |
TWM403851U (en) * | 2010-09-21 | 2011-05-11 | Sunrex Technology Corp | Remote control input device |
-
2011
- 2011-12-23 TW TW100148341A patent/TWI479360B/en active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5631757A (en) * | 1995-06-07 | 1997-05-20 | Lucent Technologies Inc. | Full-duplex data communication system using different transmit and receive data symbol lengths |
US20040208632A1 (en) * | 2002-04-03 | 2004-10-21 | Mitsubishi Electric Research Laboratories, Inc. | Communication using bi-directional LEDs |
TWM403851U (en) * | 2010-09-21 | 2011-05-11 | Sunrex Technology Corp | Remote control input device |
Also Published As
Publication number | Publication date |
---|---|
TW201327267A (en) | 2013-07-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10002105B2 (en) | Display device | |
US8654074B1 (en) | Remote control systems and methods for providing page commands to digital electronic display devices | |
US20120139474A1 (en) | Method for charging external device and displaying apparatus using thereof | |
US9665187B2 (en) | Color input device and its application kit | |
TWI757646B (en) | Usb device and operation method thereof | |
US20110093623A1 (en) | Docking Station with Video Control System | |
CN104571991A (en) | Control panel, illumination equipment and illumination method | |
KR102078385B1 (en) | Touch Screen Display Device | |
TW200947194A (en) | Power management apparatus and system using the same | |
US8605072B2 (en) | Power control system for display module including external DC-DC converter | |
TWI479360B (en) | Optical sensing device capable of switching operation mode and control method thereof | |
WO2012172679A1 (en) | Display device and communication method | |
TW201322219A (en) | Electronic apparatus and method for using flat panel display | |
US20110260979A1 (en) | Computer system complying with ddc/ci protocol | |
CN102693612A (en) | Remote control apparatus of handheld device and method | |
US9529386B2 (en) | Information processing apparatus, docking station, and external display control method | |
TWI420287B (en) | Power control system, power control method, and computer system having the same | |
US20130208029A1 (en) | Method for Realizing Dual Operation Mode Liquid Crystal Display Device | |
CN110489364A (en) | Output equipment and output equipment control method | |
KR102480991B1 (en) | Display device and power delivery system comprsing the display device | |
CA2766915A1 (en) | Terminal apparatus using a peripheral apparatus of another terminal via the control of one terminal, and interface method thereof | |
TWI631541B (en) | High resolution display and driver chip therein | |
KR101485154B1 (en) | Method for Changing to Wake Up Mode at External Device and Mobile Terminal Docking Thereat | |
TW201908979A (en) | Baseboard management controller information acquisition system by universal serial bus port | |
US20150194037A1 (en) | Charging indication apparatus and method thereof |