[Other] using a logic analyzer (UART, SPI)

First, on a wiring diagram

Above is wiring the UART, SPI is below the

In fact, such access will be able to receive a signal

If SPI, the host should set their own, UART is not the problem

 

 Here will be described the logic analyzer interface setting

 

Set introduced over

Here is the first UART interface

 

If you've ever written a UART transmission, these settings should not be unfamiliar to you?

Baud rate, few data transmission, stop bits, parity. . .

The last three options should be selected Standart (Standard), None will be all right

Refers to is not clear which part, however, I found out there is a waveform

 

On the end portion of the UART, SPI is the following

4 channels above, should not be unfamiliar, that is, the SPI communication

The next four, set MSB first or LSB first, and then the data of several

CPOL and CPHA, if not understand, I am here to explain briefly

CPOL: Clock Polarity, communication process, we have free time, then this idle moment, it is high or low? (See Set your program)

CPHA: Clock Phase, data collection, at the rising or falling edge?

Can be set up after the data collection, the following FIG. 3, are the same signal, but finer time display (waveform amplified)

Finally, I have a question, I just MOSI SPI can now communicate

Then the rest of MISO, CLOCK, ENABLE, is used where?

Only the host to receive data from the slave, only need these right? But the logic analyzer, what can I pass data?

 

Guess you like

Origin www.cnblogs.com/PureHeart/p/11224889.html