16 Pages

lecture3

Course: EE 281, Fall 2009
School: Stanford
Rating:
 
 
 
 
 

Word Count: 729

Document Preview

#3 Lecture Outline Embedded System Design Laboratory Announcements AVR Processor Resources UART (Universal Asynchronous Receiver/Transmitter) SPI (Serial Peripheral Interface) October 4, 2002 Stanford University - EE281 Lecture #3 #1 Announcements Embedded System Design Laboratory Have you finished Lab #1? Due date is: Monday, (5pm?) Lab#0 Research your ideas Project Idea Discussion (arrange to...

Register Now

Unformatted Document Excerpt

Coursehero >> California >> Stanford >> EE 281

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
#3 Lecture Outline Embedded System Design Laboratory Announcements AVR Processor Resources UART (Universal Asynchronous Receiver/Transmitter) SPI (Serial Peripheral Interface) October 4, 2002 Stanford University - EE281 Lecture #3 #1 Announcements Embedded System Design Laboratory Have you finished Lab #1? Due date is: Monday, (5pm?) Lab#0 Research your ideas Project Idea Discussion (arrange to meet) Do you need a group In-Circuit Emulator (AVR-ICE) Works like simulator but on real hardware One station available, second one coming soon October 4, 2002 Stanford University - EE281 Lecture #3 #2 AVR Processor Resources Embedded System Design Laboratory Interrupts Timers UART (Universal Asynchronous Receiver/ Transmitter) SPI (Serial Peripheral Interface) A/D Converters (Analog to Digital) Analog Comparator October 4, 2002 Stanford University - EE281 Lecture #3 #3 AVR AT90S8515 Pinout Embedded System Design Laboratory General Purpose Ports PORTA PORTB PORTC PORTD (Special Functions) Special Purpose Pins Crystal (XTAL1/XTAL2) RESET ICP, OLE, OC1B Power (VCC/GND) October 4, 2002 Stanford University - EE281 Lecture #3 #4 `8515 Functional Architecture Embedded System Design Laboratory 32 Registers (R0-R31) 4K Prog ROM 512 bytes RAM 512 bytes EEPROM 32 I/O lines 13 Interrupts Lots of fun built-in peripherals October 4, 2002 Stanford University - EE281 Lecture #3 #5 UART Embedded System Design Laboratory The UART, or Universal Asynchronous Receiver Transmitter, provides hardware support for a serial port on AVR processors Signaling is compatible with PC/Mac/Unix serial (RS-232C) The UART provides: Parallel-to-Serial and Serial-to-Parallel conversion Start and Stop Bit framing Parity Generation Baud-Rate Generation (2400-115.2kbps at 3.686 or 7.37MHz) Interrupts Transmit Complete Transmit Data Register Empty Receive Complete October 4, 2002 Stanford University - EE281 Lecture #3 #6 Serial Specification (RS-232C) Embedded System Design Laboratory Data Start bit 6,7,8,9 data bits Parity bit optional (E,O,M,S,N) Stop bit Voltages Processor outputs 0/5V logic-level signal RS-232C uses +12V/-12V signal Level-converter IC provided on STK500 (MAX202) 5V 0V October 4, 2002 Stanford University - EE281 Lecture #3 #7 UART Registers Embedded System Design Laboratory UDR (UART Data Register) Write bytes to transmit Read received bytes USR (UART Status Register) Rx/Tx complete signal bits Framing error, overflow signal bits UCR (UART Control Register) Interrupt enable bits Rx/Tx enable bits Data format control bits UBRR (UART Baud Rate Register) Baud rate generator ratio October division 4, 2002 Stanford University - EE281 Lecture #3 #8 UART Transmitting Embedded System Design Laboratory Send a byte by writing to UDR register TXC bit in USR is set when the final bit has finished transmitting Tx Complete interrupt triggered if enabled in the UCR Must wait for current byte to finish transmitting before sending the next one October 4, 2002 Stanford University - EE281 Lecture #3 #9 UART Receiving Embedded System Design Laboratory How do I know a byte has arrived? Watch the RXC bit in USR Use the Rx Complete interrupt and write an ISR Read received bytes from the UDR UDR is double-buffered, but be sure to read it in time October 4, 2002 Stanford University - EE281 Lecture #3 #10 UART Baud Rate Embedded System Design Laboratory Set by UBRR Varies with fCK October 4, 2002 Stanford University - EE281 Lecture #3 #11 UART Example Code Embedded System Design Laboratory echo1.asm Echos characters sent over serial port back to the sender Shows setup of UART Shows non-interrupt use of both serial receive and transmit echo2.asm Echos only printable characters Uses interrupt-driven receive Implements a 50-byte receive buffer Can be used as starter code for Lab#2 Available on the course website October 4, 2002 Stanford University - EE281 Lecture #3 #12 STK500 UART Connection Embedded System Design Laboratory October 4, 2002 Stanford University - EE281 Lecture #3 #13 Serial Peripheral Interface Embedded System Design Laboratory Allows transfer of information, 8 bits at a time, between microcontroller and any nu...

Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

