MSP430 How to send the value of the ADC12MEM0 register to the serial debugging assistant

Source: Internet
Author: User

At that time, in order to debug, I painted a DB9 on the PCB board, to connect Ucsi_a3 Txd and rxd of the mouth, so as to achieve the function of transmitting data.

Schematic diagram is as follows:

The DB9 two mouth is rxd mouth, the DB9 three is the txd mouth. This allows data to be transmitted through the DB9 port.

But how to use the UCSI_A3 UART mode, to achieve the function of transmitting data?

1. Preface:

Between the CPU and the interface is transmitted in parallel, between the interface and the peripheral is transmitted through a serial way. Therefore, in the serial interface, it is necessary to have a "receive Shift register" (string and) and send a shift register (and a string). The structure of the serial interface written above by the user ' s Guide above msp430f5438a is:

The part that is highlighted in yellow is the string-and-register and the-string register.

Serial communication can be divided into single, half-duplex, and full-duplex communication according to the direction of information transmission. Information can only be transmitted one way to a single-work communication, the information can be transmitted in two directions, but not at the same time two-way transmission is called single-duplex communication, the same two-way transmission is called full-duplex communication.

Serial communication can be divided into synchronous communication and asynchronous communication two, asynchronous communication (UART) transceiver does not have the same clock source, and synchronous communication (SPI, I²C) has the same clock source.

The USCI has a hardware module that supports multiple serial port modes. The UART (Universal Asynchronous transceiver) is one of these and is now explained in the UART mode.

2.

MSP430 How to send the value of the ADC12MEM0 register to the serial debugging assistant

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.