CN1797241A - Method for controlling clock in fluoresent display - Google Patents

Method for controlling clock in fluoresent display Download PDF

Info

Publication number
CN1797241A
CN1797241A CN 200410099017 CN200410099017A CN1797241A CN 1797241 A CN1797241 A CN 1797241A CN 200410099017 CN200410099017 CN 200410099017 CN 200410099017 A CN200410099017 A CN 200410099017A CN 1797241 A CN1797241 A CN 1797241A
Authority
CN
China
Prior art keywords
display
quarter
bell
initialization
clock
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.)
Pending
Application number
CN 200410099017
Other languages
Chinese (zh)
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.)
SANXING VACUUM ELECTRONIC DEVICE CO Ltd SHANGHAI
Original Assignee
SANXING VACUUM ELECTRONIC DEVICE CO Ltd SHANGHAI
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 SANXING VACUUM ELECTRONIC DEVICE CO Ltd SHANGHAI filed Critical SANXING VACUUM ELECTRONIC DEVICE CO Ltd SHANGHAI
Priority to CN 200410099017 priority Critical patent/CN1797241A/en
Publication of CN1797241A publication Critical patent/CN1797241A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a method for controlling a fluorescent display clock, comprising the steps of: (1) MCU initialization; (2) data memory initialization; (3) clock system initialization; (4) running a main program of the clock system; (5) running clock display subprograms. The invention uses microprocessor to control clock chip and display drive chip by the above 5 steps, to make time, date and related icons displayed on a vacuum fluorescent display screen and be able to control display brightness. The invention further realizes an alarming function of the fluorescent display clock.

Description

