Better Debugging of Embedded via a Debug Port ECE152.

Slides:



Advertisements
Similar presentations
INPUT-OUTPUT ORGANIZATION
Advertisements

11-1 ECE 424 Design of Microprocessor-Based Systems Haibo Wang ECE Department Southern Illinois University Carbondale, IL I/O System Design.
ECT 357 Ch 18 UART. Today’s Quote: Be careful that your marriage doesn’t become a duel instead of a duet. Be careful that your marriage doesn’t become.
The 8051 Microcontroller Chapter 5 SERIAL PORT OPERATION.
Serial I/O - Programmable Communication Interface
Shift Register Application Chapter 22 Subject: Digital System Year: 2009.
PH4705 ET4305 Interface Standards A number of standard digital data interfaces are used in measurement systems to connect instruments and computers for.
Review of Wunderboard ECE152. Overview  Hardware  Software Tool chain  Port Pins  LED Array  Analog to Digital Converter.
Using the AVR UART Demo. Overview  How do I know what to do?  What do I do?  Setup the Wunderboard  Setup the Host computer  Setup the #define statements.
Better Debugging of Embedded via a Debug Port ECE152.
Spring EE 316 Computer Engineering Junior Lab Serial Ports.
USART and Asynchrono us Communica tion The USART is used for synchronous and asynchronous serial communication. USART = Universal Synchronous/Asynchronous.
1-1 Embedded Software Development Tools and Processes Hardware & Software Hardware – Host development system Software – Compilers, simulators etc. Target.
USB Mass-Storage Implementation on an Embedded System (D0113) Supervisor: Dimitry Sokolik Performed by: Yoav Gershoni Shachar Faigenblat Final Presentation.
7-1 Digital Serial Input/Output Two basic approaches  Synchronous shared common clock signal all devices synchronised with the shared clock signal data.
Input/Output and Communication
ECE 353 Lab B (part 1 – Overview)
ECE 353 Introduction to Microprocessor Systems Michael G. Morrow, P.E. Week 13.
INPUT-OUTPUT ORGANIZATION
University of Tehran 1 Interface Design Serial Communications Omid Fatemi.
USART Communication using the RS standard ETEC6416.
Serial Communication ETEC 6416.
Oppenheimer Technologies Rick King Jonathan Creekmore.
LSU 06/04/2007Expanding the BASIC Stamp1 Expanding the BASIC Stamp: Useful peripherals Programming Unit, Lecture 6.
NetBurner MOD 5282 Network Development Kit MCF 5282 Integrated ColdFire 32 bit Microcontoller 2 DB-9 connectors for serial I/O supports: RS-232, RS-485,
LSU 10/22/2004Serial I/O1 Programming Unit, Lecture 5.
The 8051 Microcontroller and Embedded Systems
Serial Port I/O Serial port sends and receives data one bit at a time. Serial communication devices are divided into: Data Communications Equipment (DCE),
COMPUTER SYSTEM LABORATORY Lab10 - Sensor II. Lab 10 Experimental Goal Learn how to write programs on the PTK development board (STM32F207). 2013/11/19/
UART and UART Driver B. Ramamurthy.
Teachers Name : Suman Sarker Telecommunication Technology Subject Name : Microcontroller & Embedded System Subject Code : 6871 Semester : 7th Department.
Modems Chapter 17. Basic Knowledge  Modems are little devices to use the telephone to talk to other computers.  Modem is an abbreviation for Modulator/
Lecture Set 9 MCS-51 Serial Port.
Chapter 7 Low-Level Protocols
Universal Asynchronous Receiver/Transmitter (UART)
ECE 353 Introduction to Microprocessor Systems Michael Schulte Week 13.
Industrial Reference Design Platform RS-232 Interface Developed by the TSC Americas Release 1.0.
Embedded System Design Laboratory October 4, 2002Stanford University - EE281 Lecture #3#1 Lecture #3 Outline Announcements AVR Processor Resources –UART.
Scott Baker Will Cross Belinda Frieri March 9 th, 2005 Serial Communication Overview ME4447/6405.
June 3, 2005H Themann SUSB Physics & Astronomy 1 Phenix Silicon Pixel FEM S. Abeytunge C. Pancake E. Shafto H. Themann.
Example. SBUF Register SCON Register(1) SCON Register(2)
Universal Asynchronous Receiver/Transmitter (UART)
ATtiny23131 A SEMINAR ON AVR MICROCONTROLLER ATtiny2313.
Modems How They Work. Modem A device used by a PC to communicate over a phone line or cable A device used by a PC to communicate over a phone line or.
Implementation of Embedded OS Lab4 Cortex-M3 Programming.
Lecture 7: Overview Microprocessors / microcontrollers.
1 Chapter Overview Modems The Internet and Web Browsers.
CE-2810 Dr. Mark L. Hornick 1 Serial Communications Sending and receiving data between devices.
Embedded Communication Protocols Don Heer 10/18/10 1.
Chap.6.3 UART.
Serial Communication RS-232. In order to make two devices communicate, whether they are desktop computers, microcontrollers, or any other form of integrated.
A+ Guide to Managing and Maintaining Your PC Fifth Edition Chapter 17 Supporting Modems.
Networked Embedded Systems Pengyu Zhang EE107 Spring 2016 Lecture 8 Serial Buses.
Communication Systems I CPE 313: Micro Processors and Interfacing.
Tiva C TM4C123GH6PM UART Embedded Systems ECE 4437 Fall 2015 Team 2:
1 Lab 4: D/A Converter Lab 4: D/A Converter This is a simple resistive network for a D/A converter Port 1, Port 0 are digital inputs ==> 00 (minimum),
Microcontrollers, Basics Fundamentals of Designing with Microcontrollers 16 January 2012 Jonathan A. Titus.
EE 107 Fall 2017 Lecture 5 Serial Buses – UART & SPI
SERIAL PORT PROGRAMMING
1 Input-Output Organization Computer Organization Computer Architectures Lab Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes.
UART and UART Driver B. Ramamurthy.
Atmega32 Serial Programming Basics
Computer Organization and Design
UART and UART Driver B. Ramamurthy.
Journey: Introduction to Embedded Systems
UART Protocol Chapter 11 Sepehr Naimi
Debugging Debug environments Debug via serial
CHAPTER SERIAL PORT PROGRAMMING. Basics of Serial Communication Computers transfer data in two ways: ◦ Parallel  Often 8 or more lines (wire.
Serial Communication 19th Han Seung Uk.
AVR UART The UART, or Universal Asynchronous Receiver Transmitter, provides hardware support for a serial port on AVR processors Signaling is compatible.
Presentation transcript:

Better Debugging of Embedded via a Debug Port ECE152

Overview

What is a Debug Port? JTAG – Digital Satellite, Later ECE courses I2C Proprietary – AVR serial ISP Serial (UART)

Understanding Asynchronous Serial (UART) Agreed on message format – Start and Stop Bits – Parity Agreed on speed

AVR Hardware UART Peripheral

Handling a UART in software Important Registers – USART I/O Data Register n– UDRn – USART Control and Status Register n A – UCSRnA – USART Control and Status Register n B – UCSRnB – USART Control and Status Register n C – UCSRnC – USART Baud Rate Registers – UBRRnL and UBRRnH

Baud Rate Speed of transmission Units of bits per second (bps or baud)

Start and Stop Bits 1 start bit, 1 or 2 stop bits USBSn bit in UCSRnC

FTDI UART to USB chip Modern computers do not have RS232 USB to UART converters maintain a simple interface FTDI Chip works on Windows, Mac and Linux Often driverless installation Can be disabled to allow for Wunderboard to Wunderboard serial communication

Voltages Wunderboard – 3.3V FTDI – 3.3 to 5V Old School RS232 – ±12V

Enabling and disabling Debug ports Why Enable and Disable Debug? – Code Size – Code Speed – Security

#IFDEF and Preprocessor Statements Preprocessor statements happen BEFORE compilation #DEFINE DEBUG #IFDEF DEBUG Serial code goes here... #ENDIF

Things to Remember Watch your flags to avoid buffer over run Use #DEFINE to remove code before compilation