CN102411905A - Control method of air-conditioner display screen display frequency - Google Patents

Control method of air-conditioner display screen display frequency Download PDF

Info

Publication number
CN102411905A
CN102411905A CN2011103777437A CN201110377743A CN102411905A CN 102411905 A CN102411905 A CN 102411905A CN 2011103777437 A CN2011103777437 A CN 2011103777437A CN 201110377743 A CN201110377743 A CN 201110377743A CN 102411905 A CN102411905 A CN 102411905A
Authority
CN
China
Prior art keywords
data
led
led matrix
air
row
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
CN2011103777437A
Other languages
Chinese (zh)
Other versions
CN102411905B (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.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric Co Ltd
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 Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN201110377743.7A priority Critical patent/CN102411905B/en
Publication of CN102411905A publication Critical patent/CN102411905A/en
Application granted granted Critical
Publication of CN102411905B publication Critical patent/CN102411905B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)
  • Control Of El Displays (AREA)

Abstract

The invention relates to a control method of air-conditioner display screen display frequency. The method comprises the following steps: a. opening air-conditioner MCU interruption; b. an air-conditioner MCU establishes n data cache regions with length of m for an n*m dimension LED matrix; c. a line scanning data dwell vessel and a column scan data dwell vessel are established, and after being output, line scanning data and column scan data are converted into parallel data; d. scan driving timing time is set, and an interruption vector points to a corresponding interruption program; e. when executing the corresponding interruption program, the air-conditioner MCU carries out a bit shift operation of at least two data bits in each time, when outputting n+m bits series data, signal latch pulse level is changed, and the series data is converted into parallel data and is latched to complete display output of LED. According to the control method of the present invention, when employing air-conditioner display screens of LED matrix display and common MCU, in the context of not influencing normal operation of other interruption and main programs, scan refresh frequency of an LED display screen can be greatly raised, and program operation of the air-conditioner MCU is stable.

Description

