EXAMINATION PAPER EMBEDDED SYSTEMS 6EJ005

Similar documents
UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING MSC SYSTEMS ENGINEERING AND ENGINEERING MANAGEMENT SEMESTER 2 EXAMINATION 2016/2017

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING. BEng(Hons) Electrical and Electronics Engineering SEMESTER 1 EXAMINATION 2016/2017

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING B.ENG (HONS) ELECTRICAL AND ELECTRONIC ENGINEERING EXAMINATION SEMESTER /2016

PIC Microcontroller Introduction

Lecture (02) PIC16F84 (I)

ĐẠI HỌC QUỐC GIA TP.HỒ CHÍ MINH TRƯỜNG ĐẠI HỌC BÁCH KHOA KHOA ĐIỆN-ĐIỆN TỬ BỘ MÔN KỸ THUẬT ĐIỆN TỬ. Embedded System Design

Embedded Systems. PIC16F84A Internal Architecture. Eng. Anis Nazer First Semester

MicroProcessor. MicroProcessor. MicroProcessor. MicroProcessor

Computer Hardware Requirements for Real-Time Applications

Low Voltage, 10-Bit Digital Temperature Sensor in 8-Lead MSOP AD7314

Laboratory Exercise 5 - Analog to Digital Conversion

Microcontrollers and Interfacing

Appendix B. Following is a list of topics in this section:

CSE 466 Exam 1 Winter, 2010

PVK40. User's manual. Feature Rich Development and Educational Kit for 40-pin Microchip PIC microcontrollers

ATA I/O Adapter 8255a

Gigatechnology.com Pty Ltd

Lecture (04) PIC 16F84A programming I

Computer Hardware Requirements for ERTSs: Microprocessors & Microcontrollers

TS2043 Preliminary CMOS IC

DEV-1 HamStack Development Board

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

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

Programmable Device Interface PDI-1 A Versatile Hardware Controller with USB interface

Microcontroller Overview

Introducing Microcontrollers System Design

Breeze Board. Type A. User Manual.

DERTS Design Requirements (1): Microcontroller Architecture & Programming

Microcontroller Based Automatic Temperature Control System

MT2 Introduction Embedded Systems. MT2.1 Mechatronic systems

Lecture (03) PIC16F84 (2)

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

I also provide a purpose-built ADC/DAC board to support the lab experiment. This analogue I/O board in only needed for Part 3 and 4 of VERI.

C and Embedded Systems. So Why Learn Assembly Language? C Compilation. PICC Lite C Compiler. PICC Lite C Optimization Results (Lab #13)

Evaluation Board User Guide UG-047

Breeze Board. Type B. User Manual.

Control System Consideration of IR Sensors based Tricycle Drive Wheeled Mobile Robot

ECE 372 Microcontroller Design

INDUSTRIAL TRAINING:6 MONTHS PROGRAM TEVATRON TECHNOLOGIES PVT LTD

NJU keys input key-scan IC GENERAL DESCRIPTION PACKAGE OUTLINE FEATURES BLOCK DIAGRAM PIN CONFIGURATION

OPTICAL MOUSE SENSOR

EasyPIC5 Development System

AZ DISPLAYS, INC. SPECIFICATIONS FOR LIQUID CRYSTAL DISPLAY DATE: July 1, Page 1 of 13

Obstacle Avoiding Robot

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

DATA ACQUISITION SYSTEM

Designing Embedded Systems with PIC Microcontrollers

RA8835. Dot Matrix LCD Controller Specification. Version 1.2 June 1, RAiO Technology Inc. Copyright RAiO Technology Inc.

Understanding SPI with Precision Data Converters

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

EE 390 Lab Manual, EE Department, KFUPM. Experiment #7. Introduction to Flight86 Microprocessor Trainer and Application Board

1 Megabit Serial Flash EEPROM SST45LF010

Doc: page 1 of 9

RW1026G Revision History Version Date Description

SimPLC. User Manual.

Overview of Microcontroller and Embedded Systems

ISA Host Controller 15a Hardware Reference Release 1.2 (October 16, 2017)

LCD driver for segment-type LCDs

Serial Buses in Industrial and Automotive Applications

UM2091 User manual. EVAL-L9301 Demo board Hardware documentation. Introduction

Dept. of Computer Engineering Final Exam, First Semester: 2016/2017

NT7532 V X132 RAM-Map LCD Controller/Driver. Preliminary

ELE4. ELECTRONICS Unit 4 Electronic Control Systems. General Certificate of Education June 2005 Advanced Level Examination

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

ST Sitronix ST7565R. 65 x 132 Dot Matrix LCD Controller/Driver. Ver 1.7 1/ /06/01

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

PIC16F87X. 28/40-pin 8-Bit CMOS FLASH Microcontrollers. Devices Included in this Data Sheet: Pin Diagram PDIP. Microcontroller Core Features:

More PIC Programming. Serial and parallel data transfer External busses Analog to digital conversion

Prototyping Module Datasheet

Lesson 14. Title of the Experiment: Introduction to Microcontroller (Activity number of the GCE Advanced Level practical Guide 27)

PIN ASSIGNMENT PIN DESCRIPTION

EasyAVR6 Development System

Embedded Systems and Kinetic Art. CS5968: Erik Brunvand School of Computing. FA3800: Paul Stout Department of Art and Art History.

Logistics. Embedded Systems. Kinetic Art. This Class. Embedded Systems and Kinetic Art. Kinetic Art

Explorer V1.20. Features

Laboratory 9. Programming a PIC Microcontroller - Part I

Locktronics PICmicro getting started guide

INTEGRATED CIRCUITS. TPM749 Microcontroller with TrackPoint microcode from IBM. Product specification 1996 May 01 Data Handbook IC20

Mercury System SB310

2 in 1. EasyAVR4 User s Manual AVR. MikroElektronika. Software and Hardware solutions for Embedded World

RA8835A. Dot Matrix LCD Controller Specification. Version 1.1 September 18, RAiO Technology Inc. Copyright RAiO Technology Inc.

68 x 102 Dot Matrix LCD Controller/Driver 1. INTRODUCTION

The amount of current drawn and the temperature generated by DC motor are crucial in understanding the performance and reliability of motors.

4GB Unbuffered VLP DDR3 SDRAM DIMM with SPD

KS COM / 132 SEG DRIVER & CONTROLLER FOR STN LCD

BIG8051. Development system. User manual

INTERFACING HARDWARE WITH MICROCONTROLLER

Microprocessors and Interfacng. Question bank

Hong Kong Institute of Vocational Education Digital Electronics & Microcontroller. 8. Microcontroller

CN310 Microprocessor Systems Design

M1600 Parallel Input / Output

Preliminary Product Overview

ST400C-NT USER S GUIDE. Table of Contents

INTRO TO I/O INTERFACE

CHAPTER 6 CONCLUSION AND SCOPE FOR FUTURE WORK

SENSOLIGHT SYSTEM FOR HUMP DETECTION IN MOTORCYCLE

Features. RoHS COMPLIANT 2002/95/EC

solutions for teaching and learning

Hello, and welcome to this presentation of the STM32 general-purpose IO interface. It covers the general-purpose input and output interface and how

Digital Thermometers and Thermostats with SPI/3-Wire Interface

Transcription:

School of Arts, Design and Technology BSc/BSc (HONS) MUSIC TECHNOLOGY & AUDIO SYSTEM DESIGN BSc/BSc (HONS) SOUND, LIGHT AND LIVE EVENT TECHNOLOGY BSc/BSc (HONS) ELECTRICAL AND ELECTRONIC ENGINEERING DATE: SUMMER 2005 TIME ALLOWED: 2 HOURS Instructions to Candidates Answer all three questions. All questions carry equal marks. The symbolism X is used to indicate the logical inversion of logic variable X. DO NOT UNTIL INSTRUCTED

1. A PIC 16F84A microcontroller is to be used to control a simple autonomous guided vehicle (AGV), whose block diagram is shown in Fig. 1. The pinout of the microcontroller is shown in Fig. 2. The AGV has two main wheels, each driven by a reversible DC motor. Further information on actuators and sensors is as follows: Bump Sensors: Simple single-pole single-throw electromechanical switches. Diagnostic Light Emitting Diodes (LEDs): These require a forward current of 8mA for adequate illumination, and at this current have a forward voltage across them of 1.9V. They are to be independently controllable by the microcontroller. Ultrasound Ranging Module: Requires a single digital pulse (TTL/CMOS compatible) to initiate, and returns a digital echo pulse. Motor Drive Interface: An L293D four channel driver integrated circuit (Fig. 3) has been found suitable to interface between microcontroller and motors. The digital input/output port pins of the microcontroller have an output resistance of 75Ω approximately. Develop a preliminary design for this AGV, including the following: i) Any calculations made, ii) Any assumptions made, with explanations, iii) A clear circuit diagram, showing as much detail as possible. 100% Page 2 of 10

