ARMLinux s3c2440 UART Analysis 1

Publisher:RadiantEyesLatest update time:2016-06-12 Source: eefocusKeywords:ARM  Linux  s3c2440  UART Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
When analyzing the UART in ARM-Linux s3c2440, it is necessary to first understand the hardware knowledge of the serial port in s3c2440A. That is, this article----

Hardware:

The S3c2440A serial port provides three independent asynchronous serial communication I/O ports. Each serial port can send and receive data in normal interrupt mode or DMA mode. When the system clock is used, the maximum rate is 115.2kbps. If an external clock (UEXTCLK) is used, the UART speed can be faster. Each serial port contains two 64-byte FIFO buffers for sending or transmitting data.

The S3c2440A serial port has programmable baud rate, infrared (IR) data transmission and reception, 1 or 2 stop bits, 5/6/7/8 bit data width and parity checking.

Each serial port consists of a baud rate generating unit, a transmitting unit, a receiving unit, and a control unit. As shown in the figure below, the clock of the baud generating unit can be PCLK, FCLK/n, or UEXTCLK (external input clock). The transmitting and receiving units contain a 64-byte FIFOs (first-in first-out queue) and a data shifter. When sending data, the data is written into the FIFO and then copied to the data shifter before sending the data. Finally, the data is sent out bit by bit by the data transmitting pin (TxDn). Similarly, when receiving data, the data is received bit by bit by the data receiving pin (RxDn) and then copied to the FIFO buffer.

 ARMLinux s3c2440 UART Analysis 1

 

 

register:

There are three serial port control registers: UCON0 ~ UCON1 correspond to each serial port respectively, which are used to set the UART working mode, baud rate, interrupt type, etc.

 

ARMLinux s3c2440 UART Analysis 1

 

Status register: UTRSTAT0 ~UTRSTAT2, used for receiving/sending status indication when the serial port is working

 

ARMLinux s3c2440 UART Analysis 1

 

FIFO control register: UFCON0 ~ UFCON2, used to set FIFO.

 

ARMLinux s3c2440 UART Analysis 1

 

FIFO status register: UFSTAT0 ~ UFSTAT2, used to indicate the status of the FIFO buffer

ARMLinux s3c2440 UART Analysis 1

 

The use of Arm-linux s3c2440 serial port mainly involves the operation of the above registers.

The next article will analyze the implementation of arm-linux s3c2440 serial port driver in combination with source code (software article)

Keywords:ARM  Linux  s3c2440  UART Reference address:ARMLinux s3c2440 UART Analysis 1

Previous article:S3C2440 UART Operation (FIFO Mode)
Next article:ARMLinux s3c2440 UART Analysis 2

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
Guess you like

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号