Stanford - ME - 118
/* Main Code for Free Range RoverThis AWESOME CODE was produced by the studly, too cool"Produce Designers" (Double Pete, Frank, and Julie) * * U:\hwang\rover_main.c * *//*include files*/#include <me118.h>/* #include <mini_io.h> */#incl
Boise State - EDTECH - 571
History of Educational ComputingEdTech 571Educational Computing Pre-Microcomputer Era First documented instructional use of a computer 1950 computer-driven flight simulator at MIT 1959 IBM 650 computer teach binary arithmetic to NYC elementa
Boise State - EDTECH - 552
EDTECH 552, lab2Muitlple Choice Questions:1. How does CSMA/CD react to collisions? CA. All systems jam the network, and then all begin transmitting again. B. Hosts involved in a collision send an RTS signal indicating a time frame in whic
Boise State - ITM - 305
Virtual LANs Topics VLAN Basics Broadcast Control Security Flexibility and Scalability VLAN Memberships Static VLANs Switches Flat Network Structure of SwitchesSwitches forward broadcasts Benefits of Switched Networ
Boise State - NTCOMM - 405
Regulatory, Social & Legal Issues in TelecommunicationsNTCOMM 405 Fall, 2003The Telecomm Industry Startedin 1876 with Bell's patent covering"the method of, and apparatus for, transmitting vocal or other sounds telegraphically." US Patent 17
Boise State - CS - 125
CS 125Introduction to Computer ScienceThe McGraw-Hill Companies, Inc. Permission required for reproduction or display.slide 1What is computer science?. the study of the theoretical foundations of information and computation and their impleme
Boise State - CS - 584
Syllabus CompSci 584: Special Topics in Wireless Sensor Networks Spring 2009 Instructor: Sirisha Medidi Room: MEC 302 G; Ph: 426-2623; Email: SirishaMedidi@boisestate.edu Office Hours: TW 4:30 6:00 pm Class Timings and Location: MW 6:00 7:15 pm; ET
Boise State - CS - 117
ClassesHanly: Chapter 6 Freidman-Koffman: Chapter 10, intro in Chapter 3.7CS 117 Spring 2002Classes Classes are what makes C+ object oriented you can create your own types encapsulate - hide details from the user simplifies development by sep
Boise State - CS - 221
Chapter 1 Overview of Computer Graphics3 3 3 3 3 3To understand the basic objectives and scope of computer graphics To identify computer graphics applications To understand the basic structures of 2D and 3D graphics systems To understand evolution
Boise State - CS - 221
Chapter 2 2D Graphics: Basics3 3 3 3 3 3 3The architecture and operations of a 2D graphics system The coordinate spaces in a rendering pipeline Java 2D program structure and the Graphics2D object The basic 2D geometric primitives 2D coordinate sys
Boise State - CS - 125
Chapter 10Arrays ListsThe McGraw-Hill Companies, Inc. Permission required for reproduction or display.Array Basics An array is an indexed collection of data values. If your program needs to deal with 100 integers, 500 Account objects, 365 re
Boise State - CS - 125
In Class Exercises Chapter 3, problem 25 Develop an application to compute the total cost of an order for MyJava Coffee Outlet including the boxes used to ship it. Coffee is sold in 2-lb bags which cost $5.50 each. Size Holds Cost Large Med
Stanford - CS - 242
CS 2422007SelfJohn MitchellSlides developed by Kathleen FisherHistoryx Prototypebased pure objectoriented language. x Designed by Randall Smith (Xerox PARC) and David Ungar (Stanford University).x Self 4.2 available from Sun web site:h
Stanford - E - 145
Startup Checklist Are you comfortable with: Chaos Uncertainty Are you: Resilient Agile Passionate Driven ArticulateEntrepreneurshipYour Role in a Startup Founder Co-founder Early Employee Late EmployeeThey don't require the same ri
Stanford - CS - 262
Some new sequencing technologiesCS262 Lecture 12, Win07, BatzoglouMolecular Inversion ProbesCS262 Lecture 12, Win07, BatzoglouSingle Molecule Array for Genotyping-SolexaCS262 Lecture 12, Win07, BatzoglouNanopore SequencingCS262 Lecture
Boise State - EE - 451
EE 551/451, Fall, 2007 Communication SystemsZhu HanDepartment of Electrical and Computer EngineeringClass 16 Oct. 23rd, 2007Receiver StructureMatched filter: match source impulse and maximize SNR grx to maximize the SNR at the sampling time
Boise State - EE - 551
EE 551/451, Fall, 2007 Communication SystemsZhu HanDepartment of Electrical and Computer EngineeringClass 16 Oct. 23rd, 2007Receiver StructureMatched filter: match source impulse and maximize SNR grx to maximize the SNR at the sampling time
Stanford - MI - 211
Advanced Immunology I (Feb. 6, 2004)Yueh-hsiu ChienThe source of Antigenic Peptides Associated with Class I MHC Molecules(What is known then, what is new now) N. Shastri, S. Schwab and T. Serwold, Producing nature's gene-chips: the generation of
Stanford - E - 155
! E155 g1 proton: contributions to the systematic error. ! Beam Energy: 48.35 GeV. ! Source: T.S. Toole, "A Precision Measurement of the Spin Structure ! Functions g1p and g1d", pg 219,
Stanford - E - 155
! E155 A_parallel for the proton and deuteron. ! Beam Energy: 48.35 GeV; Scattering Angle: 2.75 deg; ! Source: T.S. Toole, "A Precision Measurement of the Spin Structure Functions g1p and g1d", pg185, ! Ph. D. thesis, American University,
Stanford - CS - 224
Pro, Con, and Affinity Tagging of Product ReviewsTodd Sullivan The Task Given a product review, what are the pros, cons, and affinities chosen by the reviewer? ExampleAuthor Source Creation Date Location Length Used Rating Bottom
Stanford - STAT - 262
The variables are: creatinine clearance serum creatinine concentration age (years) weight (kilos)for 33 male subjects. Creatinine clearance is an important measureof kidney function. Serum creatinine concentrationis easier to mea
Stanford - CS - 248
* The invention of perspective *(For detailed citations of sources of illustrations, see: http:/graphics.stanford.edu/courses/cs99d-01/bibliography.html)The Greeks invent illusionistic art ("mimesis"):540 BCEarly Greek classical
Stanford - CS - 147
Tools for Hi-Fi PrototypingCS 147 November 3, 2005S147 - Terry Winograd - 1Macromedia FlashInteractive Vector Graphics, Line Drawing, and AnimationS147 - Terry Winograd - 2Basics Flash was created as an animation tool, but works quite well
Stanford - ED - 208
Overview and Background"To ignore photojournalism is to ignore history."1 The purpose of the ARTiFACT curriculum is to develop in children a lasting ability to critically analyze photographic images used to record history and to generate an endurin
Stanford - EDUC - 39105
Learning Process Visual and Auditory as input channels be aware of overwhelming these channels resulting in excess cognitive load Limited working memory, need to store information in long term memory link new knowledge to prior knowledge New knowle
Stanford - EDUC - 39105
ASSURE1. Analysis of general characteristics, entry competencies, and learning styles Descriptions of learning outcomes based on ABCD: Audience, Behavior, Condition, Degree Building a bridge between the audience and the objectives Planning on implem
Stanford - EDUC - 39105
Contiguity PrincipleConcept No separation of: Text and graphics on scrolling screens Questions from feedback Directions from exercise Goal is to reduce cognitive load of learner by reducing amount of information that needs to be matched and integrat
Stanford - E - 297
David Kim and Andrew Mesher INTRODUCTIONEdge Spring 2003Over the past decade, ever increasing investments in derivatives has brought about the possibility of potential financial devastation should this trend continue. A derivative can be defined
Stanford - EE - 104
EE104: Lecture 5 Outline Review of Last Lecture Introduction to Fourier Transforms Fourier Transform from Fourier Series Fourier Transform Pair and Signal Spectrum Example: Rectangular Pulse Time/Bandwidth TradeoffsReview of Last Lecture
Stanford - CS - 262
Hidden Markov Models1 2.1 2.1 2.. .1 2.KKK.Kx 1x2x3xKSubstitutions of Amino AcidsMutation rates between amino acids have dramatic differences!CS262 Lecture 8, Win07, BatzoglouSubstitution MatricesBLOSUM matrice
Stanford - MTG - 050429
Backgrounds Report SVT integrated dose SVTRAD & Diamond Instantaneous dose SVTRAD Fast Aborts Katherine George April 22nd April 29th 2005 SVT Occupancy DCH current Occupancies (DCH, DRC, EMC, IFR) Trickle injection quality (HER and LER) L1 d
Stanford - E - 166
July 26 2006 TO THE SPECTROMETER FIELD EVALUATION A. Mikhailichenko, Cornell, LEPP, Ithaca, NY 14850 1) Kinetic energy of positron defined by formula We + 2 c 2 2 2.47968 10 -9 2 2 = - 2 mc - 2 0.5109989 [ MeV ] u (1 + K 2 ) u (1 + K 2 )F
Stanford - MSANDE - 310
Facility Location using Linear Programming DualityYinyu Ye Department if Management Science and Engineering Stanford University Facility Location ProblemInputA set of clients or cities D A set of facilities F with facility cost fi Connect
Stanford - EISI - 1001
Case docket was last updated on: 09/22/00.Docket as of September 18, 2000 7:53 pm Page 1 Proceedings include all events.3:97cv813 Warburgh, et al v. EIS Intl, Inc, et al LEAD
Stanford - CP - 119
Department of City and Regional Planning University of California at Berkeley Instructor: Stephen M. Wheeler, Ph.D., AICPCP 119 Fall 2002 Planning for Sustainability swheeler@uclink.berkeley.eduRECOMMENDED READINGS Beginning around 1980, and esp
North-West Uni. - EECS - 510
Present by: Chi-Yo HsiaoSYNOPSIS DIFFUSION FOR ROBUST AGGREGATION IN SENSOR NETWORKSSuman Nathy; Phillip B. Gibbons Srinivasan Seshany Zachary R. AndersonyABSTRACTTree topology is not robust against node and communication failures. This paper
North-West Uni. - CS - 110
Search Recall the employee database used in the lab examples:employeeRecordT workforce[5] = Name Fudge, Cornelius Weasley, Percy Bones, Amelia Vance, Emelline Doge, Elphias Empl. ID 321234343 100345968 345094573 456560098 345657890 Dept. admin admi
Stanford - EDUC - 224
Carolyn Hack IT in the Classroom Week 1 Deliverablea. Technology biography: What I have learned about technology. I have had experience with technology in two different ways: personally, and in the classroom. In my daily life, I word process and us
North-West Uni. - CS - 495
DenialofService Resilience in PeertoPeer SystemsD. Dumitriu, E. Knightly, A. Kuzmanovic, I. Stoica and W. Zwaenepoel Presenter: Yan Gao OutlineBackgroundDoS Scenario P2P File Sharing Filetargeted DoS attacks Networktargeted DoS
North-West Uni. - CS - 213
AlignmentAligned Data Primitive data type requires K bytes Address must be multiple of K Required on some machines; advised on IA32 treated differently by Linux and Windows!Motivation for Aligning DataMemory accessed by (aligned) double or
North-West Uni. - CS - 213
EECS213 Exceptional Control Flow Part I May 12, 2008Topics Exceptions Process context switches Creating and destroying processesControl FlowComputers do Only One ThingFrom startup to shutdown, a CPU simply reads and executes (interprets) a
Stanford - FM - 109
0 0 0 240.945 5.85098 0.0439355 1 162.691 2.92015 0.0841983 0.0131136 1.481 16.1124 0 0 1 263.586 2.87969 0.0373753 0.00177306 179.302 2.97548 0.0663917 0.00733183 1.47007 32.413 0 1 0 268.459 2.44389 0.0386478 0.00184715 187.053 3.07818 0.0630543
Stanford - FM - 107
0 0 0 283.878 2.56818 0.0366826 0.00143305 171.056 2.50077 0.0887242 0.0151208 1.65956 20.1866 0 0 1 310.529 2.26722 0.0355833 0.00153608 190.63 2.41969 0.0993345 0.0168763 1.62896 26.1309 0 1 0 304.398 2.06114 0.0351743 0.00129186 190.991 2.69551
North-West Uni. - STS - 20042005
11223344556677889910101111121213131414151516161717181819192020
North-West Uni. - CS - 213
CS 213Unix Systems Programming In A NutshellFall 06Unix Systems Programming In a NutshellUnix presents a huge set of interfaces to the systems programmer. However, much of this complexity can be tamed by understanding several fundamental abstr
North-West Uni. - CS - 450
Large Scale Malicious Code: A Research AgendaN. Weaver, V. Paxson, S. Staniford, R. CunninghamContentsOverview Worms: Type, Attackers, Enabling Factors Existing Practices and Models Cyber CDC Vulnerability Prevention Defenses Automatic Detect
North-West Uni. - CS - 495
Large Scale Malicious Code: A Research AgendaN. Weaver, V. Paxson, S. Staniford, R. Cunningham Presented by Stefan BirrerMotivation and GoalNetworking infrastructure is essential to many activitiesAddress the "worm thread"Establish tax
North-West Uni. - CS - 213
CS213Bits and Bytes 3/29/2006 Topics Physics, transistors, Moore's law Why bits? Representing information as bits Binary/Hexadecimal Byte representations numbers characters and strings InstructionsBit-level manipulations Boolean algeb
North-West Uni. - EARTH - 202
\" Use: groff -U -ms -ep file.txt > out.ps \".LP.AM.EQdelim $gfont Rgsize +1.EN.ls 1.nr LL 6.5i.nh.ce\fBVIII. THERMAL EVOLUTION OF THE PLANETS\fR.sp.ce8.1 HEAT TRANSFER.spGiven that the planet formed, the issue at hand is to underst
Stanford - MSANDE - 247
Course InvitationMS&E 247s International InvestmentsSummer 2001 MW 1:00 - 2:05 p.m., F 1:00 - 2:15 p.m. Skilling 193Live Broadcast on SITN Channel E2Course Objective: This course examines important issues in the rapidly evolvingarea of inte
Stanford - PAM - 315
#if #if #if #if #if #if #if_CDC_ _SUN_ _HPUX_ _IBM_ _APOLLO_ _UNIX_ ! _SINGLE_ _SUN_
Stanford - CS - 273
Multiple Sequence AlignmentCS273a Lecture 10, Aut 08, BatzoglouEvolution at the DNA levelDeletion Mutation SEQUENCE EDITS.ACGGTGCAGTTACCA. .AC-CAGTCCACCA.REARRANGEMENTSInversion Translocation DuplicationCS273a Lecture 10, Aut 08, Batzogl
Stanford - CS - 273
DNA SequencingSteps to Assemble a GenomeSome Terminology1. read overlapping reads that comes Find a 500-900 long wordout of sequencer mate pair a pair of reads from two ends 2. Merge some "good" pairs of reads of the same insert fragmentinto
Stanford - SYMBSYS - 139
Prolog for Linguists Symbolic Systems 139P/239PJohn Dowding Fall, 2001GoalsGain basic competence in Prolog programming. Understand relationships between Prolog, Logic, Logic Programming, and Linguistics. Understand when to (and not to) consider u
Evergreen - READ - 38612
PlayersWantedFor Longtime Oly Area Acoustic Band If You Know/Like: Old and in The WayBanjo New Riders of the Purple Sage Garcia and Grisman The Grateful DeadDel McCouryWe Have: On Going Monthly Gigs West Olympia Rehersal Space S
Evergreen - READ - 50679
Job Description Job Title: College Preparatory Associate Reports to: College Preparatory Advisors or Principal Designee at Kent-Meridian High School (Kent, WA) and Foster High School (Tukwila, WA) FLSA Status: Full-time, Non-Exempt Date Prepared: 8/1
Stanford - SYMBSYS - 139
Prolog for Linguists Symbolic Systems 139P/239PJohn Dowding Week 5, Novembver 5, 2001 jdowding@stanford.eduOffice HoursWe have reserved 4 workstations in the Unix Cluster in Meyer library, fables 1-4 4:30-5:30 on Thursday this week Or, contact me
Stanford - ECON - 101
Essay 2 This assignment is due in class on Apr. 30th. You must provide a 900 words (+/-10%) essay on the following question: Should rich countries and multilateral institutions forgive the debts of poor countries ? Bring two copies of your essay in c
Evergreen - ENERGY - 0405
Section 2.5 Question 1Section 2.5 Answer 1Section 2.5 Question 2Section 2.5 Answer 2Section 2.5 Question 3Section 2.5 Answer 3Section 2.5 Question 4Section 2.5 Answer 4Section 2.5 Question 5Section 2.5 Answer 5Section 2.5 Question
Evergreen - ENERGY - 0405
Winter wk 3 Thus.20.Jan.05 Ch.24: Voltage and electric field Ch.26: Current and resistance Solar applications Ch.27: CircuitsEnergy Systems, EJZEquipotential surfaces and E fieldsEquipotential = constant voltage Conductors are equipotential