THE UNIVERSITY OF THE WEST INDIES

Size: px
Start display at page:

Download "THE UNIVERSITY OF THE WEST INDIES"

Transcription

1 THE UNIVERSITY OF THE WEST INDIES EXAMINATIONS OF MOCK 2004 Code and Name of Course: EE25M Introduction to Microprocessors Paper: Date and Time: Duration: Three Hours INSTRUCTIONS TO CANDIDATES: This paper has 12 pages and 35 questions Answer ALL questions in Sections A and B. Marks for each question are given in the margin. Approved calculators may be used. This exam does not contribute towards your nal course-mark. Section A (33 marks) contains 33 multiple-choice questions. Questions in Section A should be answered on this exam script. Choose the most appropriate answer for each question, and circle your chosen answer. You should spend about 45 minutes on Section A. Section B (100 marks) contains 2 questions. Section B should be answered on your own paper. Any code written for Section B should be appropriately commented for clarity. You should spend about 2 hours on Section B. At the end of the exam, please staple your paper inside the back cover of your exam script. You should make use of your 'green book' and the datasheets for the 80C51 microcontroller with this mock exam paper. c The University of the West Indies

2 page 2. Q1. Indicate which one of the following statements is correct: (a) Registers are a form of memory which exist inside the CPU. (b) The CPU co-ordinates all operations within the CU. (c) The Program Counter (PC) contains the address of the instruction being executed. (d) The ALU is responsible for decoding instructions. (e) All of the above statements are false. Q2. Choose the best answer. The memory map size aects the nature of the microprocessor-based system bus, because: (a) the number of data lines must match the memory bit-width. (b) the number of address lines must allow the entire address range to be addressed. (c) if the number of data and address lines are the same, the lines can be multiplexed. (d) Q2.a and Q2.b are true but Q2.c is false. (e) Q2.a, Q2.b and Q2.c are all true. Q3. A device has support for addressing 8 locations (i.e. it has 3 address lines). It is connected to an 8 bit bus. The upper 3 bus address lines go through a decoder which asserts the device select if the lines read 101 2, the next 2 bus address lines are unconnected, and the lower 3 bus address lines are tied to the device address lines. Which one of the following addresses (if any) will access the device? (a) (b) (c) (d) Q4. Indicate which one of the following statements is correct (a) Harvard architecture CPU's must have a stack. (b) Choosing between RISC and CISC is an organisational decision (c) Accumulator-based architectures do not work without a stack. (d) The reset vector is not always located at address 0x0000. (e) Von Neumann architectures have separate data and program memories

3 page 3. Q5. The memory space of a 4 bit, accumulator-based microprocessor contains the following values: Address 0x8 0x9 0xA 0xB 0xC 0xD Value 0x3 0x8 0xD 0x2 0xD 0xA What value will be in the working register, at the end of the following sequence of instructions LOAD DIRECT 0x09 ADD IMMEDIATE 0x0D ADD INDIRECT 0x0A (a) 0 (b) F (c) D (d) C (e) 7 Q6. Within the development tool-chain, the simulator is best described as: (a) software which runs on the host processor, and converts text to machine language. (b) software which runs on the host processor, and interprets target machine instructions (c) software which runs on the target processor, and communicates information about the state of the target to the host. (d) software which runs on the target processor, and provides a common platform for higher-level applications to operate on. Q7. Which one of the following (if any) is NOT a valid purpose for a host computer in a microprocessor based development system (a) Compilation of software for target. (b) Display of information reported by the debug kernel. (c) Download of the software to the target (programming). (d) Simulation/Emulation of target operation. (e) None of the above Q8. Manufacturer X supplies an IDE which is appropriate for all the microprocessors that he supplies. We can presume that: (a) all microprocessors supplied by Manufacturer X have the same instruction format. (b) all microprocessors supplied by Manufacturer X are supported by the same assembler/compiler. (c) microprocessors supplied by Manufacturer X operate at the same clock speed. (d) microprocessors supplied by Manufacturer X all support on-line debugging.

4 page 4. Q9. Which of the following statements about the PIC16F877 is not true: (a) PIC16F877 machine cycle consists of 4 clock cycles. (b) Data memory is 8 bits wide with a 9 bit address. (c) The banking bits are located in the STATUS register. (d) The stack used to store the PC during a subroutine call is only 8 levels deep. (e) The PIC16F77 has a RISC-based Von Neumann architecture. Q10. Which ONE of the following statements about the MPASM assembler directives is correct: (a) the END directive appears at the end of each subroutine (b) the ORG directive indicates the data memory location that the variable is stored at. (c) the DT directive is used for lookup tables (d) the BANKSEL directive is used to set the tristate registers (e) the INCLUDE directive is used to indicate the options to be used by the assembler Q11. If the dataword represented a signed integer (two's complement representation scheme), the number would be: (a) (b) 1E 16 (c) +E2 16 (d) +1E 16 Q12. The working shows an attempt to perform addition on 8 bit signed numbers, using 4 bit unsigned addition Identify the aw (if any) in the method shown: (a) carry was not transferred from lower nibbles to upper nibbles (b) arithmetic error in lower nibble (c) arithmetic error in upper nibble (d) incorrect representation

5 page 5. Q13. In order to add two real numbers using oating point representation/arithmetic, we: (a) add the mantissas, and subtract the signicands. (b) equate the mantissas, and then add the signicands. (c) subtract the mantissas, and add the signicands. (d) equate the mantissas, and multiply the signicands. (e) equate the signicands, and add the mantissas. Q14. A string of characters needs to be stored in the PIC16F877. If the DE directive is used to store the string, to access the characters we: (a) use a lookup table, and pass the index of the character in W. (b) use the data EEPROM, and pass the index of the character in EEADR. (c) use the program EEPROM, and pass the index of the character in EEADR. (d) use indirect addressing, and place the index of the character in the FSR. (e) use bank switching, and use the index to decide which bank to switch to. Q15. my_sub movlw 0x66 addwf Reg,W btfsc STATUS,C retlw 1 btfsc STATUS,DC retlw 1 retlw 0 Choose the one incorrect statement. The above piece of code will: (a) run when the instruction call my_sub is executed. (b) return either 0 or 1 in the working register. (c) add 0x66 to the contents of the working register, and return 1 if there is a carry or digit carry. (d) take a maximum of 8 instruction cycles to execute. (e) take a minimum of 5 instruction cycles to execute. Q16. You are writing a program which loops continuously. Within the loop, you are required to alternately set and clear bit 4 in an 8-bit register. The shortest way to successfully do so at each loop iteration is to: (a) test the bit; if true bit-wise AND with EF 16 ; if false bit-wise OR with (b) test the bit; if true bit-wise OR with ; if false bit-wise AND with EF 16 (c) test the bit; if true bit-wise AND with ; if false bit-wise OR with (d) bitwise XOR with EF 16 (e) bitwise XOR with 08 16

6 page 6. Q17. You are writing a C program for the PIC16F877 which initialises locations in memory to the same default value. You are wondering which program would generate the most ecient assembly code when compiled. Your alternate choices are: [A:] [B:] [C:] for (i=0;i<5;i++) c[i]=-1; for (i=4;i!=0;i--) c[i]=0; c[0]=0;c[1]=0;c[2]=0;c[3]=0; Which one of the following statements does NOT represent a valid reason for choosing the respective C code: (a) Code [A:] should be chosen because we have an increment instruction, but no decrement instruction. (b) Code [C:] should be chosen; only a few locations need to be cleared, so it will take the least space when compiled. (c) Code [B:] or Code [C:] should be chosen; clearing a location is easily done with clrf. (d) Code [B:] should be chosen; testing for the ZERO ag is easily done with btfsc STATUS,Z. (e) Code [A:] or Code [B:] should be chosen; indirect addressing can be used in a loop. Q18. A normally open push button switch needs to be interfaced to the PIC16F877. Which one of the following methods (if any) is NOT a viable alternative: (a) tie the switch between PORTB pin and ground with internal pull-ups enabled; switch-o == pin-high (b) tie the switch between PORTB pin and ground with an external pull-up resistor; switch-o == pin-high (c) tie the switch between PORTB pin and V DD with a pull-down resistor to ground; switch-o == pin-low (d) tie the switch between PORTB pin and V DD with a pull-down resistor to ground; switch-o == pin-high Q19. Choose the word combination which best completes the following sentence(s): The interrupt Q19I is the address of the instruction executed when the interrupt occurs. Interrupts are typically used when the Q19II needs to communicate information to the Q19III. (a) Q19I: service routine; Q19II:CPU ; Q19III:peripheral (b) Q19I: vector; Q19II:CPU ; Q19III:peripheral (c) Q19I: service routine; Q19II:peripheral; Q19III:CPU (d) Q19I: vector; Q19II:peripheral; Q19III:CPU (e) Q19I: handler; Q19II:peripheral; Q19III:CPU

7 page 7. Q20. Choose the word combination which best completes the following sentence(s): Q20I Modulation may be considered as a means of Q20II. The frequency/period of the signal is independent of the Q20I. The ratio of Q20I to period is referred to as the Q20III. (a) Q20I:pulse width; Q20II:digital-to-analog conversion; Q20III:duty cycle (b) Q20I:pulse width; Q20II:analog-to-digital conversion; Q20III:duty cycle (c) Q20I:pulse wave; Q20II:digital-to-analog conversion; Q20III:duty cycle (d) Q20I:pulse width; Q20II:digital-to-analog conversion; Q20III:cycle time (e) Q20I:pulse width; Q20II:analog-to-digital conversion; Q20III:cycle time Q21. You have a circuit in which a counter is connected to the output pin of the PIC16F877. The counter should count on each rising edge; however you notice that it counts twice on each rising edge. In order to discover the cause of the problem, the most appropriate action is to: (a) use a pull-up resistor on the output pin signal (b) connect an oscilloscope to the output pin and observe the waveform (c) replace the PIC16F877 (d) replace the counter (e) use a meter to check the supply voltage Q22. In order to use the Parallel Slave Port on the PIC16F877: (a) the PSPMODE bit in register TRISD must be cleared (b) the PSPMODE bit in register TRISE must be cleared (c) the PSPMODE bit in register TRISE must be set (d) the PSPMODE bit in register PORTE must be cleared (e) the PSPMODE bit in register TRISD must be set Q23. A student writes a PIC16F877 ISR in which he checks for the TMR0 interrupt, the external interrupt, and the Serial RX interrupt in that order. He observes that if the TMR0 interrupt and the Serial RX interrupt occur at the same time, sometimes the Serial RX interrupt gets processed rst. This is probably because: (a) Sometimes the interrupt signals occur when the ISR is already handling an external interrupt. (b) Sometimes the interrupt handlers, interrupt each other. (c) Sometimes TMR0 malfunctions and overows. (d) Sometimes the Serial peripheral receives alot of data. (e) Sometimes the PIC16F877 malfunctions and resets itself.

8 page 8. Q24. A PIC16F877 with a 4MHz oscillator is used with an external A/D converter which responds with the latest digital reading on PORTD<3:0> 1µs after the write line on PORTD<4> is raised. Assuming that PORTD has already been appropriately congured, which piece of code will successfully read the converter in the least instruction cycles? (a) bsf PORTD,4 movf PORTD,W andlw 0x0F movwf VAL_IN (b) bsf PORTD,4 nop movf PORTD,W andlw 0x0F movwf VAL_IN (c) bsf PORTD,4 movf PORTD,W andlw 0x0F movf VAL_IN (d) bsf PORTD,4 movlw 0x0F andwf PORTD,W movwf VAL_IN (e) bsf PORTD,4 movf nop PORTD,W andlw 0x0F movwf VAL_IN Q25. A PIC16F877 is to be interfaced to a device which has the following electrical characteristics: Max. current sunk/sourced by output (ignoring totals) 10µA / 5µA Max. input leakage current ±10µA Output Pin Load capacitance 25 pf Input Pin capacitance 10 pf Max. Output Low Voltage 1V Min. Output High Voltage 3.5 Volts Max. Input Low Voltage 2.5 Volts Min. Input High Voltage 4 Volts All ratings taken at 25. Which one of the following statements (if any) is NOT a correct analysis: (a) DC analysis PIC16F877 output to device input: OK ±10µA < ±20mA (b) DC analysis device output to PIC16F877 input: OK ±1µA < 10/ + 5µA (c) AC analysis PIC16F877 output to device input: OK 10pF < 50pF (d) AC analysis device output to PIC16F877 input: OK 5pF < 25pF

9 page 9. Q26. You are told that the 80C51 supports register-register instructions, while the PIC16F877 only supports load/store to accumulator. Based on this information, which of the following statements is correct: (a) The 80C51 does not have an accumulator. (b) We can move information between registers using 1 instruction on the 80C51. (c) We can move information between registers using 1 instruction on the PIC16F877. (d) We can move information between registers in 1 machine cycle on the 80C51. (e) We can move information between registers in 1 machine cycle on the PIC16F877. Q27. You are told to choose a microcontroller based on it's ability to perform 16 bit multiplication. The PIC16F877 is under consideration. You could rule out the PIC16F877 because of which of the following (if any): (a) The PIC16F877 has 14 bit instructions (b) The PIC16F877 does not have a multiply instruction (c) The PIC16F877 instructions operate on 8 bit data (d) The PIC16F877 has Harvard architecture Q28. When writing routines for a microprocessor, you have been advised to always initialize your registers, even if the default value is the value you want. Which one of the following statements (if any) is NOT a valid reason for this guideline: (a) The microprocessor may malfunction and/or reset without powering up (b) The routine may be called after the value was changed subsequent to power-up (c) The microprocessor may not power-up correctly (d) The routine may attempt to access more memory than originally intended/allocated The following information is for Q A device uses a proprietary synchronous communication protocol that requires 3 lines, Signal, Ground, and an externally controlled clock. The maximum rate at which data can be transmitted is 2400 bits/s. A message transaction involves 8 data bits and 3 overhead bits (start, stop and parity). Q29. The eective bit rate at which data can be transferred using this protocol is: (a) 2400 bits/second (b) 2400 (8+3) 8 bits/second (c) (8+3) bits/second (d) (8+3) bits/second (e) 2400 (8+3) 3 bits/second

10 page 10. Q30. You are given the choice of using bit-banging or a dedicated peripheral to communicate with the device. Which of the following statements is NOT correct: (a) If we use a peripheral, then our program will need to provide the peripheral with commands about the required function. (b) If we use bit-banging, then our program will need to explicitly set and clear bits at the correct times. (c) Peripherals are always faster than bit-banging. (d) Monitoring communications for bit-banging may occupy most of the processor time. (e) We may use built-in timers and timer interrupts to perform bit-banging. Q31. If we need to communicate between a PC and this device, we could interface individual lines to the Parallel Port. To access the various lines of the Parallel Port, we use the inp and outp instructions. These instructions refer to AL (Register A). However, when moving information between register A and other registers we refer to AX. This is because of the following reasons EXCEPT: (a) AX is a 16 bit register, and AL is the lower byte. (b) The parallel port peripheral registers are 8 bits wide. (c) The outp instruction format only has room for 8 bits of data. (d) Of the bus lines used to communicate with the parallel port peripheral, only 8 are data lines. (e) The PC processor is backwards compatible with earlier members of the x86 family. Q32. We need to communicate between the PIC16F877 and this device. It has been suggested that we could use the UART to do so. Which of the following is a valid conguration value for the TXSTA register? (a) (b) (c) (d) (e) Q33. Four of these devices are to be interfaced to the PIC16F877. It is suggested that a parallel bus could be used to send/receive data from all devices simultaneously. Which of the following is NOT a viable alternative? (a) Clock lines: tied together; Ground lines: tied together; Data lines: tied together (b) Clock lines: individual; Ground lines: tied together; Data lines: tied together (c) Clock lines: tied together; Ground lines: tied together; Data lines: individual (d) Clock lines: tied together; Ground lines: individual; Data lines: individual (e) Clock lines: individual; Ground lines: individual; Data lines: tied together END OF SECTION A

11 page 11. Section B Q1. You are a member of a development team which is working on an automated parking system to help people locate their car in the supermarket parking lot. Persons entering the car park will be given two battery powered wireless parking "cards": one to be left in the car, and one which they carry while they shop. The pair of cards must be returned on exiting the car park. The cards each contain an array of DIP switches which are set to the same. The carry-card has a button, a circle of 8 LED's, a wireless transmitter, and an array of 4 directional wireless receivers. When the button is pressed, a query-message containing the is transmitted. The car-card has a single wireless transmitter/reciever. When the car-card receives the query message, it transmits a reply-message. The carry-card receives reply-message(s) with varying strength on each of the directional receivers; if a reply-message with the correct is received, the signal strength at the receiver is recorded. After waiting an appropriate time, the carry-card lights the LED closest to the receiver(s) which received the reply (i.e. in the direction of the car). (a) Draw circuit(s) to show: how a normally-closed push-button can be interfaced to the PIC16F877 pin PORTB<0> so that when the button is pressed, the PIC16F877 detects a high signal. how an LED can be interfaced to the PIC16F877 pin PORTD<0>, so that it lights when the PIC16F877 sends a low signal. Your answers should include details of how you would congure the PIC16F877 port pins, and choose appropriate component values. (b) The 8 LED's are connected to the pins of PORTD. In order to light a single LED, you need to write a byte with one bit set to PORTD. Your team is discussing whether to generate this byte from the bit # by using a lookup table, or by rotating the number 0x01 the appropriate number of bits. Write subroutines which will take the bit# in the working register, and return the appropriate byte in the working register, using each of these methods. Your code should return 0x00 if the number passed in the working register is not between 0x00 and 0x07. (c) You are using a module independent of the PIC16F877 to detect the RF for each receiver. Each of these modules has an output that will stay high for a time proportional to the signal strength received. The 4 module outputs are tied to PORTB<7:4>. i. Describe using a diagram how you will determine which LED needs to be lit based on the outputs of the 4 modules. ii. Implement this algorithm using polling on the PIC16F877. iii. Implement this algorithm using interrupts on the PIC16F877. You should make use of the same locations/sub-routines you wrote in the previous question. (d) Your initial prototype of the carry-card does nothing when the button is pressed. Outline how you would go about testing the system. Justify your answer. 5 marks 5 marks 10 marks 4 marks 10 marks 10 marks 6 marks

12 page 12. Q2. Your company is designing an independent device for monitoring RS232 trac. The device should passively monitor electrical signals on the TX/RX lines of an RS232 serial cable, and display current and cumulative estimates of communication trac. (a) You have been asked to choose between the PIC16F877 and the 80C51. Use your knowledge of the PIC16F877 characteristics and the data-sheets provided to identify at least 3 functional dierences which would be relevant for this application. Based on the functional dierences which you have previously identied, recommend one of the microcontrollers to your team. (b) After selecting the processor, the team discusses the support tools which will be needed for this project. Identify at least ve items which you believe are necessary in order to get this project working. Justify your answers. (c) The team has decided to use an LCD display module to show the trac estimates. Your job is to write the module which will send a single character to an LCD display which was initialised in 4-wire mode. Write appropriately commented code for the PIC16F marks 15 marks 15 marks END OF SECTION B Electrical Reference Notes for the PIC16F877 Output Pin Load resistance R L 464Ω Output Pin Load capacitance C L 50pF Input Pin capacitance C in 5 pf Max. External Clock rise/fall time T os 25ns Max. Port output rise/fall time T io 40ns Max. Delay port output T os H2 io 255ns Min. Input Hold time T os H2 io I 100 ns Max. current sunk/sourced by output (ignoring totals) 20mA Max. input leakage current I IL ±1µA Output Low Voltage V OL 0.6V Output High Voltage V OH V DD 0.7 Volts Max. Input Low Voltage V IL 0.15V DD Volts Min. Input High Voltage V IH 0.25V DD Volts Machine cycle (in 1 instruction cycle) Q1 Q2 Q3 Q4 Pipeline Fetch stage Increment PC Latch IR Pipeline Execute stage Decode Register Read Process Register Write Peripheral actions Output signal Input signal Set ags (interrupt/status) All voltages must lie between V dd and V ss. All ratings taken at 25.[PIC01] References [PIC01] PIC16F87X Data Sheet: 28/40-Pin 8-Bit CMOS FLASH Microcontrollers. Technical Reference Document 30292c, MicroChip Technology Inc., END OF QUESTION PAPER

SOLUTIONS!! DO NOT DISTRIBUTE!!

SOLUTIONS!! DO NOT DISTRIBUTE!! THE UNIVERSITY OF THE WEST INDIES EXAMINATIONS OF FEBRUARY MID-TERM 2005 Code and Name of Course: EE25M Introduction to Microprocessors Paper: Date and Time: Duration: One Hour INSTRUCTIONS TO CANDIDATES:

More information

SOLUTIONS!! DO NOT DISTRIBUTE PRIOR TO EXAM!!

SOLUTIONS!! DO NOT DISTRIBUTE PRIOR TO EXAM!! THE UNIVERSITY OF THE WEST INDIES EXAMINATIONS OF APRIL MID-TERM 2005 Code and Name of Course: EE25M Introduction to Microprocessors Paper: MidTerm Date and Time: Thursday April 14th 2005 8AM Duration:

More information

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

Lesson 14. Title of the Experiment: Introduction to Microcontroller (Activity number of the GCE Advanced Level practical Guide 27) Lesson 14 Title of the Experiment: Introduction to Microcontroller (Activity number of the GCE Advanced Level practical Guide 27) Name and affiliation of the author: N W K Jayatissa Department of Physics,

More information

DERTS Design Requirements (1): Microcontroller Architecture & Programming

DERTS Design Requirements (1): Microcontroller Architecture & Programming Lecture (5) DERTS Design Requirements (1): Microcontroller Architecture & Programming Prof. Kasim M. Al-Aubidy Philadelphia University 1 Lecture Outline: Features of microcomputers and microcontrollers.

More information

CENG 336 INT. TO EMBEDDED SYSTEMS DEVELOPMENT. Spring 2006

CENG 336 INT. TO EMBEDDED SYSTEMS DEVELOPMENT. Spring 2006 CENG 336 INT. TO EMBEDDED SYSTEMS DEVELOPMENT Spring 2006 Recitation 01 21.02.2006 CEng336 1 OUTLINE LAB & Recitation Program PIC Architecture Overview PIC Instruction Set PIC Assembly Code Structure 21.02.2006

More information

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

Dept. of Computer Engineering Final Exam, First Semester: 2016/2017 Philadelphia University Faculty of Engineering Course Title: Embedded Systems (630414) Instructor: Eng. Anis Nazer Dept. of Computer Engineering Final Exam, First Semester: 2016/2017 Student Name: Student

More information

DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING. EE6008 Microcontroller based system design

DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING. EE6008 Microcontroller based system design Year: IV DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING EE6008 Microcontroller based system design Semester : VII UNIT I Introduction to PIC Microcontroller

More information

Assembly Language Instructions

Assembly Language Instructions Assembly Language Instructions Content: Assembly language instructions of PIC16F887. Programming by assembly language. Prepared By- Mohammed Abdul kader Assistant Professor, EEE, IIUC Assembly Language

More information

EEE111A/B Microprocessors

EEE111A/B Microprocessors EEE111A/B Microprocessors Revision Notes Lecture 1: What s it all About? Covers the basic principles of digital signals. The intelligence of virtually all communications, control and electronic devices

More information

PIC 16F84A programming (II)

PIC 16F84A programming (II) Lecture (05) PIC 16F84A programming (II) Dr. Ahmed M. ElShafee ١ Introduction to 16F84 ٣ PIC16F84 belongs to a class of 8-bit microcontrollers of RISC architecture. Program memory (FLASH) EEPROM RAM PORTA

More information

16.317: Microprocessor-Based Systems I Spring 2012

16.317: Microprocessor-Based Systems I Spring 2012 16.317: Microprocessor-Based Systems I Spring 2012 Exam 3 Solution 1. (20 points, 5 points per part) Multiple choice For each of the multiple choice questions below, clearly indicate your response by circling

More information

Embedded Systems. PIC16F84A Sample Programs. Eng. Anis Nazer First Semester

Embedded Systems. PIC16F84A Sample Programs. Eng. Anis Nazer First Semester Embedded Systems PIC16F84A Sample Programs Eng. Anis Nazer First Semester 2017-2018 Development cycle (1) Write code (2) Assemble / compile (3) Simulate (4) Download to MCU (5) Test Inputs / Outputs PIC16F84A

More information

Flow Charts and Assembler Programs

Flow Charts and Assembler Programs Flow Charts and Assembler Programs Flow Charts: A flow chart is a graphical way to display how a program works (i.e. the algorithm). The purpose of a flow chart is to make the program easier to understand.

More information

ME 515 Mechatronics. A microprocessor

ME 515 Mechatronics. A microprocessor ME 515 Mechatronics Microcontroller Based Control of Mechanical Systems Asanga Ratnaweera Department of Faculty of Engineering University of Peradeniya Tel: 081239 (3627) Email: asangar@pdn.ac.lk A microprocessor

More information

Midrange 8b PIC Microcontrollers. ECE Senior Design 14 February 2017

Midrange 8b PIC Microcontrollers. ECE Senior Design 14 February 2017 Midrange 8b PIC Microcontrollers ECE Senior Design 14 February 2017 Harvard vs. Von Neumann Harvard Architecture Program Memory 14-bit Bus CPU 8-bit Bus Data Memory Harvard architecture Separate busses

More information

Micro II and Embedded Systems

Micro II and Embedded Systems 16.480/552 Micro II and Embedded Systems Introduction to PIC Microcontroller Revised based on slides from WPI ECE2801 Moving Towards Embedded Hardware Typical components of a PC: x86 family microprocessor

More information

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

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING MSC SYSTEMS ENGINEERING AND ENGINEERING MANAGEMENT SEMESTER 2 EXAMINATION 2016/2017 TW30 UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING MSC SYSTEMS ENGINEERING AND ENGINEERING MANAGEMENT SEMESTER 2 EXAMINATION 2016/2017 MICROPROCESSOR BASED SYSTEMS MODULE NO: EEM7016 Date: Wednesday 17 May

More information

Outlines. PIC Programming in C and Assembly. Krerk Piromsopa, Ph.D. Department of Computer Engineering Chulalongkorn University

Outlines. PIC Programming in C and Assembly. Krerk Piromsopa, Ph.D. Department of Computer Engineering Chulalongkorn University PIC ming in C and Assembly Outlines Microprocessor vs. MicroController PIC in depth PIC ming Assembly ming Krerk Piromsopa, Ph.D. Department of Computer Engineering Chulalongkorn University Embedded C

More information

Lecture (04) PIC16F84A (3)

Lecture (04) PIC16F84A (3) Lecture (04) PIC16F84A (3) By: Dr. Ahmed ElShafee ١ Central Processing Unit Central processing unit (CPU) is the brain of a microcontroller responsible for finding and fetching the right instruction which

More information

PIC16F87X 13.0 INSTRUCTION SET SUMMARY INSTRUCTIONS DESCRIPTIONS

PIC16F87X 13.0 INSTRUCTION SET SUMMARY INSTRUCTIONS DESCRIPTIONS PIC6F87X 3.0 INSTRUCTION SET SUMMARY Each PIC6F87X instruction is a 4bit word, divided into an OPCODE which specifies the instruction type and one or more operands which further specify the operation of

More information

ECE 354 Introduction to Lab 2. February 23 rd, 2003

ECE 354 Introduction to Lab 2. February 23 rd, 2003 ECE 354 Introduction to Lab 2 February 23 rd, 2003 Fun Fact Press release from Microchip: Microchip Technology Inc. announced it provides PICmicro field-programmable microcontrollers and system supervisors

More information

Chapter 2 Sections 1 8 Dr. Iyad Jafar

Chapter 2 Sections 1 8 Dr. Iyad Jafar Introducing the PIC 16 Series and the 16F84A Chapter 2 Sections 1 8 Dr. Iyad Jafar Outline Overview of the PIC 16 Series An Architecture Overview of the 16F84A The 16F84A Memory Organization Memory Addressing

More information

ECE 354 Computer Systems Lab II. Interrupts, Strings, and Busses

ECE 354 Computer Systems Lab II. Interrupts, Strings, and Busses ECE 354 Computer Systems Lab II Interrupts, Strings, and Busses Fun Fact Press release from Microchip: Microchip Technology Inc. announced it provides PICmicro field-programmable microcontrollers and system

More information

ME 6405 Introduction to Mechatronics

ME 6405 Introduction to Mechatronics ME 6405 Introduction to Mechatronics Fall 2006 Instructor: Professor Charles Ume Microchip PIC Manufacturer Information: Company: Website: http://www.microchip.com Reasons for success: Became the hobbyist's

More information

Hardware Interfacing. EE25M Introduction to microprocessors. Part V. 15 Interfacing methods. original author: Feisal Mohammed

Hardware Interfacing. EE25M Introduction to microprocessors. Part V. 15 Interfacing methods. original author: Feisal Mohammed EE25M Introduction to microprocessors original author: Feisal Mohammed updated: 18th February 2002 CLR Part V Hardware Interfacing There are several features of computers/microcontrollers which have not

More information

Chapter 5 Sections 1 6 Dr. Iyad Jafar

Chapter 5 Sections 1 6 Dr. Iyad Jafar Building Assembler Programs Chapter 5 Sections 1 6 Dr. Iyad Jafar Outline Building Structured Programs Conditional Branching Subroutines Generating Time Delays Dealing with Data Example Programs 2 Building

More information

Embedded System Design

Embedded System Design ĐẠ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 : Microcontroller 1. Introduction to PIC microcontroller 2. PIC16F84 3. PIC16F877

More information

16.317: Microprocessor-Based Systems I Summer 2012

16.317: Microprocessor-Based Systems I Summer 2012 16.317: Microprocessor-Based Systems I Summer 2012 Exam 3 Solution 1. (20 points, 5 points per part) Multiple choice For each of the multiple choice questions below, clearly indicate your response by circling

More information

The University of Texas at Arlington Lecture 7

The University of Texas at Arlington Lecture 7 The University of Texas at Arlington Lecture 7 CSE 3442/5442 Agenda HW 2 due today Begin Chapter 5 In class assignment. Reading Assignment for Tuesday, Continue Reading Chapter 6. Assignment 3 and 4 due

More information

Chapter 4 Sections 1 4, 10 Dr. Iyad Jafar

Chapter 4 Sections 1 4, 10 Dr. Iyad Jafar Starting to Program Chapter 4 Sections 1 4, 10 Dr. Iyad Jafar Outline Introduction Program Development Process The PIC 16F84A Instruction Set Examples The PIC 16F84A Instruction Encoding Assembler Details

More information

Microcontrollers. Microcontroller

Microcontrollers. Microcontroller Microcontrollers Microcontroller A microprocessor on a single integrated circuit intended to operate as an embedded system. As well as a CPU, a microcontroller typically includes small amounts of RAM and

More information

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

Embedded Systems. PIC16F84A Internal Architecture. Eng. Anis Nazer First Semester Embedded Systems PIC16F84A Internal Architecture Eng. Anis Nazer First Semester 2017-2018 Review Computer system basic components? CPU? Memory? I/O? buses? Instruction? Program? Instruction set? CISC,

More information

UNIVERSITY OF ULSTER UNIVERSITY EXAMINATIONS : 2001/2002 RESIT. Year 2 MICROCONTROLLER SYSTEMS. Module Code: EEE305J1. Time allowed: 3 Hours

UNIVERSITY OF ULSTER UNIVERSITY EXAMINATIONS : 2001/2002 RESIT. Year 2 MICROCONTROLLER SYSTEMS. Module Code: EEE305J1. Time allowed: 3 Hours UNIVERSITY OF ULSTER UNIVERSITY EXAMINATIONS : 2001/2002 RESIT Year 2 MICROCONTROLLER SYSTEMS Module Code: EEE305J1 Time allowed: 3 Hours Answer as many questions as you can. Not more than TWO questions

More information

UNIVERSITY OF ULSTER UNIVERSITY EXAMINATIONS : 2001/2002. Semester 2. Year 2 MICROCONTROLLER SYSTEMS. Module Code: EEE305J2. Time allowed: 3 Hours

UNIVERSITY OF ULSTER UNIVERSITY EXAMINATIONS : 2001/2002. Semester 2. Year 2 MICROCONTROLLER SYSTEMS. Module Code: EEE305J2. Time allowed: 3 Hours UNIVERSITY OF ULSTER UNIVERSITY EXAMINATIONS : 2001/2002 Semester 2 Year 2 MICROCONTROLLER SYSTEMS Module Code: EEE305J2 Time allowed: 3 Hours Answer as many questions as you can. Not more than TWO questions

More information

16.317: Microprocessor Systems Design I Fall 2013 Exam 3 Solution

16.317: Microprocessor Systems Design I Fall 2013 Exam 3 Solution 16.317: Microprocessor Systems Design I Fall 2013 Exam 3 Solution 1. (20 points, 5 points per part) Multiple choice For each of the multiple choice questions below, clearly indicate your response by circling

More information

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

Mechatronics and Measurement. Lecturer:Dung-An Wang Lecture 6 Mechatronics and Measurement Lecturer:Dung-An Wang Lecture 6 Lecture outline Reading:Ch7 of text Today s lecture: Microcontroller 2 7.1 MICROPROCESSORS Hardware solution: consists of a selection of specific

More information

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

PIC16F87X. 28/40-pin 8-Bit CMOS FLASH Microcontrollers. Devices Included in this Data Sheet: Pin Diagram PDIP. Microcontroller Core Features: PIC16F7X 2/40-pin -Bit CMOS FLASH Microcontrollers Devices Included in this Data Sheet: PIC16F7 PIC16F74 PIC16F76 PIC16F77 Microcontroller Core Features: High-performance RISC CPU Only 5 single word instructions

More information

Outline. Micriprocessor vs Microcontroller Introduction to PIC MCU PIC16F877 Hardware:

Outline. Micriprocessor vs Microcontroller Introduction to PIC MCU PIC16F877 Hardware: HCMIU - DEE Subject: ERTS RISC MCU Architecture PIC16F877 Hardware 1 Outline Micriprocessor vs Microcontroller Introduction to PIC MCU PIC16F877 Hardware: Program Memory Data memory organization: banks,

More information

/ 40 Q3: Writing PIC / 40 assembly language TOTAL SCORE / 100 EXTRA CREDIT / 10

/ 40 Q3: Writing PIC / 40 assembly language TOTAL SCORE / 100 EXTRA CREDIT / 10 16.317: Microprocessor-Based Systems I Summer 2012 Exam 3 August 13, 2012 Name: ID #: Section: For this exam, you may use a calculator and one 8.5 x 11 double-sided page of notes. All other electronic

More information

8051 microcontrollers

8051 microcontrollers 8051 microcontrollers Presented by: Deepak Kumar Rout Synergy Institute of Engineering and Technology, Dhenkanal Chapter 2 Introduction Intel MCS-51 family of microcontrollers consists of various devices

More information

More (up a level)... Connecting the Nokia 3510i LCD to a Microchip PIC16F84 microcontroller

More (up a level)... Connecting the Nokia 3510i LCD to a Microchip PIC16F84 microcontroller 1 von 8 24.02.2010 21:53 More (up a level)... Connecting the Nokia 3510i LCD to a Microchip PIC16F84 microcontroller As with the FPGA board previously, the connections are made by soldering standard IDC

More information

ME 475 Lab2 Introduction of PIC and Programming. Instructor: Zhen Wang

ME 475 Lab2 Introduction of PIC and Programming. Instructor: Zhen Wang ME 475 Lab2 Introduction of PIC and Programming Instructor: Zhen Wang 2013.1.25 Outline Lecture Introduction of PIC microcontroller Programming cycle Read CH5 Programming guidelines Read CH6 Sample program

More information

Embedded Systems Design (630470) Lecture 4. Memory Organization. Prof. Kasim M. Al-Aubidy Computer Eng. Dept.

Embedded Systems Design (630470) Lecture 4. Memory Organization. Prof. Kasim M. Al-Aubidy Computer Eng. Dept. Embedded Systems Design (630470) Lecture 4 Memory Organization Prof. Kasim M. Al-Aubidy Computer Eng. Dept. Memory Organization: PIC16F84 has two separate memory blocks, for data and for program. EEPROM

More information

University of Jordan Faculty of Engineering and Technology Department of Computer Engineering Embedded Systems Laboratory

University of Jordan Faculty of Engineering and Technology Department of Computer Engineering Embedded Systems Laboratory University of Jordan Faculty of Engineering and Technology Department of Computer Engineering Embedded Systems Laboratory 0907334 6 Experiment 6:Timers Objectives To become familiar with hardware timing

More information

PIC-I/O Multifunction I/O Controller

PIC-I/O Multifunction I/O Controller J R KERR AUTOMATION ENGINEERING PIC-I/O Multifunction I/O Controller The PIC-I/O multifunction I/O controller is compatible with the PIC-SERVO and PIC-STEP motor control modules and provides the following

More information

DS1676 Total Elapsed Time Recorder, Erasable

DS1676 Total Elapsed Time Recorder, Erasable www.dalsemi.com Preliminary DS1676 Total Elapsed Time Recorder, Erasable FEATURES Records the total time that the Event Input has been active and the number of events that have occurred. Volatile Elapsed

More information

AVR Microcontrollers Architecture

AVR Microcontrollers Architecture ก ก There are two fundamental architectures to access memory 1. Von Neumann Architecture 2. Harvard Architecture 2 1 Harvard Architecture The term originated from the Harvard Mark 1 relay-based computer,

More information

Infineon C167CR microcontroller, 256 kb external. RAM and 256 kb external (Flash) EEPROM. - Small single-board computer (SBC) with an

Infineon C167CR microcontroller, 256 kb external. RAM and 256 kb external (Flash) EEPROM. - Small single-board computer (SBC) with an Microcontroller Basics MP2-1 week lecture topics 2 Microcontroller basics - Clock generation, PLL - Address space, addressing modes - Central Processing Unit (CPU) - General Purpose Input/Output (GPIO)

More information

LAB WORK 2. 1) Debugger-Select Tool-MPLAB SIM View-Program Memory Trace the program by F7 button. Lab Work

LAB WORK 2. 1) Debugger-Select Tool-MPLAB SIM View-Program Memory Trace the program by F7 button. Lab Work LAB WORK 1 We are studying with PIC16F84A Microcontroller. We are responsible for writing assembly codes for the microcontroller. For the code, we are using MPLAB IDE software. After opening the software,

More information

Instuction set

Instuction set Instuction set http://www.piclist.com/images/www/hobby_elec/e_pic3_1.htm#1 In PIC16 series, RISC(Reduced Instruction Set Computer) is adopted and the number of the instructions to use is 35 kinds. When

More information

Input/Output Ports and Interfacing

Input/Output Ports and Interfacing Input/Output Ports and Interfacing ELEC 330 Digital Systems Engineering Dr. Ron Hayne Images Courtesy of Ramesh Gaonkar and Delmar Learning Basic I/O Concepts Peripherals such as LEDs and keypads are essential

More information

TOPIC 3 INTRODUCTION TO PIC ASSEMBLY LANGUAGE. E4160 Microprocessor & Microcontroller System. Prepared by : Puziah Yahaya JKE, POLISAS / DEC 2010

TOPIC 3 INTRODUCTION TO PIC ASSEMBLY LANGUAGE. E4160 Microprocessor & Microcontroller System. Prepared by : Puziah Yahaya JKE, POLISAS / DEC 2010 TOPIC 3 INTRODUCTION TO PIC ASSEMBLY LANGUAGE Prepared by : Puziah Yahaya JKE, POLISAS / DEC 2010 E4160 Microprocessor & Microcontroller System Learning Outcomes 2 At the end of this topic, students should