The control method of clock in fluoresent display
Technical field
The present invention relates to a kind of display control method of digital dock, relate to a kind of control method of clock in fluoresent display in particular.
Background technology
Digital dock in the market has the liquid crystal display clock, and this clock is because LCDs itself has shortcomings such as environmental suitability is poor, the visual angle is little, brightness is low.Vacuum fluorescent display screen (VFD) is widely used as the function display unit of household electrical appliance and commercial unit, has that environmental adaptation is wide, the visual angle is big, the brightness advantages of higher.But at present vacuum fluorescent display screen not have independent as clock and have alarm clock function and the example that is employed.The technological difficulties that clock in fluoresent display is used are time, date and relevant icon to be shown on vacuum fluorescent display screen, and can control display brightness by microprocessor control clock chip and display driver chip.
Summary of the invention
Technical matters to be solved by this invention provides a kind of control method of clock in fluoresent display, this method can be controlled clock chip and display driver chip by microprocessor, time, date and relevant icon is shown on vacuum fluorescent display screen also can control display brightness.
The technical solution used in the present invention: a kind of control method of clock in fluoresent display comprises the following steps: (1) MCU initialization:
Timer 0 is set to mode 2, and the 200us circulation starts timer 0, and the interruption of opening timer 0;
Timer 1 is set to mode 2, and the 250us circulation starts timer 1, and the interruption of opening timer 1;
Timer 2 is set to mode 0, starts timer 2, and the interruption of opening timer 0;
Serial port setting is a mode 0, displacement synchronously, baud rate fOSC/12;
Put timer 0 for high interrupt priority, open all interruptions, forbid that serial ports receives;
(2) data-carrier store initialization:
The Displaying timer initialization;
The control signal initialization;
The brightness initialization;
The quarter-bell initialization;
The night mode initialization;
The video data initialization;
(3) clock system initialization:
The reading and writing pattern of RTC is set;
Write time, date initial value;
4 grades of brightness are set;
Century and age are set;
Call next step master routine;
(4) operation clock system master routine:
Carry out the key bit scan;
From a plurality of time showing patterns, call wherein a kind of at least and call next step clock display subroutine;
(5) operation clock display subroutine:
Visit clock information buffer area;
Data processing is combined into fluorescence display display format data;
Call fluorescence display display format data;
Fluorescence display scanning;
Return the master routine of previous step.
A plurality of time showing patterns described in the step (4) comprise: time tag=" T " then call display mode normal time, detect whether quarter-bell is opened, detects the quarter-bell code, called the tinkle of bells, the quarter-bell display mode;
Time tag=" S " then allocating time display mode is set and detect whether quarter-bell is opened, detects the quarter-bell code, called the tinkle of bells, the quarter-bell display mode;
Time tag=" A " then call the quarter-bell display mode and detect whether quarter-bell is opened, detects the quarter-bell code, called the tinkle of bells, the quarter-bell display mode.
Beneficial effect of the present invention: the control method that the invention provides a kind of clock in fluoresent display, this method can be controlled clock chip and display driver chip by microprocessor by 5 steps, time, date and relevant icon is shown on vacuum fluorescent display screen also can control display brightness.The present invention has also further realized the alarm of clock in fluoresent display.
Description of drawings
Fig. 1 is the clock system initialization flowchart;
Fig. 2 is the clock main program flow chart;
Fig. 3 is a clock display subroutine process flow diagram.
Embodiment
Below in conjunction with accompanying drawing the present invention is described in further detail: a kind of control method of clock in fluoresent display comprises the following steps: (1) MCU initialization:
Timer 0 is set to mode 2, and the 200us circulation starts timer 0, and the interruption of opening timer 0;
Timer 1 is set to mode 2, and the 250us circulation starts timer 1, and the interruption of opening timer 1;
Timer 2 is set to mode 0, starts timer 2, and the interruption of opening timer 0;
Serial port setting is a mode 0, displacement synchronously, baud rate fOSC/12;
Put timer 0 for high interrupt priority, open all interruptions, forbid that serial ports receives;
(2) data-carrier store initialization:
The Displaying timer initialization;
The control signal initialization;
The brightness initialization;
The quarter-bell initialization;
The night mode initialization;
The video data initialization;
(3) clock system initialization, as shown in Figure 1:
The reading and writing pattern of RTC is set;
Write time, date initial value;
4 grades of brightness are set;
Century and age are set;
Call next step master routine;
(4) operation clock system master routine, as shown in Figure 2:
Carry out the key bit scan;
At least call wherein a kind of and call next step clock display subroutine from a plurality of time showing patterns, specifically comprise: time tag=" T " then call display mode normal time, detect whether quarter-bell is opened, detects the quarter-bell code, called the tinkle of bells, the quarter-bell display mode;
Time tag=" S " then allocating time display mode is set and detect whether quarter-bell is opened, detects the quarter-bell code, called the tinkle of bells, the quarter-bell display mode;
Time tag=" A " then call the quarter-bell display mode and detect whether quarter-bell is opened, detects the quarter-bell code, called the tinkle of bells, the quarter-bell display mode;
(5) operation clock display subroutine, as shown in Figure 3:
Visit clock information buffer area;
Data processing is combined into fluorescence display display format data;
Call fluorescence display display format data;
Fluorescence display scanning;
Return the master routine of previous step.
Above said content only is the basic explanation of the present invention under conceiving, and according to any equivalent transformation that technical scheme of the present invention is done, all should belong to protection scope of the present invention.

Claims (2)

