CN106484352B - Method for setting display resolution of embedded system - Google Patents

Method for setting display resolution of embedded system Download PDF

Info

Publication number
CN106484352B
CN106484352B CN201610891852.3A CN201610891852A CN106484352B CN 106484352 B CN106484352 B CN 106484352B CN 201610891852 A CN201610891852 A CN 201610891852A CN 106484352 B CN106484352 B CN 106484352B
Authority
CN
China
Prior art keywords
resolution
gpio
setting
index value
display
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610891852.3A
Other languages
Chinese (zh)
Other versions
CN106484352A (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.)
SHENZHEN YANTANG TECHNOLOGY Co.,Ltd.
Original Assignee
Shenzhen Weihan Technology 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 Shenzhen Weihan Technology Co ltd filed Critical Shenzhen Weihan Technology Co ltd
Priority to CN201610891852.3A priority Critical patent/CN106484352B/en
Publication of CN106484352A publication Critical patent/CN106484352A/en
Application granted granted Critical
Publication of CN106484352B publication Critical patent/CN106484352B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1407General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses a method for setting display resolution of an embedded system, which utilizes the characteristic that GPIO is convenient to read and write and the state is not changed when in hot start, and uses the GPIO to record the setting of the resolution; driving an internally set resolution table, each resolution having an index value; recording whether the starting is the first time or not by using one GPIO-R, and recording an index value of the resolution by using a group of GPIO-S; after the first starting, receiving a command for setting the display resolution, recording the resolution index value to the GPIO-S, recording the first starting mark to the GPIO-R, and restarting the system; and reading the resolution index value from the GPIO-S after restarting and setting the display resolution according to the resolution index value. The invention can automatically adapt the display resolution and manually configure the resolution by a user, thereby reducing the research and development and production cost.

Description

