CN110246325B - Full-digital infrared remote control signal modulation circuit and modulation method thereof - Google Patents

Full-digital infrared remote control signal modulation circuit and modulation method thereof Download PDF

Info

Publication number
CN110246325B
CN110246325B CN201910543071.9A CN201910543071A CN110246325B CN 110246325 B CN110246325 B CN 110246325B CN 201910543071 A CN201910543071 A CN 201910543071A CN 110246325 B CN110246325 B CN 110246325B
Authority
CN
China
Prior art keywords
module
modulation
remote control
infrared remote
state
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201910543071.9A
Other languages
Chinese (zh)
Other versions
CN110246325A (en
Inventor
侯继红
马聪承
廖慧
孙志兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Vocational College of Technology and Business
Original Assignee
Guangzhou Vocational College of Technology and Business
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 Guangzhou Vocational College of Technology and Business filed Critical Guangzhou Vocational College of Technology and Business
Priority to CN201910543071.9A priority Critical patent/CN110246325B/en
Publication of CN110246325A publication Critical patent/CN110246325A/en
Application granted granted Critical
Publication of CN110246325B publication Critical patent/CN110246325B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K7/00Modulating pulses with a continuously-variable modulating signal
    • H03K7/08Duration or width modulation ; Duty cycle modulation
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03LAUTOMATIC CONTROL, STARTING, SYNCHRONISATION OR STABILISATION OF GENERATORS OF ELECTRONIC OSCILLATIONS OR PULSES
    • H03L7/00Automatic control of frequency or phase; Synchronisation
    • H03L7/06Automatic control of frequency or phase; Synchronisation using a reference signal applied to a frequency- or phase-locked loop
    • H03L7/16Indirect frequency synthesis, i.e. generating a desired one of a number of predetermined frequencies using a frequency- or phase-locked loop
    • H03L7/18Indirect frequency synthesis, i.e. generating a desired one of a number of predetermined frequencies using a frequency- or phase-locked loop using a frequency divider or counter in the loop

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The application discloses full-digital infrared remote control signal modulation circuit and modulation method thereof, the modulation circuit includes: the clock frequency division module, the counting module, the modulation module, the timing module and the state machine; the clock frequency division module is used for providing clock signals for the state machine, the counting module, the timing module and the modulation module; the counting module is used for counting the clock signals to obtain a count value; the modulation module is used for modulating the infrared remote control signal according to a preset modulation type according to the count value; the timing module is used for timing the modulation time of the modulation module to obtain a timing value; and the state machine is used for controlling the counting module to count and the timing module to time after the state machine finishes the process of acquiring the infrared remote control signal, and is also used for controlling the modulation module to modulate the infrared remote control signal by one frame of signal according to a timing value, so that the technical problems that the memory resource of the microcontroller is occupied and the working efficiency of the microcontroller is reduced when the existing infrared remote control signal is modulated by software coding are solved.

Description

Full-digital infrared remote control signal modulation circuit and modulation method thereof
Technical Field
The application belongs to the technical field of communication, and particularly relates to a full-digital infrared remote control signal modulation circuit and a modulation method thereof.
Background
The infrared communication has the characteristics of miniaturization, light weight, safety and high feasibility, so the infrared communication is widely applied to wireless data communication with a transmission distance of 5-10 meters and point-to-point, such as infrared remote control of household appliances.
The infrared remote control system is mainly divided into two parts: modulation of the signal and decoding of the signal. For the modulation of the infrared signal, the prior art is realized by executing an infrared modulation program by a microcontroller. Although the technology has certain effect, the technology occupies internal resources (such as a timer and an interrupt) of the microcontroller during modulation, so that the resources of the microcontroller are in short supply and the working efficiency is low.
Disclosure of Invention
In view of this, the present application provides a full digital infrared remote control signal modulation circuit and a modulation method thereof, which implement the modulation of an infrared remote control signal by using a digital logic circuit, and solve the technical problems that the existing infrared remote control signal occupies the memory resource of a microcontroller and reduces the working efficiency of the microcontroller when being modulated by software coding.
The present application provides in a first aspect an all-digital infrared remote control signal modulation circuit, including: the clock frequency division module, the counting module, the modulation module, the timing module and the state machine;
the clock frequency division module is used for providing clock signals for the state machine, the counting module, the timing module and the modulation module;
the counting module is used for counting the clock signals to obtain a count value;
the modulation module is used for modulating the infrared remote control signal according to a preset modulation type according to the count value;
the timing module is used for timing the modulation time of the modulation module to obtain a timing value;
the state machine is used for controlling the counting module to count after the state machine finishes the process of acquiring the infrared remote control signal, the timing module is used for timing, and the state machine is also used for controlling the modulation module to modulate the infrared remote control signal by a frame of signal according to the timing value.
Optionally, the preset modulation type is pulse width modulation.
Optionally, the modulation module is specifically configured to perform pulse width modulation on the NEC infrared remote control data code on the infrared remote control signal according to the count value.
Optionally, the clock dividing module is further configured to provide a carrier signal;
and the modulation module is also used for carrying out logic AND operation on the modulated infrared remote control signal and the carrier signal to obtain an infrared remote control transmitting signal.
Optionally, the state machine is further configured to adjust the state machine to an end state after the modulation of the modulation module is ended.
Optionally, the clock frequency division module is specifically configured to divide a 50MHz clock signal into three clock signals, i.e., 1MHz, 38KHz and 2KHz, where the 1MHz clock signal is a clock signal of the state machine, the counting module and the modulation module, the 38KHz clock signal is a carrier signal, and the 2KHz clock signal is a clock signal of the timing module.
Alternatively, the state machine specifically starts reading the data state ST1, ends reading the data state ST2, generates the 9ms pilot code state ST3, generates the 4.5ms pilot code state ST4, the data code modulation state ST5, and waits for the end state ST6 from 7 states, which are the initial state ST 0.
In a second aspect, the present application provides an infrared remote controller, which includes the all-digital infrared remote control signal modulation circuit described in the first aspect.
A third aspect of the present application provides a modulation method for operating or working the all-digital infrared remote control signal modulation circuit described in the first aspect, including:
after the process of acquiring the infrared remote control signal is finished, the state machine controls the counting module to count the clock signal provided by the clock frequency division module to obtain a counting value, and controls the timing module to time the modulation time of the modulation module to obtain a timing value;
and the state machine control modulation module is used for modulating the infrared remote control signal by one frame of signal according to the timing value and the counting value.
According to the technical scheme, the embodiment of the application has the following advantages:
the application provides an infrared remote control signal modulation circuit of full-digital, include: the clock frequency division module, the counting module, the modulation module, the timing module and the state machine; the clock frequency division module is used for providing clock signals for the state machine, the counting module, the timing module and the modulation module; the counting module is used for counting the clock signals to obtain a count value; the modulation module is used for modulating the infrared remote control signal according to a preset modulation type according to the count value; the timing module is used for timing the modulation time of the modulation module to obtain a timing value; and the state machine is used for controlling the counting module to count and the timing module to time after the state machine finishes the process of acquiring the infrared remote control signal, and is also used for controlling the modulation module to modulate the infrared remote control signal by one frame of signal according to a timing value. The modulation circuit of this application can modulate infrared remote control signal, when the design, with this modulation circuit embedding microcontroller back, as the modulation module that is used for infrared remote control specially in the microcontroller, does not need microcontroller executive program to come the code, improves microcontroller's efficiency, when having solved current infrared remote control signal and carrying out the modulation of software coding, occupies microcontroller's memory resource, reduces microcontroller work efficiency's technical problem.
Drawings
Fig. 1 is a schematic structural diagram of an all-digital infrared remote control signal modulation circuit in an embodiment of the present application;
FIG. 2 is a block diagram of a state machine according to an embodiment of the present application;
FIG. 3 is a schematic structural diagram of a counting module according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a modulation module in the embodiment of the present application.
Detailed Description
The embodiment of the application provides a full-digital infrared remote control signal modulation circuit and a modulation method thereof, realizes the modulation of an infrared remote control signal by a digital logic circuit, and solves the technical problems that the existing infrared remote control signal occupies the memory resource of a microcontroller and reduces the working efficiency of the microcontroller when the software coding is modulated.
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, a schematic structural diagram of an all-digital infrared remote control signal modulation circuit in an embodiment of the present application is shown.
An all-digital infrared remote control signal modulation circuit comprises: a clock frequency division module block1, a state machine block2, a counting module block3, a modulation module block4 and a timing module block 5; a clock dividing block1 for providing clock signals for the state machine block2, the counting block3, the modulation block4 and the timing block 5; a counting module block3, configured to count the clock signal to obtain a count value; the modulation module block4 is used for modulating the infrared remote control signal to be modulated according to the count value and the preset modulation type; the timing module block5 is used for timing the modulation time of the modulation module block4 to obtain a timing value; and the state machine block2 is used for controlling the counting module block3 to count after the state machine block2 finishes the process of acquiring the infrared remote control signal, controlling the timing module block5 to time, and controlling the modulation module block4 to modulate the infrared remote control signal by one frame signal according to the timing value.
The modulation circuit of this embodiment can modulate infrared remote control signal, and when the design, after embedding this modulation circuit into microcontroller, as the modulation module that is used for infrared remote control specially in the microcontroller, do not need microcontroller executive program to come the code, improve microcontroller's efficiency, when having solved current infrared remote control signal and carrying out the modulation of software coding, occupy microcontroller's memory resource, reduce microcontroller work efficiency's technical problem.
The above is a first embodiment of an all-digital infrared remote control signal modulation circuit provided in the embodiments of the present application, and the following is a second embodiment of an all-digital infrared remote control signal modulation circuit provided in the embodiments of the present application.
Referring to fig. 1, the all-digital infrared remote control signal modulation circuit in the embodiment includes: a clock frequency division module block1, a state machine block2, a counting module block3, a modulation module block4 and a timing module block 5; a clock dividing block1 for providing clock signals for the state machine block2, the counting block3, the modulation block4 and the timing block 5; a counting module block3, configured to count the clock signal to obtain a count value; the modulation module block4 is used for modulating the infrared remote control signal to be modulated according to the count value and the preset modulation type; the timing module block5 is used for timing the modulation time of the modulation module block4 to obtain a timing value; and the state machine block2 is used for controlling the counting module block3 to count after the state machine block2 finishes the process of acquiring the infrared remote control signal, controlling the timing module block5 to time, and controlling the modulation module block4 to modulate the infrared remote control signal by one frame signal according to the timing value.
In this embodiment, the clock dividing module block1 divides the 50MHz clock signal into three clock signals, i.e., 1MHz (period 1us), 38KHz and 2KHz (period 1 ms). The 1MHz clock signal is the clock signal of the state machine block2, the counting module block3 and the modulation module block4, the 38KHz clock signal is the carrier signal, and the 2KHz clock signal is the clock signal of the timing module block 5.
As shown in fig. 1, the whole modulation circuit is coordinately controlled by a state machine block2, and as shown in fig. 2, the structure of the state machine block2 is schematically shown, wherein the output of the state machine block2 is 7 states ST0-ST6, the initial state ST0 starts to read the external data state ST1, ends to read the external data state ST2, generates the 9ms pilot code state ST3, generates the 4.5ms pilot code state ST4, the data coding modulation state ST5, and waits for the ending state ST 6. After the process of reading the infrared remote control signal is finished, the state of generating the boot code means the modulation is started, and the counting module block3, the timing module block5 and the modulation module block4 respectively perform corresponding operations.
As shown in FIG. 1, the counting module block3 is controlled by a state signal output from a state _ in [2..0] terminal input state machine block 2. The counting block3 counts at the state of ST3, ST4, ST 5. The counter value in ST3 state is 9000, in ST4 state is 4500, in ST5 state is 1125 and 2250, respectively, determined by the shift output of modulation block4, and these count values are fed to modulation block4 for the time width of the shift pulse to be generated.
As shown in fig. 3, a circuit structure diagram of a counting module block3 is shown, and a control logic unit of the module has: 16-bit data size comparators leschan 0, leschan 1, leschan 2, leschan 3, 16-bit equality comparators Equal0, Equal1, Equal2, 16-bit adder Add0, two-input AND gates 0 AND1, three-input AND gates 2 AND3, three-input OR gate OR0, four-input OR gate OR1, two 16-bit data selectors MUX21_1 AND MUX21_2, AND the circuit structure realizes the counting AND resetting control of 16-bit counting block 3.
The inputs of the three-input OR gate OR0 are connected to the outputs of Equal comparators Equal0, Equal1, Equal2, respectively. The input terminals A [2..0] of the Equal comparators Equal0, Equal1, Equal2 are all connected to a state selection signal state _ in [2..0], and constants 3 ' B011, 3 ' B100, 3 ' B101 are input to the input terminals B [2..0], respectively. It is known that when state _ in [2..0] is 3 ' b011, 3 ' b100, 3 ' b101 (i.e., state ST3, ST4, ST5), respectively, the three-input OR gate OR0 outputs a high level 1 as the selection signal SEL of the 16-bit one-out data selector MUX21_1, and when SEL is equal to 1, the data selector selects the DATAB end data from the adder Add0, and at this time, if SEL of the 16-bit one-out data selector MUL21_2 is equal to 0, the counting block3 counts.
When the state is ST3(state _ in [2..0] -. 3 'b 011), if the count value of the count block3 is greater than 9000, Equal0 outputs high level 1, AND at this time, the three-input AND gate AND1 outputs high level 1, the select terminal SEL of MUX21_2 is high, AND the output terminal of MUX21_2 selects DATAB, AND since the DATAB terminal is connected to constant 16' h0000, the count block3[5..0] is reset at this time.
When the state is ST4(state _ in [2..0] ═ 3 'b 100), if the count value of the count block3 is greater than 4500, Equal1 outputs high level 1, AND at this time, the two-input AND gate AND0 outputs high level 1, the select terminal SEL of MUX21_2 is high, AND the output terminal of MUL21_2 selects DATAB, AND since the DATAB terminal is connected to constant 16' h0000, the count block3[5..0] is reset at this time.
When in the ST5(state _ in [2..0] ═ 3' b101) state, the shifted data input is provided as an input to a three-input AND gate AND2, along with a less-than comparator lessThan3 AND a state input state _ in [2..0], with the output of AND2 connected to the input of a four-input OR gate OR 1. When ST5, shift _ out is 1 AND the count value of counter block3 is greater than 2250, AND gate AND2 outputs 1, OR gate OR1 outputs 1, OR1 outputs the SEL terminal connected to 16-bit data selector MUX21_2, AND when SEL is 1, the output terminal of MUX21_2 selects the DATAB input terminal, AND the counter performs a reset operation since the DATAB input terminal is constant 0.
It should be noted that the modulation circuit in this embodiment further has a function of transmitting a remote control signal, that is, the clock dividing module block1 in this embodiment is further configured to provide a carrier signal; and the modulation module block4 is further configured to perform logical and operation on the modulated infrared remote control signal and the carrier signal to obtain an infrared remote control transmitting signal.
It should be noted that the timing module block5 is a counter module for one frame of infrared remote control encoding duration 108 ms.
Further, the state machine block2 is further configured to adjust the state machine block2 to an end state when the modulation by the modulation module block4 is ended.
It should be noted that the data modulation types are various, the data modulation structures are also various, the data modulation type in this embodiment is pulse width modulation, and the specific structure of the modulation block4 is shown in fig. 4.
As shown in fig. 4, which is a schematic structural diagram of a modulation block4 in this embodiment, a modulation block4 receives a state control signal output by a state machine block 2. In the ST2 state, the infrared remote control signal latched by the state machine block2 is encoded (data converted) according to the encoding format of the NEC infrared remote control data code and the user code, and latched to the modulation module register. In the state of ST4, the latched data is supplied to the shift register. The 16-bit data latched in shift _ data [15..0] is data-modulated in accordance with the NEC infrared encoding format in the ST5 state. The waveform at the output end of the modulation block4 is a modulated pulse width signal, AND the pulse width signal is anded with an externally input carrier signal through an AND gate 5 to obtain an infrared remote control transmitting signal, AND is output from a modulated _ data _ out end.
The shift register of this embodiment is a 32-bit shift register, and the data input terminal thereof is connected to the output of the 32-bit one-out-of-two data selector MUX21_ 5. The data terminal SEL of the MUX21_5 is connected to the output of an Equal comparator Equal2, the inputs of the Equal2 comparator are a state input signal state _ in [2..0] and a constant 3 ' h4, respectively, when the value of the state _ in [2..0] is Equal to the constant 3 ' h4 (i.e., state _ in [2..0 ]. 3 ' h4), the comparator outputs 1, the SEL of the MUX21_5 is Equal to 1, the output terminal of the MUX21_5 selects DATAB, and at this time, the data latched in the modulation block register is supplied to the shift register, so that the data loading of the shift register is realized.
When the data select terminal SEL of the MUX21_5 is equal to 0, the DATAA terminal is selected, and the DATAA terminal is connected to the output terminal of the 32-bit one-out data selector MUX21_ 6. The select terminal SEL of MUX21_6 is connected to the output of the Equal comparator Equal 4. The Equal4 compares the state machine input state _ in [2..0] with the constant 3 ' h5, when the state _ in [2..0] is 3 ' h5 (in ST5 state), the Equal4 outputs 1, then SEL of MUX21_6 is 1, MUX21_6 output end selects tab end input, and sends the tab end data to the shift register, because the tab end data is the logical and of the 32 th bit of the tab end data from the shift register and1 ' h0, the 32 th bit data is changed to 0, and the operation of the shift register for most bit complementing 0 during shifting is realized.
The working principle of the whole modulation module is as follows:
the state machine enters the initial state after reset ST0, goes to the state ST1 when the externally input start emission signal is active, reads the infrared remote control signal and latches the infrared remote control signal to the input data register, and goes to the state ST2 after the next clock rising edge, ends reading the data in the state ST2, and then goes to the state ST 3.
In the ST3 state, a timing module block5(block5) is started to start timing, in the ST3 state, a counting module block3 counts 1MHz clock, the count value is sent to a state machine block2 and a modulation module block4 through a data bus, and when 9000 is counted (just 9ms), the counting module block3 clears 0 and goes to the ST4 state.
In the ST4 state, count block3 also counts 1MHz clocks, and when 4500 is counted (i.e., 4.5ms), count block3 clears 0 and the state machine goes to the ST5 state.
In the ST5 state, counting block3 also counts 1MHz clock, and when the shift output terminal of modulating block4 outputs low level, counting block3 counts 1125 (i.e. 1.125ms), and counting block3 clears 0; when the shift output terminal outputs a high level, count block3 counts to 2250 (i.e., 2.25ms), and count block3 clears 0. And when the shift output end shifts once to output one bit of data, adding 1 to a shift frequency counter, sending the shift frequency to a state machine block2, when the shift frequency reaches 32, enabling the state machine to enter an ST6 state, waiting for the end of one frame of infrared signals, when acquiring one frame of infrared end signals, ending the process of the modulation module, and enabling the system to return to an ST0 state to prepare for the next modulation module.
The shift number counter is used for counting the number of the rising edges of the shift pulses, and1 is added to each rising edge of the shift pulses. When the count is 33, the 32 shift register is indicated to have shifted out all the internal 32-bit data from the s shift output end, and the modulation of 32 data is completed once.
The clock trigger of the shift count counter (shift _ cnt [5..0] in fig. 1) terminates the output of the shift pulse of the flip-flop, the input terminal D is connected to the output of the 6-bit two-way selector MUX21_8, the SEL terminal of MUX21_8 is connected to the output of the Equal comparator Equal to Equal3, when the input terminal a of Equal3 is connected to the state input state _ in [2..0], the terminal B is a constant 3 ' h0, and when the state _ in [2..0 ]. is 3 ' h0 (state ST0), Equal3 outputs a high level 1, that is, the SEL terminal of MUX21_8 is Equal to 1, the databa data is selected, and the counter is reset in the ST0 state due to the databa 6 ' h 0. When not in ST0, SEL is 0, MUX21_8 selects the DATAA input, and the DATAA input is connected to the 6-bit alternative data selector MUX21_9 output. The SEL terminal of MUX21_7 is connected to the output of the Equal comparator Equal4, and when state _ in [2..0] (state ST5) is 3' h5, Equal4 outputs a high level 1, then SEL of MUX21_9 is 1, the tab input is selected, and tab is connected to the output of adder ADD0, at which time the 1-up operation of the shift count counter is realized.
The data terminal D of the data register (such as latch _ in _ data [31..0] in fig. 1) of the state machine block2 is connected to the output terminal of the 32-bit one-out-of-two data selector MUX21_3, the SEL terminal of the MUX21_3 is connected to the reset input terminal, when the reset is 0, the SEL terminal is 1, and the MUX21_3 selects the tab terminal input, because the tab is 32' h0000000, the latch is reset at this time. When reset is 1, SEL is 0, MUX21_3 selects the DATAA input, which is connected to the output of 32-bit one-out data selector MUX21_ 4. The data selection signal SEL terminal of MUX21_4 is connected to the output of an Equal comparator Equal1, the inputs of Equal1 comparator are respectively a state input signal state _ in [2..0] and a constant 3 ' h2, when the value of state _ in [2..0] and the constant 3 ' h2 (i.e., state _ in [2..0 ]. 3 ' h2), the comparator outputs 1, the SEL of MUX21_4 is 1, and the output terminal of MUX21_4 selects DATAB. The data input terminal data _ in [15..0] is subject to data conversion (atch _ data _ in [15..0], latch _ data _ in [7..0], latch _ data _ in [15..8] are inverted and combined with latch _ data _ in [7..0], latch _ data _ in [15..8] respectively to form 32-bit data which is used as DATAB input, so when in state ST2(state _ in [2..0] ═ 3' h2), the MUX21_4 has SEL equal to 1, and when reset is 0, the DATAB end of MUX21_4 is selected, at which time DATAB end data is latched to latch _ in _ data [31..0] on the falling edge of clock clk _1us, and latching input of data is achieved, when reset is 1 (not reset) and is not in the ST2 state (state _ in is not equal to 3' h2), the SEL of MUX21_4 and MUX21_3 are both 0, the data at DATAA end is selected as output, and the DATAA end of MUX21_4 is connected to the data latch, so that the data retention of the latch is realized at each clk _1us clock falling edge.
The modulation circuit of this embodiment can modulate infrared remote control signal, and when the design, after embedding this modulation circuit into microcontroller, as the modulation module that is used for infrared remote control specially in the microcontroller, do not need microcontroller executive program to come the code, improve microcontroller's efficiency, when having solved current infrared remote control signal and carrying out the modulation of software coding, occupy microcontroller's memory resource, reduce microcontroller work efficiency's technical problem.
The above is a second embodiment of the all-digital infrared remote control signal modulation circuit provided in the embodiment of the present application, and the following is an embodiment of an infrared remote controller provided in the embodiment of the present application.
The infrared remote controller in this embodiment includes the encoding circuit of the infrared remote control signal of any of the above embodiments.
The modulation circuit of this embodiment can modulate infrared remote control signal, and when the design, after embedding this modulation circuit into microcontroller, as the modulation module that is used for infrared remote control specially in the microcontroller, do not need microcontroller executive program to come the code, improve microcontroller's efficiency, when having solved current infrared remote control signal and carrying out the modulation of software coding, occupy microcontroller's memory resource, reduce microcontroller work efficiency's technical problem.
The above is an embodiment of an infrared remote controller provided in the present application, and the following is an embodiment of a modulation method provided in the present application.
A modulation method in this embodiment includes:
after the process of acquiring the infrared remote control signal is finished, the state machine controls the counting module to count the clock signal provided by the clock frequency division module to obtain a counting value, and controls the timing module to time the modulation time of the modulation module to obtain a timing value;
and the state machine controls the modulation module to modulate the infrared remote control signal by one frame of signal according to the timing value and the counting value.
The modulation circuit of this embodiment can modulate infrared remote control signal, and when the design, after embedding this modulation circuit into microcontroller, as the modulation module that is used for infrared remote control specially in the microcontroller, do not need microcontroller executive program to come the code, improve microcontroller's efficiency, when having solved current infrared remote control signal and carrying out the modulation of software coding, occupy microcontroller's memory resource, reduce microcontroller work efficiency's technical problem.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (8)

1. An all-digital infrared remote control signal modulation circuit, comprising: the clock frequency division module, the counting module, the modulation module, the timing module and the state machine;
the clock frequency division module is used for providing clock signals for the state machine, the counting module, the timing module and the modulation module;
the counting module is used for counting the clock signals to obtain a count value;
the modulation module is used for modulating the infrared remote control signal to be modulated according to a preset modulation type according to the count value;
the timing module is used for timing the modulation time of the modulation module to obtain a timing value;
the state machine is used for controlling the counting module to count after the state machine finishes the process of acquiring the infrared remote control signal, the timing module is used for timing, and the state machine is also used for controlling the modulation module to modulate the infrared remote control signal by a frame of signal according to the timing value;
the control logic unit of the counting module comprises: 16-bit data size comparators lessthana 0, lessthana 1, lessthana 2, lessthana 3, AND 16-bit Equal comparators Equal0, Equal1, Equal2, 16-bit adder Add0, two-input AND gates 0, AND1, three-input AND gates 2, AND3, three-input OR gate OR0, four-input OR gate OR1, two 16-bit data selectors MUX21_1, MUX21_ 2;
the inputs of the three-input OR gate 0 are respectively connected with the outputs of Equal comparators Equal0, Equal1 and Equal 2;
the input terminals A [2..0] of the Equal comparators Equal0, Equal1 and Equal2 are all connected with a state selection signal state _ in [2..0], and the input terminals B [2..0] are respectively input with constants 3 ' B011, 3 ' B100 and3 ' B101;
when state _ in [2..0] is 3 ' b011, 3 ' b100, 3 ' b101, respectively, the three-input OR gate OR0 outputs a high level 1 as the selection signal SEL of the 16-bit one-out data selector MUX21_1, when SEL is 1, the data selector MUX21_1 selects DATAB end data from the adder Add0, and when SEL of the 16-bit one-out data selector MUL21_2 is 0, the counting block3 counts;
the output of the state machine is ST0-ST6 with 7 states in total, an initial state ST0, a start reading external data state ST1, an end reading external data state ST2, a generation 9ms pilot code state ST3, a generation 4.5ms pilot code state ST4, a data coding modulation state ST5, and a wait ending state ST 6; after the process of reading the infrared remote control signal is finished, entering a state of generating a guide code means the beginning of modulation, and the counting module, the timing module and the modulation module respectively carry out corresponding operations;
the clock frequency division module is also used for providing a carrier signal;
and the modulation module is also used for carrying out logic and operation on the modulated infrared remote control signal and the carrier signal to obtain an infrared remote control transmitting signal.
2. The all-digital infrared remote control signal modulation circuit according to claim 1, wherein the preset modulation type is pulse width modulation.
3. The all-digital infrared remote control signal modulation circuit according to claim 2, wherein the modulation module is specifically configured to perform pulse width modulation of NEC infrared remote control data codes on the infrared remote control signals according to the count value.
4. The all-digital infrared remote control signal modulation circuit according to claim 1, wherein the clock divider module is further configured to provide a carrier signal;
and the modulation module is also used for carrying out logic AND operation on the modulated infrared remote control signal and the carrier signal to obtain an infrared remote control transmitting signal.
5. The all-digital infrared remote control signal modulation circuit according to claim 1, wherein the state machine is further configured to turn the state machine to an end state after the modulation of the modulation module is ended.
6. The all-digital infrared remote control signal modulation circuit according to claim 4, wherein the clock frequency division module is specifically configured to divide a 50MHz clock signal into three clock signals of 1MHz, 38KHz and 2KHz, wherein the clock signal of 1MHz is a clock signal of the state machine, the counting module and the modulation module, the clock signal of 38KHz is a carrier signal, and the clock signal of 2KHz is a clock signal of the timing module.
7. The all-digital infrared remote control signal modulation circuit as claimed in claim 1, wherein the state machine has 7 states, which are respectively an initial state ST0, a data reading start state ST1, a data reading end state ST2, a 9ms pilot code generation state ST3, a 4.5ms pilot code generation state ST4, a data code modulation state ST5, and a waiting end state ST 6.
8. An infrared remote controller, characterized in that it comprises the all-digital infrared remote control signal modulation circuit of any one of claims 1 to 7.
CN201910543071.9A 2019-06-21 2019-06-21 Full-digital infrared remote control signal modulation circuit and modulation method thereof Active CN110246325B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910543071.9A CN110246325B (en) 2019-06-21 2019-06-21 Full-digital infrared remote control signal modulation circuit and modulation method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910543071.9A CN110246325B (en) 2019-06-21 2019-06-21 Full-digital infrared remote control signal modulation circuit and modulation method thereof

Publications (2)

Publication Number Publication Date
CN110246325A CN110246325A (en) 2019-09-17
CN110246325B true CN110246325B (en) 2022-03-18

Family

ID=67888750

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910543071.9A Active CN110246325B (en) 2019-06-21 2019-06-21 Full-digital infrared remote control signal modulation circuit and modulation method thereof

Country Status (1)

Country Link
CN (1) CN110246325B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104484992A (en) * 2014-12-31 2015-04-01 广州科技贸易职业学院 Infrared remote control decoder based on programmable logic device
CN107301444A (en) * 2017-05-25 2017-10-27 北京大学 A kind of ultrahigh frequency RFID coding circuit

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2283121A (en) * 1993-10-22 1995-04-26 David Wingate Radio frequency switch
US6501300B2 (en) * 2000-11-21 2002-12-31 Hitachi, Ltd. Semiconductor integrated circuit
FR2906659B1 (en) * 2006-10-03 2008-12-19 Commissariat Energie Atomique SPATIO-TEMPORAL ENCODING METHOD FOR MULTI-ANTENNA COMMUNICATION SYSTEM OF IMPULSIVE UWB TYPE
CN101404113B (en) * 2008-11-06 2010-11-17 成都九洲电子信息系统有限责任公司 Method for implementing infrared remote control decoding by software in embedded system
CN101887130B (en) * 2010-06-09 2013-06-19 中国人民解放军第二炮兵工程学院 Programmable navigational satellite spread spectrum sequence generator
CN105072068A (en) * 2015-08-27 2015-11-18 赵爽 Automatic carrier wave demodulation control circuit for short-distance wireless communication
KR102055315B1 (en) * 2015-10-29 2019-12-13 위트리시티 코포레이션 Controllers for Wireless Power Systems
IT201700067192A1 (en) * 2017-06-16 2018-12-16 St Microelectronics Srl PWM CONFIGURATIONS GENERATOR CIRCUIT, CORRESPONDING DEVICE AND PROCEDURE
CN108449109B (en) * 2018-05-16 2023-09-19 成都通量科技有限公司 Slave control interface device for radio frequency front-end device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104484992A (en) * 2014-12-31 2015-04-01 广州科技贸易职业学院 Infrared remote control decoder based on programmable logic device
CN107301444A (en) * 2017-05-25 2017-10-27 北京大学 A kind of ultrahigh frequency RFID coding circuit

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种用CPLD构建红外遥控电路;侯继红;《广州大学学报》;20110831;第74-76页 *

Also Published As

Publication number Publication date
CN110246325A (en) 2019-09-17

Similar Documents

Publication Publication Date Title
CN102035514B (en) Control method for digital pulse width modulation (DPWM) circuit
CN103631244A (en) Master and slave type keyboard controller based on MCU (microprogrammed control unit) and CPLD (complex programmable logic device)
JP3995142B2 (en) Semiconductor integrated circuit
CN110246325B (en) Full-digital infrared remote control signal modulation circuit and modulation method thereof
US9426082B2 (en) Low-voltage differential signaling or 2-wire differential link with symbol transition clocking
CN110120798A (en) A kind of double DPWM circuits and its control method along triggering mixed structure
CN202043085U (en) Full process adjustable digital pulse width modulator based on oscillation ring circuit
CN104914744A (en) Online coding synchronization control system used for coding imaging and control method
CN109859454B (en) Infrared code sending circuit, chip, remote control equipment and air conditioner based on infrared protocol
CN104251536A (en) One-to-many current loop communication method and communication device
CN105553466A (en) CPLD-based photoelectric coded disc orthogonal pulse arbitrary decimal frequency division method
CN106374914B (en) A kind of programmable frequency divider
CN111988417A (en) Communication control method of physical network terminal
CN104484992B (en) Infrared remote control decoding device based on PLD
CN204362029U (en) The programmable frequency divider of 50 percent duty ratio
CN103186978B (en) Control the circuit structure of Infrared Remote-Control Sending
CN100456630C (en) Low frequency clock signal generating method and low frequency cloc ksignal generator
CN107565940B (en) Clock switching circuit based on FPGA system
CN213094183U (en) Serial encoding circuit
CN116700432A (en) Dual-clock rate source synchronous master-slave serial communication system
CN106100637B (en) A kind of counter directly controls the multi-mode programmable frequency divider structure of Phase-switching
US5944835A (en) Method and programmable device for generating variable width pulses
CN104616474A (en) Wireless remote control encoder chip and application circuit thereof
CN204440628U (en) wireless remote control coding chip and application circuit thereof
CN109088620B (en) PFM modulation circuit based on data control

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant