SlideShare a Scribd company logo
INTERFACING
UART WITH
TMS320C6745 DSP
https://www.pantechsolutions.net/products/dsp-
dsc-boards/tms320c6745-tyro
Technology beyond the Dreams™ Copyright © 2014 Pantech Prolabs India Pvt Ltd.
1) Introduction: Serial interface
(universal asynchronous
receiver transmitter : UART)
• RS232 standard and application,
e.g.
2
2
RS232 port
(UART)
RS232 port
(UART)
RS232 standard
3 wires
+10 V=‘0’=SPACE
-10V=‘1’=MARK
Pin2
Pin3
pin5
Pin3
Pin2
pin5
UART
Technology beyond the Dreams™ Copyright © 2014 Pantech Prolabs India Pvt Ltd.
Universal asynchronous receiver
transmitter : UART
• RS232 is a serial communication standard
• Since it is asynchronous, no external clock is
needed, only 3 wires are required for the simplest
RS232 connection {GND, tx(transmit),
rx(receive)}
3
3
+10V=Logic
0=space
-10V= Logic
1=markExercise: Sketch Bit Patterns for character A and B
Start 0 1 2 3 4 5 6 7 stop
Bit 0 to 7 (least sig. bit first )
time
Technology beyond the Dreams™ Copyright © 2014 Pantech Prolabs India Pvt Ltd.
RS-232 Level Converter
• Convert TTL to RS232 and RS232 to TTL voltage levels.
The most commonly used RS-232 level converter is
MAX232 and MAX3232.
• This IC includes charge pump which can generate RS232
voltage levels (-10V and +10V) from 3.3V power supply. It
also includes two receiver and two transmitters and is
capable of full-duplex UART/USART communication.
• RS-232 communication enables point-to-point data transfer
Technology beyond the Dreams™ Copyright © 2014 Pantech Prolabs India Pvt Ltd.
Schematic Diagram to Interface With
UART
Technology beyond the Dreams™ Copyright © 2014 Pantech Prolabs India Pvt Ltd.
UART Registers
Technology beyond the Dreams™ Copyright © 2014 Pantech Prolabs India Pvt Ltd.
UART Transmit Program
#include "stdio.h"
#include "c6745.h"
#include "c6745_uart.h"
void main()
{
Int16 i;
Uint8 j=64;
UART_Handle uart0;
char message[]={"The C6745-UART is fine !nr"};
/* Initialize BSL */
C6745_init( );
/* Open Uart Handle */
uart0 = C6745_UART_open( 1, 9600 );
while(1)
{
for(i=0;i<27;i++)
{
while( C6745_UART_xmtReady( uart0 ) ); // Wait for uart_tx ready
C6745_UART_putChar( uart0, message[i] ); // Write 1 byte
}
}
}
Technology beyond the Dreams™ Copyright © 2014 Pantech Prolabs India Pvt Ltd.
UART Receive &Transmit
Program
#include "stdio.h"
#include "c6745.h"
#include "c6745_uart.h“
void main()
{
UART_Handle uart0;
char receive;
/* Initialize BSL */
C6745_init( );
/* Open Uart Handle */
uart0 = C6745_UART_open( 1, 9600 );
while(1)
{
while(((uart0->regs->LSR) & 0x1)==0);
receive = uart0->regs->THR;
while( C6745_UART_xmtReady( uart0 ) ); // Wait for uart_tx ready
C6745_UART_putChar( uart0, receive ); // Write 1 byte
}
}

More Related Content

What's hot (20)

PPTX
Smart oven 智慧烤箱
艾鍗科技
 
PDF
Project poster: SDR platform elements
Bertalan EGED
 
PDF
Stm32f4硬體週邊介紹
Jack Wang
 
PDF
Esp32 cam arduino-123
Victor Sue
 
PDF
How To Use Linux CAN Signal To AGL
Yuichi Kusakabe
 
PDF
SDS_SSL_MPM_UN_A4
Charles Brosseau
 
PPTX
Arduino Nodebots (Hackster CascadiaJS Workshop)
Monica Houston
 
