Supercharge Your Innovation With Domain-Expert AI Agents!

Method and device for simulating PCM communication through GPIO ports

A port and clock signal technology, applied in the field of data transmission, can solve problems such as transmitting PCM data

Active Publication Date: 2013-09-11
ANYKA (GUANGZHOU) MICROELECTRONICS TECH CO LTD
View PDF5 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of the above problems, the present invention provides a method for simulating PCM communication through a GPIO port, aiming to solve the technical problem that some existing chips without PCM ports cannot transmit PCM data through the PCM communication protocol

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 simulating PCM communication through GPIO ports
  • Method and device for simulating PCM communication through GPIO ports
  • Method and device for simulating PCM communication through GPIO ports

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0023] figure 2 A method for simulating PCM communication through a GPIO port provided by an embodiment of the present invention is shown, and the method is used to realize PCM data transmission between a master and a slave by using a GPIO port.

[0024] Before realizing the present invention, the GPIO port needs to be selected from the host as a clock signal port, a synchronous signal port, and a data output port and / or a data input port, and these ports are correspondingly connected to the slave port, wherein the clock signal port and the synchronous signal port And the data output port needs to be set to the output mode, and the data input port needs to be set to the input mode. In the specific implementation, the port can be set to the input mode or the output mode by configuring the GPxCON register of the GPIO module.

[0025] This method comprises the following steps:

[0026] In step S1, the clock signal port is controlled to sequentially output high and low level gen...

Embodiment 2

[0039] image 3 A device for simulating PCM communication through a GPIO port provided by an embodiment of the present invention is shown, and only parts related to the embodiment of the present invention are shown for convenience of description.

[0040] The device provided by the implementation of the present invention is used to utilize the GPIO port to realize the PCM data transmission between the host and the slave, and select the GPIO port from the host to be used as a clock signal port, a synchronization signal port, and a data output port and / or a data input port and Slave corresponds to the connection.

[0041] A described device for simulating PCM communication through the GPIO port includes:

[0042] The clock output unit 301 is used to control the clock signal port to sequentially output high and low level generated clock signals at preset time intervals;

[0043] The synchronous output unit 302 is used to control the synchronous signal port to output a high leve...

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 belongs to the field of data transmission, and provides a method and device for simulating PCM communication through GPIO ports. The method is used for utilizing the GPIO ports to achieve PCM data transmission between a master computer and a slave computer, and the GPIO ports are selected from the master computer to be used as a clock signal port and a synchronizing signal port, and a data output port and / or data input port are correspondingly connected with the slave computer. The method includes the steps of controlling the clock signal port to sequentially output high levels and low levels at intervals according to preset time to generate clock signals, controlling the synchronizing signal port to output high levels and low levels in a period and pulling down the high levels and the low levels each time when the PCM data of a character need to be transmitted, and controlling the data output port to send or receive the PCM data through the data input port under the synchronization of the clock signals. The aim of transmitting the PCM data through the PCM communication protocol without a PCM port is achieved by utilizing the GPIO port to simulate the PCM communication protocol.

Description

technical field [0001] The invention belongs to the field of data transmission, in particular to a method and device for simulating PCM communication through a GPIO port. Background technique [0002] GPIO (General Purpose Input Output, general purpose input / output) ports are widely used in embedded systems. Users can control GPIO ports to output high and low levels through programming to transmit some signals, such as user-defined synchronous time stamps, to ensure that each unit Board time synchronization. [0003] PCM (Pulse Code Modulation, Pulse Code Modulation) refers to transforming an analog signal with continuous time and continuous value into a digital signal with discrete time and discrete value before transmission in the channel. Pulse code modulation is the process of sampling the analog signal first, and then quantizing and encoding the sample value amplitude. In essence, PCM is a process of analog-to-digital conversion. PCM communication has a wide range of a...

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): H04J3/06
Inventor 张宇胡胜发
Owner ANYKA (GUANGZHOU) MICROELECTRONICS TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More