Method for setting display resolution of embedded system
Technical Field
The invention belongs to the technical field of electronics, and particularly relates to a method for setting display resolution of an embedded system.
Background
Many embedded systems are now available that support display output, typically in products such as tablet computers. In such embedded systems, many schemes do not support adjustment of display resolution, and only display output at a certain fixed resolution is possible. The main reason is that the technical solution provided by the chip manufacturer has such a defect, and the product designed by the manufacturer based on the technical solution necessarily also has such a defect.
In many embedded systems, the display resolution is fixed and not settable, which causes obstacles to the transplantation of the system or the change of the product form.
General-purpose input/output (GPIO), a generic-purpose input/output (GPIO), is a generic-purpose input/output (GPIO) pin that can be programmed freely by a user, and can be used as a General-purpose input (GPI) or a General-purpose output (GPO) or a General-purpose input/output (GPIO) pin depending on practical considerations.
Disclosure of Invention
The invention aims to provide a method for setting display resolution of an embedded system, and aims to solve the problems that the display resolution of the existing embedded systems is fixed and can not be set, and obstacles are caused to system transplantation or product form change.
The invention is realized in this way, a method for setting display resolution of an embedded system, wherein each GPIO is set to be in a high level state or a low level state, the high level state or the low level state is a 2-system value of 1 or 0, and the 2-system value corresponding to a group of states formed by combining a plurality of GPIOs represents a group of numerical values; of a chipSome areGPIO is not used in a product, and the setting of resolution ratio is recorded by utilizing the characteristics that the state of GPIO is convenient to read and set and is not changed during hot start。
Further, the method for setting the display resolution of the embedded system comprises the following steps:
driving an internally set resolution table, each resolution having an index value;
recording whether the starting is the first time by using one GPIO (hereinafter, GPIO-R), and recording an index value of resolution by using a group of GPIOs (hereinafter, GPIO-S);
after the first starting, receiving a command for setting the display resolution, recording the resolution index value to the GPIO-S, recording the first starting mark to the GPIO-R, and restarting the system;
and reading the resolution index value from the GPIO-S after restarting and setting the display resolution according to the resolution index value.
Further, the system display drive code is modified, a resolution table is set inside the drive, and an index value is set for each resolution.
Further, selecting one GPIO-R to record whether the GPIO-R is started for the first time, and recording the power-on initial state of the GPIO-R as the first time starting.
Further, selecting a resolution of a set of GPIO-S recording configurations; after power-on starting, when a configuration command of resolution is received, an index value of the resolution is found, the index value is converted into a 2-system, and GPIO-S is set according to the value of the 2-system;
further, setting GPIO-R as non-first starting; restarting the system; and after restarting, reading the index value from the GPIO-S, finding the corresponding resolution, and initializing display driving according to the resolution.
Another object of the present invention is to provide an embedded system applying the method for setting display resolution of the embedded system.
Another object of the present invention is to provide a tablet computer using the method for setting display resolution of the embedded system.
The embedded system and the method for setting the display resolution thereof provided by the invention can lead the system to be automatically adapted to the display resolution and manually configured resolution by modifying the system software, and can achieve the following effects:
reducing the research and development and production cost. For example, the tablet personal computer uses display screens with different resolutions, software and hardware do not need to be modified, additional software development and hardware design are not needed, and for production, the workload can be greatly reduced and the product quality can be effectively improved in each link of hardware production, material purchasing and production planning. And more product forms are met. The display resolution can be configured, and the tablet personal computer can be externally connected with a display through simple modification to be developed into a mini computer.
Drawings
Fig. 1 is a flowchart of a method for setting a display resolution of an embedded system according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail with reference to the following embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The input chip of the embodiment of the invention can provide a plurality of GPIOs for use, each GPIO can be set to be in a high level state or a low level state, the two states correspond to 2-system values of 1 or 0, and the 2-system values corresponding to a group of states formed by combining a plurality of GPIOs together can represent a group of numerical values. For example, 4 GPIOs have 16 states which can represent 16 numerical values of 0-15. Some GPIOs of the chip are idle in the product, and the setting of the resolution ratio is recorded by utilizing the characteristics that the state of the GPIOs is convenient to read and set and is not changed during hot start.
The application of the principles of the present invention will now be further described with reference to the accompanying drawings.
As shown in fig. 1, the method for setting the display resolution of the embedded system provided in the embodiment of the present invention includes: driving an internally set resolution table, each resolution having an index value;
recording whether the starting is the first time by using one GPIO (hereinafter, GPIO-R), and recording an index value of resolution by using a group of GPIOs (hereinafter, GPIO-S);
after the first starting, receiving a command for setting the display resolution, recording the resolution index value to the GPIO-S, recording the first starting mark to the GPIO-R, and restarting the system;
and reading the resolution index value from the GPIO-S after restarting and setting the display resolution according to the resolution index value.
The embedded chip can provide a plurality of GPIOs for use, wherein some GPIOs are idle in products, and the setting of the resolution ratio is recorded by utilizing the characteristic that the GPIOs are convenient to read and write and the state is not changed during hot start.
The method for setting the display resolution of the embedded system provided by the embodiment of the invention comprises the following specific steps:
1. modifying a system display driving code, setting a resolution table in a driver, and setting an index value for each resolution;
2. selecting one GPIO-R to record whether the GPIO-R is started for the first time, and recording the power-on initial state of the GPIO-R as the first time starting;
3. selecting a resolution of a set of GPIO-S recording configurations;
4. after power-on starting, when a configuration command of resolution is received, an index value of the resolution is found, the index value is converted into a 2-system, and GPIO-S is set according to the value of the 2-system;
5. setting GPIO-R as non-first starting;
6. restarting the system;
7. and after restarting, reading the index value from the GPIO-S, finding the corresponding resolution, and initializing display driving according to the resolution.
The embedded system and the method for setting the display resolution thereof provided by the invention can lead the system to be automatically adapted to the display resolution and manually configured resolution by modifying the system software, and can achieve the following effects:
reducing the research and development and production cost. For example, the tablet personal computer uses display screens with different resolutions, software and hardware do not need to be modified, additional software development and hardware design are not needed, and for production, the workload can be greatly reduced and the product quality can be effectively improved in each link of hardware production, material purchasing and production planning. And more product forms are met. The display resolution can be configured, and the tablet personal computer can be externally connected with a display through simple modification to be developed into a mini computer.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (6)

1. A method for setting display resolution of an embedded system is characterized in that each GPIO of an embedded system chip can be set to be in a high level state or a low level state, the high level state or the low level state corresponds to a 2-system value of 1 or 0, and the 2-system value corresponding to a group of states formed by combining a plurality of GPIOs represents a group of numerical values; a plurality of GPIOs of the chip are idle in the product, and the setting of the resolution ratio is recorded by utilizing the characteristics that the states of the GPIOs are convenient to read and set and the states are not changed during hot start;
the method for setting the display resolution of the embedded system comprises the following steps:
driving an internally set resolution table, each resolution having an index value;
recording whether the starting is the first time or not by using one GPIO-R, and recording an index value of the resolution by using a group of GPIO-S;
after the first starting, receiving a command for setting the display resolution, recording the resolution index value to the GPIO-S, recording the first starting mark to the GPIO-R, and restarting the system;
reading a resolution index value from the GPIO-S after restarting and setting a display resolution according to the resolution index value;
setting GPIO-R as non-first starting; restarting the system; and after restarting, reading the index value from the GPIO-S, finding the corresponding resolution, and initializing display driving according to the resolution.
2. The method for setting display resolution of an embedded system according to claim 1, wherein the system display driver code is modified to set a resolution table within the driver, and an index value is set for each resolution.
3. The method of claim 1, wherein selecting a GPIO-R to record whether it is the first time to start, and recording the power-on initial state of the GPIO-R as the first time to start.
4. The method of setting display resolution of an embedded system of claim 1, wherein a resolution of a set of GPIO-S recording configurations is selected; after power-on starting, when a configuration command of resolution is received, an index value of the resolution is found, the index value is converted into a 2-system, and GPIO-S is set according to the value of the 2-system.
5. An embedded system using the method for setting display resolution of the embedded system according to any one of claims 1 to 4.
6. A tablet computer using the method for setting the display resolution of the embedded system according to any one of claims 1 to 4.
CN201610891852.3A 2016-10-12 2016-10-12 Method for setting display resolution of embedded system Active CN106484352B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610891852.3A CN106484352B (en) 2016-10-12 2016-10-12 Method for setting display resolution of embedded system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610891852.3A CN106484352B (en) 2016-10-12 2016-10-12 Method for setting display resolution of embedded system

