WO2019105069A1 - 基于红外协议的红外码发送电路、芯片、遥控设备及空调 - Google Patents

基于红外协议的红外码发送电路、芯片、遥控设备及空调 Download PDF

Info

Publication number
WO2019105069A1
WO2019105069A1 PCT/CN2018/100894 CN2018100894W WO2019105069A1 WO 2019105069 A1 WO2019105069 A1 WO 2019105069A1 CN 2018100894 W CN2018100894 W CN 2018100894W WO 2019105069 A1 WO2019105069 A1 WO 2019105069A1
Authority
WO
WIPO (PCT)
Prior art keywords
code
infrared
carrier
infrared code
module
Prior art date
Application number
PCT/CN2018/100894
Other languages
English (en)
French (fr)
Inventor
潘振星
Original Assignee
格力电器(武汉)有限公司
珠海格力电器股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 格力电器(武汉)有限公司, 珠海格力电器股份有限公司 filed Critical 格力电器(武汉)有限公司
Priority to US16/649,760 priority Critical patent/US11004331B2/en
Publication of WO2019105069A1 publication Critical patent/WO2019105069A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/11Arrangements specific to free-space transmission, i.e. transmission through air or vacuum
    • H04B10/114Indoor or close-range type systems
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C23/00Non-electrical signal transmission systems, e.g. optical systems
    • G08C23/04Non-electrical signal transmission systems, e.g. optical systems using light waves, e.g. infrared
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/11Arrangements specific to free-space transmission, i.e. transmission through air or vacuum
    • H04B10/114Indoor or close-range type systems
    • H04B10/116Visible light communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/50Transmitters
    • H04B10/501Structural aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/50Transmitters
    • H04B10/516Details of coding or modulation
    • H04B10/524Pulse modulation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L5/00Arrangements affording multiple use of the transmission path