DOCX
Interface - Specialized -Integrated Circuits (ICs) - componentship.com
燕 欧
 
PPTX
We-Con company introduction 2018
Peter Xie
 
PPTX
Open Source Home Automation with LinkSprite.IO
Jingfeng Liu
 
PDF
Intel Curie Presentation
Davide Tiriticco
 
PPTX
IoT with openHAB on pcDuino3B
Jingfeng Liu
 
PDF
6to4tunnel sample config
jebong03
 
PDF
AM437x Product on Module
Mistral Solutions
 
PDF
Raspberry pi-3 b-v1.2-schematics
hacguest
 
PDF
YCAM Workshop Part 1
Shigeru Kobayashi
 
PDF
Raspberry pi-2 b-v1.2-schematics
hacguest
 
PDF
9.atmel
Stefano Basile
 
PPTX
ESP8266 Wifi Nodemcu
creatjet3d labs
 
PPTX
M qcardiac
Antonio Mondragon
 
Smart oven 智慧烤箱
艾鍗科技
 
Project poster: SDR platform elements
Bertalan EGED
 
Stm32f4硬體週邊介紹
Jack Wang
 
Esp32 cam arduino-123
Victor Sue
 
How To Use Linux CAN Signal To AGL
Yuichi Kusakabe
 
SDS_SSL_MPM_UN_A4
Charles Brosseau
 
Arduino Nodebots (Hackster CascadiaJS Workshop)
Monica Houston
 
Interface - Specialized -Integrated Circuits (ICs) - componentship.com
燕 欧
 
We-Con company introduction 2018
Peter Xie
 
Open Source Home Automation with LinkSprite.IO
Jingfeng Liu
 
Intel Curie Presentation
Davide Tiriticco
 
IoT with openHAB on pcDuino3B
Jingfeng Liu
 
6to4tunnel sample config
jebong03
 
AM437x Product on Module
Mistral Solutions
 
Raspberry pi-3 b-v1.2-schematics
hacguest
 
YCAM Workshop Part 1
Shigeru Kobayashi
 
Raspberry pi-2 b-v1.2-schematics
hacguest
 
ESP8266 Wifi Nodemcu
creatjet3d labs
 
M qcardiac
Antonio Mondragon
 

Viewers also liked (12)

PPTX
Brainsense -Brain computer Interface
Pantech ProLabs India Pvt Ltd
 
PPT
Median filter Implementation using TMS320C6745
Pantech ProLabs India Pvt Ltd
 
PPT
Waveform Generation Using TMS320C6745 DSP
Pantech ProLabs India Pvt Ltd
 
PDF
Basics of Connectors
Pantech ProLabs India Pvt Ltd
 
PPT
Introduction to Code Composer Studio 4
Pantech ProLabs India Pvt Ltd
 
PDF
optimization c code on blackfin
Pantech ProLabs India Pvt Ltd
 
PPTX
Internet of Things
Pantech ProLabs India Pvt Ltd
 
PPT
Introduction to tms320c6745 dsp
Pantech ProLabs India Pvt Ltd
 
PPT
Network Cabling
Subhash Vadadoriya
 
PPT
Network cable
Online
 
PPT
Medical Image Processing
Pantech ProLabs India Pvt Ltd
 
PPT
Networking ppt
Shovan Mandal
 
Brainsense -Brain computer Interface
Pantech ProLabs India Pvt Ltd
 
Median filter Implementation using TMS320C6745
Pantech ProLabs India Pvt Ltd
 
Waveform Generation Using TMS320C6745 DSP
Pantech ProLabs India Pvt Ltd
 
Basics of Connectors
Pantech ProLabs India Pvt Ltd
 
Introduction to Code Composer Studio 4
Pantech ProLabs India Pvt Ltd
 
optimization c code on blackfin
Pantech ProLabs India Pvt Ltd
 
Internet of Things
Pantech ProLabs India Pvt Ltd
 
Introduction to tms320c6745 dsp
Pantech ProLabs India Pvt Ltd
 