The control method of air-conditioning display screen display frequency
Technical field
The present invention relates to the control method of air-conditioning display screen display frequency, control the method for LED matrix refreshing frequency specifically.
Background technology
At present, particularly on the air conditioner, generally adopt LCD (liquid crystal) or LED (light emitting diode) as display screen, at household electrical appliance to show relevant controlling parameters and operational factor.Because LCD itself can be not luminous, so must use backlight to illuminate picture, in some occasion, its brightness just can not reach user's needs, and lcd controller needs special chip to control, and perhaps needs MCU self to have dedicated control circuit, has relatively high expectations; LED display itself can be luminous, can overcome the shortcoming and defect of above-mentioned LCD screen, and brightness can free adjustment, and display frame and color can combination in any.In order to save cost of products, the MCU (microprocessor) that generally uses low price is as control chip, because this type MCU pin is fewer, needs to carry out the port expansion with the string and the conversion chip of models such as multi-disc such as SN74HC595 with the mode of cascade.Though LED does not need special chip to control, owing to adopt serial data transmission, just require MCU must have very high travelling speed, otherwise, the very difficult steady display that realizes display screen.
In the n * m dimension LED matrix of air-conditioning display screen, the line data line connects the negative pole of each LED respectively, and column data line connects the positive pole of each LED respectively, and the mode that said LED matrix is scanned can be divided into line scanning mode, column scan mode and full scan.Be characterized in:
The line scanning mode: output low level line by line, the row at the LED that need light place are then exported high level, other row output low level.Promptly concerning the LED that need are lighted, at LED negative pole input low level, and at the anodal input high level of LED.Except that the row that scans, other row is all exported high level, and this scan mode can make m LED on the row that scans all lighted at every turn.
The column scan mode: by row output high level, the row at the LED that need light place, output low level then, other line output high level.Except that the row that scan, other is listed as equal output low level, and this scan mode can make the n that lists LED who scans all lighted at every turn.
Full scan: each LED is scanned, and each has only 1 LED to be lighted constantly.Export a behavior low level each time since the 1st row, other each behavior high level scans each row since first row simultaneously, when the LED lamp that runs into the place row need be lighted, and this row output high level, otherwise output low level, other is listed as equal output low level.It is thus clear that the LED lamp that the row that scans is corresponding with the infall of the row that scan is selected, can be lighted.Between at regular intervals after, scan next column again, after all column scans are intact, scan next line again, scan each row once more by same mode.After all line scannings are intact, scan by same mode since the 1st row again.This scan mode needs to consume the extra MCU time.
The circuit structure of expanding the I/O mouth of MCU with the mode of cascade with two strings and conversion chip is an example, the wherein line scanning of the LED matrix of a slice string and conversion chip control n * m dimension, another sheet string and the scanning of conversion chip control LED matrix column.On every string and conversion chip, has shift pulse input end (SRCLK), serial data input end (SI), signal latch input end (RCLK).Its scanning sequence is after the timing of gated sweep is interrupted taking place; In the interrupt routine of correspondence; Each low level or high level (each shift pulse is made up of a low level and a high level) of only exporting a shift pulse; After accumulative total was exported n+m shift pulse, under the rising edge control of signal latch, first string and conversion chip latched after will converting parallel data into from the serial data of serial data input end input; Parallel data is transferred to the also serial data input pin of conversion chip of second string through the pin of first string and conversion chip, the demonstration of control LED matrix.When adopting column scan; Owing to will carry out shifting function to each serial data; The shift pulse input end need be exported the low level of certain width and the signal waveform of high level, and needs to accomplish in twice interruption of same timer respectively the output of control shift pulse.In order to accomplish the m column scan, every row need be exported and could change the signal latch input end into high level by low level output after m+n the serial data and export simultaneously, latch signal is provided and latchs for serial data converts parallel data into.Then when the display frequency of display screen is fs, during the column scan mode, the sweep frequency that needs MCU control shift pulse is f1=2 * (n+m) * m * fs, and during the line scanning mode, the sweep frequency of MCU control shift pulse then is f2=2 * (n+m) * n * fs.The sweep frequency of MCU control shift pulse is higher during the full scan mode, for f3=2 * (n+m) * n * m * fs, does not generally consider.For line scanning and column scan, work as n=8, during m=8; This moment f1=f2=256 * fs, during between 80~100Hz, f1 and f2 are all between 20480Hz~25600Hz at display screen sweep frequency fs; Sweep frequency is very high; And corresponding sweep time between 39us~49us, the timer timing that requires gated sweep is between 39us~49us, the timing scan time is quite short.MCU should accomplish the execution of timer interrupt routine in very short timing; Also to accomplish the execution of other interrupt routine and other master routine, comprise the running of remote controllers reception, keyboard scan, indoor and outdoor machine communication, indoor fan, indoor stepper motor running etc.Because sweep frequency is very high; The timer of gated sweep frequency will inevitably frequently get into its interrupt routine; Cause other interrupt routine and other program not to carry out timely, influence the execution that the telepilot reception waits other interrupt routine and master routine, make program out of control.
Summary of the invention
To above-mentioned problem; The invention provides a kind of control method of air-conditioning display screen display frequency; When adopting the LED matrix to show and common MCU during as the air-conditioning display screen of control chip; Under the situation that does not influence the normal operation of other interruption and master routine, increase substantially the scanning refreshing frequency of LED display.
The control method of air-conditioning display screen display frequency of the present invention comprises step:
A. after the pin that air-conditioning MCU is used for signal latch pulse, shift pulse and serial data is initialized as output port, the timing of timer is set, opens again and regularly interrupt interrupting with total according to the sweep frequency of display screen;
B. according to the LED matrix circuit structure of display screen n * m; Air-conditioning MCU sets up n data buffer area, and each data length is the m position, and the LED in the LED matrix is corresponding one by one with data buffer area; Through the continuous circulant solution code data of master routine; Video data in each data buffer area of real-time update, wherein n is the line number of LED matrix, m is a LED matrix column number;
C. confirm the scan mode of display screen based on circuit system; Set up line scanning data register and column scan data register; Make the negative pole of a LED in the corresponding LED matrix of each bit data in the line scanning data register, the positive pole of a LED in the corresponding LED matrix of each the bit data in the column scan data register, and confirm the data type in said line scanning data register and the column scan data register; After line scanning data and column scan data are exported through the pin of the serial data of said air-conditioning MCU by the register separately; Under the control of string and conversion chip, convert parallel data into, in order to row/row demonstration of control LED matrix;
D. use the turntable driving timer of the inner arbitrary timer of air-conditioning MCU, the timing of said turntable driving timer is set as display screen, and its corresponding interrupt vector of initialization, make said interrupt vector point to corresponding interrupt routine;
E. the timing interruption when said turntable driving timer takes place; When air-conditioning MCU carries out corresponding interrupt routine; According to row/column scan order that the circuit system structure is confirmed,, carry out each at least 2 maximum n+m data bit shifting function according to the shift pulse and the data latching control requirement of string and conversion chip; After accumulation output n+m bit serial data; Change the signal latch impulse level, after converting serial data into parallel data under the rising edge signal controlling of signal latch pulse, latch, accomplish the demonstration of the LED of said line scanning data and column scan data and export.
Control method of the present invention has shortened the time of pulse output greatly; Make in timing interval break period △ T; Only with the wherein output of the time control shift pulse of a part; Scanning in order to control display screen shows to also have and can carry out master routine and other interrupt routine a large amount of excess times, realizes the high frequency steady display of LED.When each timer interrupt routine is exported behind n+m the shift pulse behind the latch data continuously; Calculate according to the column scan mode; The sweep frequency of MCU control shift pulse (SRCLK) is f1=m * fs, and to the line scanning mode, the sweep frequency of MCU control shift pulse (SRCLK) then is f2=n * fs.Sweep frequency has all reduced 2 * (n+m) doubly, and trace interval has increased 2 * (n+m) doubly.Since each regularly interruption n+m pulse of output continuously, so each burst length is very short, and the time of m+n pulse adds up also very short.For example the sweep frequency when screen is 300Hz, and n=8 during m=8, is approximately 152 microseconds if export the time of 16 pulses continuously.And the corresponding timing interval break period △ T of 300Hz is 416.6 microseconds, also has the time of 264.6 microseconds can carry out other program.Only export a shift pulse high level or low level line scanning and column scan for traditional at every turn; Work as n=8, during m=8, the timing interval break period △ T that requires timer is between 39us~49us; In the short like this time; Will export shift pulse on the one hand, the remaining time just can go to carry out other programs, this shows that method of the present invention significantly increases the regularly interval of break period.
Concrete, the data configuration of setting up among the step c in line scanning data register and the column scan data register comprises step:
C1. initialization scan number according to the determined scan mode of circuit system, scans the LED matrix according to sweep number, to the corresponding level of the output of the row and column in the LED matrix;
C2. the sweep number of every row or every row is corresponding data are put into the corresponding every row or the data bit of every row successively;
C3. the row of confirming based on the circuit system structure/column scan in proper order; The data that the pin of signal latch pulse, shift pulse and serial data through air-conditioning MCU under the control of timer interrupt program forms the c2 step output in the latch of string and conversion chip and latch, and up to the data that the c2 step forms all output to string and conversion chip from air-conditioning MCU after, carry out downwards again;
C4. sweep number adds up 1, is back to step c2 and carries out, and when sweep number>LED matrix boundaries, is back to the c1 step and carries out next round scanning, up to complete LED matrix of scanning traversal.LED matrix column when said LED matrix boundaries is meant to the line scanning mode is counted m; During for the column scan mode, the line number n of LED matrix.
Concrete, the execution in step of air-conditioning MCU comprises among the step e:
E1. signal latch pulse port output low level;
E2. shift pulse port output low level; Height/the low level of serial data port output is identical with the level that the data lowest order that is scanned is represented; Scan-data moves to right 1, afterwards shift pulse port output high level with the data shift of serial data port in string and conversion chip;
E3. after carrying out continuously at least 2 e2 steps, if the borderline phase of said execution number of times and LED matrix coupling, execution in step e4 or withdraw from interrupt routine and wait for next time and regularly interrupt taking place after execution in step e4; If the border of said execution number of times<LED matrix is then withdrawed from interrupt routine and is waited for timing interruption generation next time continued execution in step e3; The border of said execution number of times<LED matrix is: under the column scan mode, said execution number of times equals line number n; Under the scan mode of being expert at, said execution number of times equals columns m.
E4. shift pulse port output low level; Height/the low level of serial data port output is identical with the level that the data lowest order that is scanned is represented; Scan-data moves to right 1, afterwards shift pulse port output high level with the data shift of serial data port in string and conversion chip;
E5. after at least 2 e4 steps of continuous execution, if the border of said execution number of times<LED matrix is then withdrawed from interrupt routine and waited for timing interruption generation next time continued execution in step e5; If the borderline phase of said execution number of times and LED matrix coupling, signal latch pulse port output high level, string and conversion chip latch serial data, and the parallel data after will change outputs to the row of LED matrix correspondence/list, and withdraw from interrupt routine at last.The border of said execution number of times<LED matrix is: under the scan mode of being expert at, said execution number of times equals line number n; Under the column scan mode, said execution number of times equals columns m.
Preferably, the number of times of continuous execution in step e4 among the number of times of continuous execution in step e2 and the step e5 among the step e3, the different boundary with the LED matrix is complementary respectively.The described coupling with different boundary is meant: under the column scan mode, the number of times of continuous execution in step e2 is no more than line number n among the step e3, and the number of times of continuous execution in step e4 is no more than columns m among the step e5; Under the scan mode of being expert at, the number of times of continuous execution in step e2 is no more than columns m among the step e3, and the number of times of continuous execution in step e4 is no more than line number n among the step e5.
Concrete, confirm that the data type step in said line scanning data register of step c and the column scan data register is:
Ca. when LED number≤8 of all row in the LED matrix; Data type in the line scanning data register is that length is 8 no symbol-byte type (unsigned char); When LED number>8 of all row in the LED matrix, the data type in the line scanning data register is signless 16 integers/weak point shaping (unsigned int/unsigned short) or 32 longs (unsigned long);
Cb. when LED number≤8 of all row in the LED matrix; Data type in the column scan data register is that length is 8 no symbol-byte type (unsigned char); When LED number>8 of all row in the LED matrix, the data type in the column scan data register is signless 16 integers/weak point shaping (unsigned int/unsigned short) or 32 longs (unsigned long).
Preferably, the each displacement n+m data bit of the data bit shifting function described in the step e.
Test is learnt; The control method of air-conditioning display screen display frequency of the present invention; When adopting the LED matrix to show and common MCU during as the air-conditioning display screen of control chip; Under the situation that does not influence the normal operation of other interruption and master routine, can increase substantially the scanning refreshing frequency of LED display, make that the program run of air-conditioning MCU is stable.
Below in conjunction with the embodiment of accompanying drawing illustrated embodiment, foregoing of the present invention is remake further detailed description.But should this be interpreted as that the scope of the above-mentioned theme of the present invention only limits to following instance.Do not breaking away under the above-mentioned technological thought situation of the present invention, various replacements or change according to ordinary skill knowledge and customary means are made all should comprise within the scope of the invention.
Description of drawings
Fig. 1 is the circuit system structural representation of the control method of air-conditioning display screen display frequency of the present invention.
Embodiment
The control method of air-conditioning display screen display frequency of the present invention, the circuit system structure is as shown in Figure 1, and the LED of air-conditioning display screen adopts the matrix cross-connection system of n * m dimension (OK * row), and 3 common i/o ports through air-conditioning MCU are with two groups of strings and conversion chip SN74HC595 connection; Parallel data is through the pin Qa of SN74HC595, Qb, Qc; Qd, Qe, Qf; Qg, Qh ', wherein Qh ' is the pin that when cascade, connects two SN74HC595 serial data inputs.Cascade through SN74HC595 expands to the n+m position with delivery outlet; Wherein process negative-phase sequence curent amplifying circuit 1 back, one group of n position connects the negative electrode of LED, is used for the line scanning control of LED matrix, and another group m passes through the anode that current amplification circuit 2 backs connect LED in the position; Be used for LED matrix column scan control; 3 I/O ports of SN74HC595 are: SRCLK is the shift pulse input end, and SI is the serial data input end, and RCLK is the signal latch control input end.
Control method of the present invention comprises step:
A. after pin RCLK, SRCLK, the SI that air-conditioning MCU is respectively applied for signal latch pulse, shift pulse and serial data is initialized as output port, the timing of timer is set, opens again and regularly interrupt interrupting with total according to the sweep frequency of display screen;
B. according to the LED matrix circuit structure of display screen n * m; Air-conditioning MCU sets up n data buffer area DATA0~DATAn-1; Each data length is the m position; And the light on and off state of the LED in the LED matrix is corresponding one by one with data buffer area, corresponding data buffer data bit is 1 when LED is bright, corresponding data buffer data bit was 0 when LED went out.Through the continuous circulant solution code data of master routine, the video data in each data buffer area of real-time update, wherein n and m are positive integer;
C. confirm the scan mode of display screen according to circuit system; Set up line scanning data register and column scan data register; Make the negative pole of a LED in corresponding LED matrix of each bit data of line scanning data SCAN2 in the line scanning data register, the positive pole of a LED in the corresponding LED matrix of each bit data of the column scan data SCAN1 in the column scan data register.As shown in Figure 1, the bit position of column scan data SCAN1 press D0, D1 ... Di ... the order of Dm-1 is arranged.Confirm the data type in said line scanning data register and the column scan data register; After line scanning data SCAN2 and column scan data SCAN1 are exported through the pin of the serial data of said air-conditioning MCU by the register separately; Under the control of string and conversion chip SN74HC595; Convert parallel data into, in order to row/row demonstration of control LED matrix.The data configuration of wherein setting up in line scanning data register and the column scan data register comprises step:
C1. initialization scan i is 0, according to the determined scan mode of circuit system, according to sweep number i the LED matrix is scanned, to the corresponding level of the output of the row and column in the LED matrix;
C2. the sweep number i of every row or every row is corresponding data are put into the corresponding every row or the data bit of every row successively.The LED of principle for needs are lighted, its negative electrode input low level, the anode input high level, concrete mode is:
Column scan: because line scan signals through hardware negative-phase sequence curent amplifying circuit 1 after, high level 1 signal has become low level 0 signal, and during low level 0 signal among the LED no current flow through; Therefore according to the currency of sweep number i; The i bit data of buffer area DATA0 is put into the D0 position of line scanning data SCAN2, the i bit data of buffer area DATA1 is put into the D1 position of line scanning data SCAN2 ...; The i bit data of buffer area DATAi is put into the Di position of line scanning data SCAN2; Dn-1 position up to the i bit data of DATAn-1 being put into line scanning data SCAN2 has formed line scanning data SCAN2 with this, and for column scan data SCAN1; Then sequence number is that the bit position of i is 1; Be SCAN1.biti=1 (the LED data buffer that just will light is 1, and the LED positive pole needs input high level 1), all the other each bit bit data are 0 entirely among the column scan data SCAN1;
Line scanning: based on the currency of sweep number i; Buffer area DATAi is put into column scan data SCAN1 form the column scan data flow, and for line scanning data SCAN2, then sequence number is that the bit position of i is 1; Be SCAN2.biti=1, all the other each bit bit data are 0 entirely among the line scanning data SCAN2;
Full scan: the principle similar with line scanning according to above-mentioned column scan forms column scan data SCAN1 and line scanning data SCAN2.
C3. the row of confirming based on the circuit system structure/column scan in proper order; The data that signal latch pulse port RCLK, shift pulse port SRCLK and serial data port SI through air-conditioning MCU under the control of timer interrupt program forms the c2 step output in the latch of string and conversion chip SN74HC595 and latch, and up to the data that the c2 step forms all output to string and conversion chip SN74HC595 from air-conditioning MCU after, carry out downwards again;
C4. sweep number i adds up 1, is back to step c2 and carries out, and when sweep number i>LED matrix boundaries, is back to the c1 step and carries out next round scanning, up to complete LED matrix of scanning traversal.LED matrix column when said LED matrix boundaries is meant to the line scanning mode is counted m; During for the column scan mode, the line number n of LED matrix.
Confirm that the data type step in said line scanning data register and the column scan data register is:
Ca. when LED number≤8 of all row in the LED matrix; Data type in the line scanning data register is that length is 8 no symbol-byte type (unsigned char); When LED number>8 of all row in the LED matrix, the data type in the line scanning data register is signless 16 integers/weak point shaping (unsigned int/unsigned short) or 32 longs (unsigned long);
Cb. when LED number≤8 of all row in the LED matrix; Data type in the column scan data register is that length is 8 no symbol-byte type (unsigned char); When LED number>8 of all row in the LED matrix, the data type in the column scan data register is signless 16 integers/weak point shaping (unsigned int/unsigned short) or 32 longs (unsigned long).
D. use the turntable driving timer of the inner arbitrary timer of air-conditioning MCU, the timing of said turntable driving timer is set as display screen, and its corresponding interrupt vector of initialization, make said interrupt vector point to corresponding interrupt routine;
E. the timing interruption when said turntable driving timer takes place; When air-conditioning MCU carries out corresponding interrupt routine; The row definite/column scan order according to the circuit system structure; According to shift pulse and the data latching control requirement of string and conversion chip SN74HC595, carry out each at least 2 maximum n+m data bit shifting function, n+m data of preferred each displacement.After accumulation output n+m bit serial data; Change the signal latch impulse level; After converting serial data into parallel data under the rising edge signal controlling of signal latch pulse, latch, accomplish the demonstration output of the LED of said line scanning data SCAN2 and column scan data SCAN1.Concrete, the execution in step of air-conditioning MCU comprises:
E1. signal latch pulse port RCLK output low level;
E2. shift pulse port SRCLK output low level; Height/the low level of serial data port SI output is identical with the level that the data lowest order that is scanned is represented; Scan-data moves to right 1, afterwards shift pulse port SRCLK output high level with the data shift of serial data port SI in string and conversion chip SN74HC595;
E3. after carrying out continuously at least 2 e2 steps, if the borderline phase of said execution number of times and LED matrix coupling, execution in step e4 or withdraw from interrupt routine and wait for next time and regularly interrupt taking place after execution in step e4; If the border of said execution number of times<LED matrix is then withdrawed from interrupt routine and is waited for timing interruption generation next time continued execution in step e3; The border of said execution number of times<LED matrix is: under the column scan mode, said execution number of times is no more than line number n, preferably equals line number n; Under the scan mode of being expert at, said execution number of times is no more than columns m, preferably equals columns m.
E4. shift pulse port SRCLK output low level; Height/the low level of serial data port SI output is identical with the level that the data lowest order that is scanned is represented; Scan-data moves to right 1, afterwards shift pulse port SRCLK output high level with the data shift of serial data port SI in string and conversion chip SN74HC595;
E5. after at least 2 e4 steps of continuous execution, if the border of said execution number of times<LED matrix is then withdrawed from interrupt routine and waited for timing interruption generation next time continued execution in step e5; If the borderline phase of said execution number of times and LED matrix coupling; Signal latch pulse port RCLK exports high level; String and conversion chip SN74HC595 latch serial data, and the parallel data after will change outputs to the row of LED matrix correspondence/list, and withdraw from interrupt routine at last.The border of said execution number of times<LED matrix is: under the scan mode of being expert at, said execution number of times is no more than line number n, preferably equals line number n; Under the column scan mode, said execution number of times is no more than columns m, preferably equals columns m.
Control method of the present invention has shortened the time of pulse output greatly; Make in timing interval break period △ T; Only with the wherein output of the time control shift pulse of a part; Scanning in order to control display screen shows to also have and can carry out master routine and other interrupt routine a large amount of excess times, realizes the high frequency steady display of LED.When each timer interrupt routine is exported behind n+m the shift pulse behind the latch data continuously; Calculate according to the column scan mode; The sweep frequency of MCU control shift pulse is f1=m * fs, and to the line scanning mode, the sweep frequency of MCU control shift pulse then is f2=n * fs.Sweep frequency has all reduced 2 * (n+m) doubly, and trace interval has increased 2 * (n+m) doubly.Since each regularly interruption n+m pulse of output continuously, so each burst length is very short, and the time of m+n pulse adds up also very short.For example the sweep frequency when screen is 300Hz, and n=8 during m=8, is approximately 152 microseconds if export the time of 16 pulses continuously.And the corresponding timing interval break period △ T of 300Hz is 416.6 microseconds, also has the time of 264.6 microseconds can carry out other program, can realize the demonstration output of display screen up to the 300Hz frequency.Only export a shift pulse high level or low level line scanning and column scan for traditional at every turn; Work as n=8, during m=8, the timing interval break period △ T that requires timer is between 39us~49us; In the short like this time; Will export shift pulse on the one hand, the remaining time just can go to carry out other programs, this shows that method of the present invention significantly increases the regularly interval of break period.

Claims (6)

1. the control method of air-conditioning display screen display frequency is characterized by and comprises step:
A. after the pin that air-conditioning MCU is used for signal latch pulse, shift pulse and serial data is initialized as output port, the timing of timer is set, opens again and regularly interrupt interrupting with total according to the sweep frequency of display screen;
B. according to the LED matrix circuit structure of display screen n * m; Air-conditioning MCU sets up n data buffer area, and each data length is the m position, and the LED in the LED matrix is corresponding one by one with data buffer area; Through the continuous circulant solution code data of master routine; Video data in each data buffer area of real-time update, wherein n is the line number of LED matrix, m is a LED matrix column number;
C. confirm the scan mode of display screen based on circuit system; Set up line scanning data register and column scan data register; Make the negative pole of a LED in the corresponding LED matrix of each bit data in the line scanning data register, the positive pole of a LED in the corresponding LED matrix of each the bit data in the column scan data register, and confirm the data type in said line scanning data register and the column scan data register; After line scanning data and column scan data are exported through the pin of the serial data of said air-conditioning MCU by the register separately; Under the control of string and conversion chip, convert parallel data into, in order to row/row demonstration of control LED matrix;
D. use the turntable driving timer of the inner arbitrary timer of air-conditioning MCU, the timing of said turntable driving timer is set as display screen, and its corresponding interrupt vector of initialization, make said interrupt vector point to corresponding interrupt routine;
E. the timing interruption when said turntable driving timer takes place; When air-conditioning MCU carries out corresponding interrupt routine; According to row/column scan order that the circuit system structure is confirmed,, carry out each at least 2 maximum n+m data bit shifting function according to the shift pulse and the data latching control requirement of string and conversion chip; After accumulation output n+m bit serial data; Change the signal latch impulse level, after converting serial data into parallel data under the rising edge signal controlling of signal latch pulse, latch, accomplish the demonstration of the LED of said line scanning data and column scan data and export.
2. the control method of air-conditioning display screen display frequency as claimed in claim 1 is characterized by: the data configuration of setting up among the step c in line scanning data register and the column scan data register comprises step:
C1. initialization scan number according to the determined scan mode of circuit system, scans the LED matrix according to sweep number, to the corresponding level of the output of the row and column in the LED matrix;
C2. the sweep number of every row or every row is corresponding data are put into the corresponding every row or the data bit of every row successively;
C3. the row of confirming based on the circuit system structure/column scan in proper order; The data that the pin of signal latch pulse, shift pulse and serial data through air-conditioning MCU under the control of timer interrupt program forms the c2 step output in the latch of string and conversion chip and latch, and up to the data that the c2 step forms all output to string and conversion chip from air-conditioning MCU after, carry out downwards again;
C4. sweep number adds up 1, is back to step c2 and carries out, and when sweep number>LED matrix boundaries, is back to the c1 step and carries out next round scanning, up to complete LED matrix of scanning traversal.
3. the control method of air-conditioning display screen display frequency as claimed in claim 1 is characterized by: the execution in step of air-conditioning MCU comprises among the step e:
E1. signal latch pulse port output low level;
E2. shift pulse port output low level; Height/the low level of serial data port output is identical with the level that the data lowest order that is scanned is represented; Scan-data moves to right 1, afterwards shift pulse port output high level with the data shift of serial data port in string and conversion chip;
E3. after carrying out continuously at least 2 e2 steps, if the borderline phase of said execution number of times and LED matrix coupling, execution in step e4 or withdraw from interrupt routine and wait for next time and regularly interrupt taking place after execution in step e4; If the border of said execution number of times<LED matrix is then withdrawed from interrupt routine and is waited for timing interruption generation next time continued execution in step e3;
E4. shift pulse port output low level; Height/the low level of serial data port output is identical with the level that the data lowest order that is scanned is represented; Scan-data moves to right 1, afterwards shift pulse port output high level with the data shift of serial data port in string and conversion chip;
E5. after at least 2 e4 steps of continuous execution, if the border of said execution number of times<LED matrix is then withdrawed from interrupt routine and waited for timing interruption generation next time continued execution in step e5; If the borderline phase of said execution number of times and LED matrix coupling, signal latch pulse port output high level, string and conversion chip latch serial data, and the parallel data after will change outputs to the row of LED matrix correspondence/list, and withdraw from interrupt routine at last.
4. the control method of air-conditioning display screen display frequency as claimed in claim 3 is characterized by: the number of times of continuous execution in step e4 among the number of times of continuous execution in step e2 and the step e5 among the step e3, the different boundary with the LED matrix is complementary respectively.
5. like the control method of the described air-conditioning display screen of one of claim 1 to 4 display frequency, it is characterized by: confirm that the data type step in said line scanning data register of step c and the column scan data register is:
Ca. when LED number≤8 of all row in the LED matrix; Data type in the line scanning data register is that length is 8 no symbol-byte type; When LED number>8 of all row in the LED matrix, the data type in the line scanning data register is signless 16 integers/weak point shaping or 32 longs;
Cb. when LED number≤8 of all row in the LED matrix; Data type in the column scan data register is that length is 8 no symbol-byte type; When LED number>8 of all row in the LED matrix, the data type in the column scan data register is signless 16 integers/weak point shaping or 32 longs.
6. like the control method of the described air-conditioning display screen of one of claim 1 to 4 display frequency, it is characterized by: the each displacement n+m data bit of the data bit shifting function described in the step e.
CN201110377743.7A 2011-11-24 2011-11-24 Control method of air-conditioner display screen display frequency Active CN102411905B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110377743.7A CN102411905B (en) 2011-11-24 2011-11-24 Control method of air-conditioner display screen display frequency

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110377743.7A CN102411905B (en) 2011-11-24 2011-11-24 Control method of air-conditioner display screen display frequency

