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

Method and device for processing events asynchronously based on SPI, and storage medium

A technology of asynchronous processing and events, applied in the field of communication, can solve the problem of waste of processor running resources

Pending Publication Date: 2019-06-14
SHENZHEN GOODIX TECH CO LTD
View PDF3 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, in the prior art, the processor in the slave device detects whether the slave device receives the SPI data transmission event sent by the master device in a cyclic query mode, and then processes the SPI data transfer event, which will cause a problem in the slave device. Waste of processor running resources

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 and device for processing events asynchronously based on SPI, and storage medium
  • Method and device for processing events asynchronously based on SPI, and storage medium
  • Method and device for processing events asynchronously based on SPI, and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0056] In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.

[0057] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above drawings are used to distinguish similar objects, and not necessarily Used to describe a specific sequence or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances s...

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 and device for processing events asynchronously based on an SPI (Serial Peripheral Interface), and a storage medium. The method includes the steps: obtaining a level jump state of a chip selection signal from a master device by the SPI; and according to the level jump state of the chip selection signal, determining whether an SPI data transmission event exists, andif the SPI data transmission event exists and determining that SPI data transmission is completed, initiating a hardware interrupt to notify a processor in a slave device to process the SPI data transmission event, thus not only monitoring the SPI data transmission event but also saving the operation resources of the processor.

Description

technical field [0001] The present invention relates to the technical field of communication, in particular to a method, device and storage medium for asynchronously processing events based on SPI. Background technique [0002] The Serial Peripheral Interface (SPI) protocol is a high-speed, full-duplex, synchronous communication bus protocol. Since the SPI protocol is full-duplex and has no defined speed limit, its transmission speed can usually reach or even exceed 10 megabits per second (Million bits per second, Mbps), which is very suitable for high-speed data transmission. The master device (master) sends SPI data transmission events to the slave device (slave) to realize the control of the slave device. The master device is connected to the slave device (slave) through the master device output slave device input data line (master input slave output, MISO) and the slave device output master device input data line (master output slave input, MOSI), and through MISO and M...

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/38
CPCG06F13/38
Inventor 李昆
Owner SHENZHEN GOODIX TECH CO LTD
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