This document provides information about interfacing an ARM7 microcontroller with a UART module. It begins with course objectives and outcomes related to real-world interfacing. It then describes the basic operation and frame structure of UART serial communication. Details are given about the UART module and registers on the LPC2148 microcontroller, including how to configure pins for UART functionality and set the baud rate. An algorithm is provided to transmit and receive data through the UART using various register commands.
INTRODUCTION
We know that a microprocessor is the CPU of a computer. A microprocessor can perform some operation on a data and give the output. But to perform the operation we need an input to enter the data and an output to display the results of the operation. So we are using a keyboard and monitor as Input and output along with the processor. Microprocessors engineering involves a lot of other concepts and we also interface memory elements like ROM, EPROM to access the memory.
Types of Interfacing
There are two types of interfacing in context of the 8085 processor.
Memory Interfacing.
I/O Interfacing.
Memory Interfacing:
While executing an instruction, there is a necessity for the microprocessor to access memory frequently for reading various instruction codes and data stored in the memory. The interfacing circuit aids in accessing the memory.
Memory requires some signals to read from and write to registers. Similarly the microprocessor transmits some signals for reading or writing a data.
But what is the purpose of interfacing circuit here?
The interfacing process involves matching the memory requirements with the microprocessor signals. The interfacing circuit therefore should be designed in such a way that it matches the memory signal requirements with the signals of the microprocessor. For example for carrying out a READ process, the microprocessor should initiate a read signal which the memory requires to read a data. In simple words, the primary function of a memory interfacing circuit is to aid the microprocessor in reading and writing a data to the given register of a memory chip.
The interfacing process involves matching the memory requirements with the microprocessor signals. The interfacing circuit therefore should be designed in such a way that it matches the memory signal requirements with the signals of the microprocessor. For example for carrying out a READ process, the microprocessor should initiate a read signal which the memory requires to read a data. In simple words, the primary function of a memory interfacing circuit is to aid the microprocessor in reading and writing a data to the given register of a memory chip.
I/O Interfacing:
We know that keyboard and Displays are used as communication channel with outside world. So it is necessary that we interface keyboard and displays with the microprocessor. This is called I/O interfacing. In this type of interfacing we use latches and buffers for interfacing the keyboards and displays with the microprocessor.
But the main disadvantage with this interfacing is that the microprocessor can perform only one function. It functions as an input device if it is connected to buffer and as an output device if it is connected to latch. Thus the capability is very limited in this type of interfacing.
Introduction to Arduino Hardware and ProgrammingEmmanuel Obot
Introduction to Arduino Hardware and Programming:
Arduino is an open-source electronics platform based on easy-to-use hardware and software. It's intended for anyone making interactive projects.
Teachers and students use it to build low cost scientific instruments, to prove chemistry and physics principles, or to get started with programming and robotics. Designers and architects build interactive prototypes, musicians and artists use it for installations and to experiment with new musical instruments. Makers, of course, use it to build many of the projects exhibited at the Maker Faire. Arduino is a key tool to learn new things. Anyone - children, hobbyists, artists, programmers can use it to build an interactive device.
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT I Core of Embedded SystemsArti Parab Academics
Core of embedded systems: microprocessors and microcontrollers, RISC and CISC controllers, Big endian and Little endian processors, Application specific ICs, Programmable logic devices, COTS, sensors and actuators, communication interface, embedded firmware, other system components.
PIC A special purpose integrated circuit that function as an overall manager in an interrupt driven system.
It accepts request from the peripheral equipment,determines which of the incoming request is of the highest priority, ascertains whether the incoming request has a higher priority value than the level currently being serviced, and issues an interrupt to the CPU based on this determination.
INTRODUCTION
We know that a microprocessor is the CPU of a computer. A microprocessor can perform some operation on a data and give the output. But to perform the operation we need an input to enter the data and an output to display the results of the operation. So we are using a keyboard and monitor as Input and output along with the processor. Microprocessors engineering involves a lot of other concepts and we also interface memory elements like ROM, EPROM to access the memory.
Types of Interfacing
There are two types of interfacing in context of the 8085 processor.
Memory Interfacing.
I/O Interfacing.
Memory Interfacing:
While executing an instruction, there is a necessity for the microprocessor to access memory frequently for reading various instruction codes and data stored in the memory. The interfacing circuit aids in accessing the memory.
Memory requires some signals to read from and write to registers. Similarly the microprocessor transmits some signals for reading or writing a data.
But what is the purpose of interfacing circuit here?
The interfacing process involves matching the memory requirements with the microprocessor signals. The interfacing circuit therefore should be designed in such a way that it matches the memory signal requirements with the signals of the microprocessor. For example for carrying out a READ process, the microprocessor should initiate a read signal which the memory requires to read a data. In simple words, the primary function of a memory interfacing circuit is to aid the microprocessor in reading and writing a data to the given register of a memory chip.
The interfacing process involves matching the memory requirements with the microprocessor signals. The interfacing circuit therefore should be designed in such a way that it matches the memory signal requirements with the signals of the microprocessor. For example for carrying out a READ process, the microprocessor should initiate a read signal which the memory requires to read a data. In simple words, the primary function of a memory interfacing circuit is to aid the microprocessor in reading and writing a data to the given register of a memory chip.
I/O Interfacing:
We know that keyboard and Displays are used as communication channel with outside world. So it is necessary that we interface keyboard and displays with the microprocessor. This is called I/O interfacing. In this type of interfacing we use latches and buffers for interfacing the keyboards and displays with the microprocessor.
But the main disadvantage with this interfacing is that the microprocessor can perform only one function. It functions as an input device if it is connected to buffer and as an output device if it is connected to latch. Thus the capability is very limited in this type of interfacing.
Introduction to Arduino Hardware and ProgrammingEmmanuel Obot
Introduction to Arduino Hardware and Programming:
Arduino is an open-source electronics platform based on easy-to-use hardware and software. It's intended for anyone making interactive projects.
Teachers and students use it to build low cost scientific instruments, to prove chemistry and physics principles, or to get started with programming and robotics. Designers and architects build interactive prototypes, musicians and artists use it for installations and to experiment with new musical instruments. Makers, of course, use it to build many of the projects exhibited at the Maker Faire. Arduino is a key tool to learn new things. Anyone - children, hobbyists, artists, programmers can use it to build an interactive device.
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT I Core of Embedded SystemsArti Parab Academics
Core of embedded systems: microprocessors and microcontrollers, RISC and CISC controllers, Big endian and Little endian processors, Application specific ICs, Programmable logic devices, COTS, sensors and actuators, communication interface, embedded firmware, other system components.
PIC A special purpose integrated circuit that function as an overall manager in an interrupt driven system.
It accepts request from the peripheral equipment,determines which of the incoming request is of the highest priority, ascertains whether the incoming request has a higher priority value than the level currently being serviced, and issues an interrupt to the CPU based on this determination.
Presentation On: "Micro-controller 8051 & Embedded System"surabhii007
The presentation is dealing with majors about 'An Embedded System' along with 'Micro-controller' with it's base peripherals & parameters.
Hope It'll be helpfull!
BASIC INFORMATION OF ARCHITECTURE OF MICRO-CONTROLLER 8051 AS PER GTU SYLLABUS. Please Comment if u Like.. n Give u r feedback..
For More Information Go to
http://www.noesiseducation.blogspot.com
Achieving Reduced Area and Power with Multi Bit Flip-Flop When Implemented In...IJERA Editor
A UART (Universal Asynchronous Receiver and Transmitter) is a device allowing the reception and transmission of information, in a serial and asynchronous way. This project focuses on the implementation of UART with status register using multi bit flip-flop and comparing it with UART with status register using single bit flip-flops. During the reception of data, status register indicates parity error, framing error, overrun error and break error. The multi bit flip-flop is indicated in this status register. In modern very large scale integrated circuits, Power reduction and area reduction has become a vital design goal for sophisticated design applications. So in this project the power consumed and area occupied by both multi-bit flip-flop and single bit flip is compared. The underlying idea behind multi-bit flip-flop method is to eliminate total inverter number by sharing the inverters in the flip-flops. Based on the elimination feature of redundant inverters in merging single bit flip-flops into multi bit flip-flops, gives reduction of wired length and this result in reduction of power consumption and area.
Live B tech Projects & Industrial Training @Technogroovy Technogroovy India
like our page for more updates:
https://www.facebook.com/Technogroovyindia
With Best Regard's
Technogroovy Systems India Pvt. Ltd.
www.technogroovy.com
Call- +91-9582888121
Whatsapp- +91-8800718323
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSEDuvanRamosGarzon1
AIRCRAFT GENERAL
The Single Aisle is the most advanced family aircraft in service today, with fly-by-wire flight controls.
The A318, A319, A320 and A321 are twin-engine subsonic medium range aircraft.
The family offers a choice of engines
Automobile Management System Project Report.pdfKamal Acharya
The proposed project is developed to manage the automobile in the automobile dealer company. The main module in this project is login, automobile management, customer management, sales, complaints and reports. The first module is the login. The automobile showroom owner should login to the project for usage. The username and password are verified and if it is correct, next form opens. If the username and password are not correct, it shows the error message.
When a customer search for a automobile, if the automobile is available, they will be taken to a page that shows the details of the automobile including automobile name, automobile ID, quantity, price etc. “Automobile Management System” is useful for maintaining automobiles, customers effectively and hence helps for establishing good relation between customer and automobile organization. It contains various customized modules for effectively maintaining automobiles and stock information accurately and safely.
When the automobile is sold to the customer, stock will be reduced automatically. When a new purchase is made, stock will be increased automatically. While selecting automobiles for sale, the proposed software will automatically check for total number of available stock of that particular item, if the total stock of that particular item is less than 5, software will notify the user to purchase the particular item.
Also when the user tries to sale items which are not in stock, the system will prompt the user that the stock is not enough. Customers of this system can search for a automobile; can purchase a automobile easily by selecting fast. On the other hand the stock of automobiles can be maintained perfectly by the automobile shop manager overcoming the drawbacks of existing system.
About
Indigenized remote control interface card suitable for MAFI system CCR equipment. Compatible for IDM8000 CCR. Backplane mounted serial and TCP/Ethernet communication module for CCR remote access. IDM 8000 CCR remote control on serial and TCP protocol.
• Remote control: Parallel or serial interface.
• Compatible with MAFI CCR system.
• Compatible with IDM8000 CCR.
• Compatible with Backplane mount serial communication.
• Compatible with commercial and Defence aviation CCR system.
• Remote control system for accessing CCR and allied system over serial or TCP.
• Indigenized local Support/presence in India.
• Easy in configuration using DIP switches.
Technical Specifications
Indigenized remote control interface card suitable for MAFI system CCR equipment. Compatible for IDM8000 CCR. Backplane mounted serial and TCP/Ethernet communication module for CCR remote access. IDM 8000 CCR remote control on serial and TCP protocol.
Key Features
Indigenized remote control interface card suitable for MAFI system CCR equipment. Compatible for IDM8000 CCR. Backplane mounted serial and TCP/Ethernet communication module for CCR remote access. IDM 8000 CCR remote control on serial and TCP protocol.
• Remote control: Parallel or serial interface
• Compatible with MAFI CCR system
• Copatiable with IDM8000 CCR
• Compatible with Backplane mount serial communication.
• Compatible with commercial and Defence aviation CCR system.
• Remote control system for accessing CCR and allied system over serial or TCP.
• Indigenized local Support/presence in India.
Application
• Remote control: Parallel or serial interface.
• Compatible with MAFI CCR system.
• Compatible with IDM8000 CCR.
• Compatible with Backplane mount serial communication.
• Compatible with commercial and Defence aviation CCR system.
• Remote control system for accessing CCR and allied system over serial or TCP.
• Indigenized local Support/presence in India.
• Easy in configuration using DIP switches.
Overview of the fundamental roles in Hydropower generation and the components involved in wider Electrical Engineering.
This paper presents the design and construction of hydroelectric dams from the hydrologist’s survey of the valley before construction, all aspects and involved disciplines, fluid dynamics, structural engineering, generation and mains frequency regulation to the very transmission of power through the network in the United Kingdom.
Author: Robbie Edward Sayers
Collaborators and co editors: Charlie Sims and Connor Healey.
(C) 2024 Robbie E. Sayers
Courier management system project report.pdfKamal Acharya
It is now-a-days very important for the people to send or receive articles like imported furniture, electronic items, gifts, business goods and the like. People depend vastly on different transport systems which mostly use the manual way of receiving and delivering the articles. There is no way to track the articles till they are received and there is no way to let the customer know what happened in transit, once he booked some articles. In such a situation, we need a system which completely computerizes the cargo activities including time to time tracking of the articles sent. This need is fulfilled by Courier Management System software which is online software for the cargo management people that enables them to receive the goods from a source and send them to a required destination and track their status from time to time.
Event Management System Vb Net Project Report.pdfKamal Acharya
In present era, the scopes of information technology growing with a very fast .We do not see any are untouched from this industry. The scope of information technology has become wider includes: Business and industry. Household Business, Communication, Education, Entertainment, Science, Medicine, Engineering, Distance Learning, Weather Forecasting. Carrier Searching and so on.
My project named “Event Management System” is software that store and maintained all events coordinated in college. It also helpful to print related reports. My project will help to record the events coordinated by faculties with their Name, Event subject, date & details in an efficient & effective ways.
In my system we have to make a system by which a user can record all events coordinated by a particular faculty. In our proposed system some more featured are added which differs it from the existing system such as security.
Explore the innovative world of trenchless pipe repair with our comprehensive guide, "The Benefits and Techniques of Trenchless Pipe Repair." This document delves into the modern methods of repairing underground pipes without the need for extensive excavation, highlighting the numerous advantages and the latest techniques used in the industry.
Learn about the cost savings, reduced environmental impact, and minimal disruption associated with trenchless technology. Discover detailed explanations of popular techniques such as pipe bursting, cured-in-place pipe (CIPP) lining, and directional drilling. Understand how these methods can be applied to various types of infrastructure, from residential plumbing to large-scale municipal systems.
Ideal for homeowners, contractors, engineers, and anyone interested in modern plumbing solutions, this guide provides valuable insights into why trenchless pipe repair is becoming the preferred choice for pipe rehabilitation. Stay informed about the latest advancements and best practices in the field.
Cosmetic shop management system project report.pdfKamal Acharya
Buying new cosmetic products is difficult. It can even be scary for those who have sensitive skin and are prone to skin trouble. The information needed to alleviate this problem is on the back of each product, but it's thought to interpret those ingredient lists unless you have a background in chemistry.
Instead of buying and hoping for the best, we can use data science to help us predict which products may be good fits for us. It includes various function programs to do the above mentioned tasks.
Data file handling has been effectively used in the program.
The automated cosmetic shop management system should deal with the automation of general workflow and administration process of the shop. The main processes of the system focus on customer's request where the system is able to search the most appropriate products and deliver it to the customers. It should help the employees to quickly identify the list of cosmetic product that have reached the minimum quantity and also keep a track of expired date for each cosmetic product. It should help the employees to find the rack number in which the product is placed.It is also Faster and more efficient way.
Democratizing Fuzzing at Scale by Abhishek Aryaabh.arya
Presented at NUS: Fuzzing and Software Security Summer School 2024
This keynote talks about the democratization of fuzzing at scale, highlighting the collaboration between open source communities, academia, and industry to advance the field of fuzzing. It delves into the history of fuzzing, the development of scalable fuzzing platforms, and the empowerment of community-driven research. The talk will further discuss recent advancements leveraging AI/ML and offer insights into the future evolution of the fuzzing landscape.
1. Name of Subject Advanced Processor
Subject code 304189
Year 2020-21
Class TE E&Tc
Semester VI
Examination
Scheme
In-Sem(Paper)-30 Marks
End-Sem(Paper)-70 Marks
Unit no III
Name of Unit
Real World Interfacing with ARM7
Based Microcontroller-1
13-Sep-21 1
2. 13-Sep-21 2
Course Objectives
CO1
To understand need and application of ARM
Microprocessors in embedded system.
CO2
To study the architecture of ARM series
microprocessor
CO3
To understand architecture and features of typical
ARM7& DSP Processors.
CO4
To learn interfacing of real world input and output
devices
CO5 To learn embedded communication systems.
3. 13-Sep-21 3
Course Outcomes
CO1
Describe the ARM microprocessor architectures and
its features.
CO2 Design embedded system with available resources.
CO3
Interface the advanced peripherals to ARM based
microcontroller
CO4
Use of DSP Processors and resources for signal
processing applications
5. UART(Universal Asynchronous
Receiver/Transmitter)
13-Sep-21 5
It is a serial communication protocol in which data is
transferred serially bit by bit at a time.
Asynchronous serial communication is widely used for
byte oriented transmission.
In Asynchronous serial communication, a byte of data
is transferred at a time.
UART serial communication protocol uses a defined
frame structure for their data bytes. Frame structure in
Asynchronous communication consists :
START bit: It is a bit with which indicates that serial
communication has started and it is always low.
Data bits packet: Data bits can be packets of 5 to 9
bits. Normally we use 8 bit data packet, which is
always sent after the START bit.
STOP bit: This usually is one or two bits in length. It is
sent after data bits packet to indicate the end of frame.
Stop bit is always logic high.
7. UART module
LPC2148 has 2-UARTs numbering 0-1, similarly, the pins
are also named as RXD0-RXD1 and TXD0-TXD1
As the LPC2148 pins are multiplexed for multiple
functionalities, first they have to be configured as UART
pins.
Below table shows the multiplexed UART's pins.
13-Sep-21 7
Port Pin Pin Number PINSEL_FUNC_0 PINSEL_FUNC_1 PINSEL_FUNC_2 PINSEL_FUNC_3
P0.0 19 GPIO TXD0 PWM1
P0.1 21 GPIO RXD0 PWM3 EINT0
P0_8 33 GPIO TXD1 PWM4 AD1.1
P0.9 34 GPIO RXD1 PWM6 EINT3
8. PINSEL 0 31……0
Bit Symbol Value Function
1:0 P0.0 00 GPIO port 0.0
01 TXD(UART 0)
10 PWM1
11 RESERVED
3:2 P0.1 00 GPIO P0.1
01 RXD(UART0)
10 PWM3
11 EINT0
13-Sep-21 8
9. Features
UART0
16 byte Receive and Transmit FIFOs
Built-in fractional baud rate generator with
autobauding capabilities
Software flow control through TXEN bit in Transmit
Enable Register
UART1
16 byte Receive and Transmit FIFOs
Built-in fractional baud rate generator with
autobauding capabilities
Software and hardware flow control implementation
possible
Standard modem interface signals included with flow
control fully supported in hardware
13-Sep-21 9
10. Register Description
UxRBR Contains the recently received Data
UxTHR Contains the data to be transmitted
UxFCR FIFO Control Register
UxLCR Controls the UART frame
formatting(Number of Data Bits, Stop bits)
UxDLL Least Significant Byte of the UART baud
rate generator value.
UxDLM Most Significant Byte of the UART baud
rate generator value.
13-Sep-21 10
UART Registers
12. UART0 Registers
U0RBR (UART0 Receive Buffer Register)
It is an 8-bit read only register.
This register contains the received data.
It contains the “oldest” received byte in the receive
FIFO.
If the character received is less than 8 bits, the
unused MSBs are padded with zeroes.
The Divisor Latch Access Bit (DLAB) in U0LCR must
be zero in order to access the U0RBR. (DLAB = 0)
13-Sep-21 12
13. U0THR (UART0 Transmit Holding
Register)
It is an 8-bit write only register.
Data to be transmitted is written to this register.
It contains the “newest” received byte in the transmit
FIFO.
The Divisor Latch Access Bit (DLAB) in U0LCR must
be zero in order to access theU0THR. (DLAB = 0)
13-Sep-21 13
14. U0DLL and U0DLM (UART0 Divisor Latch
Registers)
Both of them hold 8-bit values.
These register together form a 16 bit divisor value
which is used in baud rate generation.
U0DLM holds the upper 8 bits and U0DLL holds the
lower 8 bits and the formation is “[U0DLM:U0DLL].
Since these form a divisor value and division by zero
is invalid,the starting for U0DLL is 0x01(not 0x00)i.e
starting value in combined formation is[0x00:0x01]
i.e.0x0001.
In order to access and use these registers
properly,DLAB bit in U0LCR must be set to 1.
13-Sep-21 14
15. U0FDR (UART0 Fractional Divider Register)
• It is a 32-bit read write register.
• It decides the clock pre-scalar for baud rate
generation.
• If fractional divider is active (i.e. DIVADDVAL>0) and
DLM = 0, DLL must be greater than 3.
If DIVADDVAL is 0, the fractional baud rate generator
will not impact the UART0 baud rate.
Reset value of DIVADDVAL is 0.
MULVAL must be greater than or equal to 1 for UART0
to operate properly, regardless of whether the
fractional baud rate generator is used or not.
Reset value of MULVAL is 1.
13-Sep-21 15
16. The formula for UART0 baud rate is given below
MULVAL and DIVADDVAL should have values in the
range of 0 to 15. If this is not ensured, the output of
the fractional divider is undefined.
The value of the U0FDR should not be modified while
transmitting/receiving data.
This may result in corruption of data.
13-Sep-21 16
17. U0IER (UART0 Interrupt Enable Register)
It is a 32-bit read-write register.
It is used to enable UART0 interrupt sources.
DLAB should be zero (DLAB = 0).
Bit 0 - RBR Interrupt Enable. It also controls the
Character Receive Time-Out interrupt.
0 = Disable Receive Data Available interrupt
1 = Enable Receive Data Available interrupt
Bit 1 - THRE Interrupt Enable
0 = Disable THRE interrupt
1 = Enable THRE interrupt
Bit 2 - RX Line Interrupt Enable
0 = Disable UART0 RX line status interrupts
1 = EnableUART0 RX line status interrupts
13-Sep-21 17
18. Bit 8 - ABEO Interrupt Enable
0 = Disable auto-baud time-out interrupt
1 = Enable auto-baud time-out interrupt
Bit 9 - ABTO Interrupt Enable
0 = Disable end of auto-baud interrupt
1 = Enable the end of auto-baud interrupt
13-Sep-21 18
19. U0LCR (UART0 Line Control Register)
It is an 8-bit read-write register.
It determines the format of the data character that is
to be transmitted or received
13-Sep-21 19
20. 13-Sep-21 20
•Bit 1:0 - Word Length Select
00 = 5-bit character length
01 = 6-bit character length
10 = 7-bit character length
11 = 8-bit character length
•Bit 2 - Number of Stop Bits
0 = 1 stop bit
1 = 2 stop bits
•Bit 3 - Parity Enable
0 = Disable parity generation and checking
1 = Enable parity generation and checking
•Bit 5:4 - Parity Select
00 = Odd Parity
01 = Even Parity
10 = Forced “1” Stick Parity
11 = Forced “0” Stick Parity
•Bit 6 - Break Control
0= Disable break transmission
1 = Enable break transmission
•Bit 7 - Divisor Latch Access Bit (DLAB)
0 = Disable access to Divisor Latches
1 = Enable access to Divisor Latches
21. U0IIR (UART0 Interrupt Identification
Register)
It is a 32-bit read only register.
It provides a status code that denotes
the
It provides a status code that denotes the priority and
source of a pending interrupt.
It must be read before executing the Interrupt Service
Routine to clear the interrupt.
Bit 0 - Interrupt Pending
0 = At least one interrupt is pending
1 = No interrupts pending
Bit 3:1 - Interrupt Identification
Identifies an interrupt corresponding to theUART0 Rx
FIFO.
011 = Receive Line Status (RLS) Interrupt
010 = Receive Data Available (RDA) Interrupt
13-Sep-21 21
22. Bit 7:6 - FIFO Enable These bits are equivalent to
FIFO enable bit in FIFO Control Register,
0 = If FIFOs are disabled
1 = FIFOs are enabled
Bit 8 - ABEO Interrupt(End of Auto-Baud )
If interrupt is enabled,
0 = No ABEO interrupt
1 = Auto-baud has finished successfully
Bit 9 - ABTO Interrupt (Auto-Baud Time-Out)
If interrupt is enabled,
0 = No ABTO interrupt
1 = Auto-baud has timed out
13-Sep-21 22
23. U0LSR (UART0 Line Status Register)
It is an 8-bit read only register.
It provides status information on UART0 RX and TX blocks.
Bit 0 - Receiver Data Ready
0 = U0RBR is empty
1 = U0RBR contains valid data
Bit 1 - Overrun Error
0 = Overrun error status inactive
1 = Overrun error status active
This bit is cleared when U0LSR is read.
Bit 2 - Parity Error
0 = Parity error status inactive
1 = Parity error status active
This bit is cleared when U0LSR is read.
13-Sep-21 23
24. 13-Sep-21 24
•Bit 3 - Framing Error
0 = Framing error status inactive
1 = Framing error status active
This bit is cleared when U0LSR is read.
•Bit 4 - Break Interrupt
0 = Break interrupt status inactive
1 = Break interrupt status active
This bit is cleared when U0LSR is read.
•Bit 5 - Transmitter Holding Register Empty
0 = U0THR has valid data
1 = U0THR empty
•Bit 6 - Transmitter Empty
0 = U0THR and/or U0TSR contains valid data
1 = U0THR and U0TSR empty
•Bit 7 - Error in RX FIFO (RXFE)
0 = U0RBR contains no UART0 RX errors
1 = U0RBR contains at least one UART0 RX error
This bit is cleared when U0LSR is read.
25. U0TER (UART0 Transmit Enable Register)
It is an 8-bit read-write register.
The U0TER enables implementation of software flow
control. When TXEn=1, UART0 transmitter will keep
sending data as long as they are available. As soon as
TXEn becomes 0, UART0 transmission will stop.
13-Sep-21 25
26. Bit 7 : TXEN
0 = Transmission disabled
1 = Transmission enabled
If this bit is cleared to 0 while a character is being
sent, the transmission of that character is completed,
but no further characters are sent until this bit is set
again.
13-Sep-21 26
27. U0FCR (FIFO Control Register)
8-BIT Byte Addressable register
This reg is used to enable TX & RX FIFO
functionalities
U0FCR=0x07 is like SCON reg
13-Sep-21 27
- - - - -
TX
FIFO
Reset
RX
FIFO
Reset
FIFO
Enable
30. Algorithm
13-Sep-21 30
1) Start
2) Initialize UART0 serial interface using following
instruction
PINSEL0=0X0000 0005 ;//Enable P0.0-TxD0,P0.1-RxD0
U0LCR=0X83; //8-BIT Character lenth,NO parity,1 stop
bit, DLAB=1
U0DLL=97; //Baud rate=9600@PCLK=15Mhz
U0LCR=0X03;//DLAB=0
3) LPC2148 will receive characters transmitted by PC
while(!(U0LSR&0X01));//Monitor RI flag
4) LPC2148 will transmit the characters received back to PC
3) Transmit different AT commands through UART module
using instruction
while(!(U0LSR&0X20));//Monitor TI flag
4) If transmission buffer is Empty, Transmit single character
at a time U0THR=ch;
5) Provide delay while transmitting each command
6) To transmit a single character use PUTCH function & to
transmit a string use PUTS function
7) END