Ultrasound Ranging Module Pulse Echo Bump Sensor Left Bump Sensor Right PIC 16F84A Microcontroller Diagnostic LEDs (4) 6V NiCad Motor Drive Interface Motor Left Motor Right Fig. 1 Port A, Bit 2 RA2 Port A, Bit 3 RA3 *Port A, Bit 4 RA4/T0CKI Reset MCLR Ground V SS **Port B, Bit 0 RB0/INT Port B, Bit 1 RB1 Port B, Bit 2 RB2 Port B, Bit 3 RB3 1 18 9 10 RA1 RA0 Port A, Bit 1 Port A, Bit 0 OSC1/CLKIN Oscillator connections OSC2/CLKOUT V DD Supply voltage RB7 Port B, Bit 7 RB6 Port B, Bit 6 RB5 Port B, Bit 5 RB4 Port B, Bit 4 *also Counter/Timer clock input **also external Interrupt input Fig. 2 Page 3 of 10

Vs: Load Supply Voltage Vss: Logic Supply Voltage Fig. 3 Page 4 of 10

2. The block diagram of the PIC 16F874 analogue to digital converter (ADC) is shown in Fig. 4, and the ADCON0 register which controls it in Fig. 5. a) What is the setting of the ADCON0 register if an external voltage reference is required, input channel 2 is selected, with clock source being Fosc divided by 2, and the ADC is switched on but not running? 20% b) Why are different clock sources available for use with the ADC? 20% c) What are the relative advantages in using an external or an internal (VDD) reference? 20% d) When using the ADC, what are the main phases of operation which need to be considered? Describe any precautions which need to be taken, and any timing considerations. 40% Page 5 of 10

Fig. 4 Page 6 of 10

Fig. 5 Page 7 of 10

3. i) Microwire, SPI (Serial Peripheral Interface), Inter-Integrated Circuit (I 2 C) and CAN bus are serial protocols. Describe briefly the principal characteristics and relative advantages of each, and their intended application. 20% ii) It is desired to connect serially a PIC 16F873 microcontroller to a Microwire/SPI compatible Maxim 1282 analogue to digital converter (ADC). The Synchronous Serial Port of the 16F873, configured in SPI mode, is shown in Fig. 6. The pinout and timing diagrams of the ADC are shown in Figs. 7 and 8 respectively. To operate the ADC the CS line is set low, and a byte of control data is first sent, which is clocked in through its DIN (Data In) line. This starts a conversion. With further serial clock pulses the ADC then transfers its output data (bits B11 to B0) via its DOUT (Data Out) line, as seen in Fig. 8. With the aid of a clear diagram, indicate how interconnection should be made to implement the serial link required. All other interconnections can be omitted. Clearly explain your interconnections, and describe in broad terms how you would expect the serial port to be configured and used. 80% Page 8 of 10

Fig. 6 Page 9 of 10

Fig. 7 Serial Strobe (SSTRB) pulses high for one clock period before the MSB decision. High impedance when CS is high. Fig. 8 University of Derby Page 10 of 10