Publications (2)

Publication Number Publication Date
CN102411905A true CN102411905A (en) 2012-04-11
CN102411905B CN102411905B (en) 2014-03-12

Family

ID=45913961

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110377743.7A Active CN102411905B (en) 2011-11-24 2011-11-24 Control method of air-conditioner display screen display frequency

Country Status (1)

Country Link
CN (1) CN102411905B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103077678A (en) * 2013-01-05 2013-05-01 王知康 Method for controlling LED (light emitting diode) display brightness by high-frequency distributed pulses
CN103996375A (en) * 2014-05-13 2014-08-20 广东威创视讯科技股份有限公司 Method and circuit for improving refresh rate of LED display screen
CN104575366A (en) * 2013-10-15 2015-04-29 昆山工研院新型平板显示技术中心有限公司 Scanning driving circuit structure and OLED (organic light-emitting display)
CN108766343A (en) * 2018-07-18 2018-11-06 深圳市富满电子集团股份有限公司 A kind of LED display row scanning control system and its control method
CN112821889A (en) * 2019-11-15 2021-05-18 京东方科技集团股份有限公司 Output control circuit, data transmission method and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4323896A (en) * 1980-11-13 1982-04-06 Stewart-Warner Corporation High resolution video display system
CN101937643A (en) * 2010-09-21 2011-01-05 深圳市中庆微科技开发有限公司 Method for evenly distributing and increasing display frequency
CN201868068U (en) * 2010-11-03 2011-06-15 深圳信息职业技术学院 Driving circuit of photoelectric device and driving controller of driving circuit

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4323896A (en) * 1980-11-13 1982-04-06 Stewart-Warner Corporation High resolution video display system
CN101937643A (en) * 2010-09-21 2011-01-05 深圳市中庆微科技开发有限公司 Method for evenly distributing and increasing display frequency
CN201868068U (en) * 2010-11-03 2011-06-15 深圳信息职业技术学院 Driving circuit of photoelectric device and driving controller of driving circuit

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103077678A (en) * 2013-01-05 2013-05-01 王知康 Method for controlling LED (light emitting diode) display brightness by high-frequency distributed pulses
CN104575366A (en) * 2013-10-15 2015-04-29 昆山工研院新型平板显示技术中心有限公司 Scanning driving circuit structure and OLED (organic light-emitting display)
CN104575366B (en) * 2013-10-15 2017-04-19 昆山工研院新型平板显示技术中心有限公司 Scanning driving circuit structure and OLED (organic light-emitting display)
CN103996375A (en) * 2014-05-13 2014-08-20 广东威创视讯科技股份有限公司 Method and circuit for improving refresh rate of LED display screen
CN103996375B (en) * 2014-05-13 2016-06-29 广东威创视讯科技股份有限公司 Improve method and the circuit of LED display refresh rate
CN108766343A (en) * 2018-07-18 2018-11-06 深圳市富满电子集团股份有限公司 A kind of LED display row scanning control system and its control method
CN112821889A (en) * 2019-11-15 2021-05-18 京东方科技集团股份有限公司 Output control circuit, data transmission method and electronic equipment
CN112821889B (en) * 2019-11-15 2024-02-20 京东方科技集团股份有限公司 Output control circuit, data transmission method and electronic equipment