Network Cabling
Subhash Vadadoriya
 
Network cable
Online
 
Medical Image Processing
Pantech ProLabs India Pvt Ltd
 
Networking ppt
Shovan Mandal
 
Ad

Similar to Interfacing UART with tms320C6745 (20)

PDF
RS 232 Notes for Embedded systems and IOT
ERPraven
 
PPT
Uart
sean chen
 
PPTX
Uart
Aditee Apurvaa
 
DOCX
Tutorial
ROBOTZLABZ
 
PDF
Rs 232 & usb ieee1394 communication
Vijay Kumar
 
PDF
Embedded real time-systems communication
Vijay Kumar
 
PPTX
serial_communication_part2_Jan2025_session1.pptx
manomykv
 
PPTX
Serial Communication & Embedded System Interface
KUET
 
DOCX
Project_intership
Wajiha Muzaffar Ali
 
PPTX
Serial Communication Uart soc
Satyam Sharma
 
PPT
UART
Naveen Kumar
 
PDF
Serial Port Device Driver
Emblogic
 
PDF
Firmware implementation of UART using Bare metal programming
IRJET Journal
 
PDF
Universal Asynchronous Receive and transmit IP core
Aneesh Raveendran
 
PPTX
2012 1 arduino_rs232
Don Doerres
 
PPT
Communication Interface of The Embedded Systems
VijayKumar5738
 
PPT
Interfacing rs232
PRADEEP
 
PPTX
Micro c lab8(serial communication)
Mashood
 
RS 232 Notes for Embedded systems and IOT
ERPraven
 
Uart
sean chen
 
Tutorial
ROBOTZLABZ
 
Rs 232 & usb ieee1394 communication
Vijay Kumar
 
Embedded real time-systems communication
Vijay Kumar
 
serial_communication_part2_Jan2025_session1.pptx
manomykv
 
Serial Communication & Embedded System Interface
KUET
 
Project_intership
Wajiha Muzaffar Ali
 
Serial Communication Uart soc
Satyam Sharma
 
Serial Port Device Driver
Emblogic
 
Firmware implementation of UART using Bare metal programming
IRJET Journal
 
Universal Asynchronous Receive and transmit IP core
Aneesh Raveendran
 
2012 1 arduino_rs232
Don Doerres
 
Communication Interface of The Embedded Systems
VijayKumar5738
 
Interfacing rs232
PRADEEP
 
Micro c lab8(serial communication)
Mashood
 
Ad

More from Pantech ProLabs India Pvt Ltd (20)

PDF
Registration process
Pantech ProLabs India Pvt Ltd
 
PPTX
Choosing the right processor for embedded system design
Pantech ProLabs India Pvt Ltd
 
PPT
Brain Computer Interface
Pantech ProLabs India Pvt Ltd
 
PPTX
Electric Vehicle Design using Matlab
Pantech ProLabs India Pvt Ltd
 
PPTX
Image processing application
Pantech ProLabs India Pvt Ltd
 
PPTX
Internet of Things using Raspberry Pi
Pantech ProLabs India Pvt Ltd
 
PPTX
Internet of Things Using Arduino
Pantech ProLabs India Pvt Ltd
 
PPTX
Brain controlled robot
Pantech ProLabs India Pvt Ltd
 
PPTX
Brain Computer Interface-Webinar
Pantech ProLabs India Pvt Ltd
 
PPTX
Development of Deep Learning Architecture
Pantech ProLabs India Pvt Ltd
 
PPTX
Gate driver design and inductance fabrication
Pantech ProLabs India Pvt Ltd
 
PPT
Brainsense -Introduction to brain computer interface
Pantech ProLabs India Pvt Ltd
 
PPTX
Wearable Technology
Pantech ProLabs India Pvt Ltd
 
PPTX
Introduction to Brain Computer Interface
Pantech ProLabs India Pvt Ltd
 
PPTX
Building Robots Tutorial
Pantech ProLabs India Pvt Ltd
 
PPT
Introduction to robotics
Pantech ProLabs India Pvt Ltd
 