Publications (2)

Publication Number Publication Date
CN106484352A CN106484352A (en) 2017-03-08
CN106484352B true CN106484352B (en) 2020-06-30

Family

ID=58269278

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610891852.3A Active CN106484352B (en) 2016-10-12 2016-10-12 Method for setting display resolution of embedded system

Country Status (1)

Country Link
CN (1) CN106484352B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110895916A (en) * 2018-09-20 2020-03-20 研祥智能科技股份有限公司 System for adaptively setting output resolution of LVDS (Low Voltage differential Signaling) interface
CN110308941A (en) * 2019-07-03 2019-10-08 深圳市海邻科信息技术有限公司 BIOS compatibility method, device, terminal and computer storage medium without EDID screen

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102063269A (en) * 2010-12-16 2011-05-18 创新科存储技术有限公司 Method and system for realizing communication of double controllers of disk array
CN103957454A (en) * 2014-05-23 2014-07-30 珠海迈科电子科技有限公司 Multi-resolution output method and device for smart television

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102063269A (en) * 2010-12-16 2011-05-18 创新科存储技术有限公司 Method and system for realizing communication of double controllers of disk array
CN103957454A (en) * 2014-05-23 2014-07-30 珠海迈科电子科技有限公司 Multi-resolution output method and device for smart television

Also Published As

Publication number Publication date
CN106484352A (en) 2017-03-08

Similar Documents

Publication Publication Date Title
US9122501B1 (en) System and method for managing multiple bios default configurations
US9785605B2 (en) Predefined static enumeration for dynamic enumeration buses
CN103412769A (en) External card parameter configuration method, equipment and system
JP2010506242A (en) Communication method with multi-function memory card
WO2019042323A1 (en) Multi-drive compatible control apparatus and realisation method
CN107480086B (en) Terminal and control method thereof
WO2017020647A1 (en) Novel storage-based embedded file system and realization method thereof
CN101650660A (en) Booting a computer system from central storage
US20120272088A1 (en) Dynamic bus clock rate adjusting method and device
WO2018054060A1 (en) Processor and bootloader program update method, and storage medium
US20120303944A1 (en) Data recovering system and method
US8024722B2 (en) Method and system for automatic installation of a functional unit driver on a host
US10997687B1 (en) Systems and methods for providing universal support for multiple types of graphics processing units
US20150067223A1 (en) Hot swappable memory motherboard
CN106484352B (en) Method for setting display resolution of embedded system
KR20220016996A (en) Memory devices with multiple sets of latencies and methods for operating the same
WO2020206879A1 (en) Method and device for automatically adapting link width of pcie port, electronic apparatus and storage medium
US7849300B2 (en) Method for changing booting sources of a computer system and a related backup/restore method thereof
CN110187872A (en) A kind of BIOS development approach, system and electronic equipment and storage medium
KR102116096B1 (en) Multisystem, and method of booting the same
US20230169028A1 (en) Bridge device and data storage system
CN107749949B (en) Camera self-adaption method, camera self-adaption device and electronic equipment
US9367332B2 (en) Sensing data reading device and method
US20140052902A1 (en) Electronic device and method of generating virtual universal serial bus flash device
US20150127888A1 (en) Data Storage Device and Error Correction Method Thereof

Legal Events

Date Code Title Description
C06 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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201105

Address after: 1805, west block, coastal times apartment, No. 12069, Shennan Avenue, Honghuayuan community, Nantou street, Nanshan District, Shenzhen City, Guangdong Province

Patentee after: SHENZHEN YANTANG TECHNOLOGY Co.,Ltd.

Address before: Nanshan District East Road Shenzhen city Guangdong province 518067 No. 4096 Hao Sheng business center room 1213

Patentee before: SHENZHEN WEIHAN TECHNOLOGY Co.,Ltd.