Also Published As

Publication number Publication date
CN102411905B (en) 2014-03-12

Similar Documents

Publication Publication Date Title
CN102411905A (en) Control method of air-conditioner display screen display frequency
CN100543821C (en) Driving circuit, display device reach in order to adjust the method for picture update rate
CN203910234U (en) An LED power supply control circuit
CN102006696B (en) Light-emitting diode backlight drive circuit, method and constant current source thereof
CN103971642B (en) LED display driving method and LED power control circuit
CN105206228B (en) The LED scanning arrays driving chip and adjusting method that brightness linear change is voluntarily adjusted
CN106710523B (en) The driving method of organic light emitting display
CN102044216A (en) LED display system and LED driving circuits
CN100555034C (en) Liquid crystal indicator and driving method thereof
CN106297630A (en) Scan drive circuit and there is the flat display apparatus of this circuit
CN201853466U (en) LED (light-emitting diode) display screen control system
CN104952408A (en) Source electrode drive module and liquid crystal panel
CN204834004U (en) High accuracy constant current LED driver chip of built -in multichannel scanning pulse density modulation control
CN203288216U (en) Energy-efficient LED screen dynamic-scanning apparatus and energy-efficient LED screen
CN110708793B (en) Cascade control method of cascade equipment, cascade equipment and illumination system
CN202771775U (en) OLED multi-screen driving structure
CN102215620B (en) Device and method for driving light-emitting diode (LED)
CN103280184A (en) Dynamic scanning device of energy-saving LED screen, energy-saving LED screen and dynamic scanning method
CN217640623U (en) LED panel and LCD display
CN202799283U (en) Light emitting diode driving circuit and driving system
CN207264755U (en) LED display
CN103839505A (en) Liquid crystal color display control circuit and air conditioner
CN201570228U (en) Led dot matrix display board
CN203760051U (en) Line-scanning constant-current drive control chip for LED (light emitting diode) high-density display screen
CN111511062A (en) Lamp, lamp control system and method

Legal Events

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