Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for simulating PS2 interface through GPIO port of single-chip microcomputer, single-chip microcomputer and system

A single-chip, interface technology, applied in the field of communication, can solve the problem of no PS2 interface, etc., and achieve the effect of good compatibility, low cost and versatility

Pending Publication Date: 2021-05-25
深圳市国科亿道科技有限公司
View PDF2 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In addition, the EC chips in notebooks are now mainly controlled by manufacturers such as ITE (Lianyang) and Holtek (Hetai), so domestic single-chip microcomputers should be used to replace these single-chip microcomputers, but the peripherals on notebooks currently use more PS2 interfaces ( Such as keyboards, touchpads, etc.), domestic single-chip microcomputers generally do not have PS2 interfaces, so there is an urgent need for a solution that uses the IO ports of ordinary single-chip microcomputers to simulate PS2 interfaces.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for simulating PS2 interface through GPIO port of single-chip microcomputer, single-chip microcomputer and system
  • Method for simulating PS2 interface through GPIO port of single-chip microcomputer, single-chip microcomputer and system
  • Method for simulating PS2 interface through GPIO port of single-chip microcomputer, single-chip microcomputer and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] The present invention will be described in further detail below in conjunction with the accompanying drawings and embodiments.

[0033] Such as figure 1 As shown, the present invention takes the peripheral touchpad as an example to describe the present invention. Of course, this example can also be a keyboard and other peripherals that communicate through the PS2 interface.

[0034] The MCU in this example includes:

[0035] Configuration module: two GPIO ports used to configure the analog PS2 interface, one analog clock pin PS2 CLK pin, the other analog transceiver data pin PS2 DATA pin;

[0036] Interrupt processing module: used to judge whether the PS2 CLK pin is interrupted, if not, continue monitoring, if yes, execute the interrupt service module;

[0037] Interrupt service module: used to clear the interrupt flag bit, and then call the receiving analysis module;

[0038] Receiving and parsing module: used to receive and parse PS2 DATA foot data.

[0039] The p...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method for simulating a PS2 interface through a GPIO port of a single-chip microcomputer, the single-chip microcomputer and a system, and belongs to the field of communication. The method for simulating the PS2 interface through the GPIO port of the single-chip microcomputer comprises the following steps that two GPIO ports used for configuring and simulating the PS2 interface are selected and configured; an interrupt processing module of the single chip microcomputer judges whether the PS2 CLK pin is interrupted or not, if not, monitoring continues, and if yes, the next step is executed, and an interrupt service program is entered; the interrupt service program clears an interrupt flag bit, and then calls a receiving and analyzing program to receive and analyze PS2 DATA pin data; and after a complete data is received, quitting the interrupt service program, and continuing monitoring. The invention also provides a single-chip microcomputer and a system for realizing the method. The method has the beneficial effects that the function of the hardware PS2 interface is realized by a pure software method, and the cost is low.

Description

technical field [0001] The present invention relates to the communication field, in particular to a method for simulating a PS2 interface at a GPIO port of a single-chip microcomputer, and also relates to a single-chip microcomputer for realizing the method and a system including the single-chip microcomputer. Background technique [0002] As the voice of localization is getting higher and higher, the domestic plan will replace the foreign computers of government agencies and institutions with domestic computers within 3 years. Localization of key chips in office computers must be localized. At present, domestic general-purpose desktop CPUs and embedded chips have been laid out. The gap between the performance of chips such as Loongson and Phytium and Intel's chips is getting smaller and smaller, which can meet the needs of daily office work. no problem. In addition, the EC chips in notebooks are now mainly controlled by manufacturers such as ITE (Lianyang) and Holtek (Heta...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F13/10G06F13/24G06F11/36
CPCG06F13/105G06F13/24G06F11/3656G06F2213/24
Inventor 张强卢坤尹志
Owner 深圳市国科亿道科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products