The document discusses UART (Universal Asynchronous Receiver/Transmitter) communication protocol. It describes that UART uses asynchronous serial communication to transfer data bit by bit. It has a defined frame structure consisting of a start bit, data bits, and stop bit. The document also discusses the LPC2148 microcontroller which has two onboard UARTs - UART0 and UART1. It provides details about the registers associated with UART0 like U0RBR, U0THR, U0DLL, U0DLM etc. and describes the programming steps to initialize UART0 and transmit data through it.
This presentation discusses the Serial Communication features in 8051, the support for UART. It also discusses serial vs parallel communication, simplex, duplex and full-duplex modes, MAX232, RS232 standards
UART – Stands for Universal Asynchronous Receiver Transmitter It is a piece of hardware that acts as a bridge between the processor and the serial communication protocol or port (RS-232). It performs parallel – to – serial data conversion at the transmitter side and serial – to – parallel data conversion at the receiver side.Asynchronous serial communication.
A serial communication can be done using fewer wires as compared to its parallel counterpart. It is a cheapest communication device with a single wire for transmitting the data and another wire for receiving. When the high-speed data transfer is not required UART is used. In a simple serial communication, 3 pins are used: TxD, RxD and GND.
At Transmission side (i.e. From Microcontoller), one can write data into UART Data Register (e.g. UART0_DR) by using software code.
These 8 bits of data from Data Register is passed to Tx FIFO Buffer. After that, the data is sent out(one at a time) from Tx Shift Register.
TxFIFO flag = 1 (Buffer full) TxFIFO flag = 0 (not full - Software can write to Data Register)
At Receiver end, there is Rx FIFO Buffer.
RxFIFO Empty flag = 1 (Buffer is empty) RxFIFO Empty flag = 0 (Buffer has data to be read)
A frame is the unit of transmission in serial communications
Start bit: To declare the start of transmission.
Data bits: 4,5,6,7, or 8 bits of useful data bits.
Parity bit : To check for transmission errors.
Stop bit: To declare end of frame
Parity bit is used to check the integrity of a frame and signal if an error occurred during transmission.
It is an extra bit added to the end of a frame.
Even parity :The number of ‘1’ symbols inside a frame must always be even.
Odd parity : The number of ‘1’ symbols inside a frame must always be odd
The configuration settings at both ends of Txd and Rxd:
Full or half-duplex operation
Data length
Start/Stop bits
Transmission speed.
EX:-198 = 11000110
Transmission speed
Common speed = 9600 bits/sec
1/9600 = 104 us.
After detecting start it will count 104us and complets start bit.
Then begins sampling the input bits after 52us with equal count of 104us between each bit untill the next stop bit with high pulse.
Advantages
Requires minimum wires
No need for clock or any other timing signal.
Parity bit ensures basic error checking.
Disadvantages
Size of the data in the frame is limited.
Can connect only two devices at a time
Speed for data transfer is less compared to parallel.
Transmitter and receiver must agree to the rules of transmission and appropriate baud rate must be selected.
if we are looking for a device to device serial communication then UART proves itself the best as it is easy to deal with and also widely used in many peripheral devices.
This presentation discusses the Serial Communication features in 8051, the support for UART. It also discusses serial vs parallel communication, simplex, duplex and full-duplex modes, MAX232, RS232 standards
UART – Stands for Universal Asynchronous Receiver Transmitter It is a piece of hardware that acts as a bridge between the processor and the serial communication protocol or port (RS-232). It performs parallel – to – serial data conversion at the transmitter side and serial – to – parallel data conversion at the receiver side.Asynchronous serial communication.
A serial communication can be done using fewer wires as compared to its parallel counterpart. It is a cheapest communication device with a single wire for transmitting the data and another wire for receiving. When the high-speed data transfer is not required UART is used. In a simple serial communication, 3 pins are used: TxD, RxD and GND.
At Transmission side (i.e. From Microcontoller), one can write data into UART Data Register (e.g. UART0_DR) by using software code.
These 8 bits of data from Data Register is passed to Tx FIFO Buffer. After that, the data is sent out(one at a time) from Tx Shift Register.
TxFIFO flag = 1 (Buffer full) TxFIFO flag = 0 (not full - Software can write to Data Register)
At Receiver end, there is Rx FIFO Buffer.
RxFIFO Empty flag = 1 (Buffer is empty) RxFIFO Empty flag = 0 (Buffer has data to be read)
A frame is the unit of transmission in serial communications
Start bit: To declare the start of transmission.
Data bits: 4,5,6,7, or 8 bits of useful data bits.
Parity bit : To check for transmission errors.
Stop bit: To declare end of frame
Parity bit is used to check the integrity of a frame and signal if an error occurred during transmission.
It is an extra bit added to the end of a frame.
Even parity :The number of ‘1’ symbols inside a frame must always be even.
Odd parity : The number of ‘1’ symbols inside a frame must always be odd
The configuration settings at both ends of Txd and Rxd:
Full or half-duplex operation
Data length
Start/Stop bits
Transmission speed.
EX:-198 = 11000110
Transmission speed
Common speed = 9600 bits/sec
1/9600 = 104 us.
After detecting start it will count 104us and complets start bit.
Then begins sampling the input bits after 52us with equal count of 104us between each bit untill the next stop bit with high pulse.
Advantages
Requires minimum wires
No need for clock or any other timing signal.
Parity bit ensures basic error checking.
Disadvantages
Size of the data in the frame is limited.
Can connect only two devices at a time
Speed for data transfer is less compared to parallel.
Transmitter and receiver must agree to the rules of transmission and appropriate baud rate must be selected.
if we are looking for a device to device serial communication then UART proves itself the best as it is easy to deal with and also widely used in many peripheral devices.
In telecommunication and computer science, serial communication is the process of sending data one bit at a time, sequentially, over a communication channel or computer bus. This is in contrast to parallel communication, where several bits are sent as a whole, on a link with several parallel channels.
Serial communication is used for all long-haul communication and most computer networks, where the cost of cable and synchronization difficulties make parallel communication impractical. Serial computer buses are becoming more common even at shorter distances, as improved signal integrity and transmission speeds in newer serial technologies have begun to outweigh the parallel bus's advantage of simplicity (no need for serializer and deserializer, or SerDes) and to outstrip its disadvantages (clock skew, interconnect density). The migration from PCI to PCI Express is an example.
Implementation of UART with Status Register using Multi Bit Flip-FlopIJMER
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. During the reception of data,
status register indicates parity error, framing error, overrun error and break error.In modern very large
scale integrated circuits, Power reduction and area reduction has become a vital design goal for
sophisticated design applications. Multi-bit flip-flop is an effective power saving implementation
methodology by merging single bit flip-flops in the design. 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
I made this project soon after completing my trainee period. This project was aimed at reducing human effort and allowing ease of access to differently-abled people. Home automation using bluetooth is really cheap to build and easy install in your home.
In telecommunication and computer science, serial communication is the process of sending data one bit at a time, sequentially, over a communication channel or computer bus. This is in contrast to parallel communication, where several bits are sent as a whole, on a link with several parallel channels.
Serial communication is used for all long-haul communication and most computer networks, where the cost of cable and synchronization difficulties make parallel communication impractical. Serial computer buses are becoming more common even at shorter distances, as improved signal integrity and transmission speeds in newer serial technologies have begun to outweigh the parallel bus's advantage of simplicity (no need for serializer and deserializer, or SerDes) and to outstrip its disadvantages (clock skew, interconnect density). The migration from PCI to PCI Express is an example.
Implementation of UART with Status Register using Multi Bit Flip-FlopIJMER
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. During the reception of data,
status register indicates parity error, framing error, overrun error and break error.In modern very large
scale integrated circuits, Power reduction and area reduction has become a vital design goal for
sophisticated design applications. Multi-bit flip-flop is an effective power saving implementation
methodology by merging single bit flip-flops in the design. 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
I made this project soon after completing my trainee period. This project was aimed at reducing human effort and allowing ease of access to differently-abled people. Home automation using bluetooth is really cheap to build and easy install in your home.
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
Student information management system project report ii.pdfKamal Acharya
Our project explains about the student management. This project mainly explains the various actions related to student details. This project shows some ease in adding, editing and deleting the student details. It also provides a less time consuming process for viewing, adding, editing and deleting the marks of the students.
Final project report on grocery store management system..pdfKamal Acharya
In today’s fast-changing business environment, it’s extremely important to be able to respond to client needs in the most effective and timely manner. If your customers wish to see your business online and have instant access to your products or services.
Online Grocery Store is an e-commerce website, which retails various grocery products. This project allows viewing various products available enables registered users to purchase desired products instantly using Paytm, UPI payment processor (Instant Pay) and also can place order by using Cash on Delivery (Pay Later) option. This project provides an easy access to Administrators and Managers to view orders placed using Pay Later and Instant Pay options.
In order to develop an e-commerce website, a number of Technologies must be studied and understood. These include multi-tiered architecture, server and client-side scripting techniques, implementation technologies, programming language (such as PHP, HTML, CSS, JavaScript) and MySQL relational databases. This is a project with the objective to develop a basic website where a consumer is provided with a shopping cart website and also to know about the technologies used to develop such a website.
This document will discuss each of the underlying technologies to create and implement an e- commerce website.
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Dr.Costas Sachpazis
Terzaghi's soil bearing capacity theory, developed by Karl Terzaghi, is a fundamental principle in geotechnical engineering used to determine the bearing capacity of shallow foundations. This theory provides a method to calculate the ultimate bearing capacity of soil, which is the maximum load per unit area that the soil can support without undergoing shear failure. The Calculation HTML Code included.
Immunizing Image Classifiers Against Localized Adversary Attacksgerogepatton
This paper addresses the vulnerability of deep learning models, particularly convolutional neural networks
(CNN)s, to adversarial attacks and presents a proactive training technique designed to counter them. We
introduce a novel volumization algorithm, which transforms 2D images into 3D volumetric representations.
When combined with 3D convolution and deep curriculum learning optimization (CLO), itsignificantly improves
the immunity of models against localized universal attacks by up to 40%. We evaluate our proposed approach
using contemporary CNN architectures and the modified Canadian Institute for Advanced Research (CIFAR-10
and CIFAR-100) and ImageNet Large Scale Visual Recognition Challenge (ILSVRC12) datasets, showcasing
accuracy improvements over previous techniques. The results indicate that the combination of the volumetric
input and curriculum learning holds significant promise for mitigating adversarial attacks without necessitating
adversary training.
3. • UART (Universal Asynchronous Receiver/Transmitter) 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.
• UART serial communication protocol uses a defined frame structure for their
data bytes.
4. • 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.
5. • LPC2148 UART
• LPC2148 has two inbuilt UARTs available i.e. UART0&UART1. So, we can connect
two UART enabled devices (GSM module, GPS module, Bluetooth module etc.) with
LPC2148 at a time.
• UART0 and UART1 are identical other than the fact that UART1 has modem
interface included.
• Features of 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
6.
7. • UART0 :
• TXD0 (Output pin): Serial Transmit data pin.
• RXD0 (Input pin): Serial Receive data pin.
8. • U0RBR (UART0 Receive Buffer Register)
• Contains the recently received data
• U0THR (UART0 Transmit Holding Register)
• Contains the data to be transmitted
• U0DLL and U0DLM (UART0 Divisor Latch Registers)
• LSB and MSB of the UART buad rate generated value
• U0FDR (UART0 Fractional Divider Register)
• Controls the clock prescalar for the baud rate
• U0LCR (UART0 Line Control Register)
• Controls the UART frame formatting
• U0LSR (UART0 Line Status Register)
• Provides status information on the UART
• U0TER (UART0 Transmit Enable Register)
• Transmit holding register
9. Programming steps
• Initialization of UART0
• Configure P0.0 and P0.1 as TXD0 and RXD0 by writing 01 to the
corresponding bits in PINSEL0.
• Using U0LCR register, make DLAB = 1. Also, select 8-bit character length and
1 stop bit.
• Set appropriate values in U0DLL and U0DLM depending on the PCLK value
and the baud rate desired. Fractional divider can also be used to get different
values of baud rate.
10. • Example,
• PCLK = 15MHz. For baud rate 9600, without using fractional divider
register, from the baud rate formula, we have,
• On reset, MulVal = 1 and DivAddVal = 0 in the Fractional Divider
Register.
• Hence
11. • (256 x U0DLM + U0DLL ) = 97.65
We can consider it to be 98 or 97. It will make the baud rate slightly less or
more than 9600. This small change is tolerable. We will consider 97.
Since 97 is less than 256 and register values cannot contain fractions, we will
take U0DLM = 0. This will give U0DLM = 97.
• Make DLA = 0 using U0LCR register.
12. #include<LPC214X.h>
char *msg="HELLO WORLD n";
int main()
{
PINSEL0=0X5;
U0LCR=0X83;
U0DLM=0X00;
U0DLL=0X61; //baud rate=7200 then 82 if baud rate=9600 then 61
U0LCR=0X03;
while (*msg!=0x00)
{
while(!(U0LSR & 0x20));
U0THR=*msg;
msg++;
}
}