CN110246325A - A kind of digital infrared remote-controlled signal modulation circuit and its modulator approach - Google Patents

A kind of digital infrared remote-controlled signal modulation circuit and its modulator approach Download PDF

Info

Publication number
CN110246325A
CN110246325A CN201910543071.9A CN201910543071A CN110246325A CN 110246325 A CN110246325 A CN 110246325A CN 201910543071 A CN201910543071 A CN 201910543071A CN 110246325 A CN110246325 A CN 110246325A
Authority
CN
China
Prior art keywords
modulation
module
infrared remote
signal
controlled signal
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.)
Granted
Application number
CN201910543071.9A
Other languages
Chinese (zh)
Other versions
CN110246325B (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

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

This application discloses a kind of digital infrared remote-controlled signal modulation circuit and its modulator approach, modulation circuit includes: clock frequency division module, counting module, modulation module, timing module and state machine;Clock frequency division module, for providing clock signal for state machine, counting module, timing module and modulation module;Counting module, for obtaining count value to clock signal-count;Modulation module, for according to count value, infrared remote-controlled signal to be modulated according to preset modulation type;Timing module obtains clocking value for the modulation time timing to modulation module;State machine, for after state machine terminates to obtain infrared remote-controlled signal process, counting module is controlled to count, timing module timing, it is also used to control the modulation that modulation module carries out infrared remote-controlled signal one frame signal according to clocking value, when solving the modulation that existing infrared remote-controlled signal carries out Software Coding, the technical issues of occupying the memory source of microcontroller, reducing microcontroller working efficiency.

Description

A kind of digital infrared remote-controlled signal modulation circuit and its modulator approach
Technical field
The application belongs to field of communication technology more particularly to a kind of digital infrared remote-controlled signal modulation circuit and its modulation Method.
Background technique
Infrared communication has the characteristics that miniaturization, lightweight, safety, feasibility are high, is 5-10 in transmission range therefore It is widely applied in the point-to-point wireless data communication of rice, such as the infrared remote control of household electrical appliance.
Infrared remote control system is broadly divided into two parts: the modulation of signal and the decoding of signal.Modulation for infrared signal, Infrared modulated program is executed by microcontroller in the prior art to realize.Although the technology achieves certain effect, but When modulation, the internal resource (such as: timer, interruption) of microcontroller can be occupied, so that microcontroller resource scarcity, work effect Rate is low.
Summary of the invention
In view of this, being realized this application provides a kind of digital infrared remote-controlled signal modulation circuit and its modulator approach Modulation with Digital Logical Circuits to infrared remote-controlled signal solves the modulation that existing infrared remote-controlled signal carries out Software Coding When, the technical issues of occupying the memory source of microcontroller, reduce microcontroller working efficiency.
The application first aspect provides a kind of digital infrared remote-controlled signal modulation circuit, comprising: clock frequency division module, Counting module, modulation module, timing module and state machine;
The clock frequency division module, for being the state machine, the counting module, the timing module and the modulation Module provides clock signal;
The counting module obtains count value for counting to the clock signal;
The modulation module, for according to the count value, by the infrared remote-controlled signal according to preset modulation type into Row modulation;
The timing module obtains clocking value for the modulation time timing to the modulation module;
The state machine, for controlling the count module after state machine terminates to obtain infrared remote-controlled signal process Block count, the timing module timing are also used to control the modulation module according to the clocking value and believe the infrared remote control Number carry out a frame signal modulation.
Optionally, the preset modulation type is specially pulsewidth modulation.
Optionally, the modulation module, is specifically used for according to the count value, carries out NEC to the infrared remote-controlled signal The pulsewidth modulation of infrared remote control data code.
Optionally, the clock frequency division module, also provides for carrier signal;
The modulation module is also used to the modulated infrared remote-controlled signal and the carrier signal carrying out logical AND Operation obtains Infrared Remote-Control Sending signal.
Optionally, the state machine is also used to be adjusted to terminate by the state machine after modulation module modulation terminates State.
Optionally, the clock frequency division module is specifically used for, and the clock signal of 50MHz is divided into 1MHz, 38KHz, 2KHz Three kinds of clock signals, wherein the clock signal of 1MHz be state machine, counting module, modulation module clock signal, 38KHz when Clock signal is carrier signal, and the clock signal of 2KHz is the clock signal of timing module.
Optionally, the state machine starts read data status ST1 specifically by 7 kinds of states, respectively original state ST0, Terminate read data status ST2, generate 9ms guidance code state ST3, generates 4.5ms guidance code state ST4, data code modulation State ST5 waits end state ST6.
The application second aspect provides a kind of IR remote controller, including digital infrared distant described in above-mentioned first aspect Control signal modulation circuit.
The application third aspect provides a kind of modulator approach, for digital infrared remote-controlled signal described in first aspect Modulation circuit operation or work, comprising:
When terminate obtain infrared remote-controlled signal process after, state machine control counting module to clock frequency division module provide when Clock signal is counted, and count value is obtained, and controls modulation time timing of the timing module to modulation module, obtains clocking value;
The state machine controls modulation module, according to the clocking value and the count value to the infrared remote-controlled signal into The modulation of one frame signal of row.
As can be seen from the above technical solutions, the embodiment of the present application has the advantage that
This application provides a kind of digital infrared remote-controlled signal modulation circuits, comprising: clock frequency division module, count module Block, modulation module, timing module and state machine;Clock frequency division module, for being state machine, counting module, timing module and tune Molding block provides clock signal;Counting module, for obtaining count value to clock signal-count;Modulation module, by based on Infrared remote-controlled signal is modulated by numerical value according to preset modulation type;Timing module, for the modulation time to modulation module Timing obtains clocking value;State machine, for controlling counting module meter after state machine terminates to obtain infrared remote-controlled signal process Number, timing module timing are also used to control the tune that modulation module carries out infrared remote-controlled signal one frame signal according to clocking value System.The modulation circuit of the application can be modulated infrared remote-controlled signal, and in design, which is embedded into micro-control After device processed, as the modulation module in microcontroller dedicated for infrared remote control, programs executed by microcontroller is not needed to encode, The efficiency for improving microcontroller occupies microcontroller when solving the modulation that existing infrared remote-controlled signal carries out Software Coding The technical issues of memory source, reduction microcontroller working efficiency.
Detailed description of the invention
Fig. 1 is a kind of digital infrared remote-controlled signal modulation circuit structural schematic diagram in the embodiment of the present application;
Fig. 2 is the structural schematic diagram of the state machine in the embodiment of the present application;
Fig. 3 is the structural schematic diagram of the counting module in the embodiment of the present application;
Fig. 4 is the structural schematic diagram of the modulation module in the embodiment of the present application.
Specific embodiment
The embodiment of the present application provides a kind of digital infrared remote-controlled signal modulation circuit and its modulator approach, realizes use Modulation of the Digital Logical Circuits to infrared remote-controlled signal, when solving the modulation that existing infrared remote-controlled signal carries out Software Coding, The technical issues of occupying the memory source of microcontroller, reducing microcontroller working efficiency.
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only this Apply for a part of the embodiment, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art exist Every other embodiment obtained under the premise of creative work is not made, shall fall in the protection scope of this application.
Referring to Fig. 1, a kind of structural schematic diagram of digital infrared remote-controlled signal modulation circuit in the embodiment of the present application.
A kind of digital infrared remote-controlled signal modulation circuit includes: clock frequency division module block1, state machine block2, meter Digital-to-analogue block block3, modulation module block4 and timing module block5;Clock frequency division module block1, for being state machine Block2, counting module block3, modulation module block4 and timing module block5 provide clock signal;Counting module Block3 obtains count value for counting to clock signal;Modulation module block4 is used for according to count value, will be wait adjust The infrared remote-controlled signal of system is modulated according to preset modulation type;Timing module block5, for modulation module block4 The timing of modulation time, obtain clocking value;State machine block2, for terminating to obtain infrared remote-controlled signal as state machine block2 After process, control counting module block3 is counted, and controls timing module block5 timing, and according to clocking value, control modulation mould Block block4 carries out the modulation of a frame signal to infrared remote-controlled signal.
The modulation circuit of the present embodiment can be modulated infrared remote-controlled signal, in design, the modulation circuit is embedding Enter to after microcontroller, as the modulation module in microcontroller dedicated for infrared remote control, does not need microcontroller and execute journey Sequence encodes, and improves the efficiency of microcontroller, when solving the modulation that existing infrared remote-controlled signal carries out Software Coding, occupies micro- The technical issues of memory source of controller, reduction microcontroller working efficiency.
The above are a kind of first embodiment of digital infrared remote-controlled signal modulation circuit provided by the embodiments of the present application, with It is down a kind of second embodiment of digital infrared remote-controlled signal modulation circuit provided by the embodiments of the present application.
Referring to Fig. 1, the digital infrared remote-controlled signal modulation circuit in the present embodiment includes: clock frequency division module Block1, state machine block2, counting module block3, modulation module block4 and timing module block5;Clock division mould Block block1, for being provided for state machine block2, counting module block3, modulation module block4 and timing module block5 Clock signal;Counting module block3 obtains count value for counting to clock signal;Modulation module block4, is used for According to count value, infrared remote-controlled signal to be modulated is modulated according to preset modulation type;Timing module block5, is used for Modulation time timing to modulation module block4, obtains clocking value;State machine block2, for terminating as state machine block2 After obtaining infrared remote-controlled signal process, control counting module block3 is counted, and controls timing module block5 timing, and according to meter Duration, control modulation module block4 carry out the modulation of a frame signal to infrared remote-controlled signal.
It should be noted that the clock signal of 50MHz is divided into 1MHz by clock frequency division module block1 in the present embodiment Three kinds of clock signals of (period 1us), 38KHz, 2KHz (period 1ms).1MHz clock signal is state machine block2, counting module The clock signal of block3, modulation module block4,38KHz clock signal are carrier signal, and 2KHz clock signal is timing mould The clock signal of block block5.
As shown in Figure 1, entire modulation circuit is illustrated in figure 2 state machine block2 by state machine block2 coordinated control Structural schematic diagram, wherein the output of state machine block2 is ST0-ST6 totally 7 states, original state ST0, starts to read outer Portion data mode ST1 terminates reading external data state ST2, generates 9ms guidance code state ST3, generates 4.5ms guidance code shape State ST4, data code modulation state ST5 wait end state ST6.After the process of reading infrared remote control signal, enter The state of guidance code is generated this means that the beginning modulated, counting module block3, timing module block5 and modulation module Block4 respectively carries out corresponding operation.
As shown in Figure 1, the state that counting module block3 is exported by the end state_in [2..0] input state machine block2 Signal control.Counting module block3 is counted in the state of state ST3, ST4, ST5.Under ST3 state, the counter Count value is 9000, and count value is 4500 under ST4 state, and the count value under ST5 state is according to modulation module block4's Shift outputs determine that respectively count value is 1125 and 2250, give these count values to modulation module block4 and are used to produce The time width of raw shift pulse.
It is illustrated in figure 3 the circuit structure diagram of counting module block3, the control logic unit of the module has: 16 data Size comparator lessThan0, lessThan1, lessThan2, lessThan3 and 16 equality comparator Equal0, Equal1, Equal2,16 adder Add0, two inputs and door AND0, AND1, three inputs and door AND2, AND3, three inputs or Door OR0, four inputs or door OR1, two 16 data selectors MUX21_1, MUX21_2, realize 16 by above-mentioned circuit structure The counting and reset control of position counting module block3.
Three inputs or the input of door OR0 are separately connected the output of equality comparator Equal0, Equal1, Equal2.It is equal The input terminal A [2..0] of comparator Equal0, Equal1, Equal2 all connection status selection signal state_in [2..0], it is defeated Enter to hold B [2..0] to input 3 ' b011 of constant, 3 ' b100,3 ' b101 respectively.It is found that when state_in [2..0] is respectively 3 ' When b011,3 ' b100,3 ' b101 (i.e. state ST3, ST4, ST5), three inputs or door OR0 export high level 1, and as 16 two The selection signal SEL for selecting a data selector MUX21_1, as SEL=1, which selects device to select DATAB end data, DATAB End data comes from adder Add0, at this point, if when the SEL=0 of 16 alternative data selector MUL21_2, counting module Block3 is counted.
When being in ST3 (state_in [2..0]=3 ' b011) state, if the count value of counting module block3 is greater than When 9000, Equal0 export high level 1, at this time three input with door AND1 export high level 1, then MUX21_2 select end SEL for High level, the output end of MUX21_2 select DATAB, because the end DATAB connects 16 ' h0000 of constant, then counting module at this time Block3 [5..0] resets.
When being in ST4 (state_in [2..0]=3 ' b100) state, if the count value of counting module block3 is greater than When 4500, Equal1 export high level 1, at this time two input with door AND0 export high level 1, then MUX21_2 select end SEL for High level, the output end of MUL21_2 select DATAB, because the end DATAB connects 16 ' h0000 of constant, then counting module at this time Block3 [5..0] resets.
When being in ST5 (state_in [2..0]=3 ' b101) state, shifted data input terminal be less than comparator The input of lessThan3 and state input state_in [2..0] together as three inputs and door AND2, the output connection of AND2 Four inputs or the input of door OR1.When in ST5, and shift_out=1, and the count value of counter counting module block3 is greater than When 2250, with door AND2 output 1, then or door OR1 exports the end SEL that 1, OR1 output connects 16 data selector MUX21_2, As SEL=1, the output end of MUX21_2 selects DATAB input terminal, and because DATAB input terminal is constant 0, this hour counter is realized Reset operation.
It should be noted that the modulation circuit in the present embodiment also has the emission function of remote signal, i.e. the present embodiment Middle clock frequency division module block1, also provides for carrier signal;Modulation module block4, being also used to will be modulated infrared distant It controls signal and carrier signal carries out logic and operation, obtain Infrared Remote-Control Sending signal.
It should be noted that timing module block5 is a frame infrared remote coding duration 108ms counter module.
Further, state machine block2 is also used to after modulation module block4 modulation terminates, by state machine block2 It is adjusted to end state.
It should be noted that data modulation type be it is diversified, data modulation structure be similarly varied , the data modulation type in the present embodiment is pulsewidth modulation, and the structure of specific modulation module block4 is shown in Figure 4.
It is illustrated in figure 4 the structural schematic diagram of the modulation module block4 in the present embodiment, in the present embodiment, modulation module Block4 receives the state control signal of state machine block2 output.Under ST2 state, state machine block2 is latched infrared Remote signal is encoded (data transformation) according to the coded format of NEC infrared remote control data code and user code, and is latched into tune Molding block register.Under ST4 state, the data being latched in are sent to shift register.Shift_ will be latched under ST5 state 16 data of data [15..0] carry out data modulation according to NEC infrared coding format.The wave of modulation module block4 output end Shape is exactly the pulse width signal modulated, the pulse width signal by with door AND5 and externally input carrier signal phase with obtain red Outer remote-transmitter signal, and exported from the end modulated_data_out.
The shift register of the present embodiment be 32 bit shift registers, data input pin connect 32 alternative data The output of selector MUX21_5.The output of the data terminal SEL connection equality comparator Equal2 of MUX21_5, Equal2 comparator Input be 3 ' h4 of condition input signals state_in [2..0] and constant respectively, when state_in [2..0] value and constant 3 ' When h4 (i.e. state_in [2..0]=3 ' h4), comparator output 1, then the SEL=1 of MUX21_5, the output end of MUX21_5 are selected DATAB is selected, at this point, the data for being latched in modulation module register are realized the data dress of shift register to shift register It carries.
When the data of MUX21_5 select end SEL=0, DATAA end data is selected, the end DATAA connects 32 alternative numbers According to the output end of selector MUX21_6.The output of the selection end SEL connection equality comparator Equal4 of MUX21_6.Equal4 pairs State machine inputs state_in [2..0] compared with 3 ' h5 of constant, as state_in [2..0]=3 ' h5 (in ST5 state), Equal4 output 1, then the SEL=1 of MUX21_6, the MUX21_6 output end selection end DATAB input, and DATAB end data is given Shift register, because DATAB end data is the 32nd logical AND with 1 ' h0 of the DATAA end data from shift register, 32nd data are become 0, realize that shift register highest order in displacement mends 0 operation.
The working principle of entire modulation module are as follows:
State machine enters original state ST0 after reset, when externally input starting transmitting signal is effective, is transferred to ST1 shape State, reading infrared remote control signal, and infrared remote-controlled signal is latched into input data register, and in next rising edge clock Enter ST2 state afterwards, terminates to read data in ST2 state, then go to ST3 state.
Under ST3 state, starting timing module block5 (block5) starts timing, under ST3 state, counting module Block3 gives state machine block2 and modulation module block4 by data/address bus, works as meter to 1MHz clock count, count value When to 9000 (just 9ms), counting module block3 clear 0, and go to ST4 state.
Under ST4 state, counting module block3 is equally to 1MHz clock count, (i.e.: when counting down to 4500 4.5ms), clear 0 counting module block3, state machine go to ST5 state.
Under ST5 state, counting module block3 is equally to 1MHz clock count, when the displacement of modulation module block4 is defeated When outlet exports low level, counting module block3's count down to 1125 (i.e. 1.125ms), counting module block3 clear 0;Work as shifting When the output end output high level of position, counting module block3's count down to 2250 (i.e. 2.25ms), counting module block3 clear 0. The primary output a data of the every displacement of Shift outputs, shift count counter adds 1, and gives the number of displacement to state machine Block2, when shift count reaches 32, state machine machine enters ST6 state, and a frame infrared signal is waited to terminate, when getting When the infrared end signal of one frame, modulation module process terminates, and system is returned to ST0 state, prepares next modulation module.
Wherein, shift count counter is used to count the number of shift pulse rising edge, and each shift pulse rising edge adds 1. It indicates that 32 shift registers all remove 32 internal data from s Shift outputs when meter is to 33, completes once The modulation of 32 data.
The clock triggering end in contact hair device shift pulse of shift count counter (shift_cnt [5..0] in Fig. 1) Output, the output of 6 alternative data selector MUX21_8 of input terminal D connection, the end SEL of MUX21_8 connects equality comparator The output of Equal3, when the input terminal A connection status of Equal3 inputs state_in [2..0], the end B is 3 ' h0 of constant, when When state_in [2..0]=3 ' h0 (state ST0), Equal3 exports high level 1, i.e. the SEL=1 of MUX21_8 is then selected DATAB end data realizes that counter resets under ST0 state because of DATAB=6 ' h0.Not in ST0, SEL=0, MUX21_ The 8 selection end DATAA inputs, the end DATAA connects 6 alternatives and connects data selector MUX21_9 output end.The SEL of MUX21_7 The output of end connection equality comparator Equal4, as state_in [2..0]=3 ' h5 (state ST5), the high electricity of Equal4 output Flat 1, then the SEL=1 of MUX21_9, selects DATAB input, and displacement time is realized in the output of DATAB connection adder ADD0 at this time Counter adds 1 operation.
The wherein data terminal D of the data register (latch_in_data [31..0] as shown in figure 1) of state machine block2 32 alternative data selector MUX21_3 output ends are connected, the SEL termination of MUX21_3 resets reset input terminal, works as reset When=0, SEL=1, then MUX21_3 selects the input of the end DATAB, because of DATAB=32 ' h0000000, latch reset at this time.When When reset=1, SEL=0, MUX21_3 select the input of the end DATAA, and the end DATAA connects 32 alternative data selectors The output of MUX21_4.The output of the end the data select signal SEL connection equality comparator Equal1 of MUX21_4, Equal1 compare The input of device is 3 ' h2 of condition input signals state_in [2..0] and constant respectively, when the value and constant of state_in [2..0] When 3 ' h2 (i.e. state_in [2..0]=3 ' h2), comparator exports 1, then the SEL=1 of MUX21_4, the output end of MUX21_4 Select DATAB.Data input pin data_in [15..0] is through data conversion (atch_data_in [15..0], latch_data_ In [7..0], latch_data_in [15..8] negate after respectively with latch_data_in [7..0], latch_data_in [15..8] merging is combined into 32 data, and inputs as DATAB, so when in state ST2 (state_in [2..0]=3 ' H2), the SEL=1 of MUX21_4, and the end DATAB of MUX21_4 is selected when reset=0, at this time in the decline of clock clk_1us Along DATAB end data is latched into latch_in_data [31..0], the latch input of data is realized.When reset=1 is not (multiple Position) and, not at ST2 state (state_in is not equal to 3 ' h2), the SEL of MUX21_4, MUX21_3 are 0, and output all selects DATAA end data, because the end DATAA of MUX21_4 connects data latches, so latch is in each clk_1us clock at this time Failing edge realizes that data are kept.
The modulation circuit of the present embodiment can be modulated infrared remote-controlled signal, in design, the modulation circuit is embedding Enter to after microcontroller, as the modulation module in microcontroller dedicated for infrared remote control, does not need microcontroller and execute journey Sequence encodes, and improves the efficiency of microcontroller, when solving the modulation that existing infrared remote-controlled signal carries out Software Coding, occupies micro- The technical issues of memory source of controller, reduction microcontroller working efficiency.
The above are a kind of second embodiment of digital infrared remote-controlled signal modulation circuit provided by the embodiments of the present application, with It is down a kind of embodiment of IR remote controller provided by the embodiments of the present application.
IR remote controller in the present embodiment includes the coding circuit of the infrared remote-controlled signal of above-mentioned any embodiment.
The modulation circuit of the present embodiment can be modulated infrared remote-controlled signal, in design, the modulation circuit is embedding Enter to after microcontroller, as the modulation module in microcontroller dedicated for infrared remote control, does not need microcontroller and execute journey Sequence encodes, and improves the efficiency of microcontroller, when solving the modulation that existing infrared remote-controlled signal carries out Software Coding, occupies micro- The technical issues of memory source of controller, reduction microcontroller working efficiency.
The above are a kind of embodiments of IR remote controller provided by the embodiments of the present application, and the following are the embodiment of the present application offers A kind of modulator approach embodiment.
One of the present embodiment modulator approach, comprising:
When terminate obtain infrared remote-controlled signal process after, state machine control counting module to clock frequency division module provide when Clock signal is counted, and count value is obtained, and controls modulation time timing of the timing module to modulation module, obtains clocking value;
State machine controls modulation module, carries out the tune of a frame signal to infrared remote-controlled signal according to clocking value and count value System.
The modulation circuit of the present embodiment can be modulated infrared remote-controlled signal, in design, the modulation circuit is embedding Enter to after microcontroller, as the modulation module in microcontroller dedicated for infrared remote control, does not need microcontroller and execute journey Sequence encodes, and improves the efficiency of microcontroller, when solving the modulation that existing infrared remote-controlled signal carries out Software Coding, occupies micro- The technical issues of memory source of controller, reduction microcontroller working efficiency.
The above, above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although referring to before Embodiment is stated the application is described in detail, those skilled in the art should understand that: it still can be to preceding Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these It modifies or replaces, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution.

Claims (9)

1. a kind of digital infrared remote-controlled signal modulation circuit characterized by comprising clock frequency division module, counting module, tune Molding block, timing module and state machine;
The clock frequency division module, for being the state machine, the counting module, the timing module and the modulation module Clock signal is provided;
The counting module obtains count value for counting to the clock signal;
The modulation module, for according to the count value, by infrared remote-controlled signal to be modulated according to preset modulation type into Row modulation;
The timing module obtains clocking value for the modulation time timing to the modulation module;
The state machine, for controlling the count module after state machine terminates to obtain the infrared remote-controlled signal process Block count, the timing module timing are also used to control the modulation module according to the clocking value and believe the infrared remote control Number carry out a frame signal modulation.
2. digital infrared remote-controlled signal modulation circuit according to claim 1, which is characterized in that the preset modulation class Type is specially pulsewidth modulation.
3. digital infrared remote-controlled signal modulation circuit according to claim 2, which is characterized in that the modulation module, Specifically for carrying out the pulsewidth modulation of NEC infrared remote control data code to the infrared remote-controlled signal according to the count value.
4. digital infrared remote-controlled signal modulation circuit according to claim 1, which is characterized in that the clock division mould Block also provides for carrier signal;
The modulation module is also used to the modulated infrared remote-controlled signal and the carrier signal carrying out logical AND fortune It calculates, obtains Infrared Remote-Control Sending signal.
5. digital infrared remote-controlled signal modulation circuit according to claim 1, which is characterized in that the state machine, also For after the modulation module modulation terminates, the state machine to be adjusted to end state.
6. digital infrared remote-controlled signal modulation circuit according to claim 4, which is characterized in that the clock division mould Block is specifically used for, and the clock signal of 50MHz is divided into tri- kinds of clock signals of 1MHz, 38KHz, 2KHz, wherein the clock letter of 1MHz Number for state machine, counting module, modulation module clock signal, the clock signal of 38KHz is carrier signal, and the clock of 2KHz is believed Number be timing module clock signal.
7. digital infrared remote-controlled signal modulation circuit according to claim 1, which is characterized in that the state machine is specific By 7 kinds of states, respectively original state ST0, start read data status ST1, terminate read data status ST2, generates 9ms and draw Leading code state ST3 generates 4.5ms guidance code state ST4, data code modulation state ST5, waits end state ST6.
8. a kind of IR remote controller, which is characterized in that including digital infrared remote control described in any one of claims 1 to 7 Signal modulation circuit.
9. a kind of modulator approach is transported for digital infrared remote-controlled signal modulation circuit described in any one of claims 1 to 7 Row or work characterized by comprising
After terminating to obtain infrared remote-controlled signal process, state machine, which controls counting module, believes the clock that clock frequency division module provides It number is counted, obtains count value, and control modulation time timing of the timing module to modulation module, obtain clocking value;
The state machine controls modulation module, carries out one to the infrared remote-controlled signal according to the clocking value and the count value The modulation of frame signal.
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 true CN110246325A (en) 2019-09-17
CN110246325B 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 (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB9321816D0 (en) * 1993-10-22 1993-12-15 Wingate David Radio frequency switch
US20020060947A1 (en) * 2000-11-21 2002-05-23 Hitachi, Ltd. Semiconductor integrated circuit
CN101404113A (en) * 2008-11-06 2009-04-08 成都九洲电子信息系统有限责任公司 Method for implementing infrared remote control decoding by software in embedded system
US20100008404A1 (en) * 2006-10-03 2010-01-14 Commissariat A L'energie Atomique Space-time coding method for a multi-antenna system of the uwb pulse type
CN101887130A (en) * 2010-06-09 2010-11-17 中国人民解放军第二炮兵工程学院 Programmable navigational satellite spread spectrum sequence generator
CN104484992A (en) * 2014-12-31 2015-04-01 广州科技贸易职业学院 Infrared remote control decoder based on programmable logic device
CN105072068A (en) * 2015-08-27 2015-11-18 赵爽 Automatic carrier wave demodulation control circuit for short-distance wireless communication
CN107301444A (en) * 2017-05-25 2017-10-27 北京大学 A kind of ultrahigh frequency RFID coding circuit
CN108370247A (en) * 2015-10-29 2018-08-03 韦特里西提公司 Controller for wireless power system
CN108449109A (en) * 2018-05-16 2018-08-24 成都通量科技有限公司 A kind of radio frequency front-end devices are from control interface arrangement
CN109152128A (en) * 2017-06-16 2019-01-04 意法半导体股份有限公司 PWM mode generator circuit, corresponding device and method

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB9321816D0 (en) * 1993-10-22 1993-12-15 Wingate David Radio frequency switch
US20020060947A1 (en) * 2000-11-21 2002-05-23 Hitachi, Ltd. Semiconductor integrated circuit
US20100008404A1 (en) * 2006-10-03 2010-01-14 Commissariat A L'energie Atomique Space-time coding method for a multi-antenna system of the uwb pulse type
CN101404113A (en) * 2008-11-06 2009-04-08 成都九洲电子信息系统有限责任公司 Method for implementing infrared remote control decoding by software in embedded system
CN101887130A (en) * 2010-06-09 2010-11-17 中国人民解放军第二炮兵工程学院 Programmable navigational satellite spread spectrum sequence generator
CN104484992A (en) * 2014-12-31 2015-04-01 广州科技贸易职业学院 Infrared remote control decoder based on programmable logic device
CN105072068A (en) * 2015-08-27 2015-11-18 赵爽 Automatic carrier wave demodulation control circuit for short-distance wireless communication
CN108370247A (en) * 2015-10-29 2018-08-03 韦特里西提公司 Controller for wireless power system
CN107301444A (en) * 2017-05-25 2017-10-27 北京大学 A kind of ultrahigh frequency RFID coding circuit
CN109152128A (en) * 2017-06-16 2019-01-04 意法半导体股份有限公司 PWM mode generator circuit, corresponding device and method
CN108449109A (en) * 2018-05-16 2018-08-24 成都通量科技有限公司 A kind of radio frequency front-end devices are from control interface arrangement

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
CARLOS ALBERTO TEIXEIRA: "A State Machine Decoder for Phase Disposition Pulsewidth Modulation of Three-Phase Coupled-Inductor Semi-Bridge Converters", 《IEEE TRANSACTIONS ON INDUSTRY APPLICATIONS ( VOLUME: 52, ISSUE: 3, MAY-JUNE 2016)》 *
侯继红: "一种用CPLD构建红外遥控电路", 《广州大学学报》 *
杨萍: "基于FPGA的功放遥控控制系统的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
顾斌: "《数字电路EDA实用教程》", 31 July 2014 *

Also Published As

Publication number Publication date
CN110246325B (en) 2022-03-18

Similar Documents

Publication Publication Date Title
CN103748571B (en) For the method and apparatus utilizing convertible data encoding to carry out serial data transmission
CN103167698B (en) Intelligent scene control switch
US20120128091A1 (en) In-band generation of low-frequency periodic signaling
US9426082B2 (en) Low-voltage differential signaling or 2-wire differential link with symbol transition clocking
CN104158853A (en) Manchester-code-based power electronic conversion system communication control framework
CN110246325A (en) A kind of digital infrared remote-controlled signal modulation circuit and its modulator approach
CN103631182B (en) A kind of HART communication hardware circuit device and its communication means
CN101739541A (en) Decoder suitable for PIE coding
CN107301444A (en) A kind of ultrahigh frequency RFID coding circuit
CN101094275A (en) Retransmission device between radio frequency and infrared ray
CN104251536A (en) One-to-many current loop communication method and communication device
CN103595446A (en) Digital transmission method based on alternating current power line
CN104484992B (en) Infrared remote control decoding device based on PLD
TW201427349A (en) Synchronizing sequence data transmission method and circuit apparatus
CN201392538Y (en) Decoder suitable for PIE coding
CN104836763B (en) It is a kind of to improve the multi channel signals output system for passing letter rate
CN103647558A (en) Manchester encoder circuit
US20150052264A1 (en) Wireless expansion card and method for data storage
CN204440628U (en) wireless remote control coding chip and application circuit thereof
CN104616474A (en) Wireless remote control encoder chip and application circuit thereof
CN211506720U (en) Wireless intelligent switch control system
CN108365868B (en) Wireless serial port connecting device and data transmission method thereof
CN207397473U (en) A kind of wireless control box
CN203691395U (en) Radio frequency controller
CN204408453U (en) Realize the control system that bulb lamp is connected with mobile phone wireless

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