PPT
Brainwave starter Kit- Brain computer interface
Pantech ProLabs India Pvt Ltd
 
PDF
Types of motors and control techniques using TI motor control kit
Pantech ProLabs India Pvt Ltd
 
Registration process
Pantech ProLabs India Pvt Ltd
 
Choosing the right processor for embedded system design
Pantech ProLabs India Pvt Ltd
 
Brain Computer Interface
Pantech ProLabs India Pvt Ltd
 
Electric Vehicle Design using Matlab
Pantech ProLabs India Pvt Ltd
 
Image processing application
Pantech ProLabs India Pvt Ltd
 
Internet of Things using Raspberry Pi
Pantech ProLabs India Pvt Ltd
 
Internet of Things Using Arduino
Pantech ProLabs India Pvt Ltd
 
Brain controlled robot
Pantech ProLabs India Pvt Ltd
 
Brain Computer Interface-Webinar
Pantech ProLabs India Pvt Ltd
 
Development of Deep Learning Architecture
Pantech ProLabs India Pvt Ltd
 
Gate driver design and inductance fabrication
Pantech ProLabs India Pvt Ltd
 
Brainsense -Introduction to brain computer interface
Pantech ProLabs India Pvt Ltd
 
Wearable Technology
Pantech ProLabs India Pvt Ltd
 
Introduction to Brain Computer Interface
Pantech ProLabs India Pvt Ltd
 
Building Robots Tutorial
Pantech ProLabs India Pvt Ltd
 
Introduction to robotics
Pantech ProLabs India Pvt Ltd
 
Brainwave starter Kit- Brain computer interface
Pantech ProLabs India Pvt Ltd
 
Types of motors and control techniques using TI motor control kit
Pantech ProLabs India Pvt Ltd
 

Recently uploaded (20)

PDF
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
PPTX
PPT-Q1-WK-3-ENGLISH Revised Matatag Grade 3.pptx
reijhongidayawan02
 
PPTX
Stereochemistry-Optical Isomerism in organic compoundsptx
Tarannum Nadaf-Mansuri
 
PDF
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
PDF
Aprendendo Arquitetura Framework Salesforce - Dia 03
Mauricio Alexandre Silva
 
PPTX
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
PPTX
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
PPTX
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
PPTX
Post Dated Cheque(PDC) Management in Odoo 18
Celine George
 
PPTX
HUMAN RESOURCE MANAGEMENT: RECRUITMENT, SELECTION, PLACEMENT, DEPLOYMENT, TRA...
PRADEEP ABOTHU
 
PPTX
Identifying elements in the story. Arrange the events in the story
geraldineamahido2
 
PDF
CONCURSO DE POESIA “POETUFAS – PASSOS SUAVES PELO VERSO.pdf
Colégio Santa Teresinha
 
PDF
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
PDF
The Different Types of Non-Experimental Research
Thelma Villaflores
 
PPTX
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
PPTX
PPT-Q1-WEEK-3-SCIENCE-ERevised Matatag Grade 3.pptx
reijhongidayawan02
 
PPTX
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
PDF
0725.WHITEPAPER-UNIQUEWAYSOFPROTOTYPINGANDUXNOW.pdf
Thomas GIRARD, MA, CDP
 
PPTX
Neurodivergent Friendly Schools - Slides from training session
Pooky Knightsmith
 
PDF
Dimensions of Societal Planning in Commonism
StefanMz
 
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
PPT-Q1-WK-3-ENGLISH Revised Matatag Grade 3.pptx
reijhongidayawan02
 
Stereochemistry-Optical Isomerism in organic compoundsptx
Tarannum Nadaf-Mansuri
 
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
Aprendendo Arquitetura Framework Salesforce - Dia 03
Mauricio Alexandre Silva
 
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
Post Dated Cheque(PDC) Management in Odoo 18
Celine George
 
HUMAN RESOURCE MANAGEMENT: RECRUITMENT, SELECTION, PLACEMENT, DEPLOYMENT, TRA...
PRADEEP ABOTHU
 
