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.

Slides:



Advertisements
Similar presentations
R4 Dynamically loading processes. Overview R4 is closely related to R3, much of what you have written for R3 applies to R4 In R3, we executed procedures.
Advertisements

CS 450 Module R4. R4 Overview Due on March 11 th along with R3. R4 is a small yet critical part of the MPX system. In this module, you will add the functionality.
1 Loops. 2 Often we want to execute a block of code multiple times. Something is always different each time through the block. Typically a variable is.
Better Debugging of Embedded via a Debug Port ECE152.
Review of Wunderboard ECE152. Overview  Hardware  Software Tool chain  Port Pins  LED Array  Analog to Digital Converter.
REPETITION (loops or iteration) Schneider: Sec. 6.1 & 6.3.
Better Debugging of Embedded via a Debug Port ECE152.
COMP3221: Microprocessors and Embedded Systems--Lecture 4 1 COMP3221: Microprocessors and Embedded Systems Lecture 4: Number Systems (II)
Python November 18, Unit 7. So Far We can get user input We can create variables We can convert values from one type to another using functions We can.
Algorithms. Introduction Before writing a program: –Have a thorough understanding of the problem –Carefully plan an approach for solving it While writing.
Downloading and Installing AutoCAD Architecture 2015 This is a 4 step process 1.Register with the Autodesk Student Community 2.Downloading the software.
ECE Department: University of Massachusetts, Amherst ECE 354 Spring 2006 Lab 2: Capturing and Displaying Digital Image.
1 The 9-Pin Connector Pin abbreviations (numbers in parentheses are the 25D pin numbers): 1. CD (8) 2. RD (Rx) (3) 3. TD (Tx) (2) 4. DTR (20) 5. SG (Ground)
Creating Functions Deborah Nelson Duke University Professor Susan Rodger July 22, 2008.
The 8051 Microcontroller and Embedded Systems
1-1 NET+OS Software Group Serial EEPROM API Supported Serial EEPROM parts Serial EEPROM API introduction Detailed Serial EEPROM API Function presentation.
The University of New Hampshire InterOperability Laboratory Serial ATA (SATA) Protocol Chapter 10 – Transport Layer.
Computers in Surveying SVY2301 / E4006 Automated Surveying.
What is RobotC?!?! Team 2425 Hydra. Overview What is RobotC What is RobotC used for What you need to program a robot How a robot program works Framework.
UNIT 8 Keypad Interface Contact Closure Counter Exceptions (Interrupts and Reset)
Embedded Stroke Evaluation System Amanda Sweeney, 4ECE Supervisor: Dr. Martin Glavin.
Fac of Ene & Surveying U.S.Q.1 E0001 Computers in Engineering DO.... LOOP.
Intro to Arduino Programming. Draw your circuits before you build them From Arduino 330 Ohm From Arduino 330 Ohm From Arduino 330 Ohm.
Use THIS LINK to get to AutoDesk’s Educational webpage.THIS LINK.
CS 450 Module R5. Next Week Reminder: R3 & R4 is due next Friday. No documentation due. You do not need to turn in a copy of your source code. Remember.
Downloading and Installing Autodesk Revit 2016
Autonomous Helicopter James LydenEE 496Harris Okazaki.
Downloading and Installing Autodesk Inventor Professional 2015 This is a 4 step process 1.Register with the Autodesk Student Community 2.Downloading the.
Sparkfun Electronics ATtiny85 Arduino Quick Reference Sheet
Asynchronous Serial I/O Unit 12 - Part 1. SCI Registers – Channel 0 SCI0BDH – SCI Baud Rate Register High Byte SCI0BDL – SCI Baud Rate Register Low.
C++ Pointers Review. Overview  What is a pointer  Why do I care?  What can be 'pointed to'?  Example.
Introduction to Loops For Loops. Motivation for Using Loops So far, everything we’ve done in MATLAB, you could probably do by hand: Mathematical operations.
Computers Are Smarter Than Humans Or Are They???
Loops Brent M. Dingle Texas A&M University Chapter 7 – part B (and some from Mastering Turbo Pascal 5.5, 3 rd Edition by Tom Swan)
Autonomous Helicopter EE 496 James Lyden Harris Okazaki.
 Control Flow statements ◦ Selection statements ◦ Iteration statements ◦ Jump statements.
ECE 447: Lecture 12 Keypads ECE 447: Lecture 10. ECE 447: Matrix Keypad.
Chap.6.3 UART.
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems Operating Systems Overview: Using Hardware.
Transmitter Interrupts Review of Receiver Interrupts How to Handle Transmitter Interrupts? Critical Regions Text: Tanenbaum
Tiva C TM4C123GH6PM UART Embedded Systems ECE 4437 Fall 2015 Team 2:
1 COMP541 Final Missing Pieces of MIPS: Adding Memory & I/O Montek Singh Apr 6, 2010.
Lecture 15. Modem Controller Register 4310 DTR 0 = Polling Operator 1 = Interrupts Enabled RTS 1 =Self Test 0 =Normal.
DALCON RFID IMPROVEMENT ECE 599, SPRING 2011 Brad Gasior, ECE Mike Fradkin, ECE Richard Young, ECE Sean Rinehart, ECE.
Welcome POS Synchronize Concept 08 Sept 2015.
Lab 7 Basic 1: Game of Memory
Sparkfun Electronics ATtiny85 Arduino Quick Reference Sheet
Lecture 2 Interrupts.
SERIAL PORT PROGRAMMING
Homework Reading Machine Projects Labs
COMP3221: Microprocessors and Embedded Systems
Dance Cards Dance Cards
UART Protocol Chapter 11 Sepehr Naimi
Dance Cards Dance Cards
Dance Cards Dance Cards
Operating Systems Chapter 5: Input/Output Management
Dance Cards Dance Cards
Dance Cards Dance Cards
Transmitter Interrupts
Dance Cards Dance Cards
Dance Cards Dance Cards
Robocon 2007 Electronics Quickstart!
Loops.
Dance Cards Dance Cards
Dance Cards Dance Cards
Dance Cards Dance Cards
Dance Cards Dance Cards
Part VI Looping Structures
Dance Cards Dance Cards
Presentation transcript:

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

How do I know what to do?  The first step is to read even if it does not make sense the first time  Second is to ask  Third is to hope and pray ;)

What do I do?  When working with lots of 'unknowns' limit yourself to one unknown at a time.  Don't try new software on a PC and a microcontroller while also using new hardware.  Limit your uncertainty

Setup the Wunderboard  The Wunderboard code needs three functions  unsigned char InitializeUART ()  unsigned char SendByteUART ()  unsigned char SendStringUART()

unsigned char InitializeUART ()  This function setup the Wunderboard to transmit serial data  You need to set the values of the UBRRn, UCSRnA, UCSRnB, and UCSRnC registers  Make sure you read the datasheet, section thoroughly

unsigned char SendByteUART ()  This function should check if the UART is ready to send a new byte.  If it is, it should send other wise it should exit immediately  Don't forget your return value!

unsigned char SendStringUART()  This function should try to send a string of characters by repeatedly calling the SendByteUART() function  If the first character it tries to send fails, the function should exit immediately  Otherwise the function blocks until the entire string is sent.

Setup the Host computer  To see the serial data being sent from the Wunderboard, you need to setup a 'terminal' program  Make sure you use the same settings as your Wunderboard

Setup the #define statements  Finally once you know your code works, encase the UART material in #ifdef preprocessor statements  This lets you enable and disable the UART with a single line.

Parting Thoughts  Look at return values and write functions that use them  Read everything  Ask for help