S3C2440 processor UART dedicated registers

Publisher:未来感觉Latest update time:2019-11-07 Source: 51heiKeywords:S3C2440 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Here we only introduce the most commonly used registers related to UART. As for the registers with other functions involved in programming, they are not introduced here.

1.ULCONn(n=0,1,2) //Checksum mode register
   [6] 0=Normal mode, 1=Infrared mode
   [5:3] 0XX=No check, 100=Odd check, 101=Even check
   [2] 0=1 stop bit, 1=2 stop bits
   [1:0] 00=5-bit data length, 01=6-bit data length, 10=7-bit data length, 11=8-bit data length

2.UCONn(n=0,1,2) //Working mode register
   [10] 0=PCLK, 1=UCLK
   [9] 0=Pulse trigger, 1=Level trigger
   [8] 0=Pulse trigger, 1=Level trigger
   [7] 0=Disable receiving pause, 1=Enable receiving pause
   [6] 0=Disable receiving error interrupt, 1=Enable receiving error interrupt
   [5] 0=Disable patrol mode, 1=Enable patrol mode
   [4] 0=Disable sending interval signal, 1=Send 1 interval signal per frame
   [3:2] 00=Disable sending, 01=Interrupt or query sending mode, 1X=DMA mode
   [1:0] 00=Disable receiving, 01=Interrupt or query receiving mode, 1X=DMA mode

3.UTRSTATn(n=0,1,2) //Send and receive status register, used to determine whether sending and receiving are completed
   [2] 0=The send buffer has data, 1=The buffer has no data
   [1] 0=The send buffer has data, 1=The buffer has no data (used in FIFO and DMA mode)
   [0] 0=The receive buffer has no data, 1=The receive buffer has data

4. UTXHn and URXHn(n=0,1,2) //Registers used to store data for sending and receiving, directly used as input and output ports

5. It is recommended to use interrupt mode programming here to ensure that no data is lost when a large amount of data is transmitted.
   Dedicated pointer: pISR_UART0 //Add interrupt vector here 

Keywords:S3C2440 Reference address:S3C2440 processor UART dedicated registers

Previous article:S3C2440 development board uses external interrupts to implement button switching of different functions
Next article:How to declare the clock source frequency of S3C2440 in ADS

Recommended ReadingLatest update time:2024-11-16 12:48

Porting linux-2.6.30.4 to S3C2440
1. Download the linux-2.6.30.4 source code and decompress it ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.30.4.tar.gz tar zxvf linux-2.6.30.4.tar.gz 2. Add support for ARM in the system $vim Makefile 193#ARCH ?= $(SUBARCH)  194#CROSS_COMPILE ?=  195 ARCH=arm  196 CROSS_COMPILE=arm-linux- 3. Modify the system
[Microcontroller]
About the use of 128M memory in ARM9 S3C2440 wince6.0
The S3C2440 originally connected two 32M SDRAM chip selects to nGCS6. Now it has been changed to two 64M SDRAM chip selects also to nGCS6. The software modifications are divided into four major parts: 1. Stepldr: (1) startup.s mainly includes ldr r0,=0x30000000 ; Start address (physical 0x3000.00
[Microcontroller]
S3C2440 development board file transfer
Looking at the various software in the tutorial, I feel dizzy and need to organize them well. 1. The first step of blank development board --- write bootloader It is similar to installing an operating system on a computer. Without an operating system, it is just an integrated circuit board, which is useless. Bootloade
[Microcontroller]
Detailed explanation of S3C2440 memory control
Software programmable big-endian and small-endian modes;        Address space: Each bank can address 128MB (a total of 8 banks with 1GB space);        Programmable access bit width: BANK0 is 16 or 32 bits, other BANKs are 8, 16 or 32 bits;        8 memory banks, 6 of which are used for ROM or SRAM, and 2 for ROM, SRAM
[Microcontroller]
Detailed explanation of TTL level of Uart interface
Detailed explanation of Uart interface   When I interview candidates, I usually like to ask them a question: What are the differences and connections between UART and RS232/RS485? Many people don't answer this question very well. Some people have never thought about this question at all, and always think that they are
[Test Measurement]
Detailed explanation of TTL level of Uart interface
s3c2440 chip serial port operation
The S3C2440A Universal Asynchronous Receiver and Transmitter (UART) provides three independent asynchronous serial input/output (SIO) ports, each of which can operate in interrupt or DMA-based mode. In other words, the UART can generate an interrupt or DMA request to transfer data between the CPU and the UART. The UAR
[Microcontroller]
s3c2440 chip serial port operation
S3C2440 Input/Output Ports
Port control description (see S3C2440 data sheet for details) Port Configuration Registers (GPACON to GPJCON) Port Data Registers (GPADAT to GPJDAT) Port pull-up registers (GPBUP to GPJUP) Miscellaneous Control Registers External interrupt control register   Use an example (LED running light) to learn
[Microcontroller]
S3C2440 Input/Output Ports
08-S3C2440 driver learning (II) analysis and application of embedded linux-input subsystem
Zero, a few questions (1) Why is there an input subsystem? In view of the diversity of input devices and input events, the kernel uses the input subsystem to drive input devices, submit input events, and read input events, and has a unified naming convention. (2) Layered separation structure The input subsystem
[Microcontroller]
08-S3C2440 driver learning (II) analysis and application of embedded linux-input subsystem
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号