CSE 466 Exam 1 Winter, 2010

Similar documents
The Atmel ATmega328P Microcontroller

Arduino Uno. Arduino Uno R3 Front. Arduino Uno R2 Front

ARDUINO MICRO WITHOUT HEADERS Code: A000093

Prototyping Module Datasheet

Wireless Sensor Networks. FireFly 2.2 Datasheet

Arduino Uno R3 INTRODUCTION

Electronics Single wire communication

Amarjeet Singh. January 30, 2012

Goal: We want to build an autonomous vehicle (robot)

AVR Intermediate Development Board. Product Manual. Contents. 1) Overview 2) Features 3) Using the board 4) Troubleshooting and getting help

Basics of UART Communication

Homework 5: Circuit Design and Theory of Operation Due: Friday, February 24, at NOON

Embedded Systems and Software. Serial Interconnect Buses I 2 C (SMB) and SPI

ARDUINO LEONARDO WITH HEADERS Code: A000057

Arduino ADK Rev.3 Board A000069

Mechatronics and Measurement. Lecturer:Dung-An Wang Lecture 6

INDUSTRIAL TRAINING:6 MONTHS PROGRAM TEVATRON TECHNOLOGIES PVT LTD

ARDUINO UNO REV3 Code: A000066

ARDUINO LEONARDO ETH Code: A000022

ARDUINO UNO REV3 SMD Code: A The board everybody gets started with, based on the ATmega328 (SMD).

Microcontroller basics

I2C-OC805S, I2C-OC805SA I2C Bus 8-Output Open Collectors

TWR98/99. ISP Programming. Application Note. Tenx reserves the right to change or discontinue this product without notice. tenx technology inc.

1/Build a Mintronics: MintDuino

3.3V regulator. JA H-bridge. Doc: page 1 of 7

FINAL EXAM. last name first name

Doc: page 1 of 8

ARDUINO MEGA ADK REV3 Code: A000069

I2C-AI418S I2C Bus Voltage and Current Analog Input Board

ARDUINO MEGA 2560 REV3 Code: A000067

ADC to I 2 C. Data Sheet. 10 Channel Analog to Digital Converter. with output via I 2 C

Various power connectors. 3.3V regulator. 64K Flash (Internal) 2K EEPROM (Internal) 4K SRAM (Internal) JA Mem Adr/ Data. Doc: page 1 of 9

2011 Pearson Higher Education, Mazidi, Naimi, and Naimi Pearson Higher Education, 2011 Pearson Higher Education,

Clock and Fuses. Prof. Prabhat Ranjan Dhirubhai Ambani Institute of Information and Communication Technology, Gandhinagar

MicroProcessor. MicroProcessor. MicroProcessor. MicroProcessor

Modtronix Engineering Modular Electronic Solutions SBC28DC. Single board computer for 28 pin DIP PICs

Growing Together Globally Serial Communication Design In Embedded System

keyestudio Keyestudio MEGA 2560 R3 Board

To be familiar with the USART (RS-232) protocol. To be familiar with one type of internal storage system in PIC (EEPROM).

ELCT708 MicroLab Session #1 Introduction to Embedded Systems and Microcontrollers. Eng. Salma Hesham

TEVATRON TECHNOLOGIES PVT. LTD Embedded! Robotics! IoT! VLSI Design! Projects! Technical Consultancy! Education! STEM! Software!

The Atmel ATmega168A Microcontroller

Embedded Systems and Software

CanSat Project Supervisor: Adam Cseh 0931/ Robotics Hall / Office 4

Freescale Semiconductor Inc. Microcontroller Solutions Group. FRDM-KL46Z User s Manual FRDM-KL46Z-UM Rev. 1.0

Physical Computing Self-Quiz

DS1306. Serial Alarm Real Time Clock (RTC)

ILI2312. ILI2312 Single Chip Capacitive Touch Sensor Controller. Specification ILI TECHNOLOGY CORP. Version: V1.03.

ONYX-MM-XT PC/104 Format Counter/Timer & Digital I/O Module

mcube Proprietary APS v1.0 1 / mcube Inc. All rights reserved.

Cerebot Nano Reference Manual. Overview. Revised April 15, 2016 This manual applies to the Cerebot Nano rev. A

Microprocessor Systems

Bridgetek Pte Ltd. CleOIO-Shield Module Datasheet. 1 Introduction. 1.1 Features. CleOIO-Shield Module Datasheet Version 1.0

Wasp Embedded Controller

Introduction to I2C & SPI. Chapter 22

Gyroscope Module 3-Axis L3G4200D (#27911)

8051 Microcontroller

Doc: page 1 of 6

± 2g Tri-axis Accelerometer Specifications

AVR XMEGA Product Line Introduction AVR XMEGA TM. Product Introduction.

Home Security System with Remote Home Automation Control

ILI2303. ILI2303 Capacitive Touch Sensor Controller. Specification

eip-24/100 Embedded TCP/IP 10/100-BaseT Network Module Features Description Applications

Display Real Time Clock (RTC) On LCD. Version 1.2. Aug Cytron Technologies Sdn. Bhd.

ILI2511. ILI2511 Single Chip Capacitive Touch Sensor Controller. Specification ILI TECHNOLOGY CORP. Version: V1.4. Date: 2018/7/5

VLSI Design Lab., Konkuk Univ. Yong Beom Cho LSI Design Lab

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

FRDM-KL03Z User s Guide

IMU Axis Gyro Evaluation Board Application Note

Introduction to ARM LPC2148 Microcontroller

Introduction to Microcontroller Apps for Amateur Radio Projects Using the HamStack Platform.

Robotics Training Module ABLab Solutions

DS1305EN. Serial Alarm Real-Time Clock

EZ-Bv4 Datasheet v0.7

HZX N03 Bluetooth 4.0 Low Energy Module Datasheet

Physical Computing Self-Quiz

VINCULUM-BASED TEMPERATURE / HUMIDITY / VOLTAGE DATA LOGGER FEATURES:

DS1306 Serial Alarm Real-Time Clock

SECURE DIGITAL ACCESS SYSTEM USING IBUTTON

DC6688FL32TC Super 1T 8051 Microcontroller

Mega128-DEVelopment Board Progressive Resources LLC 4105 Vincennes Road Indianapolis, IN (317) (317) FAX

JED MICROPROCESSORS PTY LTD

Data Sheet PulseOn OHR Module P-OHR1F Version Apr 2016

1 Introduction Input and Output TMDS Control Pin Control Mode I2C Control Mode Sink Application Schematic...

Embedded Systems. Software Development & Education Center. (Design & Development with Various µc)

Freedom FRDM-KV31F Development Platform User s Guide

Laboratory of Sensors Engineering Sciences 9 CFU

FIFTH SEMESTER DIPLOMA EXAMINATION IN ENGINEERING/ TECHNOLOGY-MARCH 2014 EMBEDDED SYSTEMS (Common for CT,CM) [Time: 3 hours] (Maximum marks : 100)

Doc: page 1 of 6

ATmega128. Introduction

AVR4018: Inertial Two (ATAVRSBIN2) Hardware User's Guide. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

PIC Microcontroller Introduction

Skill Badge Requirements: Microcontrollers

DS1305 Serial Alarm Real Time Clock (RTC)

SPI (Serial & Peripheral Interface)

Accelerometer Mouse: Hardware Description

Homework 5: Theory of Operation and Hardware Design Narrative Due: Friday, February 15, at NOON

Raspberry Pi - I/O Interfaces

AKKON USB CONTROLLER BOARD

Lecture 1. Course Overview and The 8051 Architecture

Transcription:

This take-home exam has 100 points and is due at the beginning of class on Friday, Feb. 13. (!!!) Please submit printed output if possible. Otherwise, write legibly. Both the Word document and the PDF are posted. Points will be awarded to the extent that we understand an answer or how a design works. Problem Points Score 1. 20 2. 20 3. 20 4. 20 5. 20 Total 100 Page 1 of 7

1. Hardware: (short specific answer no more than two sentences) a. What is the purpose of a current limiting resistor in a circuit, and why is it needed? b. Why do we need to use pull-up resistors? What is an example where you would need to use one? c. Why would you want to add bypass capacitors to your circuit? d. Is the ATmega16 an example of Princeton architecture or Harvard architecture? What is the main difference between these two architectures? Page 2 of 7

e. Calculate the current through the LED given the following: LED Forward Voltage = 2V LED Capacitance = 35 pf Battery Voltage = 5V Resistor Value = 330 ohms CPU Leakage Current = 1 micro amps Current: f. Describe the sequence of events when an interrupt occurs on the ATmega16. Indicate what elements of the interrupt sequence are managed by the hardware and what elements must be managed by the software/programmer. Page 3 of 7

2a. Explain three modes of serial communication from serial devices with one example of each: synchronous : iso-synchronous : asynchronous : 2b. How do the following protocols indicate start and end of a byte or data frame? (a) UART (b)spi (c) I2C/TWI Page 4 of 7

3. The LIS3L02DQ (datasheet) http://www.cs.washington.edu/education/courses/466/10wi/pdfs/accel.pdf is a three axis digital output linear accelerometer. Your job is to connect this part using the I2C (TWI) interface to an ATmega16 microcontroller. (The SPI interface is taken by another peripheral in this design). a. List pins on the ATmega16 that connect to pins on the LIS3L02DQ. In addition, show any other pin connections that need to be made on the LIS3L02DQ to ensure proper operation of the I2C interface. The LIS3L02DQ is the only peripheral on this I2C bus. You do not need to show power and ground connections. ATmega16 pins LIS3L02DQ pins Function b. Write a driver to initialize the LIS3L02DQ, and to acquire data from it. Hand in a print-out of your driver, properly commented so that we can understand how it works. Page 5 of 7

4. In Labs 3 and 4 you built a one-dimensional electric field sensor that was able to sense the distance to your hand or other grounded objects. Describe how you would re-design this with a single receiving antenna and multiple transmitting antennas to capture movement in the X, Y, and Z axes. Use additional sheets if necessary. Be certain that you answer the following: a. What hardware changes are required? What is the arrangement of the antennas? b. What software changes are required? c. Estimate the speed of operation of this new controller. How fast can you obtain readings in three axes, compared to the operation of your single-axis sensor in labs 3 and 4? Page 6 of 7

5. A temperature monitor is being designed around a germanium diode. The diode s forward voltage drop is a strong function of temperature. Therefore, a direct voltage measurement across the diode must be made to determine the temperature. Design an ADC interface using the AVR that will accomplish this, subject to the requirements below: -Only port A I/O pins may be used. -The reference voltage will be Vdd for the chip (AREF). -No additional parts may be used. -AVR CPU clock 8MHz -Convert as fast as possible -LSB of result will be in bit 0 of ADCL. -The ADC configuration must maximize the sensitivity to the diode s voltage variations. -The forward voltage drop of the diode ranges from 0.28V to 0.38V over the temperature of interest. a. Finish the schematic below: b. Show the values for the following registers. Bits that do not affect ADC operation may be left blank: ADMUX 7 6 5 4 3 2 1 0 ADCSRA 7 6 5 4 3 2 1 0 Page 7 of 7