More information

Computer Hardware Requirements for ERTSs: Microprocessors & Microcontrollers

Computer Hardware Requirements for ERTSs: Microprocessors & Microcontrollers Lecture (4) Computer Hardware Requirements for ERTSs: Microprocessors & Microcontrollers Prof. Kasim M. Al-Aubidy Philadelphia University-Jordan DERTS-MSc, 2015 Prof. Kasim Al-Aubidy 1 Lecture Outline:

More information

Signature: 1. (10 points) Basic Microcontroller Concepts

Signature: 1. (10 points) Basic Microcontroller Concepts EE 109 Practice Final Exam Last name: First name: Signature: The practice final is one hour, ten minutes long, closed book, closed notes, calculators allowed. To receive full credit on a question show

More information

Laboratory Exercise 5 - Analog to Digital Conversion

Laboratory Exercise 5 - Analog to Digital Conversion Laboratory Exercise 5 - Analog to Digital Conversion The purpose of this lab is to control the blinking speed of an LED through the Analog to Digital Conversion (ADC) module on PIC16 by varying the input

More information

16COM / 40SEG DRIVER & CONTROLLER FOR DOT MATRIX LCD

16COM / 40SEG DRIVER & CONTROLLER FOR DOT MATRIX LCD INTRODUCTION KS0066U is a dot matrix LCD driver & controller LSI whichis fabricated by low power CMOS technology It can display 1or 2 lines with the 5 8 dots format or 1 line with the 5 11 dots format

More information

MICROCONTROLLERS 8051

MICROCONTROLLERS 8051 MICROCONTROLLERS 8051 PART A Unit 1: Microprocessor and Microcontroller. Introduction, Microprocessor and Microcontrollers, A Microcontroller survey. RISC & CISC CPU Architectures, Harvard & Von Neumann

More information

Microcontroller basics

Microcontroller basics FYS3240 PC-based instrumentation and microcontrollers Microcontroller basics Spring 2017 Lecture #4 Bekkeng, 30.01.2017 Lab: AVR Studio Microcontrollers can be programmed using Assembly or C language In

More information

Introduction to general architectures of 8 and 16 bit micro-processor and micro-controllers

Introduction to general architectures of 8 and 16 bit micro-processor and micro-controllers Introduction to general architectures of 8 and 16 bit micro-processor and micro-controllers A microcontroller is a microprocessor with inbuilt peripherals.a microcontroller can also be compared with a

More information

Week1. EEE305 Microcontroller Key Points

Week1. EEE305 Microcontroller Key Points Week1 Harvard Architecture Fig. 3.2 Separate Program store and Data (File) stores with separate Data and Address buses. Program store Has a 14-bit Data bus and 13-bit Address bus. Thus up to 2 13 (8K)

More information

AN587. Interfacing to an LCD Module. Interfacing to an LCD Module INTRODUCTION OPERATION CONTROL SIGNAL FUNCTIONS TABLE 2: CONDITIONAL ASSEMBLY FLAGS

AN587. Interfacing to an LCD Module. Interfacing to an LCD Module INTRODUCTION OPERATION CONTROL SIGNAL FUNCTIONS TABLE 2: CONDITIONAL ASSEMBLY FLAGS Interfacing to an LCD Module AN587 INTRODUCTION TABLE 1: CONTROL SIGNAL FUNCTIONS This application note interfaces a PIC16CXX device to the Hitachi LM02L LCD character display module. This module is a

More information

COMP2121: Microprocessors and Interfacing. Instruction Set Architecture (ISA)

COMP2121: Microprocessors and Interfacing. Instruction Set Architecture (ISA) COMP2121: Microprocessors and Interfacing Instruction Set Architecture (ISA) http://www.cse.unsw.edu.au/~cs2121 Lecturer: Hui Wu Session 2, 2017 1 Contents Memory models Registers Data types Instructions

More information

Introduction to Embedded Systems

Introduction to Embedded Systems Stefan Kowalewski, 4. November 25 Introduction to Embedded Systems Part 2: Microcontrollers. Basics 2. Structure/elements 3. Digital I/O 4. Interrupts 5. Timers/Counters Introduction to Embedded Systems

More information

Introduction. Embedded system functionality aspects. Processing. Storage. Communication. Transformation of data Implemented using processors

Introduction. Embedded system functionality aspects. Processing. Storage. Communication. Transformation of data Implemented using processors Input/Output 1 Introduction Embedded system functionality aspects Processing Transformation of data Implemented using processors Storage Retention of data Implemented using memory Communication Transfer

More information

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

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING. BEng(Hons) Electrical and Electronics Engineering SEMESTER 1 EXAMINATION 2016/2017 TW34 UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING BEng(Hons) Electrical and Electronics Engineering SEMESTER 1 EXAMINATION 2016/2017 INTERMEDIATE EMBEDDED SYSTEMS MODULE NO: EEE5004 Date: Thursday 12 January

More information

APPLICATION NOTE 2361 Interfacing an SPI-Interface RTC with a PIC Microcontroller

APPLICATION NOTE 2361 Interfacing an SPI-Interface RTC with a PIC Microcontroller Maxim/Dallas > App Notes > REAL-TIME CLOCKS Keywords: DS1305, SPI, PIC, real time clock, RTC, spi interface, pic microcontroller Aug 20, 2003 APPLICATION NOTE 2361 Interfacing an SPI-Interface RTC with

More information

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

Ali Karimpour Associate Professor Ferdowsi University of Mashhad AUTOMATIC CONTROL SYSTEMS Ali Karimpour Associate Professor Ferdowsi University of Mashhad Main reference: Christopher T. Kilian, (2001), Modern Control Technology: Components and Systems Publisher: Delmar

More information

Module 2: Introduction to AVR ATmega 32 Architecture

Module 2: Introduction to AVR ATmega 32 Architecture Module 2: Introduction to AVR ATmega 32 Architecture Definition of computer architecture processor operation CISC vs RISC von Neumann vs Harvard architecture AVR introduction AVR architecture Architecture

More information

Understanding the basic building blocks of a microcontroller device in general. Knows the terminologies like embedded and external memory devices,

Understanding the basic building blocks of a microcontroller device in general. Knows the terminologies like embedded and external memory devices, Understanding the basic building blocks of a microcontroller device in general. Knows the terminologies like embedded and external memory devices, CISC and RISC processors etc. Knows the architecture and

More information

Interfacing PIC Microcontrollers. ADC8BIT2 Schematic. This application demonstrates analogue input sampling

Interfacing PIC Microcontrollers. ADC8BIT2 Schematic. This application demonstrates analogue input sampling Interfacing PIC Microcontrollers ADC8BIT2 Schematic This application demonstrates analogue input sampling A manually adjusted test voltage 0-5V is provided at AN0 input A reference voltage of 2.56V is

More information

EE6008-Microcontroller Based System Design Department Of EEE/ DCE

EE6008-Microcontroller Based System Design Department Of EEE/ DCE UNIT- II INTERRUPTS AND TIMERS PART A 1. What are the interrupts available in PIC? (Jan 14) Interrupt Source Enabled by Completion Status External interrupt from INT INTE = 1 INTF = 1 TMR0 interrupt T0IE

More information

MicroProcessor. MicroProcessor. MicroProcessor. MicroProcessor

MicroProcessor. MicroProcessor. MicroProcessor. MicroProcessor 1 2 A microprocessor is a single, very-large-scale-integration (VLSI) chip that contains many digital circuits that perform arithmetic, logic, communication, and control functions. When a microprocessor

More information

Binary Outputs and Timing

Binary Outputs and Timing Binary Outputs and Timing Each of the I/O pins on a PIC can be inputs or ourputs As an input, the pin is high impedance (meaning it is passive and draws very little current). If you apply 0V to that pin,

More information

Fremont Micro Devices, Inc.