Identifying elements in the story. Arrange the events in the story
geraldineamahido2
 
CONCURSO DE POESIA “POETUFAS – PASSOS SUAVES PELO VERSO.pdf
Colégio Santa Teresinha
 
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
The Different Types of Non-Experimental Research
Thelma Villaflores
 
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
PPT-Q1-WEEK-3-SCIENCE-ERevised Matatag Grade 3.pptx
reijhongidayawan02
 
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
0725.WHITEPAPER-UNIQUEWAYSOFPROTOTYPINGANDUXNOW.pdf
Thomas GIRARD, MA, CDP
 
Neurodivergent Friendly Schools - Slides from training session
Pooky Knightsmith
 
Dimensions of Societal Planning in Commonism
StefanMz
 

Interfacing UART with tms320C6745

  • 2. Technology beyond the Dreams™ Copyright © 2014 Pantech Prolabs India Pvt Ltd. 1) Introduction: Serial interface (universal asynchronous receiver transmitter : UART) • RS232 standard and application, e.g. 2 2 RS232 port (UART) RS232 port (UART) RS232 standard 3 wires +10 V=‘0’=SPACE -10V=‘1’=MARK Pin2 Pin3 pin5 Pin3 Pin2 pin5 UART
  • 3. Technology beyond the Dreams™ Copyright © 2014 Pantech Prolabs India Pvt Ltd. Universal asynchronous receiver transmitter : UART • RS232 is a serial communication standard • Since it is asynchronous, no external clock is needed, only 3 wires are required for the simplest RS232 connection {GND, tx(transmit), rx(receive)} 3 3 +10V=Logic 0=space -10V= Logic 1=markExercise: Sketch Bit Patterns for character A and B Start 0 1 2 3 4 5 6 7 stop Bit 0 to 7 (least sig. bit first ) time
  • 4. Technology beyond the Dreams™ Copyright © 2014 Pantech Prolabs India Pvt Ltd. RS-232 Level Converter • Convert TTL to RS232 and RS232 to TTL voltage levels. The most commonly used RS-232 level converter is MAX232 and MAX3232. • This IC includes charge pump which can generate RS232 voltage levels (-10V and +10V) from 3.3V power supply. It also includes two receiver and two transmitters and is capable of full-duplex UART/USART communication. • RS-232 communication enables point-to-point data transfer
  • 5. Technology beyond the Dreams™ Copyright © 2014 Pantech Prolabs India Pvt Ltd. Schematic Diagram to Interface With UART
  • 6. Technology beyond the Dreams™ Copyright © 2014 Pantech Prolabs India Pvt Ltd. UART Registers
  • 7. Technology beyond the Dreams™ Copyright © 2014 Pantech Prolabs India Pvt Ltd. UART Transmit Program #include "stdio.h" #include "c6745.h" #include "c6745_uart.h" void main() { Int16 i; Uint8 j=64; UART_Handle uart0; char message[]={"The C6745-UART is fine !nr"}; /* Initialize BSL */ C6745_init( ); /* Open Uart Handle */ uart0 = C6745_UART_open( 1, 9600 ); while(1) { for(i=0;i<27;i++) { while( C6745_UART_xmtReady( uart0 ) ); // Wait for uart_tx ready C6745_UART_putChar( uart0, message[i] ); // Write 1 byte } } }
  • 8. Technology beyond the Dreams™ Copyright © 2014 Pantech Prolabs India Pvt Ltd. UART Receive &Transmit Program #include "stdio.h" #include "c6745.h" #include "c6745_uart.h“ void main() { UART_Handle uart0; char receive; /* Initialize BSL */ C6745_init( ); /* Open Uart Handle */ uart0 = C6745_UART_open( 1, 9600 ); while(1) { while(((uart0->regs->LSR) & 0x1)==0); receive = uart0->regs->THR; while( C6745_UART_xmtReady( uart0 ) ); // Wait for uart_tx ready C6745_UART_putChar( uart0, receive ); // Write 1 byte } }