WO2009013146A1 - Remote control signaling infrared generator - Google Patents
Remote control signaling infrared generator Download PDFInfo
- Publication number
- WO2009013146A1 WO2009013146A1 PCT/EP2008/059036 EP2008059036W WO2009013146A1 WO 2009013146 A1 WO2009013146 A1 WO 2009013146A1 EP 2008059036 W EP2008059036 W EP 2008059036W WO 2009013146 A1 WO2009013146 A1 WO 2009013146A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- value
- clock signal
- instruction
- signal
- pulse duration
- Prior art date
Links
- 230000011664 signaling Effects 0.000 title abstract description 21
- 238000000034 method Methods 0.000 claims abstract description 24
- 230000006870 function Effects 0.000 claims description 24
- 230000008569 process Effects 0.000 description 9
- 230000002093 peripheral effect Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 5
- 238000013461 design Methods 0.000 description 5
- 230000008901 benefit Effects 0.000 description 3
- 238000012163 sequencing technique Methods 0.000 description 3
- 238000013459 approach Methods 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 2
- 238000007796 conventional method Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000007704 transition Effects 0.000 description 2
- 230000001419 dependent effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000007274 generation of a signal involved in cell-cell signaling Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000000638 solvent extraction Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G08—SIGNALLING
- G08C—TRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
- G08C23/00—Non-electrical signal transmission systems, e.g. optical systems
- G08C23/04—Non-electrical signal transmission systems, e.g. optical systems using light waves, e.g. infrared
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L25/00—Baseband systems
- H04L25/38—Synchronous or start-stop systems, e.g. for Baudot code
- H04L25/40—Transmitting circuits; Receiving circuits
- H04L25/49—Transmitting circuits; Receiving circuits using code conversion at the transmitter; using predistortion; using insertion of idle bits for obtaining a desired frequency spectrum; using three or more amplitude levels ; Baseband coding techniques specific to data transmission systems
- H04L25/4902—Pulse width modulation; Pulse position modulation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L27/00—Modulated-carrier systems
- H04L27/02—Amplitude-modulated carrier systems, e.g. using on-off keying; Single sideband or vestigial sideband modulation
- H04L27/04—Modulator circuits; Transmitter circuits
-
- G—PHYSICS
- G08—SIGNALLING
- G08C—TRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
- G08C2201/00—Transmission systems of control signals via wireless link
- G08C2201/90—Additional features
- G08C2201/92—Universal remote control
Definitions
- the present invention relates to signal generation systems and methods, and more particularly, to a method and system for generating infrared signals.
- IR infrared
- the signaling is typically accomplished by modulating an infrared light-emitting diode (LED) on and off in a unique pattern such that an IR receiver on the controlled equipment can detect specific commands such as on and off, volume up/down, channel up/down, and the like. More specifically, the IR LED is modulated at a specified carrier frequency, typically in the range of 30 ECHz to 60 ECHz. This carrier frequency is then switched on and off according to an encoded sequence of binary digits that form the unique controller codes.
- LED infrared light-emitting diode
- FIGS. Ia-Ic show three types of encoding currently used in some equipment.
- FIG Ia illustrates pulse-width encoding in which a long period of carrier frequency may represent a binary "1 ,” and a short period may represent a "0.”
- the bit time for a Logic 1 can be defined as 1.5 times the bit time for a Logic 0.
- Another type of encoding is bi-phase encoding, such as shown in FIG. Ib, in which one half of the bit time is modulated on and the other half is off.
- a third type of encoding is called pulse-position encoding, in which the time between pulses of a constant duration determines the logical value.
- the bit time for a Logic 1 can be defined as twice that for a Logic 0.
- FIGS. 2a-2d show the Phillips RC5 IR Remote Control Protocol, which is a commonly used bi-phase encoding scheme and command structure.
- a carrier clock having a frequency of 36 KHz is modulated using bi-phase data, such as the logic "0"' and logic "1" data signal shown in FIG. 2b.
- FIG. 2c shows the data modulated clock signal representing a logic "0" bit and logic "1" bit.
- Such logical bit representations may be combined into a string of bi-phase data to create a command sequence that is provided to an infrared LED.
- FIG. 2d depicts an exemplary fourteen-bit command sequence using the Phillips protocol.
- the command typically includes "Start" bits Sl and S2 (Bit 1-Bit 2) that mark its beginning, a "Toggle” bit T (Bit 3) for repeated commands, a sequence of five bits that represent the device address (Bit 4-Bit 8), followed by a sequence of bits that represent the command itself (Bit 9-Bit 14).
- a "Stop" bit may sometimes follow the command to indicate the end of the command sequence.
- the device address allows a single remote control to communicate with multiple devices, such as a TV, VCR, set-top box, audio components etc., and the command represents a specific function of the device, such as "play,” “channel up,” “volume down” etc. associated with the device.
- the typical electronic hardware implementation of a remote control device is simply a small, embedded microcontroller that controls a single I/O pin that turns an IR LED on and off based on user inputs from a keypad. All of the encoding, modulation, and command sequencing is done in firmware loaded onto the microcontroller. This is an inexpensive, low power, and reasonably flexible solution for a dedicated-use remote control device.
- TMS320DM646x DMSoC Universal Asynchronous Receiver/Transmitter http://focus.ti.com/lit/ug/spruer6/spruer6.pdf.
- This approach generates the carrier frequency using a clock divider, generates a bit clock using another clock divider, and loads a series of bits into a shift register to represent the "on” and "off pulses based on a single period of the bit clock.
- this implementation would be reasonable for the bi-phase encoding shown in FIGS. 2a-2d, it is limited in its capability for handling other encodings, such as pulse-width and pulse-position encoding.
- bit clock While the existing TI approach provides more functionality in hardware and significantly off-loads the microprocessor, it remains limited in configuring the bit clock for encoding schemes that use varying pulse widths. For a scheme that requires varying pulse widths with a fine degree of granularity with respect to the bit period, or a scheme that does not have a constant bit period, the bit clock must be programmed to be a much higher rate, therefore multiplying the number of bits that must be loaded by the microprocessor into the shift register. This greatly increases the real-time constraints on the microprocessor, which, in turn, may affect performance of other applications that may be concurrently running.
- an IR signaling generator and method divides the functionality of generation between software and hardware to provide a flexible way to generate IR signals, such as remote control command signals.
- the hardware includes a clock generator for generating a carrier clock signal and a data clock signal, a buffer memory that is loaded with instructions representing an encoded data sequence; a control circuit, and a transmitter including a modulator.
- Each instruction contains a corresponding on/off value that is to be modulated with the data clock signal and information corresponding to pulse duration value that indicates how long the on/off value is to modulate the clock signal.
- the control circuit measures the amount of time the on/off value modulates the clock signal and causes the buffer to advance to the next instruction in the sequence when the measured amount of time is equal to the pulse duration value.
- an infrared (IR) signal generating apparatus in another aspect, includes a clock generator for generating a carrier clock and a data clock.
- the generated data clock has a frequency equal to or less than a frequency of the carrier clock.
- the generating function includes a buffer memory for loading instructions for execution. Each of these instructions produces a sequential part of an encoded data sequence and includes a corresponding value indicating an on or off value for modulating the carrier clock and information corresponding to a pulse duration value.
- a modulator receives the carrier clock signal and the on or off value during execution of each said instruction and modulates the carrier clock signal with the on or off value.
- the modulated carrier clock output from the modulator is provided to an IR emitter.
- the IR signal generating apparatus also includes a control circuit that receives the pulse duration signal and data clock signal and permits the modulator to modulate the carrier only for the length of time indicated by the pulse duration value as measured using the data clock signal.
- an IR signal is produced by generating a carrier clock signal of one frequency and a data clock signal having a frequency less than or equal to that of the carrier clock.
- a plurality of instructions to be performed in sequential order are loaded into a buffer. Each of these instructions may produce an encoded datum in a sequence of encoded data and includes a corresponding value indicating an on or off value for modulating the carrier clock and information corresponding to a pulse duration value.
- Each instruction executes in the sequential order, and the corresponding pulse duration value is applied to a control circuit that permits the modulation only for a length of time indicated by the pulse duration value as measured using the data clock signal.
- the carrier clock signal is modulated with the corresponding on or off value for the indicated length of time, and the modulated carrier clock signal is provided to an IR emitter.
- each instruction further comprises validity information indicating whether that instruction is valid. The validity information is provided to the control circuit, which determines whether the validity information for the instruction being executed indicates that the instruction is invalid, and if so, the control circuit disables modulation of the carrier clock signal.
- FIGS. Ia-Ic are diagrams of exemplary infrared signaling encoding schemes in accordance with some embodiments.
- FIGS. 2a-2d are diagrams illustrating a bi-phase encoding scheme and protocol for representing infrared signaling data.
- FIG. 3 is a block diagram representing an exemplary system including an infrared signal generator module in accordance with some embodiments.
- FIG. 4 is a block diagram illustrating the hardware implementation of an exemplary IR signaling generation in accordance with some embodiments.
- FIG. 5 is a flowchart illustrating exemplary processes related to generating an infrared signal in accordance with some embodiments.
- the various actions could be performed by specialized circuits (e.g., discrete logic gates interconnected to perform a specialized function), by program instructions, such as program modules, being executed by one or more processors, or by a combination of both.
- the invention can additionally be considered to be embodied within any form of computer readable carrier, such as solid-state memory, magnetic disk, and optical disk containing an appropriate set of computer instructions, such as program modules, and data structures that would cause a processor to carry out the techniques described herein.
- a computer-readable medium would include the following: an electrical connection having one or more wires, magnetic disk storage, magnetic cassettes, magnetic tape or other magnetic storage devices, a portable computer diskette, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), or any other medium capable of storing information.
- RAM random access memory
- ROM read-only memory
- EPROM or Flash memory erasable programmable read-only memory
- FSM finite state machine
- FSM Computation begins at the start state, and upon receiving an input string (e.g., an instruction or command), the FSM changes to new states depending on the transition function. While a FSM may not include an arithmetic logic unit (ALU) or other circuits conventionally associated with microprocessors, the term FSM as defined herein does not exclude devices including such circuitry or elements.
- ALU arithmetic logic unit
- the present invention provides flexible and/or enhanced infrared (IR) remote control functionality in portable electronic devices.
- the IR functionality of the present invention may be incorporated in multi-use devices such as mobile phones, PDAs, and mobile computers to provide a user ready access to a device that can serve as a remote controller (e.g., a "Universal" remote controller) in addition to its existing communications and media capabilities.
- a remote controller e.g., a "Universal" remote controller
- the borders between what can be considered a mobile phone, a mobile computer, a PDA and the like are increasingly becoming less clear because many of such categorized electronic devices may perform some, if not all the functions that may be considered to correspond to one or more devices having a different designated category.
- the present invention may even be implemented in devices that generally operate at a fixed location, for example, to provide IR signaling to any nearby IR receiver or receiver/repeater combination capable of detecting an IR signal.
- aspects of the invention provide a unique and practical way to integrate IR remote control functionality into any of a variety of device types.
- FIG. 3 is a block diagram illustrating an exemplary system 300 including a signal- generating module 310 for carrier generation and data modulation for IR remote control signaling.
- the system 300 also includes a processor 320, memory 330, a system bus 332, a peripheral bus 334 and a bridge 336.
- the system 300 may or may not include additional devices on the system bus 332 and on the peripheral bus 334, but for brevity and practicality of illustration, such devices will not be shown.
- the individual hardware elements of the signal-generating module 310 which may comprise general-purpose logic, communicate with one another over a module bus 330.
- the hardware elements include an input/output (I/O) interface 340, which may include a set of registers where control information is stored; a buffer memory, which may be implemented in some embodiments as a first- in- first-out (FIFO) buffer 342 for storing a plurality of instructions to be sequentially executed, each of which includes at least information corresponding to an on/off value and pulse duration; a clock generator 344 for generating a carrier clock signal 345 and a data (i.e., bit) clock signal 346; control circuit 348; and a transmitter 352 for providing an output signal 354 to an IR emitter 355 (e.g., an IR LED).
- the output signal is produced by modulating the carrier clock signal 345 based on information contained in the sequentially executed instructions stored in the FIFO buffer 342 and an enabling signal 349 provided by the control circuit 348.
- the system bus 332 may be faster than the peripheral bus 334 and linked thereto using a bridge 336 that serves as a master to the "slave" peripheral device (i.e., the signal-generating module 310) and enables communication between devices or components having different protocols.
- the system bus 332 generally connects high bandwidth devices, such as the processor 320, system memory 330, and other devices such as an external memory interface and DMA controller (not shown), while the peripheral bus 334 supports the high performance, low latency and flexibility issues associated with peripheral devices.
- any of several known bus configurations may be used.
- the signal- generating module 310 may be implemented using Advanced Peripheral Bus (APB) or the peripheral component interconnect (PCI) protocol, while the system bus 332 operates under a different protocol such as an Advanced Microprocessor Bus Architecture (AMBA) High-Speed Bus (AHB) or another known local system bus.
- API Advanced Peripheral Bus
- PCI peripheral component interconnect
- AMBA Advanced Microprocessor Bus Architecture
- HAB High-Speed Bus
- IR remote control signaling within the signal-generating module 310 can be broken down into four primary components: carrier clock generation, data encoding, command sequencing, and signal modulation.
- a modulated signal carrier clock e.g., a 30 KHz - 60 KHz clock signal
- the encoded data represents binary digits by varying the pulse width, phase, or time between pulses. This comes down to "when” and “how long” to turn the carrier on and off for each pulse.
- the present invention includes a combination of hardware and software functionality that allows a generic function in the hardware to be controlled in such a way to support a plurality, if not all variants of IR remote control signaling.
- the clock generator 344 may be implemented as a single multi-output clock generator, or as separate clock generating elements for generating the respective carrier clock signal and the data clock signal.
- the clock generator 344 may have an input to which a clock is supplied by the processor 320 or other source, and the clock generator 344 may produce the carrier and data clock signals based on the input clock signal (e.g., via a clock divider or multiplier, PLL, DDL or other known clock generating circuits).
- the carrier and data clock signals may be generated locally (e.g., via an oscillator, LC, RC or other known circuits and configurations). Any of these clock generator circuits may be implemented as a programmable clock generator to provide added flexibility in the number of IR signals that the signal- generating module 310 may produce.
- the FIFO buffer 342 is used to store modulation instructions, which include information used by the transmitter 352 and controller 348 to determine how to modulate the frequency of the carrier clock 345 provided by the clock generator 344.
- the FIFO buffer 342 may be supported by an interrupts module 360 that generates an interrupt signal at 362 based on the status of the FIFO buffer 342. For example, an interrupt signal may be triggered by events such as FIFO half empty, FIFO underflow, FIFO empty, FIFO full, and an instruction frame end.
- the FIFO buffer 342 is programmed by the processor 320 and stores sets of values that may be viewed as pulse width instructions. These instructions are executed in series and cause the output at 354 to be modulated on or off for the programmed amount of time specified by the instruction. For example, each location in the FIFO buffer may be divided into three fields: "on/off,” “valid,” and “pulse duration.”
- the "on/off field may be a single bit that indicates whether the output should be modulated on or off.
- the "valid” field may be a single bit that indicates that the current instruction is valid for execution, which may provide a simple means to start and end a series of instructions.
- the "pulse duration” field may include multiple bits that represent the duration amount of the current instruction in periods of the data clock signal generated by the clock generator 344.
- the number of bits required for the "pulse duration” field may depend on the input clock rate, a desired granularity of the duration length, and/or the protocols that are to be supported.
- the transmitter 352 receives the carrier clock signal 345 from the clock generator 344 and the value stored in the "on/off field of the instruction.
- the transmitter 352 uses the "on/off value to modulate the carrier clock for a period of time corresponding to an assertion of an enable signal 349 by the control circuit 348.
- the control circuit 348 receives the data clock 346 from the clock generator 344, and also receives the pulse duration amount and the "valid bit" field value contained in a currently executed instruction stored in the FIFO buffer 342. Based on this information, the control circuit 348 selectively asserts an enable/disable signal 349 to control a respective on/off state of the transmitter 352 (i.e., how long the transmitter 352 modulates the carrier clock signal 346). After a time period corresponding to the duration amount elapses, the control circuit 348 sends an address signal to the FIFO buffer 342 directing the FIFO buffer to load the next instruction in the series. When the control circuit 348 receives a "valid bit” field containing an "invalid" value, the control circuit 348 sends an interrupt signal 350 to the processor 320, disables output from the transmitter 352, and waits for a new instruction to be loaded.
- the signal-generating module 310 may optionally include a direct memory access (DMA) module 370 to provide an interface between the signal-generating module 310 and a DMA controller (not shown) on the system bus 332.
- the DMA module supports a programmable threshold setting that determines how many elements are left in the FIFO buffer 342 before a DMA request 372 is asserted.
- the DMA function may be enabled or disabled and is not required for the module to operate.
- the DMA request 372, the interrupt signal 350 and/or and the interrupt signal 362 may be routed through the I/O interface 340 to the appropriate element on the system bus 332, or alternatively each may communicate with the appropriate system elements by way of one or more dedicated paths
- FIG. 4 is a logic block diagram illustrating hardware of an exemplary IR signaling generator 400 according to some embodiments.
- the IR signaling generator 400 may be used in the above signal-generating module 310.
- the hardware of the IR signaling generator 400 includes a programmable clock generator 410, an automatically-loaded counter 420 that keeps track of pulse durations, a logic function 430 that modulates the carrier on and off, a finite state machine (FSM) 440 for controlling a sequence of operations, a FIFO buffer 450 for storing pulse width instructions, and a microprocessor bus interface 460 including a set of control registers.
- FSM finite state machine
- the programmable clock generator 410 may be any suitable known clock generator, such as those based on a clock divider, PLL, DLL, and the like, which derives a carrier clock signal 412 having a desired carrier frequency from a clock signal input to the generator (e.g., a clock signal typically available in a microprocessor-based system) and a data clock having a frequency based on the carrier clock signal.
- a clock signal input to the generator e.g., a clock signal typically available in a microprocessor-based system
- a data clock having a frequency based on the carrier clock signal.
- some embodiments may utilize any known programmable clock generating mechanism that generate the carrier clock locally independent of a system clock, and the clock generator may be implemented as separate clock generating elements for generating respective carrier clock signal and a data clock signal.
- the data clock signal 414 generated by the programmable clock generator 410 may have a frequency equal to or less than the carrier clock frequency.
- the bi-phase coding scheme shown in FIG. 2b has a carrier frequency of 36 KHz and a full bit time defined as 64 cycles of the carrier clock.
- the bi-phase pulse widths in this example would be equal to 32 carrier clocks.
- the data clock may be programmed to output a frequency of, for example, 36 KHz, 18 KHz or 9 KHz. Lower data clock rates are possible as long as there is enough resolution to create a desired pulse width duration.
- the FIFO buffer 450 is programmed by a microprocessor (not shown) and stores pulse width instructions in the FIFO elements 452 1 to 452 n .
- Each of the FIFO elements 452 1 to 452 n is divided into an "on/off bit field 454, a "valid" bit field 456, and a "pulse duration” bit field 458.
- the on/off field 454 may be a single bit that represents the encoded data and indicates whether the output should be modulated on or off.
- the encoded data stored in bit field 454 is supplied to the logic function 430, which is an AND gate in this embodiment.
- the valid field 456 may be a single bit indicating whether the current instruction is valid for execution and is provided to an input of the FSM 440.
- the pulse duration field 458 includes multiple bits and represents the duration of the current instruction in periods of the data clock 414.
- a control circuit is implemented in the form of a counter 420 and an FSM 440, and controls the execution of the instructions stored in the FIFO buffer 450.
- the FSM 440 reads the state of the valid bit 456. If the valid bit 456 is set, the FSM 440 enables the output 432 of the modulator.
- the pulse duration value 458 is loaded into the counter 420, which then decrements every period of data clock 414.
- the counter 420 reaching zero is an indication to the FSM 440 that it should load the next instruction using a FIFO address signal 446.
- the FSM 440 generates and sends an interrupt signal 442 to the microprocessor, provides a disable signal to an enable/disable function of the logic function 430 along signal path 444, and waits for a new instruction to be loaded.
- the logical implementation of the IR signal generator described herein handles the carrier clock generation and modulation based on pulse duration instructions provided by the processor (e.g., microprocessor). This implies that the actual protocol encoding and command sequencing is performed in software or firmware. For example, if the software were to send a command using the protocol described in FIGS. 2a-2d, it would first assemble a series of bits that represent the command in the proper order.
- the software or firmware would then translate each bit of the series into two instructions, each one representing one phase of the bi-phase encoding.
- the on/off value 454 of each instruction would be determined by the value of each bit and by which phase the instruction represents.
- a logic "0" bi-phase encoded bit would require that the first instruction have an on/off value 454 of "1,” and a second instruction would have an on/off value 454 of "0.”
- a logic "1" bi-phase encoded bit would be translated into two sequential instructions, the first having an on/off value 454 of "0” and the second having an on/off value 454 of "1.”
- all pulse duration values 458 would have the same value and depend on what frequency was programmed for the data clock 414. For example, if the data clock 414 were equal to the carrier clock 412, the durations would all be 32 clock cycles of the data clock 414.
- any protocol such as those utilizing pulse-width and pulse- position encoding, could be supported by appropriately varying the values for the carrier clock 412 and data clock 414, converting the command bits into the appropriate series of "on” and “off pulses, and setting the appropriate respective pulse durations.
- each logic bit value may be implemented with two instructions, one to designate the "on” time, and another to designate the "off time.
- the pulse duration (i.e., duty cycle) of the "on” value of the on/off value 454 would be longer to represent a binary "T'than it would be to represent a binary "0.”
- the "off value of the on/off value 454 for both "1" and "0" would have the same pulse duration 458.
- Ic would be similarly performed, but with each instruction 452 of an instruction pair having the same pulse duration value 458 when an on/off value 454 is "on,” and one of two different pulse duration amounts for each "off value of an on/off value 454 that correspond to the bit logic value.
- the present invention also may generate signals for protocols that may include multivalued information beyond simple binary values. For example, the number of pulse width durations possible in a coded sequence would be limited only by the number of carrier clock and/or data clock frequencies a clock generator can generate, and a resolution that may be required for a particular bit time. In this way, the invention provides for protocols using more than two different pulse widths of either the "on" or "off value of the on/off bit field 454.
- pulse durations corresponding to each "off and "on” on/off value may be defined and stored in one or more register, and the "on" or “off value in the on/off bit field of an instruction or an additional bit field in an instruction may serve as a pointer to a register containing the corresponding pulse duration value.
- an on/off bit itself may point to the appropriate register.
- the pulse-width encoding shown in FIG. Ia includes two possible pulse duration values for an "on” on/off value and only one pulse duration value for an "off on/off value.
- the pulse-position encoding shown in FIG. Ic includes only one possible pulse duration value for an "on” on/off value and two possible pulse duration values for "off on/off value.
- the number of bits in an instruction may correspond to the number of registers required for a particular encoding scheme.
- an instruction may not include an actual pulse width duration value, it may convey information corresponding to a desired pulse width duration.
- the present invention has significant advantages over current implementations in which all or most of the functionality is realized in software. For example, partitioning the functionality between hardware (e.g., logic gates) and software (or firmware) allows the hardware to handle fixed functions that must operate at a high frequency with a fair amount of timing precision, while variable functions that can be calculated prior to modulation may be handled by software or firmware.
- the hardware also provides enough functionality to significantly off-load the processor as compared to the existing solutions.
- the hardware also may be generic with respect to the various modulation and encoding schemes that exist in industry, and thus provides greater overall flexibility than the all software approach of the prior art. Additionally, the hardware solution of the present invention is not prohibitively costly in logic area or power consumption for a portable communications/computing device application.
- the invention allows the software (or firmware) to operate with virtually no real-time constraints and provide maximum flexibility for supporting various protocols. Because the software (or firmware) assembles the commands and implements the encoding scheme, it facilitates support for many protocol variants. When integrating this function into an existing microprocessor system (e.g., a microprocessor system of a cell phone or PDA), it will not represent a significant processing load or impose any real-time constraint. Additionally, the present invention does not impose an impact on circuit board area because it does not require adding a separate microcontroller. This invention also has an advantage over possible solutions that would put all the functionality into hardware.
- a microprocessor system e.g., a microprocessor system of a cell phone or PDA
- An all-hardware solution would have much greater complexity in order to support all the common encoding schemes and command sequences, which would result in a much larger (thus more costly) and more power-hungry design. Also, an all-hardware design would be less flexible and adaptable, depending on lengthy ASIC design cycles to modify or add functions.
- Another advantage of the present invention over conventional methods and configurations is the pulse width instruction over a simple bit stream.
- the conventional methods and configurations would not be as efficient when implementing a pulse-width or pulse-position modulation scheme, particularly when the pulse durations require fine granularity with respect to the bit time.
- each bit represents an "on" or "off time of one period of the bit clock. If the encoding scheme requires pulse widths that vary with a high granularity, the bit clock must be programmed to be a significantly higher rate than the actual bit time. Therefore, more data bits must be transferred by the microprocessor for each logical value.
- This invention is an improvement over such systems because, regardless of the encoding scheme or the frequency of the data clock, only one pulse-width instruction is needed for each pulse. This lessens real-time constraint on the microprocessor and simplifies control. Also, most IR remote control protocols require a certain amount of "off time between commands that is typically much longer than a single bit time. Since commands are often repeated as the user holds a button down, e.g. "Fast- forward,” or “Volume Down,” such conventional implementations would have to program a long string of O's to cause the appropriate "off time to occur. Alternatively, the hardware would have to be disabled for the period of the inter-command "off time, which means it would have to be tracked by software. With this invention, the inter-command "off time can be programmed with a single instruction just like any other pulse.
- the procedure 500 begins at process 510, which generates a carrier clock signal and a data clock signal.
- the frequency of the data clock signal may be less than or equal to the frequency of the carrier clock signal.
- a buffer memory such as a FIFO buffer, is loaded with a plurality of instructions to be sequentially performed.
- the instructions may be loaded by a microprocessor of a system performing signal IR generation.
- the instructions represent an encoded data sequence, which may be calculated by software or firmware, and each instruction includes a corresponding value related to an on or off (on/off) value that indicates whether the output should be modulated on or off with respect to the carrier clock, and information indicating a pulse duration value, which is a length of time that the modulation is to be performed.
- the instructions also may include a value indicating whether the instruction is valid, which may be utilized, for example, to indicate an end of the sequence of instructions.
- Process 530 represents a loop that executes processes 540 to 560 for each instruction stored in the buffer memory in a sequence corresponding to the encoding method utilized.
- decision 540 it is determined whether the instruction is valid, and if not, the loop ends. At this point, the sequence of instructions have completed so modulation of the carrier signal may be disabled, and an interrupt signal may be generated and sent to the microprocessor.
- process 550 permits modulation of the data clock signal by the on/off value included in the instruction only for the length of time indicated by the pulse duration value.
- the length of time is measured using the data clock signal, for example, providing the data clock to a control circuit that includes a counter, which counts down from a value initially set at the pulse duration value.
- the modulated carrier clock signal is provided to an IR emitter.
- 530 repeats processes 530 to 560 until all loaded instructions have been exhausted and the "end for" 570 condition occurs, which may include processing an instruction having an invalid indicator at 540 causes the control circuit to disable modulation and send an interrupt signal to the microprocessor.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- Spectroscopy & Molecular Physics (AREA)
- General Physics & Mathematics (AREA)
- Selective Calling Equipment (AREA)
- Optical Communication System (AREA)
- Details Of Television Systems (AREA)
Abstract
An IR signaling generator and method divides the functionality of generation between software and hardware to provide a flexible way to generate IR signals, such as remote control signals. The hardware includes a clock generator for generating a carrier clock signal and a data clock signal, a buffer memory that is loaded with instructions representing an encoded data sequence; a control circuit, and a transmitter including a modulator. Each instruction contains an on/off value that is to be modulated with the data clock signal and a pulse duration value that indicates how long the on/off value is to modulate the clock signal. Using the data clock signal, the control circuit measures the amount of time the on/off value modulates the clock signal and causes the buffer to advance to the next instruction in the sequence when the measured amount of time is equal to the pulse duration value.
Description
REMOTE CONTROL SIGNALING INFRARED GENERATOR
FIELD OF THE INVENTION
The present invention relates to signal generation systems and methods, and more particularly, to a method and system for generating infrared signals.
BACKGROUND
Many consumer electronics items such as televisions, set-top boxes, audio/video components, and media center PCs use some form of infrared (IR) signaling for remote control. The signaling is typically accomplished by modulating an infrared light-emitting diode (LED) on and off in a unique pattern such that an IR receiver on the controlled equipment can detect specific commands such as on and off, volume up/down, channel up/down, and the like. More specifically, the IR LED is modulated at a specified carrier frequency, typically in the range of 30 ECHz to 60 ECHz. This carrier frequency is then switched on and off according to an encoded sequence of binary digits that form the unique controller codes. There are no widely accepted official industry standards governing how the IR LED is to be modulated or how the data is to be encoded. In practice, various types of encoding are used by the different manufacturers of the controlled equipment. FIGS. Ia-Ic show three types of encoding currently used in some equipment. FIG Ia illustrates pulse-width encoding in which a long period of carrier frequency may represent a binary "1 ," and a short period may represent a "0." For example, the bit time for a Logic 1 can be defined as 1.5 times the bit time for a Logic 0. Another type of encoding is bi-phase encoding, such as shown in FIG. Ib, in which one half of the bit time is modulated on and the other half is off. In bi-phase encoding, binary values are differentiated by which half of the bit time is "on," that is, a binary "1" may be represented by "off followed by "on," and vice- versa for binary "0." A third type of encoding, shown in FIG. Ic, is called pulse-position encoding, in which the time between pulses of a constant duration determines the logical value. For example, the bit time for a Logic 1 can be defined as twice that for a Logic 0. There are other less common encoding schemes that exist in the industry that, for reasons of brevity, are not detailed here.
Again, because there are no widely accepted standards, each manufacturer implements its own specific command sequence. For example, FIGS. 2a-2d show the Phillips RC5 IR Remote Control Protocol, which is a commonly used bi-phase encoding scheme and command structure.
In the Phillips protocol, a carrier clock having a frequency of 36 KHz, as schematically depicted in FIG. 2a, is modulated using bi-phase data, such as the logic "0"' and logic "1" data signal shown in FIG. 2b. The result of the modulation is shown in FIG. 2c, which shows the data modulated clock signal representing a logic "0" bit and logic "1" bit. Such logical bit representations may be combined into a string of bi-phase data to create a command sequence that is provided to an infrared LED.
FIG. 2d depicts an exemplary fourteen-bit command sequence using the Phillips protocol. The command typically includes "Start" bits Sl and S2 (Bit 1-Bit 2) that mark its beginning, a "Toggle" bit T (Bit 3) for repeated commands, a sequence of five bits that represent the device address (Bit 4-Bit 8), followed by a sequence of bits that represent the command itself (Bit 9-Bit 14). Although not shown in FIG. 2d, a "Stop" bit may sometimes follow the command to indicate the end of the command sequence. The device address allows a single remote control to communicate with multiple devices, such as a TV, VCR, set-top box, audio components etc., and the command represents a specific function of the device, such as "play," "channel up," "volume down" etc. associated with the device.
The typical electronic hardware implementation of a remote control device is simply a small, embedded microcontroller that controls a single I/O pin that turns an IR LED on and off based on user inputs from a keypad. All of the encoding, modulation, and command sequencing is done in firmware loaded onto the microcontroller. This is an inexpensive, low power, and reasonably flexible solution for a dedicated-use remote control device.
One existing hardware solution by Texas Instruments (TI) is described in Section 2.4.4 of "TMS320DM646x DMSoC Universal Asynchronous Receiver/Transmitter (UART)" (http://focus.ti.com/lit/ug/spruer6/spruer6.pdf). This approach generates the carrier frequency using a clock divider, generates a bit clock using another clock divider, and loads a series of bits into a shift register to represent the "on" and "off pulses based on a single period of the bit clock. Although this implementation would be reasonable for the bi-phase encoding shown in FIGS. 2a-2d, it is limited in its capability for handling other encodings, such as pulse-width and pulse-position encoding.
The typical hardware solutions for a dedicated-use IR remote controller are not practical for a highly integrated, multi-use, portable communications and computing device. Simply adding a dedicated microcontroller loaded with the modulation and encoding firmware would
violate the space, power, and cost constraints of such a device. An alternative solution might be to load the modulation and encoding firmware onto the portable device's existing microprocessor and have it control an IR LED (which often already exists on these devices) through an I/O pin. However, controlling a single pin with this level of precision is not an efficient use of the device's processor. This is especially so in multi-use devices that must control a number of different things simultaneously (e.g., maintaining a communications link with a cellular base station along with a user application such as email or Internet browser), where a large portion of the processor's power would be consumed modulating a single pin.
While the existing TI approach provides more functionality in hardware and significantly off-loads the microprocessor, it remains limited in configuring the bit clock for encoding schemes that use varying pulse widths. For a scheme that requires varying pulse widths with a fine degree of granularity with respect to the bit period, or a scheme that does not have a constant bit period, the bit clock must be programmed to be a much higher rate, therefore multiplying the number of bits that must be loaded by the microprocessor into the shift register. This greatly increases the real-time constraints on the microprocessor, which, in turn, may affect performance of other applications that may be concurrently running.
Another potential solution would be to implement the entire IR signal generating functionality, including the data encoding, in logic gates. The logic design for such an implementation would be relatively straightforward because none of the schemes currently in use are very complex. However, because there is no single standard, all the existing protocols would have to be implemented individually. This would lead to inflexible and/or expensive IR signaling generator implementations. For example, in devices that typically use Application Specific Integrated Circuit (ASIC) technology, such as cellular phones and personal digital assistants (PDAs), the IR signaling generation function would become fixed once a design of the ASIC device is finalized. Also, because implementing multiple IR remote control standards would utilize a large number of ASIC gates, the cost of the ASIC would increase significantly.
SUMMARY
In accordance with embodiments of the invention, an improved infrared signaling generator and method obviates at least some of the above disadvantages. In one aspect, an IR signaling generator and method divides the functionality of generation between software and hardware to provide a flexible way to generate IR signals, such as remote control command
signals. The hardware includes a clock generator for generating a carrier clock signal and a data clock signal, a buffer memory that is loaded with instructions representing an encoded data sequence; a control circuit, and a transmitter including a modulator. Each instruction contains a corresponding on/off value that is to be modulated with the data clock signal and information corresponding to pulse duration value that indicates how long the on/off value is to modulate the clock signal. Using the data clock signal, the control circuit measures the amount of time the on/off value modulates the clock signal and causes the buffer to advance to the next instruction in the sequence when the measured amount of time is equal to the pulse duration value.
In another aspect, an infrared (IR) signal generating apparatus includes a clock generator for generating a carrier clock and a data clock. The generated data clock has a frequency equal to or less than a frequency of the carrier clock. The generating function includes a buffer memory for loading instructions for execution. Each of these instructions produces a sequential part of an encoded data sequence and includes a corresponding value indicating an on or off value for modulating the carrier clock and information corresponding to a pulse duration value. A modulator receives the carrier clock signal and the on or off value during execution of each said instruction and modulates the carrier clock signal with the on or off value. The modulated carrier clock output from the modulator is provided to an IR emitter.
The IR signal generating apparatus also includes a control circuit that receives the pulse duration signal and data clock signal and permits the modulator to modulate the carrier only for the length of time indicated by the pulse duration value as measured using the data clock signal.
In yet another aspect of the invention, an IR signal is produced by generating a carrier clock signal of one frequency and a data clock signal having a frequency less than or equal to that of the carrier clock. A plurality of instructions to be performed in sequential order are loaded into a buffer. Each of these instructions may produce an encoded datum in a sequence of encoded data and includes a corresponding value indicating an on or off value for modulating the carrier clock and information corresponding to a pulse duration value.
Each instruction executes in the sequential order, and the corresponding pulse duration value is applied to a control circuit that permits the modulation only for a length of time indicated by the pulse duration value as measured using the data clock signal. The carrier clock signal is modulated with the corresponding on or off value for the indicated length of time, and the modulated carrier clock signal is provided to an IR emitter.
In another aspect of the invention, each instruction further comprises validity information indicating whether that instruction is valid. The validity information is provided to the control circuit, which determines whether the validity information for the instruction being executed indicates that the instruction is invalid, and if so, the control circuit disables modulation of the carrier clock signal.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and exemplary only and are not restrictive of the invention, as claimed.
BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention that together with the description serve to explain the principles of the invention. In the drawings:
FIGS. Ia-Ic are diagrams of exemplary infrared signaling encoding schemes in accordance with some embodiments.
FIGS. 2a-2d are diagrams illustrating a bi-phase encoding scheme and protocol for representing infrared signaling data.
FIG. 3 is a block diagram representing an exemplary system including an infrared signal generator module in accordance with some embodiments. FIG. 4 is a block diagram illustrating the hardware implementation of an exemplary IR signaling generation in accordance with some embodiments.
FIG. 5 is a flowchart illustrating exemplary processes related to generating an infrared signal in accordance with some embodiments.
DETAILED DESCRIPTION The various aspects are described hereafter in greater detail in connection with a number of exemplary embodiments to facilitate an understanding of the invention. However, the invention should not be construed as being limited to these embodiments. Rather, these embodiments are provided so that the disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art. Many aspects of the invention are described in terms of sequences of actions to be performed by elements of a computer system or other hardware capable of executing
programmed instructions. It will be recognized that in each of the embodiments, the various actions could be performed by specialized circuits (e.g., discrete logic gates interconnected to perform a specialized function), by program instructions, such as program modules, being executed by one or more processors, or by a combination of both. Moreover, the invention can additionally be considered to be embodied within any form of computer readable carrier, such as solid-state memory, magnetic disk, and optical disk containing an appropriate set of computer instructions, such as program modules, and data structures that would cause a processor to carry out the techniques described herein. A computer-readable medium would include the following: an electrical connection having one or more wires, magnetic disk storage, magnetic cassettes, magnetic tape or other magnetic storage devices, a portable computer diskette, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), or any other medium capable of storing information. Thus, the various aspects of the invention may be embodied in many different forms, and all such forms are contemplated to be within the scope of the invention. The phrase "finite state machine" (FSM) is defined herein to be any device based on a model of computation consisting of a set of states, a start state, an input alphabet, and a transition function that maps input symbols and current states to a next state. Computation begins at the start state, and upon receiving an input string (e.g., an instruction or command), the FSM changes to new states depending on the transition function. While a FSM may not include an arithmetic logic unit (ALU) or other circuits conventionally associated with microprocessors, the term FSM as defined herein does not exclude devices including such circuitry or elements.
Furthermore, it should be emphasized that the terms "comprises" and "comprising," when used in this specification, are taken to specify the presence of stated features, integers, steps or components; but the use of these terms does not preclude the presence or addition of one or more other features, integers, steps, components or groups thereof.
The present invention provides flexible and/or enhanced infrared (IR) remote control functionality in portable electronic devices. For example, the IR functionality of the present invention may be incorporated in multi-use devices such as mobile phones, PDAs, and mobile computers to provide a user ready access to a device that can serve as a remote controller (e.g., a "Universal" remote controller) in addition to its existing communications and media capabilities. It should be noted, however, that the borders between what can be considered a mobile phone, a
mobile computer, a PDA and the like are increasingly becoming less clear because many of such categorized electronic devices may perform some, if not all the functions that may be considered to correspond to one or more devices having a different designated category. Furthermore, the present invention may even be implemented in devices that generally operate at a fixed location, for example, to provide IR signaling to any nearby IR receiver or receiver/repeater combination capable of detecting an IR signal. Thus, aspects of the invention provide a unique and practical way to integrate IR remote control functionality into any of a variety of device types.
The various features of the invention will now be described in connection with exemplary embodiments and with reference to the figures. FIG. 3 is a block diagram illustrating an exemplary system 300 including a signal- generating module 310 for carrier generation and data modulation for IR remote control signaling. The system 300 also includes a processor 320, memory 330, a system bus 332, a peripheral bus 334 and a bridge 336. The system 300 may or may not include additional devices on the system bus 332 and on the peripheral bus 334, but for brevity and practicality of illustration, such devices will not be shown.
The individual hardware elements of the signal-generating module 310, which may comprise general-purpose logic, communicate with one another over a module bus 330. The hardware elements include an input/output (I/O) interface 340, which may include a set of registers where control information is stored; a buffer memory, which may be implemented in some embodiments as a first- in- first-out (FIFO) buffer 342 for storing a plurality of instructions to be sequentially executed, each of which includes at least information corresponding to an on/off value and pulse duration; a clock generator 344 for generating a carrier clock signal 345 and a data (i.e., bit) clock signal 346; control circuit 348; and a transmitter 352 for providing an output signal 354 to an IR emitter 355 (e.g., an IR LED). The output signal is produced by modulating the carrier clock signal 345 based on information contained in the sequentially executed instructions stored in the FIFO buffer 342 and an enabling signal 349 provided by the control circuit 348.
The system bus 332 may be faster than the peripheral bus 334 and linked thereto using a bridge 336 that serves as a master to the "slave" peripheral device (i.e., the signal-generating module 310) and enables communication between devices or components having different protocols. The system bus 332 generally connects high bandwidth devices, such as the processor
320, system memory 330, and other devices such as an external memory interface and DMA controller (not shown), while the peripheral bus 334 supports the high performance, low latency and flexibility issues associated with peripheral devices. Depending on particular implementation, any of several known bus configurations may be used. For example, the signal- generating module 310 may be implemented using Advanced Peripheral Bus (APB) or the peripheral component interconnect (PCI) protocol, while the system bus 332 operates under a different protocol such as an Advanced Microprocessor Bus Architecture (AMBA) High-Speed Bus (AHB) or another known local system bus.
The functionality of IR remote control signaling within the signal-generating module 310 can be broken down into four primary components: carrier clock generation, data encoding, command sequencing, and signal modulation. In most signaling protocols in use today, a modulated signal carrier clock (e.g., a 30 KHz - 60 KHz clock signal) is effectively AND'ed with encoded data. The encoded data represents binary digits by varying the pulse width, phase, or time between pulses. This comes down to "when" and "how long" to turn the carrier on and off for each pulse. The present invention includes a combination of hardware and software functionality that allows a generic function in the hardware to be controlled in such a way to support a plurality, if not all variants of IR remote control signaling.
The clock generator 344 may be implemented as a single multi-output clock generator, or as separate clock generating elements for generating the respective carrier clock signal and the data clock signal. The clock generator 344 may have an input to which a clock is supplied by the processor 320 or other source, and the clock generator 344 may produce the carrier and data clock signals based on the input clock signal (e.g., via a clock divider or multiplier, PLL, DDL or other known clock generating circuits). Alternatively, the carrier and data clock signals may be generated locally (e.g., via an oscillator, LC, RC or other known circuits and configurations). Any of these clock generator circuits may be implemented as a programmable clock generator to provide added flexibility in the number of IR signals that the signal- generating module 310 may produce.
The FIFO buffer 342 is used to store modulation instructions, which include information used by the transmitter 352 and controller 348 to determine how to modulate the frequency of the carrier clock 345 provided by the clock generator 344. The FIFO buffer 342 may be supported by an interrupts module 360 that generates an interrupt signal at 362 based on the status of the
FIFO buffer 342. For example, an interrupt signal may be triggered by events such as FIFO half empty, FIFO underflow, FIFO empty, FIFO full, and an instruction frame end.
The FIFO buffer 342 is programmed by the processor 320 and stores sets of values that may be viewed as pulse width instructions. These instructions are executed in series and cause the output at 354 to be modulated on or off for the programmed amount of time specified by the instruction. For example, each location in the FIFO buffer may be divided into three fields: "on/off," "valid," and "pulse duration." The "on/off field may be a single bit that indicates whether the output should be modulated on or off. The "valid" field may be a single bit that indicates that the current instruction is valid for execution, which may provide a simple means to start and end a series of instructions. The "pulse duration" field may include multiple bits that represent the duration amount of the current instruction in periods of the data clock signal generated by the clock generator 344. The number of bits required for the "pulse duration" field may depend on the input clock rate, a desired granularity of the duration length, and/or the protocols that are to be supported. The transmitter 352 receives the carrier clock signal 345 from the clock generator 344 and the value stored in the "on/off field of the instruction. The transmitter 352 uses the "on/off value to modulate the carrier clock for a period of time corresponding to an assertion of an enable signal 349 by the control circuit 348.
The control circuit 348 receives the data clock 346 from the clock generator 344, and also receives the pulse duration amount and the "valid bit" field value contained in a currently executed instruction stored in the FIFO buffer 342. Based on this information, the control circuit 348 selectively asserts an enable/disable signal 349 to control a respective on/off state of the transmitter 352 (i.e., how long the transmitter 352 modulates the carrier clock signal 346). After a time period corresponding to the duration amount elapses, the control circuit 348 sends an address signal to the FIFO buffer 342 directing the FIFO buffer to load the next instruction in the series. When the control circuit 348 receives a "valid bit" field containing an "invalid" value, the control circuit 348 sends an interrupt signal 350 to the processor 320, disables output from the transmitter 352, and waits for a new instruction to be loaded.
The signal-generating module 310 may optionally include a direct memory access (DMA) module 370 to provide an interface between the signal-generating module 310 and a DMA controller (not shown) on the system bus 332. The DMA module supports a programmable
threshold setting that determines how many elements are left in the FIFO buffer 342 before a DMA request 372 is asserted. The DMA function may be enabled or disabled and is not required for the module to operate. The DMA request 372, the interrupt signal 350 and/or and the interrupt signal 362 may be routed through the I/O interface 340 to the appropriate element on the system bus 332, or alternatively each may communicate with the appropriate system elements by way of one or more dedicated paths
FIG. 4 is a logic block diagram illustrating hardware of an exemplary IR signaling generator 400 according to some embodiments. For example, the IR signaling generator 400 may be used in the above signal-generating module 310. The hardware of the IR signaling generator 400 includes a programmable clock generator 410, an automatically-loaded counter 420 that keeps track of pulse durations, a logic function 430 that modulates the carrier on and off, a finite state machine (FSM) 440 for controlling a sequence of operations, a FIFO buffer 450 for storing pulse width instructions, and a microprocessor bus interface 460 including a set of control registers. The programmable clock generator 410 may be any suitable known clock generator, such as those based on a clock divider, PLL, DLL, and the like, which derives a carrier clock signal 412 having a desired carrier frequency from a clock signal input to the generator (e.g., a clock signal typically available in a microprocessor-based system) and a data clock having a frequency based on the carrier clock signal. Alternatively, some embodiments may utilize any known programmable clock generating mechanism that generate the carrier clock locally independent of a system clock, and the clock generator may be implemented as separate clock generating elements for generating respective carrier clock signal and a data clock signal.
The data clock signal 414 generated by the programmable clock generator 410 may have a frequency equal to or less than the carrier clock frequency. For example, the bi-phase coding scheme shown in FIG. 2b has a carrier frequency of 36 KHz and a full bit time defined as 64 cycles of the carrier clock. The bi-phase pulse widths in this example would be equal to 32 carrier clocks. In this case, the data clock may be programmed to output a frequency of, for example, 36 KHz, 18 KHz or 9 KHz. Lower data clock rates are possible as long as there is enough resolution to create a desired pulse width duration. The FIFO buffer 450 is programmed by a microprocessor (not shown) and stores pulse width instructions in the FIFO elements 4521 to 452n. Each of the FIFO elements 4521 to 452n is
divided into an "on/off bit field 454, a "valid" bit field 456, and a "pulse duration" bit field 458. The on/off field 454 may be a single bit that represents the encoded data and indicates whether the output should be modulated on or off. The encoded data stored in bit field 454 is supplied to the logic function 430, which is an AND gate in this embodiment. The valid field 456 may be a single bit indicating whether the current instruction is valid for execution and is provided to an input of the FSM 440. The pulse duration field 458 includes multiple bits and represents the duration of the current instruction in periods of the data clock 414. The number of bits required for the pulse duration field 458 is dependent on the input clock rate and the protocols that are to be supported. In the FIG. 4 embodiment, a control circuit is implemented in the form of a counter 420 and an FSM 440, and controls the execution of the instructions stored in the FIFO buffer 450. Once an instruction is loaded into the FIFO buffer 450, the FSM 440 reads the state of the valid bit 456. If the valid bit 456 is set, the FSM 440 enables the output 432 of the modulator. The pulse duration value 458 is loaded into the counter 420, which then decrements every period of data clock 414. The counter 420 reaching zero is an indication to the FSM 440 that it should load the next instruction using a FIFO address signal 446. This process continues until an instruction is loaded with the valid bit 456 not set. At that point, the FSM 440 generates and sends an interrupt signal 442 to the microprocessor, provides a disable signal to an enable/disable function of the logic function 430 along signal path 444, and waits for a new instruction to be loaded. The logical implementation of the IR signal generator described herein handles the carrier clock generation and modulation based on pulse duration instructions provided by the processor (e.g., microprocessor). This implies that the actual protocol encoding and command sequencing is performed in software or firmware. For example, if the software were to send a command using the protocol described in FIGS. 2a-2d, it would first assemble a series of bits that represent the command in the proper order. The software or firmware would then translate each bit of the series into two instructions, each one representing one phase of the bi-phase encoding. In the FIG. 4 embodiment, for example, the on/off value 454 of each instruction would be determined by the value of each bit and by which phase the instruction represents. In this example, a logic "0" bi-phase encoded bit would require that the first instruction have an on/off value 454 of "1," and a second instruction would have an on/off value 454 of "0." A logic "1" bi-phase encoded bit would be translated into two sequential instructions, the first having an on/off value 454 of
"0" and the second having an on/off value 454 of "1." In a bi-phase implementation, all pulse duration values 458 would have the same value and depend on what frequency was programmed for the data clock 414. For example, if the data clock 414 were equal to the carrier clock 412, the durations would all be 32 clock cycles of the data clock 414. In a similar manner, virtually any protocol, such as those utilizing pulse-width and pulse- position encoding, could be supported by appropriately varying the values for the carrier clock 412 and data clock 414, converting the command bits into the appropriate series of "on" and "off pulses, and setting the appropriate respective pulse durations.
For example, to generate an IR signal using the pulse-width encoding scheme of FIG. Ia, each logic bit value may be implemented with two instructions, one to designate the "on" time, and another to designate the "off time. The pulse duration (i.e., duty cycle) of the "on" value of the on/off value 454 would be longer to represent a binary "T'than it would be to represent a binary "0." In this example, the "off value of the on/off value 454 for both "1" and "0" would have the same pulse duration 458. The pulse-position encoding shown in FIG. Ic would be similarly performed, but with each instruction 452 of an instruction pair having the same pulse duration value 458 when an on/off value 454 is "on," and one of two different pulse duration amounts for each "off value of an on/off value 454 that correspond to the bit logic value.
The present invention also may generate signals for protocols that may include multivalued information beyond simple binary values. For example, the number of pulse width durations possible in a coded sequence would be limited only by the number of carrier clock and/or data clock frequencies a clock generator can generate, and a resolution that may be required for a particular bit time. In this way, the invention provides for protocols using more than two different pulse widths of either the "on" or "off value of the on/off bit field 454.
Although some embodiments described herein utilize software or hardware to generate instructions that include a pulse width duration value, the software or hardware may instead generate instructions that contain information linking or pointing to a location storing a pulse duration value. For example, pulse durations corresponding to each "off and "on" on/off value may be defined and stored in one or more register, and the "on" or "off value in the on/off bit field of an instruction or an additional bit field in an instruction may serve as a pointer to a register containing the corresponding pulse duration value. For example, in the case of an "on/off value having only one or two duration values, an on/off bit itself may point to the
appropriate register. In the case of an encoding scheme including more than one possible pulse duration value for an "on" and "off value of an on/off value, more than one bit may be used for each "on" and/or "off value, or an additional field may be included in an instruction to point to a register containing the appropriate pulse duration value. For example, the pulse-width encoding shown in FIG. Ia includes two possible pulse duration values for an "on" on/off value and only one pulse duration value for an "off on/off value. Similarly, the pulse-position encoding shown in FIG. Ic includes only one possible pulse duration value for an "on" on/off value and two possible pulse duration values for "off on/off value. For such multi-valued "on" and "off values, the number of bits in an instruction may correspond to the number of registers required for a particular encoding scheme. Thus, while an instruction may not include an actual pulse width duration value, it may convey information corresponding to a desired pulse width duration.
The present invention has significant advantages over current implementations in which all or most of the functionality is realized in software. For example, partitioning the functionality between hardware (e.g., logic gates) and software (or firmware) allows the hardware to handle fixed functions that must operate at a high frequency with a fair amount of timing precision, while variable functions that can be calculated prior to modulation may be handled by software or firmware. The hardware also provides enough functionality to significantly off-load the processor as compared to the existing solutions. The hardware also may be generic with respect to the various modulation and encoding schemes that exist in industry, and thus provides greater overall flexibility than the all software approach of the prior art. Additionally, the hardware solution of the present invention is not prohibitively costly in logic area or power consumption for a portable communications/computing device application.
In addition, the invention allows the software (or firmware) to operate with virtually no real-time constraints and provide maximum flexibility for supporting various protocols. Because the software (or firmware) assembles the commands and implements the encoding scheme, it facilitates support for many protocol variants. When integrating this function into an existing microprocessor system (e.g., a microprocessor system of a cell phone or PDA), it will not represent a significant processing load or impose any real-time constraint. Additionally, the present invention does not impose an impact on circuit board area because it does not require adding a separate microcontroller.
This invention also has an advantage over possible solutions that would put all the functionality into hardware. An all-hardware solution would have much greater complexity in order to support all the common encoding schemes and command sequences, which would result in a much larger (thus more costly) and more power-hungry design. Also, an all-hardware design would be less flexible and adaptable, depending on lengthy ASIC design cycles to modify or add functions.
Another advantage of the present invention over conventional methods and configurations is the pulse width instruction over a simple bit stream. The conventional methods and configurations would not be as efficient when implementing a pulse-width or pulse-position modulation scheme, particularly when the pulse durations require fine granularity with respect to the bit time. For example, in some existing hardware solutions , each bit represents an "on" or "off time of one period of the bit clock. If the encoding scheme requires pulse widths that vary with a high granularity, the bit clock must be programmed to be a significantly higher rate than the actual bit time. Therefore, more data bits must be transferred by the microprocessor for each logical value. This invention is an improvement over such systems because, regardless of the encoding scheme or the frequency of the data clock, only one pulse-width instruction is needed for each pulse. This lessens real-time constraint on the microprocessor and simplifies control. Also, most IR remote control protocols require a certain amount of "off time between commands that is typically much longer than a single bit time. Since commands are often repeated as the user holds a button down, e.g. "Fast- forward," or "Volume Down," such conventional implementations would have to program a long string of O's to cause the appropriate "off time to occur. Alternatively, the hardware would have to be disabled for the period of the inter-command "off time, which means it would have to be tracked by software. With this invention, the inter-command "off time can be programmed with a single instruction just like any other pulse.
With reference to FIG. 5, there is shown a procedure 500 for generating an infrared (IR) signal in accordance with some embodiments. The procedure 500 begins at process 510, which generates a carrier clock signal and a data clock signal. The frequency of the data clock signal may be less than or equal to the frequency of the carrier clock signal. In process 520, a buffer memory, such as a FIFO buffer, is loaded with a plurality of instructions to be sequentially performed. For example, the instructions may be loaded by a
microprocessor of a system performing signal IR generation. The instructions represent an encoded data sequence, which may be calculated by software or firmware, and each instruction includes a corresponding value related to an on or off (on/off) value that indicates whether the output should be modulated on or off with respect to the carrier clock, and information indicating a pulse duration value, which is a length of time that the modulation is to be performed. The instructions also may include a value indicating whether the instruction is valid, which may be utilized, for example, to indicate an end of the sequence of instructions.
Process 530 represents a loop that executes processes 540 to 560 for each instruction stored in the buffer memory in a sequence corresponding to the encoding method utilized. In decision 540, it is determined whether the instruction is valid, and if not, the loop ends. At this point, the sequence of instructions have completed so modulation of the carrier signal may be disabled, and an interrupt signal may be generated and sent to the microprocessor.
If the instruction includes a valid indicator, process 550 permits modulation of the data clock signal by the on/off value included in the instruction only for the length of time indicated by the pulse duration value. The length of time is measured using the data clock signal, for example, providing the data clock to a control circuit that includes a counter, which counts down from a value initially set at the pulse duration value.
In process 560, the modulated carrier clock signal is provided to an IR emitter. The loop
530 repeats processes 530 to 560 until all loaded instructions have been exhausted and the "end for" 570 condition occurs, which may include processing an instruction having an invalid indicator at 540 causes the control circuit to disable modulation and send an interrupt signal to the microprocessor.
It will be apparent to those skilled in the art that various changes and modifications can be made in the infrared remote control signaling generating method and configuration of the present invention without departing from the spirit and scope thereof. Thus, it is intended that the present invention cover the modifications of this invention provided they come within the scope of the appended claims and their equivalents.
Claims
1. A method for generating an infrared (IR) signal, comprising: generating a carrier clock signal and a data clock signal, wherein the data clock signal frequency is less than or equal to the carrier clock signal frequency; loading into a buffer a plurality of instructions to be performed in sequential order, each said instruction for producing an element in an encoded data sequence and including a corresponding value indicating an on or off value for modulating the carrier clock signal and information corresponding to a pulse duration value; executing each instruction in the sequential order by performing: applying the corresponding pulse duration value to a control circuit that permits the modulation only for a length of time indicated by the pulse duration value as measured using the data clock signal; modulating the carrier clock signal with the corresponding on or off value for the indicated length of time; and providing the modulated carrier clock signal to an IR emitter.
2. The method of claim 1, wherein each instruction further comprises validity information indicating whether that instruction is valid, and the method further comprises: providing the validity information to the control circuit; determining whether the validity information for an instruction indicates the instruction is invalid; and disabling modulation of the carrier clock signal if the validity information indicates an invalid instruction.
3. The method of claim 2, wherein the control circuit includes a finite state machine that receives the validity information, and said disabling modulation of the carrier clock signal is performed by the finite state machine.
4. The method of claim 1 , wherein: the control circuit includes a counter; the pulse duration value and the data clock are provided to the counter; and the control circuit causes the buffer to load the next instruction in the sequence after the counter counts an amount equal to the indicated length of time.
5. An infrared (IR) signal generating apparatus, comprising: a clock generator for generating a carrier clock and a data clock, said data clock having a frequency equal to or less than a frequency of the carrier clock; a buffer memory for loading instructions for execution, each said instruction for producing a sequential part of an encoded data sequence and including a corresponding value indicating an on or off value for modulating the carrier clock and information corresponding to a pulse duration value; a modulator for receiving the carrier clock signal and the on or off value during execution of each said instruction and for modulating the carrier clock signal with the on or off value and for providing the modulated carrier clock as an output to an IR emitter; and a control circuit that receives the pulse duration value and data clock signal, and permits said modulation only for a length of time indicated by the pulse duration value as measured using the data clock signal.
6. The IR signal generating function according to claim 5, wherein: each instruction further comprises validity information indicating whether that instruction is valid; and the control circuit determines whether the validity information for an instruction indicates the instruction is invalid, and if so, disables the modulation of the carrier clock signal.
7. The IR signal generating function according to claim 6, wherein: the control circuit includes a finite state machine that receives the validity information; and said disabling modulation of the carrier clock signal is performed by the finite state machine.
8. The IR signal generating function according to claim 5, wherein: the control circuit includes a counter; the information corresponding to a pulse duration is the pulse duration value, and the pulse duration value and the data clock are provided to the counter; and the control circuit causes the buffer to load the next instruction in the sequence after the counter counts an amount equal to the indicated length of time.
9. The IR signal generating function according to claim 5, wherein: the control circuit includes a counter; the information corresponding to a pulse duration length of time points to a memory location storing a pulse duration value, and the a pulse duration value and the data clock are provided to the counter; and the control circuit causes the buffer to load the next instruction in the sequence after the counter counts an amount equal to the indicated length of time value.
10. The IR signal generating function according to claim 5, wherein: the modulator includes an AND logic gate; the AND logic gate has two inputs that receive the carrier clock signal and the on or off value of the executing instruction, respectively; and; the AND logic gate supplies the modulated carrier signal at an output of the AND logic gate.
11. The IR signal generating function according to claim 5, wherein the clock generator is a programmable clock generator.
12. The IR signal generating function according to claim 5, wherein the modulated carrier clock signal is one of a pulse-width encoded signal, a bi-phase encoded signal and a pulse- position encoded signal.
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010516473A JP2010534014A (en) | 2007-07-20 | 2008-07-10 | Remote control infrared signal generator |
AT08774996T ATE531024T1 (en) | 2007-07-20 | 2008-07-10 | REMOTE CONTROL SIGNALING INFRARED GENERATOR |
EP08774996A EP2174311B1 (en) | 2007-07-20 | 2008-07-10 | Remote control signaling infrared generator |
Applications Claiming Priority (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US95089907P | 2007-07-20 | 2007-07-20 | |
US60/950,899 | 2007-07-20 | ||
US11/963,744 | 2007-12-21 | ||
US11/963,744 US8027592B2 (en) | 2007-07-20 | 2007-12-21 | Infrared remote control signaling generator |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2009013146A1 true WO2009013146A1 (en) | 2009-01-29 |
Family
ID=40265828
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/EP2008/059036 WO2009013146A1 (en) | 2007-07-20 | 2008-07-10 | Remote control signaling infrared generator |
Country Status (5)
Country | Link |
---|---|
US (1) | US8027592B2 (en) |
EP (1) | EP2174311B1 (en) |
JP (1) | JP2010534014A (en) |
AT (1) | ATE531024T1 (en) |
WO (1) | WO2009013146A1 (en) |
Families Citing this family (23)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110117850A1 (en) * | 2009-11-18 | 2011-05-19 | Hei Tao Fung | Apparatus and Methods for Enabling Smart Portable Device to be Universal Remote Control |
US20110144778A1 (en) * | 2009-12-14 | 2011-06-16 | Hei Tao Fung | Smart Audio Plug-in for Enabling Smart Portable Device to be Universal Remote Control |
US20110153885A1 (en) * | 2009-12-20 | 2011-06-23 | Mak Tony K | Plug-in Peripheral Device for Enabling Smart Portable Device to be Universal Remote Control |
FR2967510B1 (en) * | 2010-11-15 | 2012-12-28 | St Microelectronics Rousset | CONVERSION OF COMMUNICATION PROTOCOL ON A UNIFIL BUS |
US9204519B2 (en) | 2012-02-25 | 2015-12-01 | Pqj Corp | Control system with user interface for lighting fixtures |
US9965949B2 (en) | 2014-02-06 | 2018-05-08 | Peel Technologies, Inc. | Infrared communications on a mobile device |
US8983300B1 (en) * | 2014-02-06 | 2015-03-17 | Peel Technologies, Inc. | Receiving infrared communications on a mobile device |
US9934180B2 (en) | 2014-03-26 | 2018-04-03 | Pqj Corp | System and method for communicating with and for controlling of programmable apparatuses |
US9373254B1 (en) | 2015-02-27 | 2016-06-21 | Peel Technologies, Inc. | Infrared communications on a mobile device |
CN104658239B (en) * | 2015-03-17 | 2017-10-27 | 广东欧珀移动通信有限公司 | Carrier frequency adaptation method and device |
US9854654B2 (en) | 2016-02-03 | 2017-12-26 | Pqj Corp | System and method of control of a programmable lighting fixture with embedded memory |
US10200754B2 (en) | 2016-12-12 | 2019-02-05 | The Nielsen Company (Us), Llc | Methods and apparatus for audience measurement and determining infrared signal based on signature of symbol alphabet |
US11296806B2 (en) | 2018-06-11 | 2022-04-05 | Skyworks Solutions, Inc. | Shared communication channel that interleaves 1 PPS signals and messaging |
KR102521933B1 (en) * | 2018-10-04 | 2023-04-14 | 삼성전자주식회사 | Display apparatus and the control method thereof |
US20200204392A1 (en) * | 2018-12-20 | 2020-06-25 | Ming-Tsung Chen | Home appliance control system |
US11526193B2 (en) | 2019-03-07 | 2022-12-13 | Skyworks Solutions, Inc. | Maintaining the correct time when counter values are transferred between clock domains |
KR102687382B1 (en) * | 2019-11-19 | 2024-07-22 | 엘지전자 주식회사 | Display device, infrared transmitting device and method of controlling same |
US11088816B1 (en) | 2020-03-31 | 2021-08-10 | Silicon Laboratories Inc. | Secondary phase compensation assist for PLL IO delay aligning sync signal to system clock signal |
US11088819B1 (en) | 2020-03-31 | 2021-08-10 | Silicon Laboratories Inc. | Secondary phase compensation assist for PLL IO delay |
US11290250B2 (en) | 2020-04-15 | 2022-03-29 | Skyworks Solutions, Inc. | Phase transport with frequency translation without a PLL |
US11502764B2 (en) | 2020-12-28 | 2022-11-15 | Skyworks Solutions, Inc. | FSYNC mismatch tracking |
US11502812B1 (en) * | 2021-07-14 | 2022-11-15 | Skyworks Solutions, Inc. | Data protocol over clock line |
US12021960B2 (en) | 2021-09-30 | 2024-06-25 | Skyworks Solutions, Inc. | Maintaining a virtual time of day |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6476947B1 (en) * | 1998-05-04 | 2002-11-05 | Michael Lee Harvey | Process and apparatus for maximizing a software component and minimizing a hardware component of an infrared code |
US6651201B1 (en) * | 2000-07-26 | 2003-11-18 | International Business Machines Corporation | Programmable memory built-in self-test combining microcode and finite state machine self-test |
EP1571636A1 (en) * | 2004-03-01 | 2005-09-07 | STMicroelectronics S.r.l. | Transmission device for remote control systems |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100471955B1 (en) * | 1995-10-09 | 2005-03-14 | 마쯔시다덴기산교 가부시키가이샤 | Content reproducing device and content reproducing method |
US5684434A (en) * | 1995-10-30 | 1997-11-04 | Cypress Semiconductor | Erasable and programmable single chip clock generator |
US5917631A (en) * | 1996-12-30 | 1999-06-29 | Mitsubishi Consumer Electronics America, Inc. | Dual protocol remote control |
JP2003264612A (en) * | 2002-03-06 | 2003-09-19 | Nec Saitama Ltd | Portable telephone set provided with infrared remote control function |
-
2007
- 2007-12-21 US US11/963,744 patent/US8027592B2/en active Active
-
2008
- 2008-07-10 JP JP2010516473A patent/JP2010534014A/en active Pending
- 2008-07-10 WO PCT/EP2008/059036 patent/WO2009013146A1/en active Application Filing
- 2008-07-10 EP EP08774996A patent/EP2174311B1/en not_active Not-in-force
- 2008-07-10 AT AT08774996T patent/ATE531024T1/en not_active IP Right Cessation
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6476947B1 (en) * | 1998-05-04 | 2002-11-05 | Michael Lee Harvey | Process and apparatus for maximizing a software component and minimizing a hardware component of an infrared code |
US6651201B1 (en) * | 2000-07-26 | 2003-11-18 | International Business Machines Corporation | Programmable memory built-in self-test combining microcode and finite state machine self-test |
EP1571636A1 (en) * | 2004-03-01 | 2005-09-07 | STMicroelectronics S.r.l. | Transmission device for remote control systems |
Also Published As
Publication number | Publication date |
---|---|
US20090024865A1 (en) | 2009-01-22 |
EP2174311B1 (en) | 2011-10-26 |
JP2010534014A (en) | 2010-10-28 |
ATE531024T1 (en) | 2011-11-15 |
EP2174311A1 (en) | 2010-04-14 |
US8027592B2 (en) | 2011-09-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8027592B2 (en) | Infrared remote control signaling generator | |
US9369237B2 (en) | Run-length detection and correction | |
US9811499B2 (en) | Transcoding and transmission over a serial bus | |
JP6876681B2 (en) | Multi-phase clock data recovery for 3-phase interface | |
US8924765B2 (en) | Method and apparatus for low jitter distributed clock calibration | |
US10872055B2 (en) | Triple-data-rate technique for a synchronous link | |
WO2018017232A1 (en) | Signaling camera configuration changes using metadata defined for a camera command set | |
US20150195211A1 (en) | Low-voltage differential signaling or 2-wire differential link with symbol transition clocking | |
CN104104386A (en) | Frequency voltage switching circuit and oscillator | |
US7816965B2 (en) | Cooperation circuit | |
CN103561008B (en) | A kind of host-host protocol coding/decoding method, device and host-host protocol decoding chip | |
US8731042B2 (en) | Generating pulse width modulated signals | |
CN103186978B (en) | Control the circuit structure of Infrared Remote-Control Sending | |
CN203645707U (en) | Transmission protocol decoding device and transmission protocol decoding chip | |
US10031547B2 (en) | CCIe receiver logic register write only with receiver clock | |
JP4823276B2 (en) | Communication device | |
KR102568225B1 (en) | Semiconductor device, semiconductor system and method for operating semiconductor device | |
US20240257702A1 (en) | Display control method and display control device | |
US20030002589A1 (en) | Serial communication circuit and serial transmitting and receiving system | |
US10157161B2 (en) | Conditional embedding of dynamically shielded information on a bus | |
US9711043B2 (en) | Infra-red wireless communication | |
CN118174837A (en) | BMC communication clock frequency generation method based on USB-PD protocol and UPB-PD equipment | |
CN115442946A (en) | LED light source control method and device and LED light source equipment | |
JPH02288796A (en) | Integrated circuit for remote control transmission | |
CIRCUITS | Pager baseband controller |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 08774996 Country of ref document: EP Kind code of ref document: A1 |
|
DPE1 | Request for preliminary examination filed after expiration of 19th month from priority date (pct application filed from 20040101) | ||
DPE1 | Request for preliminary examination filed after expiration of 19th month from priority date (pct application filed from 20040101) | ||
WWE | Wipo information: entry into national phase |
Ref document number: 2010516473 Country of ref document: JP |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
WWE | Wipo information: entry into national phase |
Ref document number: 2008774996 Country of ref document: EP |