Fremont Micro Devices, Inc. FEATURES Low voltage and low power operations: FT24C02/04/08/16: V CC = 2.5V to 5.5V FT24C02A/04A/08A/16A: V CC = 1.8V to 5.5V Maximum Standby current < 1µA (typically 0.02µA and 0.06µA @ 1.8V and 5.5V

More information

EEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 4 The 8051 Architecture

EEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 4 The 8051 Architecture Department of Electrical Engineering Lecture 4 The 8051 Architecture 1 In this Lecture Overview General physical & operational features Block diagram Pin assignments Logic symbol Hardware description Pin

More information

D:\PICstuff\PartCounter\PartCounter.asm

D:\PICstuff\PartCounter\PartCounter.asm 1 ;********************************************************************** 2 ; This file is a basic code template for assembly code generation * 3 ; on the PICmicro PIC16F84A. This file contains the basic

More information

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

Introduction to Microcontroller Apps for Amateur Radio Projects Using the HamStack Platform. Introduction to Microcontroller Apps for Amateur Radio Projects Using the HamStack Platform www.sierraradio.net www.hamstack.com Topics Introduction Hardware options Software development HamStack project

More information

DC6688FL32TC Super 1T 8051 Microcontroller

DC6688FL32TC Super 1T 8051 Microcontroller DC6688FL32TC Super 1T 8051 Microcontroller DC6688FL32TC is an 8-bit Microcontroller Unit with low voltage embedded Flash memory, high accuracy system clock, high current drainage output, and IR receiving

More information

Introduction to Microcontrollers

Introduction to Microcontrollers Introduction to Microcontrollers Embedded Controller Simply an embedded controller is a controller that is embedded in a greater system. One can define an embedded controller as a controller (or computer)

More information

DISCONTINUED. SPI Communication with AMT bit Absolute Encoder

DISCONTINUED. SPI Communication with AMT bit Absolute Encoder ApplicAtion note An-1001 SPI Communication with AMT203 12-bit Absolute Encoder introduction This application note is designed to provide guidelines on how to properly interface with the AMT 203 Absolute

More information

ECE Homework #3

ECE Homework #3 ECE 376 - Homework #3 Flow Charts, Binary Inputs, Binary Outputs (LEDs). Due Monday, January 29th The temperature sensor in your lab kits has the temperature-resistance relationship of R = 1000 exp 3965

More information

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

Ali Karimpour Associate Professor Ferdowsi University of Mashhad AUTOMATIC CONTROL SYSTEMS Ali Karimpour Associate Professor Ferdowsi University of Mashhad Main reference: Christopher T. Kilian, (2001), Modern Control Technology: Components and Systems Publisher: Delmar

More information

UNIVERSITY OF MORATUWA CS2052 COMPUTER ARCHITECTURE. Time allowed: 2 Hours 10 min December 2018

UNIVERSITY OF MORATUWA CS2052 COMPUTER ARCHITECTURE. Time allowed: 2 Hours 10 min December 2018 Index No: UNIVERSITY OF MORATUWA Faculty of Engineering Department of Computer Science & Engineering B.Sc. Engineering 2017 Intake Semester 2 Examination CS2052 COMPUTER ARCHITECTURE Time allowed: 2 Hours

More information

APPLICATION NOTE Wire Communication with a Microchip PICmicro Microcontroller

APPLICATION NOTE Wire Communication with a Microchip PICmicro Microcontroller Maxim > App Notes > 1-Wire DEVICES BATTERY MANAGEMENT Keywords: 1-wire, PICmicro, Microchip PIC, 1-Wire communication, PIC microcontroller, PICmicro microcontroller, 1 wire communication, PICs, micros,

More information

Physics 335 Intro to MicroControllers and the PIC Microcontroller

Physics 335 Intro to MicroControllers and the PIC Microcontroller Physics 335 Intro to MicroControllers and the PIC Microcontroller May 4, 2009 1 The Pic Microcontroller Family Here s a diagram of the Pic 16F84A, taken from Microchip s data sheet. Note that things are

More information

The von Neumann Architecture. IT 3123 Hardware and Software Concepts. The Instruction Cycle. Registers. LMC Executes a Store.

The von Neumann Architecture. IT 3123 Hardware and Software Concepts. The Instruction Cycle. Registers. LMC Executes a Store. IT 3123 Hardware and Software Concepts February 11 and Memory II Copyright 2005 by Bob Brown The von Neumann Architecture 00 01 02 03 PC IR Control Unit Command Memory ALU 96 97 98 99 Notice: This session

More information

DS1821 Programmable Digital Thermostat and Thermometer

DS1821 Programmable Digital Thermostat and Thermometer ma www.maxim-ic.com FEATURES Requires no external components Unique 1-Wire interface requires only one port pin for communication Operates over a -55 C to +125 C (-67 F to +257 F) temperature range Functions

More information

DS 1682 Total Elapsed Time Recorder with Alarm

DS 1682 Total Elapsed Time Recorder with Alarm DS 1682 Total Elapsed Time Recorder with Alarm www.dalsemi.com FEATURES Records the total time that the Event Input has been active and the number of events that have occurred. Volatile Elapsed Time Counter

More information

Experiment 7:The USART

Experiment 7:The USART University of Jordan Faculty of Engineering and Technology Department of Computer Engineering Embedded Systems Laboratory 0907334 7 Experiment 7:The USART Objectives Introduce the USART module of the PIC

More information

256K x 18 Synchronous 3.3V Cache RAM

256K x 18 Synchronous 3.3V Cache RAM Features Supports 117-MHz microprocessor cache systems with zero wait states 256K by 18 common I/O Fast clock-to-output times 7.5 ns (117-MHz version) Two-bit wrap-around counter supporting either interleaved

More information

Microprocessors and Microcontrollers. Assignment 1:

Microprocessors and Microcontrollers. Assignment 1: Microprocessors and Microcontrollers Assignment 1: 1. List out the mass storage devices and their characteristics. 2. List the current workstations available in the market for graphics and business applications.

More information

Performance & Applications

Performance & Applications EE25M Introduction to microprocessors original author: Feisal Mohammed updated: 15th March 2002 CLR Part VI Performance & Applications It is possible to predict the execution time of code, on the basis

More information

Section 4. Architecture

Section 4. Architecture M Section 4. Architecture HIGHLIGHTS This section of the manual contains the following major topics: 4. Introduction...4-2 4.2 Clocking Scheme/Instruction Cycle...4-5 4.3 Instruction Flow/Pipelining...4-6

More information

Microcomputer Architecture and Programming

Microcomputer Architecture and Programming IUST-EE (Chapter 1) Microcomputer Architecture and Programming 1 Outline Basic Blocks of Microcomputer Typical Microcomputer Architecture The Single-Chip Microprocessor Microprocessor vs. Microcontroller

More information

EMBEDDED SYSTEMS COURSE CURRICULUM

EMBEDDED SYSTEMS COURSE CURRICULUM On a Mission to Transform Talent EMBEDDED SYSTEMS COURSE CURRICULUM Table of Contents Module 1: Basic Electronics and PCB Software Overview (Duration: 1 Week)...2 Module 2: Embedded C Programming (Duration:

More information

Microcontroller systems Lec 2 PIC18LF8722 Microcontroller s s core

Microcontroller systems Lec 2 PIC18LF8722 Microcontroller s s core TKT-3500 Microcontroller systems Lec 2 PIC18LF8722 Microcontroller s s core Erno Salminen Copyright notice Some figures by Robert Reese, from supplementary CD of the course book from PIC18F8722 Family

More information

Lecture (02) PIC16F84 (I)

Lecture (02) PIC16F84 (I) Lecture (02) PIC16F84 (I) By: Dr. Ahmed ElShafee ١ Review of Memory Technologies The PIC 16 Series PIC 16F84A The PIC 16F84A Memory The Oscillator Instruction Cycle Power up and Reset Parallel ports Technical

More information

Chapter 10 Sections 1,2,9,10 Dr. Iyad Jafar

Chapter 10 Sections 1,2,9,10 Dr. Iyad Jafar Starting with Serial Chapter 10 Sections 1,2,9,10 Dr. Iyad Jafar Outline Introduction Synchronous Serial Communication Asynchronous Serial Communication Physical Limitations Overview of PIC 16 Series The

More information

ORDERING INFORMATION. OPERATION Measuring Temperature A block diagram of the DS1621 is shown in Figure 1. DESCRIPTION ORDERING PACKAGE

ORDERING INFORMATION. OPERATION Measuring Temperature A block diagram of the DS1621 is shown in Figure 1. DESCRIPTION ORDERING PACKAGE AVAILABLE Digital Thermometer and Thermostat FEATURES Temperature measurements require no external components Measures temperatures from -55 C to +125 C in 0.5 C increments. Fahrenheit equivalent is -67

More information

ECE2049 Homework #2 The MSP430 Architecture & Basic Digital IO (DUE Friday 9/8/17 at 4 pm in class)

ECE2049 Homework #2 The MSP430 Architecture & Basic Digital IO (DUE Friday 9/8/17 at 4 pm in class) ECE2049 Homework #2 The MSP430 Architecture & Basic Digital IO (DUE Friday 9/8/17 at 4 pm in class) Your homework should be neat and professional looking. You will loose points if your HW is not properly

More information