1. the control method of a clock in fluoresent display comprises the following steps:
(1) MCU initialization:
Timer 0 is set to mode 2, and the 200us circulation starts timer 0, and the interruption of opening timer 0;
Timer 1 is set to mode 2, and the 250us circulation starts timer 1, and the interruption of opening timer 1;
Timer 2 is set to mode 0, starts timer 2, and the interruption of opening timer 0;
Serial port setting is a mode 0, displacement synchronously, baud rate fOSC/12;
Put timer 0 for high interrupt priority, open all interruptions, forbid that serial ports receives;
(2) data-carrier store initialization:
The Displaying timer initialization;
The control signal initialization;
The brightness initialization;
The quarter-bell initialization;
The night mode initialization;
The video data initialization;
(3) clock system initialization:
The reading and writing pattern of RTC is set;
Write time, date initial value;
4 grades of brightness are set;
Century and age are set;
Call next step master routine;
(4) operation clock system master routine:
Carry out the key bit scan;
From a plurality of time showing patterns, call wherein a kind of at least and call next step clock display subroutine;
(5) operation clock display subroutine:
Visit clock information buffer area;
Data processing is combined into fluorescence display display format data;
Call fluorescence display display format data;
Fluorescence display scanning;
Return the master routine of previous step.
2. according to the control method of the described a kind of clock in fluoresent display of claim 1, it is characterized in that: a plurality of time showing patterns described in the step (4) comprise: time tag=" T " then call display mode normal time, detect whether quarter-bell is opened, detects the quarter-bell code, called the tinkle of bells, the quarter-bell display mode;
Time tag=" S " then allocating time display mode is set and detect whether quarter-bell is opened, detects the quarter-bell code, called the tinkle of bells, the quarter-bell display mode;
Time tag=" A " then call the quarter-bell display mode and detect whether quarter-bell is opened, detects the quarter-bell code, called the tinkle of bells, the quarter-bell display mode.
CN 200410099017 2004-12-27 2004-12-27 Method for controlling clock in fluoresent display Pending CN1797241A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200410099017 CN1797241A (en) 2004-12-27 2004-12-27 Method for controlling clock in fluoresent display

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200410099017 CN1797241A (en) 2004-12-27 2004-12-27 Method for controlling clock in fluoresent display

Publications (1)

Publication Number Publication Date
CN1797241A true CN1797241A (en) 2006-07-05

Family

ID=36818323

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200410099017 Pending CN1797241A (en) 2004-12-27 2004-12-27 Method for controlling clock in fluoresent display

Country Status (1)

Country Link
CN (1) CN1797241A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI548956B (en) * 2012-04-05 2016-09-11 鴻海精密工業股份有限公司 Alarm clock managing and controlling system and method of electronic device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI548956B (en) * 2012-04-05 2016-09-11 鴻海精密工業股份有限公司 Alarm clock managing and controlling system and method of electronic device

Similar Documents

Publication Publication Date Title
CN100337266C (en) Display apparatus and display apparatus drive method
CN1302354C (en) Portable computer for managing power supply consumption, and control method thereof
CN1313941C (en) Method for data exchange between data handling equipment and operating system
CN1117318A (en) Multiprocessor data memory sharing
CN1690985A (en) Disk device and control method for cache
CN1956049A (en) Method for driving liquid crystal display and apparatus employing the same
CN101039396A (en) Image output apparatus and method using numbers of chroma key color
CN101034306A (en) Control method for low-power consumption RAM and RAM control module
CN1851676A (en) Embedded system buffer internal memory distribution method
CN1635580A (en) Flash memory medium data writing method
CN1177148A (en) Display control apparatus, display control method and computer program product
CN1797375A (en) Method and device for switching resolution of display system
CN1866349A (en) Liquid crystal panel and its time schedule controller and over-driving parameter generation method
CN1885922A (en) Method for carrying out TV set software upgrade and its device
CN1797241A (en) Method for controlling clock in fluoresent display
CN1831931A (en) Display controller allowing overlapping display
CN1975699A (en) Serial peripheral interface control device, system and determining method thereof
CN100350448C (en) Overload drive system of liquid crystal display and its method
CN1372189A (en) Method for instant raising CPU frequency
CN1684033A (en) Automatic forming method for intelligent instrument interface
CN1118759C (en) Apparatus for controlling of displaying of data
CN1168023C (en) Laptop computer with camera
CN1862528A (en) Method for displaying data object discriptive information
CN1516006A (en) Traffic signal machine monitoring software integrated system
CN1866232A (en) Direct memory access method for data of secure digital memory card and interface circuit therefor

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication