A method for quickly testing an SPI communication module

A technology of SPI module and communication module, which is applied in the testing field of 32-bit chip SPI communication module, can solve problems such as low test efficiency and inability to cover test cases, and achieve the effect of efficient testing, shortening test cycle, and reducing labor and time costs.

CN109885433AActive Publication Date: 2019-06-14CHIPSEA TECH SHENZHEN CO LTD
4 Cites 4 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Publication Date
2019-06-14

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention discloses a method for quickly testing an SPI (serial peripheral interface) communication module, which is used for the communication based on a serial interface and comprises the following steps of S1, specifying a communication protocol between an upper computer and a lower computer; S2, using the upper computer to automatically configure an SPI module, generate a configuration table of the test case by using the SPI module, and convert the configuration table into a corresponding test instruction; S3, enabling the upper computer to communicate with the lower computer; and S4,after receiving the test instruction, using the lower computer to analyze the configuration instruction, and initialize the SPI of the chip according to the configuration information of the configuration instruction, so that the SPI works in an appointed working mode of the upper computer. According to the test method, nearly 100 thousands of cases of the SPI module can be fully automatically tested, the serial peripheral interface module can be quickly and efficiently tested, the test period of the SPI module is shortened, and the labor cost and the time cost consumed on the SPI module are greatly reduced.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention belongs to the technical field of communication module testing, in particular to the testing of 32-bit chip SPI communication modules based on Cortex M series cores. Background technique

[0002] SPI (Serial Peripheral Interface) is a serial peripheral interface, which is a high-speed, full-duplex, synchronous communication bus. With the development of communication technology, the serial peripheral interface is widely used in various general-purpose chips because of its multiple working modes, flexible configuration, good compatibility, and high communication speed. The SPI module has gradually become a very important part of the chip. important peripheral modules.

[0003] In the current chip design, in order to ensure various performance indicators of the chip, it is often necessary to test and verify it in multiple stages of chip design. However, on the one hand, the SPI module is compatible with various communication protocols such...

Examples

Embodiment Construction

[0047] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0048] Figure 1-3 Shown, the method for fast testing SPI communication module realized by the present invention, this method communicates based on serial interface, mainly comprises the following steps:

[0049] S1: Specify the communication protocol between the upper computer and the lower computer;

[0050] S2: The upper computer automatically configures the SPI module, and the upper computer uses the SPI module to generate a configuration table for test cases, and converts the configuration table into corresponding test instructions;

[0051] S3: The upper computer and the lower computer comm...