Definitions

  • the present application relates to the field of communication technologies, and in particular, to an infrared code transmission circuit, a chip, a remote control device, and an air conditioner based on an infrared protocol.
  • remote control devices can control the operation of related smart devices based on the infrared protocol.
  • the remote controller can send infrared codes to the air conditioner to turn off the operation of the air conditioner.
  • the infrared protocol used by the remote control device has a relatively complicated data format. If the software program is completely simulated by the general input/output port (GPIO) to simulate its infrared transmission process, the software implementation is relatively complicated and requires a large amount of code.
  • GPIO general input/output port
  • the inventors have found that the conventional technology has at least the following problem: in the process of software analog transmission of the infrared code, the processor is always in a working state, and its power consumption is relatively high.
  • An object of the present application is to provide an infrared code transmission circuit, a chip, a remote control device and an air conditioner based on an infrared protocol, which solves the technical problem that the conventional technology has high power consumption.
  • the embodiment of the present application provides the following technical solutions:
  • the embodiment of the present application provides an infrared code sending circuit based on an infrared protocol, where the infrared code sending circuit includes: a carrier duration control module; and a processing module, which is connected to the carrier duration control module, and is configured to And the carrier duration control module is configured to generate an enable signal, where the enable signal is used to determine a carrier occurrence of the infrared code to be sent.
  • a carrier generation module, and the carrier duration control module a connection, configured to generate a PWM type carrier signal according to a phase type of the infrared code to be transmitted in the infrared protocol, and perform a logical operation on the PWM type carrier signal and the enable signal to generate and transmit The infrared code is sent.
  • the carrier generation module is further connected to the processing module, configured to adjust a period and a level width of the PWM type carrier signal in response to an input configuration of the processing module.
  • the level type of the enable signal is a high level during a carrier period of the infrared code to be sent, and the enable signal is in a non-carrier period of the infrared code to be sent.
  • the level type is low.
  • the logical operation is an AND operation.
  • the phase type of the infrared protocol includes: a header code carrier phase, a header code carrierless phase, a pre-data 0 code, a pre-data 1 code, a first half end code, an interval level, and a post data. 0 code, 1 data after the data, the end code of the second half and the interval level between the F codes.
  • the processing module is configured to configure the carrier duration control module according to a phase type to which the infrared code to be sent belongs in the infrared protocol
  • the method includes: the processing module according to a phase to which the infrared code to be sent belongs in the infrared protocol And configuring, to the carrier duration control module, a carrier duration of the infrared code to be sent.
  • the processing module is further configured to: after all the infrared codes to be sent are sent, enter a sleep state.
  • the processing module is further configured to: reconfigure the carrier duration control module and the carrier generation module, so that the infrared code sending circuit functions as a pulse generator.
  • the carrier duration control module includes: a carrier duration controller; a register module, including a plurality of ports, the register module being connected to the processing module and the carrier generating module, configured to receive the processing module a configuration, pre-stored with a duration configuration value corresponding to the to-be-transmitted infrared code, and also configured to configure the carrier generation module; a multiplexer including a plurality of data channels, the input of the multiplexer Connected to the plurality of ports of the register module by the multiple data channels, the output of the multiplexer is connected to the carrier duration controller; a state controller, and the multiplexer and The carrier duration controller is connected, and is configured to strobe a corresponding data channel of the multiplexer according to a phase type of the infrared code to be sent in the infrared protocol, so that a configuration value of the duration of the infrared code to be sent is carried. Entering the carrier duration controller; a data storage, which is respectively connected to the state controller and the processing module, for
  • the carrier generation module includes: a PWM generator, including two signal channels, configured to receive a configuration of the register module input; and a trigger, including a set end, a reset end, and a trigger output end, The set end and the reset end of the flip-flop are respectively connected to the two signal channels of the PWM generator; the AND gate includes a first input end, a second input end and an AND gate output end, and the AND gate a first input end is connected to the trigger output end of the flip-flop, a second input end of the AND gate is used to input the enable signal, and an AND gate output end of the AND gate is used to output the to-be-sent Infrared code.
  • an embodiment of the present application provides a chip, where the chip includes the infrared code-based infrared code sending circuit according to any one of the embodiments.
  • the embodiment of the present application provides a remote control device, where the remote control device includes the infrared code-based infrared code transmission circuit according to any one of the embodiments.
  • an embodiment of the present application is an air conditioner, and the air conditioner includes the remote control device.
  • the processing module configures the carrier duration control module according to the phase type of the infrared code to be transmitted in the infrared protocol, so that the carrier duration control module generates an enable signal.
  • the enable signal is used to determine the carrier occurrence time point and the carrier duration of the infrared code to be transmitted, and the level type of the enable signal is constant during the carrier period and the non-carrier period of the infrared code to be transmitted.
  • the carrier generation module generates a PWM type carrier signal according to the phase type of the infrared code to be transmitted in the infrared protocol, and logically operates the PWM type carrier signal and the enable signal to generate and transmit the infrared code to be transmitted. Therefore, the process of transmitting the infrared code can be completed by the infrared code transmission circuit, and the processing module can enter the sleep state during the transmission process, thereby reducing power consumption and reducing the programming difficulty of the software.
  • FIG. 1 is a schematic diagram of a waveform of an F0 code according to an infrared protocol and in a coded state according to an embodiment of the present application;
  • FIG. 2 is a schematic diagram of a waveform of an FM code based on an infrared protocol and in a coded state according to an embodiment of the present application;
  • FIG. 3 is a schematic diagram of waveforms of a header code according to an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a waveform of a half end bit according to an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a waveform of a data 0 code according to an embodiment of the present application.
  • FIG. 6 is a schematic diagram of a waveform of a data 1 code according to an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of an infrared code sending circuit based on an infrared protocol according to an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a circuit of a carrier duration control module according to an embodiment of the present application.
  • FIG. 9 is a schematic diagram of an embodiment of the present application, which is based on an infrared protocol and is in a coded state;
  • FIG. 10 is a schematic structural diagram of a circuit of a carrier generation module according to an embodiment of the present application.
  • FIG. 11 is a schematic diagram of a configuration process based on a manual transmission mode according to an embodiment of the present application.
  • the infrared code transmission circuit based on the infrared protocol provided by the embodiment of the present application can be applied to a chip.
  • the chip can be combined with other peripheral circuit modules to form a remote control device.
  • the user uses the remote control device to send an infrared signal matching the infrared protocol to the smart device to control the operation of the smart device.
  • the smart device is an air conditioner, and the user uses the remote control device to remotely control the air conditioner to stop running.
  • FIG. 1 is a schematic diagram of a waveform of an F0 code according to an infrared protocol and in a coded state. As shown in Figure 1, according to the transmission timing, the infrared protocol includes eight stages, which are:
  • pre-data code of S3 it may be n-bit data 0 code or data 1 code.
  • pre-data code of S6 it can be n-bit data 0 code or data 1 code.
  • the phase type of the infrared protocol includes 10 phase types, which are: a header code carrier phase, a header code carrierless phase, a pre-data 0 code, a pre-data 1 code, a first half end code, and an interval power.
  • a header code carrier phase a header code carrierless phase
  • a pre-data 0 code a pre-data 1 code
  • a first half end code a first half end code
  • an interval power a pre-data 0 code
  • pre-data 1 code pre-data 1 code
  • first half end code a first half end code
  • an interval power flat and post data 0 code, post data 1 code, second half end code and F code interval level.
  • some FM codes may include only a few of the above stages.
  • the FM code includes only the S1, S2, S3, and S4 stages.
  • FIG. 3 is a schematic diagram of a waveform of a header code according to an embodiment of the present application.
  • the header code having the infrared carrier signal is a square wave signal having a preset duration
  • the header code without the infrared carrier signal is a low level signal having a preset duration.
  • the header code is always at a high level during the high level period.
  • the high level of the header code during the high level period only indicates that there is an output of the infrared carrier signal during the period in which the high level is located, which is not really indicated during the high level period.
  • the code when issued, it always outputs a high level.
  • Its true waveform pattern is shown in Figure 3. The reason why the transmission process is represented by the waveforms shown in Fig. 1 or Fig. 2 is for convenience of expression, and those skilled in the art should understand.
  • the embodiment of the present application also provides a waveform diagram of a half-end bit, as shown in FIG. 4, and the difference between it and FIG. 1 or FIG. 2 is not described herein.
  • the embodiment of the present application also provides a waveform diagram of the data 0 code and the data 1 code.
  • the data 0 code has an infrared carrier signal for a period of 0.63 ms (milliseconds), and the non-infrared carrier signal has a time period of 0.56 ms.
  • the time period in which the data 1 code has the infrared carrier signal is 0.63 ms (millisecond), and the time period in which the infrared carrier signal is absent is 1.66 ms.
  • the smart device can identify the data 0 code or the data 1 code by identifying the time period without the infrared carrier signal.
  • the embodiment of the present application provides an infrared code transmission circuit based on an infrared protocol, which can be used for at least such technical problems.
  • FIG. 7 is a schematic structural diagram of an infrared code transmitting circuit based on an infrared protocol according to an embodiment of the present application.
  • the infrared code transmitting circuit 700 a carrier duration control module 71, a processing module 72, and a carrier generating module 73.
  • the processing module 72 is connected to the carrier duration control module 71
  • the carrier generation module 73 is connected to the carrier duration control module 71.
  • the carrier generation module 73 is capable of generating a PWM wave of 20 to 60 kHz.
  • the processing module 72 is configured to configure the carrier duration control module 71 according to the phase type of the infrared code to be sent in the infrared protocol, so that the carrier duration control module 71 generates an enable signal, and the enable signal is used to determine the carrier occurrence of the infrared code to be transmitted.
  • the time point and the carrier duration, and the level type of the enable signal are constant during the carrier period of the infrared code to be transmitted and during the non-carrier period.
  • the processing module 72 configures the carrier duration of the infrared code to be transmitted to the carrier duration control module 71, so that The carrier duration control module 71 transmits an enable signal of a level type of a high level and a duration of 8-20 ms at the start time of the carrier phase of the header code.
  • the stage type to which the infrared protocol belongs is a header code carrierless phase
  • the processing module 72 configures the carrier duration control module 71, so that the carrier duration control module 71 is in the carrierless phase of the header code.
  • the enable signal of the level type is low level and the duration is 8-20ms.
  • the processing module 72 configures the carrier duration control module 71 so that the carrier duration control module 71 is in the data 0.
  • the enable signal of the transmission level type is high level and the duration is 0.63 ms, and the enable signal is low level during the non-carrier period.
  • the carrier generation module 73 is configured to generate a PWM type carrier signal according to a phase type of the infrared code to be transmitted in the infrared protocol, and perform a logic operation on the PWM type carrier signal and the enable signal to generate and send a to be sent. Infrared code.
  • the infrared code to be transmitted is a header code
  • the phase type of the infrared code belongs to the carrier phase of the header code
  • the enable signal of the high level and the carrier signal of the PWM type are logically operated, thus generating
  • the infrared code to be transmitted is the same as the PWM type carrier signal in the corresponding period of the high level enable signal.
  • the generated infrared code to be transmitted is at a low level corresponding to the low-level enable signal.
  • the level type and logic operation of the enable signal can be adjusted according to an infrared protocol. For example, when the carrier frequency of the infrared code is to be transmitted, the level type of the enable signal is high. The level type of the enable signal is low when the non-carrier period of the infrared code is to be transmitted.
  • the logical operation is an AND operation.
  • the carrier generation module 73 is further coupled to the processing module 72 for adjusting the period and level width of the PWM type carrier signal in response to the input configuration of the processing module 72, wherein the level width includes high power Flat width and low level width.
  • the level width includes high power Flat width and low level width.
  • the processing module 72 is further configured to: after all the infrared codes to be transmitted are sent, enter a sleep state. Therefore, it is able to minimize power consumption, which is critical for remote control devices.
  • the infrared code transmitting circuit provided by the embodiment of the present application can implement the output of the square wave signal.
  • the infrared code transmitting circuit can also be used to perform other functions.
  • the processing module 72 is further configured to: reconfigure the carrier duration control module 71 and the carrier generation module 73 so that the infrared code transmission circuit functions as a pulse generator.
  • the pulse generator can be a counter, a timer, or the like.
  • the hardware architecture of the infrared code transmitting circuit is further described in detail in the embodiment of the present application. It is worth reminding that the description of the hardware architecture of the infrared code transmitting circuit is not used to limit the protection scope of the present application, and is only used for assistance. The purpose of the embodiments of the present application is understood.
  • the carrier duration control module 71 includes a carrier duration controller 711, a register module 712, a multiplexer 713, a state controller 714, and a data memory 715.
  • the carrier duration controller 711 loads the corresponding duration configuration values such as HEAD_H, HEAD_L, DAT0_H, DAT0_L, ... ENDPOS_H from the register module 712 to the LEVEL_CNT. Register, and starting from this value, the LEVEL_CNT register is counted down by 1MHz clock, and is reduced to 0. During this period, the enable period of the drive carrier duration control module 71 is always 0 or 1, and then jumps to the next stage. In order to generate an enable signal of the carrier generation module 73 of the corresponding time length.
  • the register module 712 includes a plurality of ports, and the register module 712 is connected to the processing module 72 and the carrier generating module 73 for receiving the configuration of the processing module 72, pre-stored the duration configuration value corresponding to the infrared code to be transmitted, and is also used to configure the carrier.
  • a module 73 is generated.
  • the multiplexer 713 includes a plurality of data channels.
  • the input of the multiplexer 713 is connected to a plurality of ports of the register module 712 through multiple data channels, and the output of the multiplexer 713 is connected to the carrier duration controller 711. .
  • the register module 712 includes a number of registers, and the processing module 72 can write the values to be configured to the corresponding registers through the APB interface.
  • the level type and level width corresponding to the infrared code to be transmitted of each stage type may be respectively configured by corresponding registers.
  • the specific configuration is as follows:
  • the duration of the header code carrier phase and the header code carrierless phase can be configured by the registers HEAD_H and HEAD_L, respectively.
  • Data 0 code It includes a carrier part and a carrierless part, and the duration of the two can be configured by the registers DAT0_H and DAT0_L, respectively.
  • Data 1 code It includes a carrier portion and a carrierless portion, and the duration of both can be configured by registers DAT1_H and DAT1_L, respectively.
  • the half end code only has a carrier part, and its duration can be configured by the register ENDPRE_H.
  • Second half end code The half end code only has a carrier part, and its duration can be configured by the register ENDPOS_H.
  • Interval level It has only the carrierless part and can be configured by the register INTERVAL.
  • the pre-data code is composed of n-bit data 0 code or data 1 code, where n is the number of previous data bits, and the value of n can be configured by the register PRE_BITS.
  • Post-data digits The post-data code is composed of m-bit data 0 code or data 1 code, where m is the post-data bit number, and m value can be configured by register POS_BITS.
  • Inter-code interval level The interval between two F codes is low, configured by FN_INTERVAL.
  • the register PRC is used to configure the period of the PWM type carrier signal generated by the carrier generation module 73, and the register PWC is used to configure its high level width.
  • phase types of the infrared code they all have independent enable control bits, and when the control bit is 0, the phase will be skipped.
  • the specific description is as follows:
  • EN_HEADH The enable control bit of the carrier phase in the S1 stage header code
  • EN_HEADL Enable control bit for the carrierless phase of the S2 stage header code
  • EN_PREDAT The enable control bit of the data code before the S3 phase
  • EN_ENDPRE the enable control bit of the first half of the S4 stage end code
  • EN_INTERVAL enable control bit for the S5 phase interval level
  • EN_POSDAT the enable control bit of the data code after the S6 phase
  • EN_ENDPOS the enable control bit of the last half of the S7 stage end code
  • the FM code shown in FIG. 2 can be regarded as a special case of the F0 code, that is, it has only the S1, S2, S3, and S4 stages, and even the control bits should be configured as:
  • the state controller 714 is connected to the multiplexer 713 and the carrier duration controller 711 for strobing the corresponding data channel of the multiplexer 713 according to the phase type of the infrared code to be transmitted in the infrared protocol, so as to be sent
  • the duration configuration value of the infrared code is loaded into the carrier duration controller 711.
  • the data memory 715 is connected to the status register 714 and the processing module 72, respectively, for storing the data code to be transmitted, wherein the infrared code to be transmitted includes the data code to be transmitted.
  • the processing module 72 first combines the data of the pre-data bit and the post-data bit to be transmitted into a plurality of 32-bit data, and then sequentially writes the data into the data memory 715, during the sending process (ie, sending The state controller 714 automatically takes the data bit stream out of the data memory 715 in order, and then controls the carrier duration controller 711 to generate a corresponding modulated wave.
  • the data memory 715 can be a FIFO memory.
  • the carrier generation module 73 includes a PWM generator 731, a flip flop 732, and an AND gate 733.
  • the PWM generator 731 includes two signal paths for receiving the configuration of the input of the register module 712. For example: Receive register PRC and register PWC configuration.
  • the flip-flop 732 includes a set end, a reset end, and a trigger output.
  • the set end and the reset end of the flip-flop 732 are respectively connected to the two signal channels of the PWM generator 731.
  • the AND gate 733 includes a first input terminal, a second input terminal, and an AND gate output terminal, the first input terminal of the AND gate 733 is coupled to the trigger output terminal of the flip-flop 732, and the second input terminal of the AND gate 733 is used for input enable.
  • the signal, AND gate output of AND gate 733 is used to output the infrared code to be transmitted.
  • the infrared code transmission circuit can work in three modes: 1. automatic code transmission mode; 2. manual code transmission mode; 3. general timer mode.
  • the infrared code transmission circuit can automatically complete the coding steps of the above stages in sequence, and in the process of transmitting the infrared code, as long as the FIFO memory is not full, the data of the next F code can be written into In the FIFO memory, and continue to send.
  • the data in the FIFO memory When in the S3 phase or the S6 phase, the data in the FIFO memory will be read out by the hardware one by one, and the data bits are removed from the highest or lowest bit (configurable) one by one.
  • the bit When the bit is 0, the The infrared code transmitting circuit will automatically transmit the waveform of the data 0 code; when the bit is 1, the infrared code transmitting circuit will automatically send the waveform of the data 1 code.
  • the process of transmitting the infrared code by the infrared code transmitting circuit is as follows:
  • the register module 712 is configured with relevant durations through the APB bus through the processing module 72, such as HEAD_H, HEAD_L, DAT0_H, DAT0_L...ENDPOS_H.
  • the pre-data bit number (PRE_BITS) and the post-data bit number (POS_BITS) are configured by the processing module 72 through the APB bus.
  • the software writes the transmission trigger bit (KST) in the control register, and the infrared code transmission circuit automatically sends the header code, the pre-data code, the first half end code, the interval level, the post-data code, and the second half in sequence. End code.
  • the corresponding interrupt and flag will be generated after the transmission is completed.
  • processing module 72 when the processing module 72 is idle, it can perform other tasks or sleep. After the infrared code is sent, there is an interrupt signal for sending completion to notify or wake up the processing module 72.
  • the infrared code waveform shown in FIG. 1 can be split into one modulated PWM wave as shown in FIGS. 3, 4, 5 and 6.
  • the software When transmitting the infrared code, the software needs to disassemble the infrared code into one code bit as above (ie, the header code, the data 0 code, the data 1 code, the half end code), and the software needs to be sent before each waveform (code) is sent.
  • the length of the carrier and the length of the carrierless time are configured, and are configured by DAT0_H and DAT0_L respectively.
  • HEAD_H and HEAD_L are automatically used as the BUFFER registers of DAT0_H and DAT0_L respectively in the infrared code transmission circuit.
  • the first time configuration value is written to DAT0_H and DAT0_L, and then the second time configuration value is written to DAT0_H and DAT0_L.
  • the location where the data is saved after writing is shown in Figure 11.
  • the software writes the trigger bit to trigger the infrared code sending circuit to send the infrared waveform.
  • the infrared code sending circuit automatically sends the second infrared waveform according to the second time configuration value.
  • An interrupt signal is generated to notify the processing module 72 to write the time configuration value of the next code bit to DAT0_H and DAT0_L.
  • the software After all the code bits have been sent, the software will turn off the enable bit of the infrared code transmission circuit.
  • the infrared code transmission circuit When some infrared code is not used, it can use the infrared code transmission circuit as a 16-bit ordinary timer or PWM generator, and the waveform is output from the IR_OUT pin. At this time, the two 8-bit registers of PRC and PWC will be combined into a 16-bit counter, HEAD_H is used to configure the counting period, and HEAD_L is used to configure the pulse width.

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Electromagnetism (AREA)
  • General Physics & Mathematics (AREA)
  • Optical Communication System (AREA)
  • Selective Calling Equipment (AREA)

Abstract

一种基于红外协议的红外码发送电路、芯片、遥控设备及空调,该红外码发送电路包括:载波时长控制模块(71);处理模块(72),用于根据待发送红外码在红外协议内所属的阶段类型,配置载波时长控制模块(71),使得载波时长控制模块(71)产生使能信号;载波产生模块(73),用于根据待发送红外码在红外协议内所属的阶段类型,产生PWM类型的载波信号,并将PWM类型的载波信号与使能信号作逻辑运算,生成并发送待发送红外码。因此,发送红外码的过程可以由红外码发送电路完成,处理模块(72)在发送过程中可以进入休眠状态,从而降低功耗,并降低软件的编程难度。

Description

基于红外协议的红外码发送电路、芯片、遥控设备及空调
相关申请
本申请要求2017年11月30日申请的,申请号为201711242114.7,名称为“基于红外协议的红外码发送电路、芯片、遥控设备及空调”的中国专利申请的优先权,在此将其全文引入作为参考。
技术领域
本申请涉及通讯技术领域,特别是涉及一种基于红外协议的红外码发送电路、芯片、遥控设备及空调。
背景技术
很多遥控设备可以基于红外协议来控制相关智能设备的运行,例如,遥控器可以向空调发送红外码,关闭空调的运行。
遥控设备使用的红外协议,其数据格式相对比较复杂。若完全由软件程序通过通用输入/输出口(GPIO)去模拟其红外发送过程,其软件实现的复杂程度比较大,需要的代码量比较大。
发明人在实现本申请的过程中,发现传统技术至少存在以下问题:在软件模拟发送红外码的过程中,处理器一直处于工作状态,其功耗比较高。
发明内容
本申请实施例一个目的旨在提供一种基于红外协议的红外码发送电路、芯片、遥控设备及空调,其解决了传统技术存在功耗高的技术问题。
为解决上述技术问题,本申请实施例提供以下技术方案:
在第一方面,本申请实施例提供一种基于红外协议的红外码发送电路,所述红外码发送电路包括:载波时长控制模块;处理模块,其与所述载波时长控制模块连接,用于根据待发送红外码在红外协议内所属的阶段类型,配置所述载波时长控制模块,使得所述载波时长控制模块产生使能信号,所述使能信号用于确定所述待发送红外码的载波发生时间点与载波时长,并所述使能信号的电平类型在所述待发送红外码的载波期间内和非载波期间内皆为不变的;载波产生模块,其与所述载波时长控制模块连接,用于根据所述待发送红 外码在红外协议内所属的阶段类型,产生PWM类型的载波信号,并将所述PWM类型的载波信号与所述使能信号作逻辑运算,生成并发送所述待发送红外码。
可选地,所述载波产生模块还与所述处理模块连接,用于响应于所述处理模块的输入配置,调整所述PWM类型的载波信号的周期与电平宽度。
可选地,在所述待发送红外码的载波期间内时,所述使能信号的电平类型为高电平;在所述待发送红外码的非载波期间内时,所述使能信号的电平类型为低电平。
可选地,所述逻辑运算为与运算。
可选地,按照发送时序,所述红外协议的阶段类型包括:头码带载波阶段、头码无载波阶段、前数据0码、前数据1码、前半位结束码、间隔电平、后数据0码、后数据1码、后半位结束码及F码间间隔电平。
可选地,所述处理模块用于根据待发送红外码在红外协议内所属的阶段类型,配置所述载波时长控制模块,包括:所述处理模块根据待发送红外码在红外协议内所属的阶段类型,向所述载波时长控制模块配置所述待发送红外码的载波时长。
可选地,所述处理模块还用于:将全部所述待发送红外码发送完毕后,进入休眠状态。
可选地,所述处理模块还用于:重新配置所述载波时长控制模块与所述载波产生模块,使得所述红外码发送电路作为脉冲发生器。
可选地,所述载波时长控制模块包括:载波时长控制器;寄存器模块,其包括多个端口,所述寄存器模块与所述处理模块和所述载波产生模块连接,用于接收所述处理模块的配置,预存有与所述待发送红外码对应的时长配置值,并且还用于配置所述载波产生模块;多路选择器,其包括多路数据通道,所述多路选择器的输入端通过所述多路数据通道与所述寄存器模块的多个端口对应连接,所述多路选择器的输出端与所述载波时长控制器连接;状态控制器,其与所述多路选择器和所述载波时长控制器连接,用于根据待发送红外码在红外协议内所属的阶段类型,选通所述多路选择器的对应数据通道,使得与所述待发送红外码的时长配置值载入所述载波时长控制器;数据存储器,其分别与所述状态控制器和所述处理模块连接,用于存储待发送的数据码,其中,待发送红外码包括待发送的数据码。
可选地,所述载波产生模块包括:PWM发生器,其包括两路信号通道,用于接收所述寄存器模块输入的配置;触发器,其包括置位端、复位端及触发输出端,所述触发器的置位端与复位端分别相应地与所述PWM发生器的两路信号通道连接;与门,其包括第一输入端、第二输入端及与门输出端,所述与门的第一输入端与所述触发器的触发输出端连接,所述与门的第二输入端用于输入所述使能信号,所述与门的与门输出端用于输出所述 待发送红外码。
在第二方面,本申请实施例提供一种芯片,所述芯片包括任一项所述的基于红外协议的红外码发送电路。
在第三方面,本申请实施例提供一种遥控设备,所述遥控设备包括任一项所述的基于红外协议的红外码发送电路。
在第四方面,本申请实施例一种空调,所述空调包括所述的遥控设备。
在本申请各个实施例提供的基于红外协议的红外码发送电路中,处理模块根据待发送红外码在红外协议内所属的阶段类型,配置载波时长控制模块,使得载波时长控制模块产生使能信号,使能信号用于确定待发送红外码的载波发生时间点与载波时长,并使能信号的电平类型在待发送红外码的载波期间内和非载波期间内皆为不变的。载波产生模块根据待发送红外码在红外协议内所属的阶段类型,产生PWM类型的载波信号,并将PWM类型的载波信号与使能信号作逻辑运算,生成并发送待发送红外码。因此,发送红外码的过程可以由红外码发送电路完成,处理模块在发送过程中可以进入休眠状态,从而降低功耗,并降低软件的编程难度。
附图说明
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。
图1是本申请实施例提供一种基于红外协议并处于发码状态下的F0码波形示意图;
图2是是本申请实施例提供一种基于红外协议并处于发码状态下的FM码波形示意图;
图3是本申请实施例提供一种头码的波形示意图;
图4是本申请实施例提供一种半结束位的波形示意图;
图5是本申请实施例提供一种数据0码的波形示意图;
图6是本申请实施例提供一种数据1码的波形示意图;
图7是本申请实施例提供一种基于红外协议的红外码发送电路的结构示意图;
图8是本申请实施例提供一种载波时长控制模块的电路结构示意图;
图9是本申请实施例提供一种基于红外协议并处于发码状态下的示意图;
图10是本申请实施例提供一种载波产生模块的电路结构示意图;
图11是本申请实施例提供一种基于手动发码模式下的配置过程示意图。
具体实施方式
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。
本申请实施例提供的基于红外协议的红外码发送电路可以应用于芯片。其中,该芯片可以结合其它外围电路模块组成遥控设备。用户利用该遥控设备,向智能设备发送与红外协议匹配的红外信号,控制智能设备的运行。例如:该智能设备为空调,用户利用该遥控设备遥控空调停止运行。
请参阅图1,图1是本申请实施例提供一种基于红外协议并处于发码状态下的F0码波形示意图。如图1所示,按照发送时序,红外协议包括8个阶段,分别为:
S1:头码带载波阶段;
S2:头码无载波阶段;
S3:前数据码;
S4:前半位结束码;
S5:间隔电平;
S6:后数据码;
S7:后半位结束码;
S8:F码间间隔电平。
其中,对于S3的前数据码,其可以为n位的数据0码或者数据1码。同理,对于S6的前数据码,其可以为n位的数据0码或者数据1码。
因此,按照发送时序,红外协议的阶段类型包括10个阶段类型,其分别为:头码带载波阶段、头码无载波阶段、前数据0码、前数据1码、前半位结束码、间隔电平、后数据0码、后数据1码、后半位结束码及F码间间隔电平。
在一些实施例中,一些FM码可以只包括以上阶段的几个。例如,如图2所示,FM码只包括S1、S2、S3、S4阶段。
值得提醒的是:在图1或图2中,其高电平表示在高电平所处的时间段内有红外载波信号的输出,而低电平表示在低电平所处的时间段内没有红外载波信号的输出。例如:请参阅图3,图3是本申请实施例提供一种头码的波形示意图。如图3所示,有红外载波信号的头码是具有预设时长的方波信号,没有红外载波信号的头码是具有预设时长的低电平信号。然而,如图1或图2,头码在高电平期间段内一直都是高电平。其实,如前所述,头码在高电平期间段内的高电平只是表示在高电平所处的时间段内有红外载波信号的输 出,其并未真正地表示在高电平期间段内,发码时,其一直输出高电平。其真正的波形图形如图3所示。之所以用图1或图2所示的波形表示发码过程,是出于方便表达,本领域技术人员应当明白。
同理可得,本申请实施例还提供半结束位的波形示意图,如图4所示,在此不赘述其与图1或图2的区别所在。
本申请实施例还提供数据0码与数据1码的波形示意图。请一并参阅图5与图6。在图5中,数据0码有红外载波信号的时间段为0.63ms(毫秒),无红外载波信号的时间段为0.56ms。在图6中,数据1码有红外载波信号的时间段为0.63ms(毫秒),无红外载波信号的时间段为1.66ms。在实际操作过程中,智能设备通过识别无红外载波信号的时间段便可以识别出数据0码或数据1码。
如前所述,传统技术通过软件模拟红外码的发送,其功耗比较大。因此,本申请实施例提供一种基于红外协议的红外码发送电路,用于至少可以此类技术问题。
请参阅图7,图7是本申请实施例提供一种基于红外协议的红外码发送电路的结构示意图。如图7所示,该红外码发送电路700:载波时长控制模块71、处理模块72及载波产生模块73。处理模块72与载波时长控制模块71连接,载波产生模块73与载波时长控制模块71连接。其中,载波产生模块73能够产生20~60KHz的PWM波。
处理模块72用于根据待发送红外码在红外协议内所属的阶段类型,配置载波时长控制模块71,使得载波时长控制模块71产生使能信号,使能信号用于确定待发送红外码的载波发生时间点与载波时长,并使能信号的电平类型在待发送红外码的载波期间内和非载波期间内皆为不变的。
举例而言:当待发送红外码为头码,其在红外协议内所属的阶段类型为头码带载波阶段,于是,处理模块72向载波时长控制模块71配置待发送红外码的载波时长,使得载波时长控制模块71在头码带载波阶段的起始时间点,发送电平类型为高电平、时长为8-20ms的使能信号。进一步的,当待发送红外码为头码,其在红外协议内所属的阶段类型为头码无载波阶段,处理模块72配置载波时长控制模块71,使得载波时长控制模块71在头码无载波阶段的起始时间点,发送电平类型为低电平、时长为8-20ms的使能信号。
再举例而言:当待发送红外码为前数据码,其在红外协议内所属的阶段类型为数据0码,于是,处理模块72配置载波时长控制模块71,使得载波时长控制模块71在数据0码的起始时间点,发送电平类型为高电平、时长为0.63ms的使能信号,在非载波期间内使能信号为低电平。
进一步的,载波产生模块73用于根据待发送红外码在红外协议内所属的阶段类型, 产生PWM类型的载波信号,并将PWM类型的载波信号与使能信号作逻辑运算,生成并发送待发送红外码。
举例而言:当待发送红外码为头码,其在红外协议内所属的阶段类型为头码带载波阶段,高电平的使能信号与PWM类型的载波信号作与逻辑运算,于是,生成的待发送红外码在高电平的使能信号对应时长内与PWM类型的载波信号相同。当低电平的使能信号与PWM类型的载波信号作与逻辑运算,于是,生成的待发送红外码在低电平的使能信号对应时长内为低电平。
在一些实施例中,使能信号的电平类型与逻辑运算可以根据红外协议来调整。例如:在待发送红外码的载波期间内时,使能信号的电平类型为高电平。在待发送红外码的非载波期间内时,使能信号的电平类型为低电平。逻辑运算为与运算。
在一些实施例中,载波产生模块73还与处理模块72连接,用于响应于处理模块72的输入配置,调整PWM类型的载波信号的周期与电平宽度,其中,该电平宽度包括高电平宽度与低电平宽度。在实际中,通过调整载波信号的周期与电平宽度有诸多好处,例如:为了降低功耗,其可以通过配置,缩小载波信号的周期与电平宽度。
在一些实施例中,处理模块72还用于:将全部待发送红外码发送完毕后,进入休眠状态。因此,其能够尽量降低功耗,这对于遥控设备而言是至关重要的。
在一些实施例中,由于本申请实施例提供的红外码发送电路能够实现方波信号的输出,在该红外码发送电路处于闲置状态时,还可以利用该红外码发送电路完成其它功能。例如:在不需要使用红外发送功能时,处理模块72还用于:重新配置载波时长控制模块71与载波产生模块73,使得红外码发送电路作为脉冲发生器。其中,该脉冲发生器可以为计数器、计时器等等。
为了详细阐述本申请实施例提供的红外码发送电路,本申请实施例结合图8、图9及图10,详细阐述该红外码发送电路的工作原理。
下面,本申请实施例再进一步详细介绍红外码发送电路的硬件架构,值得提醒的是,对红外码发送电路的硬件架构所作出的阐述并不用于限制本申请的保护范围,其只是用于辅助理解本申请实施例的目的。
如图8所示,载波时长控制模块71包括:载波时长控制器711、寄存器模块712、多路选择器713、状态控制器714及数据存储器715。
参阅图8及图9,载波时长控制器711在发送相应的码位时,从寄存器模块712中载入相应的时长配置值如HEAD_H、HEAD_L、DAT0_H、DAT0_L......ENDPOS_H,到LEVEL_CNT寄存器,并且从该值开始,在1MHz的时钟下LEVEL_CNT寄存器进行递减 计数,一直减到0,在这期间驱动载波时长控制模块71的使能端一直为0或1,然后跳转到下一个阶段,以此来产生相应时间长度的载波产生模块73的使能信号。
寄存器模块712包括多个端口,寄存器模块712与处理模块72和载波产生模块73连接,用于接收处理模块72的配置,预存有与待发送红外码对应的时长配置值,并且还用于配置载波产生模块73。
多路选择器713包括多路数据通道,多路选择器713的输入端通过多路数据通道与寄存器模块712的多个端口对应连接,多路选择器713的输出端与载波时长控制器711连接。
如图8所示,寄存器模块712包括若干个寄存器,处理模块72可以通过APB接口将要配置的数值写到对应寄存器。每个阶段类型的待发送红外码对应的电平类型及电平宽度可以分别由对应的寄存器配置。具体配置如下:
头码:头码带载波阶段与头码无载波阶段的持续时间长度可以由寄存器HEAD_H及HEAD_L分别配置。
数据0码:其包括带载波部分与无载波部分,两者的持续时间长度可以由寄存器DAT0_H及DAT0_L分别配置。
数据1码:其包括带载波部分与无载波部分,两者的持续时间长度可以由寄存器DAT1_H及DAT1_L分别配置。
前半位结束码:半位结束码只有带载波部分,其持续时间长度可以由寄存器ENDPRE_H配置。
后半位结束码:半位结束码只有带载波部分,其持续时间长度可以由寄存器ENDPOS_H配置。
间隔电平:其只有无载波部分,可以由寄存器INTERVAL配置。
前数据位数:前数据码是由n位的数据0码或数据1码组成的,此处的n为前数据位数,n的值可以由寄存器PRE_BITS配置。
后数据位数:后数据码是由m位的数据0码或数据1码组成的,此处的m就是后数据位数,m的值可以由寄存器POS_BITS配置。
F码间间隔电平:两个F码之间的间隔低电平,由FN_INTERVAL配置。
寄存器PRC用于配置载波产生模块73产生的PWM类型的载波信号的周期,寄存器PWC用于配置其高电平宽度。
对于红外码的上述阶段类型,其皆有独立的使能控制位,当该控制位为0时,该阶段将被跳过。具体描述如下:
EN_HEADH:S1阶段头码带载波阶段的使能控制位;
EN_HEADL:S2阶段头码无载波阶段的使能控制位;
EN_PREDAT:S3阶段前数据码的使能控制位;
EN_ENDPRE:S4阶段前半位结束码的使能控制位;
EN_INTERVAL:S5阶段间隔电平的使能控制位;
EN_POSDAT:S6阶段后数据码的使能控制位;
EN_ENDPOS:S7阶段后半位结束码的使能控制位;
EN_FNINTER:S8阶段F码间间隔电平使能控制位;
请再次参阅图2,图2所示的FM码可以看成是F0码的特例,即其只有S1、S2、S3、S4阶段,即使能控制位应配置为:
EN_HEADH=1,EN_HEADL=1,EN_PREDAT=1,EN_ENDPRE=1,EN_INTERVAL=0,EN_POSDAT=0,EN_ENDPOS=0,EN_FNINTER=0。
状态控制器714与多路选择器713和载波时长控制器711连接,用于根据待发送红外码在红外协议内所属的阶段类型,选通多路选择器713的对应数据通道,使得与待发送红外码的时长配置值载入载波时长控制器711。
数据存储器715分别与状态寄存器714和处理模块72连接,用于存储待发送的数据码,其中,待发送红外码包括待发送的数据码。其中,在红外码发送电路启动前,处理模块72先将要发送的前数据位及后数据位的数据组合成若干个32bit的数据,然后依次写入该数据存储器715,在发送过程中(即发送前数据位及后数据位的过程),状态控制器714会自动去数据存储器715中按顺序取出数据比特流,然后控制载波时长控制器711产生对应的调制波。其中,该数据存储器715可以为FIFO存储器。
请参阅图10,载波产生模块73包括:PWM发生器731、触发器732及与门733。
PWM发生器731包括两路信号通道,用于接收寄存器模块712输入的配置。例如:接收寄存器PRC与寄存器PWC的配置。
触发器732包括置位端、复位端及触发输出端,触发器732的置位端与复位端分别相应地与PWM发生器731的两路信号通道连接。
与门733包括第一输入端、第二输入端及与门输出端,与门733的第一输入端与触发器732的触发输出端连接,与门733的第二输入端用于输入使能信号,与门733的与门输出端用于输出待发送红外码。
下面,本申请实施例结合图8至图10详细阐述红外码发送电路的工作原理。值得提醒的是,该红外码发送电路可以工作三种模式下:1、自动发码模式;2、手动发码模式;3、通用timer模式。
A、对于自动发码模式。
红外码发送电路在自动发码模式下,其能够自动地依次完成以上各个阶段的发码步骤,并在发送红外码的过程中,只要FIFO存储器不满,便可以将下一个F码的数据写进FIFO存储器中,并继续发送。
在处于S3阶段或S6阶段时,FIFO存储器中的数据将会被硬件一一读出,并将其数据位从最高位或最低位(可配置)一一移出,当该位为0时,该红外码发送电路会自动发送数据0码的波形;当该位为1时,该红外码发送电路会自动发送数据1码的波形。
红外码发送电路发送红外码的过程如下:
1、通过处理模块72通过APB总线对寄存器模块712配置好相关时长,如HEAD_H、HEAD_L、DAT0_H、DAT0_L......ENDPOS_H。
2、通过处理模块72通过APB总线配置好前数据位数(PRE_BITS)及后数据位数(POS_BITS)。
3、将要发送的数据组合成若干个32bit的数据写入FIFO存储中。
4、软件去写控制寄存器中的发送触发位(KST),该红外码发送电路就会依次自动的发送头码、前数据码、前半位结束码、间隔电平、后数据码、后半位结束码。以上每个阶段(头码、前数据码、前半位结束码、间隔电平、后数据码、后半位结束码)发送完成之后均会有相应的中断及标志位产生。
5、此时处理模块72空闲时,其可以去执行其它任务或者休眠,当红外码发送完毕之后,会有发送完成的中断信号去通知或者唤醒处理模块72。
6、要发送下一个红外码时,将重复以上步骤。
B、手动发码模式。
首先,在发送红外码时,可以将图1所示的红外码波形拆分成如图3、4、5及6所示的一个个受调制的PWM波。
在发送红外码时,需要软件将红外码拆解成如上的一个个码位(即头码、数据0码、数据1码、半位结束码),每发送一个波形(码)前,软件需要配置好有载波的时间长度及无载波时间长度,分别用DAT0_H及DAT0_L进行配置,在红外码发送电路内部会自动将HEAD_H及HEAD_L分别作为DAT0_H及DAT0_L的BUFFER寄存器。
因此,在发送第一个红外码位前,先将第一个时间配置值往DAT0_H及DAT0_L写,紧接着将第二个时间配置值往DAT0_H及DAT0_L写。写完后数据保存的位置如图11所示。
其次,软件写触发位去触发红外码发送电路发送红外波形,当第一个码位的波形发送 完成之后,红外码发送电路会自动按第二个时间配置值去发送第二个红外波形,同时会产生中断信号去通知处理模块72将下一个码位的时间配置值写到DAT0_H及DAT0_L中。
重复以上码位发送过程,直至所有码位均发送完毕。
当所有码位都发送完成之后,软件再去关掉红外码发送电路的使能位。
C、通用timer模式。
当在某些不用发送红外码的场合,其可以将红外码发送电路用作16bit的普通定时器或者PWM发生器,波形从IR_OUT引脚输出。此时,PRC及PWC两个8位的寄存器将组合成一个16bit的计数器,HEAD_H用于配置计数周期,HEAD_L用于配置脉宽。
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;在本申请的思路下,以上实施例或者不同实施例中的技术特征之间也可以进行组合,步骤可以以任意顺序实现,并存在如上所述的本申请的不同方面的许多其它变化,为了简明,它们没有在细节中提供;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。

Claims (13)

  1. 一种基于红外协议的红外码发送电路,其特征在于,包括:
    载波时长控制模块;
    处理模块,其与所述载波时长控制模块连接,用于根据待发送红外码在红外协议内所属的阶段类型,配置所述载波时长控制模块,使得所述载波时长控制模块产生使能信号,所述使能信号用于确定所述待发送红外码的载波发生时间点与载波时长,并所述使能信号的电平类型在所述待发送红外码的载波期间内和非载波期间内皆为不变的;
    载波产生模块,其与所述载波时长控制模块连接,用于根据所述待发送红外码在红外协议内所属的阶段类型,产生PWM类型的载波信号,并将所述PWM类型的载波信号与所述使能信号作逻辑运算,生成并发送所述待发送红外码。
  2. 根据权利要求1所述的红外码发送电路,其特征在于,所述载波产生模块还与所述处理模块连接,用于响应于所述处理模块的输入配置,调整所述PWM类型的载波信号的周期与电平宽度。
  3. 根据权利要求1所述的红外码发送电路,其特征在于,
    在所述待发送红外码的载波期间内时,所述使能信号的电平类型为高电平;
    在所述待发送红外码的非载波期间内时,所述使能信号的电平类型为低电平。
  4. 根据权利要求1所述的红外码发送电路,其特征在于,所述逻辑运算为与运算。
  5. 根据权利要求1所述的红外码发送电路,其特征在于,按照发送时序,所述红外协议的阶段类型包括:头码带载波阶段、头码无载波阶段、前数据0码、前数据1码、前半位结束码、间隔电平、后数据0码、后数据1码、后半位结束码及F码间间隔电平。
  6. 根据权利要求1所述的红外码发送电路,其特征在于,所述处理模块用于根据待发送红外码在红外协议内所属的阶段类型,配置所述载波时长控制模块,包括:
    所述处理模块根据待发送红外码在红外协议内所属的阶段类型,向所述载波时长控制模块配置所述待发送红外码的载波时长。
  7. 根据权利要求1所述的红外码发送电路,其特征在于,所述处理模块还用于:
    将全部所述待发送红外码发送完毕后,进入休眠状态。
  8. 根据权利要求1所述的红外码发送电路,其特征在于,所述处理模块还用于:
    重新配置所述载波时长控制模块与所述载波产生模块,使得所述红外码发送电路作为脉冲发生器。
  9. 根据权利要求1至8任一项所述的红外码发送电路,其特征在于,所述载波时长 控制模块包括:
    载波时长控制器;
    寄存器模块,其包括多个端口,所述寄存器模块与所述处理模块和所述载波产生模块连接,用于接收所述处理模块的配置,预存有与所述待发送红外码对应的时长配置值,并且还用于配置所述载波产生模块;
    多路选择器,其包括多路数据通道,所述多路选择器的输入端通过所述多路数据通道与所述寄存器模块的多个端口对应连接,所述多路选择器的输出端与所述载波时长控制器连接;
    状态控制器,其与所述多路选择器和所述载波时长控制器连接,用于根据待发送红外码在红外协议内所属的阶段类型,选通所述多路选择器的对应数据通道,使得与所述待发送红外码的时长配置值载入所述载波时长控制器;
    数据存储器,其分别与所述状态控制器和所述处理模块连接,用于存储待发送的数据码,其中,待发送红外码包括待发送的数据码。
  10. 根据权利要求9所述的红外码发送电路,其特征在于,所述载波产生模块包括:
    PWM发生器,其包括两路信号通道,用于接收所述寄存器模块输入的配置;
    触发器,其包括置位端、复位端及触发输出端,所述触发器的置位端与复位端分别相应地与所述PWM发生器的两路信号通道连接;
    与门,其包括第一输入端、第二输入端及与门输出端,所述与门的第一输入端与所述触发器的触发输出端连接,所述与门的第二输入端用于输入所述使能信号,所述与门的与门输出端用于输出所述待发送红外码。
  11. 一种芯片,其特征在于,包括如权利要求1至10任一项所述的基于红外协议的红外码发送电路。
  12. 一种遥控设备,其特征在于,包括如权利要求1至10任一项所述的基于红外协议的红外码发送电路。
  13. 一种空调,其特征在于,包括如权利要求12所述的遥控设备。
PCT/CN2018/100894 2017-11-30 2018-08-16 基于红外协议的红外码发送电路、芯片、遥控设备及空调 WO2019105069A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US16/649,760 US11004331B2 (en) 2017-11-30 2018-08-16 Infrared protocol-based infrared code transmission circuit, chip, remote control device and air conditioner

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711242114.7A CN109859454B (zh) 2017-11-30 2017-11-30 基于红外协议的红外码发送电路、芯片、遥控设备及空调
CN201711242114.7 2017-11-30

Publications (1)

Publication Number Publication Date
WO2019105069A1 true WO2019105069A1 (zh) 2019-06-06

Family

ID=66665204

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/100894 WO2019105069A1 (zh) 2017-11-30 2018-08-16 基于红外协议的红外码发送电路、芯片、遥控设备及空调

Country Status (3)

Country Link
US (1) US11004331B2 (zh)
CN (1) CN109859454B (zh)
WO (1) WO2019105069A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110568919A (zh) * 2019-09-09 2019-12-13 大唐半导体科技有限公司 一种降低芯片功耗的装置

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114120616B (zh) * 2021-11-24 2023-03-28 深圳市欧瑞博科技股份有限公司 红外信号发送方法、装置、电子设备及存储介质
CN115083137B (zh) * 2022-07-19 2023-08-11 珠海格力电器股份有限公司 红外补偿的处理系统

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0974944A2 (en) * 1998-07-23 2000-01-26 Universal Electronics, Inc. Remote control learning system and method using signal envelope pattern recognition
CN101944285A (zh) * 2009-07-07 2011-01-12 无锡华润矽科微电子有限公司 遥控发射处理器电路
CN203733277U (zh) * 2013-12-16 2014-07-23 深圳Tcl新技术有限公司 单键式遥控器实现电路和遥控器
CN203732734U (zh) * 2014-02-18 2014-07-23 苏州经贸职业技术学院 一种红外反射传感模块

Family Cites Families (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5500691A (en) * 1995-01-04 1996-03-19 Sony Corporation Remote control identifier setup in a video system having both IR and RF transmitters
JP4087814B2 (ja) * 2004-05-13 2008-05-21 リンナイ株式会社 無線通信システム
CN101320516B (zh) * 2008-07-09 2010-09-29 四川长虹电器股份有限公司 波形学习电路对红外线解码的方法
CN101964880A (zh) * 2009-07-24 2011-02-02 东方有线网络有限公司 一种用于用户遥控装置控制机顶盒的红外遥控协议
WO2011027957A1 (en) * 2009-09-01 2011-03-10 Lg Electronics Inc. Method for controlling external device and transmitting apparatus and receiving apparatus thereof
CN102063785B (zh) * 2010-11-12 2013-03-13 四川长虹电器股份有限公司 红外线遥控信号自动发射方法及其系统
CN103186978B (zh) * 2011-12-30 2015-09-30 无锡华润矽科微电子有限公司 控制红外遥控发射的电路结构
JP2014165629A (ja) * 2013-02-25 2014-09-08 Hitachi Industrial Equipment Systems Co Ltd 監視システム
CN103426292B (zh) * 2013-09-03 2015-11-11 湖南工业大学 一种红外遥控器以及红外编码学习方法、发射方法
CN105336152A (zh) * 2014-08-11 2016-02-17 Tcl集团股份有限公司 红外发射装置和红外遥控方法
CN104597790B (zh) * 2014-12-26 2017-09-29 北京兆易创新科技股份有限公司 一种串口控制器及基于其的微控制器系统的唤醒方法
CN105261199A (zh) * 2015-09-21 2016-01-20 深圳市天海基业科技有限公司 红外数据的编解码方法及装置
CN105118225A (zh) * 2015-09-23 2015-12-02 成都乐维斯科技有限公司 一种家用的全方位智能安全防护系统
CN105869383A (zh) * 2016-04-13 2016-08-17 北京精益理想科技有限公司 红外数据处理方法、红外指令调用方法与系统
CN105934025A (zh) * 2016-05-06 2016-09-07 毕宏生 一种智能光照控制系统
CN106408924B (zh) * 2016-09-27 2019-07-26 恬家(上海)信息科技有限公司 一种电子设备中的红外实现装置及其实现方法
CN206162860U (zh) * 2016-10-28 2017-05-10 恬家(上海)信息科技有限公司 一种射频转红外遥控电路

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0974944A2 (en) * 1998-07-23 2000-01-26 Universal Electronics, Inc. Remote control learning system and method using signal envelope pattern recognition
CN101944285A (zh) * 2009-07-07 2011-01-12 无锡华润矽科微电子有限公司 遥控发射处理器电路
CN203733277U (zh) * 2013-12-16 2014-07-23 深圳Tcl新技术有限公司 单键式遥控器实现电路和遥控器
CN203732734U (zh) * 2014-02-18 2014-07-23 苏州经贸职业技术学院 一种红外反射传感模块

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110568919A (zh) * 2019-09-09 2019-12-13 大唐半导体科技有限公司 一种降低芯片功耗的装置
CN110568919B (zh) * 2019-09-09 2020-12-29 大唐半导体科技有限公司 一种降低芯片功耗的装置

Also Published As

Publication number Publication date
CN109859454B (zh) 2020-03-10
CN109859454A (zh) 2019-06-07
US11004331B2 (en) 2021-05-11
US20200242918A1 (en) 2020-07-30

Similar Documents

Publication Publication Date Title
WO2019105069A1 (zh) 基于红外协议的红外码发送电路、芯片、遥控设备及空调
JP2635837B2 (ja) ディスプレイシステム
JP6878300B2 (ja) マルチモード変調を用いる向上した仮想gpio
US20180173665A1 (en) Hard reset over i3c bus
JPH01129616A (ja) フオーマツト変換回路
US10579581B2 (en) Multilane heterogeneous serial bus
WO2020019872A1 (zh) 显示装置
TW201717033A (zh) 具有少於八位元之位元組及可變封包大小之序列周邊介面
TWI654516B (zh) 使用兩線串列介面之串列傳輸方法及包括兩線串列介面之系統及積體電路裝置
WO2019165804A1 (zh) 驱动控制方法、组件及显示装置
US9880895B2 (en) Serial interface with bit-level acknowledgement and error correction
US10733121B2 (en) Latency optimized I3C virtual GPIO with configurable operating mode and device skip
JPS6239580B2 (zh)
CN209822106U (zh) 一种基于fpga可编程器件的配置装置
CN111818699B (zh) 一种rgb-led光源的控制方法和控制电路
TWI712289B (zh) 識別碼編號方法以及多點通信系統
TWI845251B (zh) 串列週邊介面操作模式同步的方法與串列週邊介面匯流排同步設備
JPS59112333A (ja) デ−タ伝送装置
JP3534915B2 (ja) パラレル入出力ポート
TWI242739B (en) Counting method of a programmable logic controller
JPS6329871A (ja) データ転送インタフェイス回路の制御装置
JPS63222513A (ja) パルス発生装置
JPH0528076A (ja) シリアルデータ通信装置とマイクロプロセツサ
JPH0237821A (ja) パルス発生装置
JPH01243743A (ja) インタフェース

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: 18882696

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC ( EPO FORM1205A DATED 10/09/2020 ).

122 Ep: pct application non-entry in european phase

Ref document number: 18882696

Country of ref document: EP

Kind code of ref document: A1