ARM serial port hardware and software testing

Publisher:小悟空111Latest update time:2017-11-24 Source: eefocusKeywords:ARM Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

I have been deeply affected by serial ports since 51. The MAX232 I bought from Huaqiang was originally broken. I thought there was something wrong with my circuit or schematic. Since there was no good serial port, I thought of starting from myself, from the smallest system board to the peripheral circuit. Later, it was verified that the chip was not working. Later, I found that the male and female connectors were also particular in the design of the circuit. When designing ARM, the level conversion chip also needs to be replaced with MAX3232, that is, a chip with a driving voltage of 3.3V.


Next, we will make some summary about serial port debugging:


1. Power on the newly soldered board and use a multimeter to test the voltage signal generated by MAX3232. The 2nd pin of MAX3232 is about +10V to ground, the 6th pin is about -10V to ground, the 16th pin is about +5V, and the 15th pin is grounded.

2. Open My Computer->Management->Device Manager->Port->Communication Port, double-click, enter "Port Settings", check the baud rate and some other settings, mainly the baud rate, which must be the same as the software to be debugged.

3. Make sure whether the serial port you want to connect to your board is male or female. If the design is male/female, and you weld female/male, it will not work. It is equivalent to swapping the original 2nd and 4th pins with 3rd pin as the axis of symmetry; swapping 1st and 5th pins, because we usually need 2nd, 3rd and 5th pins for communication. If the 4th pin becomes 2nd pin after swapping; the 5th pin becomes 1st pin, it is equivalent to not connecting anything at all. It will definitely not work when tested.

Generally, if you use a female connector to connect to MAX3232 on the board, you should connect to pins 2 (TX), 3 (RX), and 5 (GND). If you use a male connector to connect to MAX3232 on the board, you should connect to pins 4 (RX), 3 (TX), and 1 (GND).
Note: Some male connectors do not have numbers, so you can just number them yourself: the male connector is facing you, numbered 1, 2, 3, 4, and 5 from left to right.

4. Test with MAX3232 chip and serial debugging assistant

I. If you are sure that you have connected the above correctly, short-circuit the 2nd and 3rd pins of the female connector on the extension cable, and use the serial port debugging assistant. If it can send and receive messages automatically, it means that there is no problem with the extension cable.

A MAX3232 can have two serial ports. Before performing the following operations, first determine which serial port you are using.

II. Next, power on the board and short-circuit the corresponding R*X and T*X on the end connected to ARM (* indicates which serial port it is, because two serial ports are connected). If it can send and receive signals automatically after short-circuiting, it means that there is no problem with your serial port hardware.


51 is connected like this:


ARM is connected like this:


Keywords:ARM Reference address:ARM serial port hardware and software testing

Previous article:ARM cross-compilation environment configuration
Next article:LPC2106 basic information, ISP, JTAG, clock calculation

Recommended ReadingLatest update time:2024-11-16 13:29

Mastering ARM Basics (ARM11)
Introduction: I embarked on the road of embedded development in a daze. Looking back, thanks to several friends around me, I slowly embarked on this road through chatting with them: from the earliest circuit design, PCB board making, circuit debugging, simulation, microcontroller development to the later ARM developme
[Microcontroller]
Mastering ARM Basics (ARM11)
How Syntiant leverages the incubator and Arm ecosystem for AI development
This article is translated from the official Arm blog, written by Dave Garrett, Vice President of Hardware at Syntiant Syntiant was founded in 2017 by Co-founder and CEO Kurt Busch, who had an aha moment when he watched his kids chatting on their iPads. He saw an opportunity to bring artificial intelligence (AI) and
[Embedded]
ARM processor modes and on-chip registers, ARM exceptions and interrupts
The difference between interrupts and exceptions: interrupts are from the outside to the inside, while exceptions are from the inside. 1. Memory format (word alignment): The Arm architecture treats memory as a linear combination of bytes starting from address zero. The first stored word (32-bit) data is placed fr
[Microcontroller]
ARM processor modes and on-chip registers, ARM exceptions and interrupts
Simple project template for LPC2220 based on gnu-arm-linux
1: Source When we learn ARM embedded development, we usually come into contact with ADS1.2 and kei project templates. These templates are a blessing for beginners, but if you want to learn more about the chip startup process, When it comes to compiling and linking, image file structure, how to initialize,
[Microcontroller]
Simple project template for LPC2220 based on gnu-arm-linux
Interface Design of LCD Touch Screen Based on ARM Microprocessor
0 Introduction There are many types of human-computer interaction interfaces, such as keyboards, digital tube displays, liquid crystal displays, and touch screens. The main factors that determine the human-computer interaction interface mode are cost and practical application needs. In the past decade, LCD touc
[Microcontroller]
Interface Design of LCD Touch Screen Based on ARM Microprocessor
Design of real-time crack measurement system based on Linux operating system and ARM
introduction In the construction industry, evaluating wall cracks and ground cracks is an important indicator for evaluating the quality of a house. An embedded system device is generally composed of an embedded computer system and an execution device. The embedded computer system is the core of the entire embedded sy
[Microcontroller]
Design of real-time crack measurement system based on Linux operating system and ARM
OK6410A development board (eight) 82 linux-5.11 OK6410A arm-gdb+JLinkGDBServer+Jlink+JTAG interface debugging linux
Use JLinkGDBServer.exe to set up the server on Windows, directly control the jink driver, and connect to ok6410 via USB Connect JLinkGDBServer with arm-linux-gnueabi-gdb on Linux  Control JLinkGDBServer in the arm-linux-gnueabi-gdb window to control the operation of s3c6410 Practice: The breakpoint function is OK
[Microcontroller]
OK6410A development board (eight) 82 linux-5.11 OK6410A arm-gdb+JLinkGDBServer+Jlink+JTAG interface debugging linux
Classic case of intelligent temperature measurement system based on ARM
  introduction   Temperature measurement and control play a vital role in today's social life. The various temperature measurement technologies currently available in the international and domestic markets cover many fields such as security inspection, market, life, fire protection, scientific research, etc. Temperatu
[Microcontroller]
Classic case of intelligent temperature measurement system based on ARM
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号