Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Microcomputer Applications Exam (ELTR7019) - Cork Institute of Technology, 2011, Exams of Microcomputers

An examination paper from the cork institute of technology, semester 1, 2010/11, for the module microcomputer applications (eltr7019) in the bachelor of engineering in electronic engineering program. The paper includes three questions covering topics such as microprocessors and microcontrollers, interrupts, timers, and analog-to-digital converters. Students are required to answer questions related to comparing microprocessors and microcontrollers, identifying suitable processors for various applications, designing a microprocessor with variable special registers, understanding interrupts and their handling in the pic, configuring and using timer 2 in the pic, reading analog voltage inputs and outputting binary data, and achieving a serial data interface and connecting an lcd display to the pic.

Typology: Exams

2012/2013

Uploaded on 03/31/2013

paopolaaa
paopolaaa 🇮🇳

4.5

(18)

97 documents

1 / 8

Toggle sidebar

Related documents


Partial preview of the text

Download Microcomputer Applications Exam (ELTR7019) - Cork Institute of Technology, 2011 and more Exams Microcomputers in PDF only on Docsity! CORK INSTITUTE OF TECHNOLOGY INSTITIÚID TEICNEOLAÍOCHTA CHORCAÍ Semester 1 Examinations 2010/11 Module Title: Microcomputer Applications Module Code: ELTR7019 School: Electrical and Electronic Engineering Programme Title: Bachelor of Engineering in Electronic Engineering - Award Programme Code: EELXE_7_Y3 External Examiner(s): Dr A. Donnellan, Mr I. Kennedy Internal Examiner(s): Mr F. O’Reilly Instructions: Answer 3 Questions. All questions carry equal marks. Duration: 2 Hours Sitting: Autumn 2011 Requirements for this examination: Note to Candidates: Please check the Programme Title and the Module Title to ensure that you have received the correct examination paper. If in doubt please contact an Invigilator. Q1 (a) Compare and contrast microprocessors and micro-controllers. What advantages, disadvantages does each have? [8 marks] (b) You have the following selection of micro-processors/micro-controllers available to you for a number of projects: (i) Low Power Motorola 68000 (20MHz), (ii) Microchip PIC 16c74 (4 MHz), (iii) AMD/Intel Pentium Clone (500 MHz), (iv) Analog Devices 8051(2MHz) compatible micro-controller. For each of the following applications identify (i) Approximate number of Input & Outputs (ii) Estimate of speed/performance required. (iii) Complexity/Range of algorithms/programmes to execute. Applications:  DVD Player Remote Control Unit  Handheld Music Player such as an iPod/Zen  General Purpose home computer Choose one of the above processors for each application saying why you think it is appropriate to the application. [16 marks] (c) As a member of an 8-bit micro-processor design team, you are tasked to devise a scheme to vary the number of special registers from 200 (basic model) to 400(advanced model), while being restricted to using only 8 bits(max of 256) to describe which register is in use. Can you suggest a scheme to do this? Which micro-processors/micro-controller currently uses such a technique? [10 marks] [Total: 34 marks] Q2 (a) Embedded/Micro-computer applications often use interrupts to signal events. Explain what an interrupt is and using the PIC as an example what happens when an interrupt occurs in the PIC and how the interrupt should be handled. Explain what memory addresses are used, the different types of interrupts TABLE 1 41-1: BAUD RATE FORMULA SYNC BRGH = 0 (Low Speed) BRGH = 1 (High Speed) 0 (Asynchronous) Baud Rate = Fosc/(64(SPBRG+1)) Baud Rate = Fosci(16(SPBRG*1)) 1 (Synchronous) Baud Rate = Fosc/(4(SPBRG+1)) NIA TABLE 11-2: REGISTERS ASSOCIATED WITH BAUD RATE GENERATOR Value on: Value on Address Name Bit7 Bit 6 Bit5 Bit4 | Bit3 | Bit2 Bit1 Bito POR, all other BOR RESETS 98h TXSTA CSRC TX9 TXEN [ SYNC = BRGH | TRMT | TX9D | 0000 -010 0000 -010 18h RCSTA | SPEN RX9 | SREN | CREN — FERR | OERR | RX9D | 000 -oox | 0000 -oox 99h SPBRG | Baud Rate Generator register 0000 0000 | 0000 0000 Legend: x = unknown, - = unimplemented, read as ‘0’. Shaded cells are not used by the BRG. REGISTER 12-1: ADCONO REGISTER (ADDRESS 1Fh) RW-0 RMLO RW _RIW-O RIW-0 RAW-O uo RIW-O apcsi | apcso | CHs2 | CHs1 | CHSO [GO/DONE] — ADON bit 7 bit 0 bit7-6 ADCS$1:ADCS0: A/D Conversion Clock Select bits 10= Fosc/a2 11= FRc (clock derived from the intemal A/D module RC oscillator) bit5-3 CHS2:CHS0: Analog Channel Select bits 900 = channel 0, (RAQ/ANO) 001= channel 1, (RAI/AN1) 010 = channel 2, (RA2/AN2) 011= channel 3, (RA3/AN3) 100 = channel 4, (RAS/AN4) 101 = channel 5, (REO/ANS)() 110 = channel 6, (RE1/ANS)(?) 111 = channel 7, (RE2/AN7)) bit 2 GO/DONE: A/D Conversion Status bit IFADON = 1 AID conversion in progress (setting this bit starts the A/D conversion) 0 = AID conversion not in progress (this bit is automatically cleared by hardware when the A/D conversion is complete) bit 1 Unimplemented: Read as '0' bit O ADON: A/D On bit 1= AID converter module is operating 0 = A/D converter module is shut-off and consumes no operating current Note 1: A/D channels 5, 6 and 7 are implemented on the PIC16C74B only. Legend R = Readable bit -n = Value at POR Ww 1 Writable bit Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown REGISTER 12-2: ADCON1 REGISTER (ADDRESS 9Fh) U-0 u-0 uc u-0 u-0 RW-0 RW-O0 RW = = [= JT = JT = PCFG2 | PC=G1 | PCFGO bit7 bito oit7-3 _ Unimplemented: Read as '0' dit 2-0 PCFG2:PCFGO0: A/D Port Configuration Control bits PCFG2:PCFGO| RAO | RA1 | RA2 | RAS | RAS REO! /RE1") Re2l!)| Vrer 000 A A A A A A A A_| Voo 001 A A A A | Veer A A A | RAG 010 A A A A A D D D_ | von on A A A A_| Veer OD D D_ | RA3 100 A A D D A D D D | voo 104 A A D D_ | vecr oD D D_ | RAs 11x D D D D D D D dD | voo A= Analog input DD = Digital VO Note 1: REO, RE1 and RE2 are implemented on the PIC16C74B only. Legend: R = Readable bit W = \Writable bit U = Unimplemented bit, read as ‘0’ -n = Value at POR 1! = Bitis set '0'=Bitis cleared _x = Bit is unknown PIC Pin-outs 40 Pin DIP Package Pin Diagram: PDIP, Windowed CERDIP MCE poe) 2 4 7 og es Wet 2 ek oo ao =~ Vss —+q12 2 9 OSCICLKIN = OO OSCZICLKOUT +—H rp=—» RDAIPSP4 RCO/TIOSOTICK] => Ys 28Q)=— RCT/RXIOT RCIUTIOSUCCP2 <= q 8 sf ReBTNICK RC2/CCP1 +—* d 17 2Q—=— R RCBISCKISCL =—> "3 2— RC4ISDISDA ROOPSEO -— 119 220]-+—» ROSPSPS RDIV/PSP1 +—* (20 2:4» ROZPSP2
Docsity logo



Copyright © 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved