ENSC E-123: Final Exam: Digital Electronics. Spring 2014

Size: px
Start display at page:

Download "ENSC E-123: Final Exam: Digital Electronics. Spring 2014"

Transcription

1 ENSC E-123: Final Exam Spring ENSC E-123: Final Exam: Digital Electronics. Spring 2014 YOUR NAME: This is a mostly-closed-book test. You may use the following materials: 1. a one-page, one-sided handwritten cheat sheet 2. a schematic diagram of the big board lab computer; 3. the thick xeroxed handout labeled...references formicrocontroller, detailing the 8051 instruction set; 4. a calculator (not a web-linked cellphone); don t panic if you lack a calculator. Recall how non-mathy this course is Also, please notice that these exam papers include some information that may be useful: An appendix at the end of the papers show some odds and ends: Some sketchy device data sheets: 8051 port specifications a two-sheet reminder of some details of 8051 assembly language Please remember to show your work, so that we can give partial credit for imperfect answers. Total time : 180 minutes. Total points: 116 ; 126 for grads. Anyone may answer any or all questions. Undergrads cannot exceed 100 With regret, we must remind you that you need to dismantle your computer. Unless you still are working on a project, we d like you to do it right after the exam : melancholy experience has shown us that people rarely return to take apart a computer, despite their good intentions. It ll take you only about 10 minutes.

2 ENSC E-123: Final Exam Spring Contents 1 Small Digital Problems (23 points, total, plus 10 more for Grads) Transition Detector (3 points) Address-Match Detector (Grads: 10 points) Glitch Detector (8 pts) Interface gates, PAL, micro (12 points) Shift Register Design (6 points) 6 3 Three-bit Counter (20 pts) Draw It (10 pts) Design it in Verilog (10 pts) Sampling (9 pts) Resolution (4 pts) Sampling Rate (5 pts) Address Decode (10 points, total) Gates (6 points) Verilog equivalent (4 points) Small Micro I/O Tasks: hardware (8 points, total of those below) using8051 s Built-in Ports (4 points) using8051 with external buses (4 points) Small Micro I/O Tasks: Code (11 points, total of those below) using8051 s Built-in Ports (6 points, total of those below) Assume it s OK to transfer an entire byte (2 points) Assume it s not OK to transfer an entire byte (4 points) usingexternalbus(5 points Kentucky Derby Circuits (29 pts, total) First-In Circuit (9 pts) Apply the circuit to controller: Hardware, external buses 3pts) Apply the circuit to controller: Hardware, built-in 8051 port (1 pt) Apply the circuit to controller: Hardware, using two interrupt pins (2 pts) Code: Using External Buses (6 pts) Code: Using Built-in Port (3 pts) Code: Using Interrupts (5 pts) SmallDigitalProblems(23 points, total, plus 10 more for Grads) 1.1 Transition Detector (3 points) Show how to use a few gates to detect a transition on a digital line, outputting a brief HIGH pulse when such a transition occurs. You may detect rising, falling transition or either: butplease tell us which sort of transition your circuit detects.

3 ENSC E-123: Final Exam Spring Address-Match Detector (Grads: 10 points) Show a circuit that would light an LED if a 4-bit address, A3..A0, matches a 4-bit reference number, R3..R0 at a time indicated by the falling edge of ALE. (ALE continually makes transitions; any of these may correspond to an address match. On the first of these since LED-reset, the LED will light, and LED will stay lit until manually reset (it is a sticky bit ). Use standard logic, rather than a PAL.

4 ENSC E-123: Final Exam Spring Glitch Detector (8 pts) Assume you are given an RC one-shot (or monostable multivibrator ) that puts out a pulse that lasts 50ns, when given a rising edge on its TRIG input. Figure 1: One-shot, providing 50ns pulse, when triggered Design a circuit that will send a flag named GLITCH high, if a pulse comes into your circuit that lasts less than 50 ns (by a time of several nanoseconds: that is, time enough to make a gate switch). The GLITCH flag should stay high until cleared by hand, with a pushbutton, CLEAR*.

5 ENSC E-123: Final Exam Spring Interface gates, PAL, micro (12 points) At each of the numbered points below, decide whether the driver can drive the load satisfactorily. If it can, just mark it OK. If it cannot, then solve the problem. Please do NOT solve any of these interface problems by changing logic families (don t swap in HCT for an HC part, for example). If you need a special function, you may invoke it a different HC part, for example. Note that specifications for all devices shown are listed below, and note credit of 2 points for each of two interfaces: numbers 1 and 9. Figure 2: Interface Problems

6 ENSC E-123: Final Exam Spring Shift Register Design (6 points) In this problem you are to design a 4-bit parallel-load shift register, using discrete gates and flipflops. The shift register is positive-edge clocked, with synchronous parallel load, and synchronous reset. To be specific, here s what happens in particular cases: Neither LD* nor R* is asserted: data shifts right at each clock, with Q0 loaded with serial-in data from SI. LD* asserted, R* not asserted: the values at P0-P3 get transferred to Q0-Q3 at the next clock, regardless of SI. R* asserted: the next clock clears Q0-Q3 (in other words, this signal overrides LD* and SI). Figure 3: 4-bit shift register Design the shift register with 4 74HC74 type-d flip-flops (shown below) and appropriate gates. Figure 4: Shift register from gates and flops

7 ENSC E-123: Final Exam Spring Three-bit Counter (20 pts) We d like you to design a counter to the following specifications: three bits natural binary synchronous UP counter synchronous clear* (active low) cin enables counting cout on max count; cout should permit cascading of any number of stages, as each stage s cout drives cin of next stage 3.1 Draw It (10 pts) 3.2 Design it in Verilog (10 pts) We have started a design file for you. Please complete it. Here s a reminder of how Verilog shows logical operators: AND = & OR = XOR = ˆ NOT =! or. Clocked circuits use always@(posedge[signal 1] or negedge[signal 2]), for example. The last item in the list of signals sensed is edge sensitive. module three_bit_cin_cout( input clk, input clr_bar, input cin, output reg [2:0] count, output cout );

8 ENSC E-123: Final Exam Spring Sampling (9 pts) Your task is to choose some sampling characteristics for a controller with an ADC. We ll ask you about these characteristics, one by one. 4.1 Resolution (4 pts) The ADC in the controller provides ten bits of resolution. Its range is 0V to 2.046V. If your measurements indicate that your system has noise amplitude (that is, uncertainty in ADC input) of 5mV peak-to-peak, how many bits can your conversion resolve? (Or, if you prefer, tell us how many bits of the 10 will be lost to noise). Explain your answer briefly. 4.2 Sampling Rate (5 pts) You want to acquire signals up to 10kHz and can use the MAX294 filter that you have met in this course, which attenuates to -60dB at 20% above f cutoff (or f 3dB ). What sampling rate is the minimum that you can safely use? Explain your answer briefly.

9 ENSC E-123: Final Exam Spring Address Decode (10 points, total) 5.1 Gates (6 points) Draw gates (any number of inputs; use the shape that better expresses what s going on, from the two forms that demorgan teaches us always are available) to do the following: Given a 16-bit address bus (A0...A15) and the signals listed below, enable each of two memory chips as described: enable the ROM when RD* or PSEN* is asserted, and the memory location is in the bottom quarter of all address space; enable the RAM when RD* or WR* is asserted and the memory location is between the bottom quarter and the top quarter (we ll reserve the top quarter for something else I/O and you need not wire that in this design). Figure 5: ROM, RAM enabling logic Note that we are asking you to take care of only the two chip-select (CS*) lines. You need not consider other connections to the memories (control pins or address lines). 5.2 Verilog equivalent (4 points) Show the equations for the two signals to enable ROM and RAM. We have written the start of a solution file for you, in Verilog. The template or start-of-file appears on the next page. No banging of signals, here; instead, the active-low character of a signal appears only in its name. Perhaps we should remind you of Verilog s peculiar way of indicating logic operations and bar: AND = &; OR = ; XOR = ˆ ; NOT or BAR =!. The keyword for combinational logic is ASSIGN: ASSIGNvariable=...

10 ENSC E-123: Final Exam Spring timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: Gearloose // Engineer: You // Create Date: 12:04:05 05/12/2009 // Module Name: adr_decode_may09 ////////////////////////////////////////////////////////////////////////////////// module adr_decode_may09( input RD_bar, input PSEN_bar, input WR_bar, input A15, input A14, output ROMEN_bar, output RAMEN_bar );

11 ENSC E-123: Final Exam Spring Small Micro I/O Tasks: hardware (8 points, total of those below) We d like you to show how to let two switches talk to the 8051, and how to let the 8051 drive two loads. First, we ll ask you to do this using built-in ports, then using buses using 8051 s Built-in Ports (4 points) You will find I/O specification for the 8051 in a summary sheet at the end of this exam (but you may recall enough so you ll not need to consult it). Don t worry about switch bounce. The motor passes 10V. Figure 6: I/O using built-in ports using 8051 with external buses (4 points) Don t worry about switch bounce. And here we ll omit the motor, not to make you draw one thing twice. Figure 7: I/O using external buses

12 ENSC E-123: Final Exam Spring Small Micro I/O Tasks: Code (11 points, total of those below) using 8051 s Built-in Ports (6 points, total of those below) Write an endless loop that (foolishly) let s the upper switch control the motor, the lower switch control the LED. 1 Do this two ways: Assume it s OK to transfer an entire byte (2 points) This code will alter the levels of the 6 unused output bits at Port1. But that s OK Assume it s not OK to transfer an entire byte (4 points) This time, you must leave the 6 unused output bits at Port1 untouched using externalbus(5 points Write an endless loop that (again foolishly) let s the upper switch control the motor, the lower switch control the LED. We didn t ask you to draw the motor in the hardware exercise?? on page??; but assume it is present. Assume it s OK to transfer an entire byte. This code assumes the hardware you showed in 6.2 on the previous page, putting in and out at Port 1 (external buses), data lines d0 and d1, assigned as you please. 1 Yes, we agree: it would be simpler to omit the 8051! But we re just warming up; you know that the 8051 could be used to make some decisions, so as to justify its inclusion.

13 ENSC E-123: Final Exam Spring Kentucky Derby Circuits (29 pts, total) Hardware (15 pts, total) 8.1 First-In Circuit (9 pts) Your first design task is to implement a circuit sketched below, a circuit that is to determine which of two events, A or B, happened first (this is a test circuit, using pushbuttons; if it works, we hope to use it to determine the winner of next year s horse race this circuit permits only two horses to run, and requires that each horse run in its own lane, to make our electronics simple. That may require negotiations with the race managers. Figure 8: Horse race finish: a possible application for the simpler circuit you ll design for pushbuttons We re not asking for the horse-nose sensing; we ll just mock up the circuit using two pushbuttons. Figure 9: Block diagram of first-in logic Before you start designing the circuit, above, it may help to look at a timing diagram, in fig.10, showing the behavior we would like from this logic. Design the circuit, using flops and gates. Debounce signals only if/where necessary.

14 ENSC E-123: Final Exam Spring Figure 10: Timing diagram showing how first-in logic should respond to signals A and B 8.2 Apply the circuit to controller: Hardware, external buses 3pts) Assume the first-in logic is done. Show how to let the 8051 input the who-won information using external buses, at port 1, data lines 0 for A WON, 1 for B WON. Assume I/O decoding has been done for you, as in the lab Big Board computer. Figure 11: Winner logic interfaced to 8051 using external buses 8.3 Apply the circuit to controller: Hardware, built-in 8051 port (1 pt) Assume the first-in logic is done. Show how to let the 8051 input the who-won information using the 8051 s built-in PORT0 (P0), using P0,0 for A WON, P0.1 for B WON. 2 Figure 12: Winner logic interfaced to 8051 using built-in Port 0 (P0) 2 In case you re a Big Board veteran, worried that Port0 is used for buses; don t worry: assume that this computer is not wired to use buses.

15 ENSC E-123: Final Exam Spring Apply the circuit to controller: Hardware, using two interrupt pins (2 pts) Assume the first-in logic is done. Show how to let the 8051 input the who-won information using two of the 8051 s external interrupt pins, INT0* and INT1*: (INT0* for A WON, INT1* for B WON. We have drawn the interrupts as edge-sensitive, as they will be when it comes time to program the part. Figure 13: Winner logic interfaced to 8051 using two interrupts Code: Three ways (14 points, total) Now we d like you to write code that would behave as follows: the code is a subroutine, and should not leave any registers messed up the program calls one or the other of two subroutines, named SAY AandSAY B, which announce which of the two signals was asserted A WON or B WON. 8.5 Code: Using External Buses (6 pts) This code is for the hardware of 8.2.

16 ENSC E-123: Final Exam Spring Code: Using Built-in Port (3 pts) This code is for the hardware of Code: Using Interrupts (5 pts) This code is for the hardware of 8.4. The winner s interrupt service response (ISR) should call SAY AorSAY B, appropriately and should disable the loser s interrupt response. Here is the interrupt setup code done in the Main program: ; ----NOW SET UP INTERRUPTS---- INT_INITS: setb IT0 ; make INT0 Edge-sensitive (p. 22) setb IT1 ; ditto for INT1 setb EX0 ;...and enable INT0 setb EX1 ;...and INT1 setb EA ; Global int enable (pp.31-32) ret End Exam Questions: Appendix follows xb final may2014.tex; May 15, 2014

17 ENSC E-123: Final Exam Spring Appendix 8051 port specifications Sketchy Data Sheets some common 8051 assembly language operations

18 ENSC E-123: Final Exam Spring Port Specifications Figure 14: 8051 port specifications [END WHOLE EXAM PAPER, except 2 pages re common 8051 operations]

19 8051: A few of our favorite things 5/7/2004, 12/8/05 inspired (one might say, 'shamed') by Carlos, who wrote another, better list--which we hope he'll share with you Addressing Modes example explanation Important 8051 Resources "@DPTR" "@R0" copies contents of A register (8051 on-chip) to location pointed to by DPTR: that is, to location whose address DPTR holds To use this instruction, one must first load the appropriate address into DPTR puts the value 8003h into DPTR: "#" means "immediate," or "use this MOV DPTR, #8003h value; don't go off to location 8003 to get something" copies contents of A to address whose low-byte is in register R0. The high-byte is provided by Port 2 (on-chip P2). DPTR DPS 16-bit register on micro. Used to define address of operations between micro and off-chip resources such as RAM or I/O. Dallas provides two DPTRS. They are distinguished only by whether a single bit, DPS, is high or low. MOV P2, #80h To use the instruction, one must first load the appropriate high-byte into P2. Code to left shows that operation. SP 8-bit stack pointer register: used in all forms of CALL, and in PUSH and POP Operations often used stack RAM area (on-chip RAM) pointed to by SP. Must be in 'indirectly-addressable' section of RAM. MOV MOVX MOV P2, R3 MOVX copies contents of register R3 into the on-chip port register P2 (8 flops that can drive Port 2's 8 lines) see above. The "X" in MOVX means "external," and appears in all transfers between the processor and the outside world, when using the external buses. This is in contrast to use of the built-in ports. The instruction on the line just above, MOV P2, R3 illustrates that contrasting case: a write to a built-in port. A the privileged 8-bit register: the only location used in MOVX operations. Most arithmetic and logical operations must work on A and another operand; result goes to A. Annoying detail: sometimes A must be referred to as "ACC". For example, in bit operations: "JNB ACC.7" and in "PUSH ACC." ADD ADDC ADDC A, R2 two flavors of ADD: one takes in the Carry flag, the other doesn't. forms sum of A and register R2 and the Carry bit (added in at LSB). Result goes into A (hence the name, "accumulator"). SUBB SUBB A, #80h subtracts the value 80h from A--including a borrow if Carry flag is set. (Carry and Borrow flag are the same bit: same thing.) Result goes to A. The result in A will NOT be a negative number (that would require use of 2's-complement). Use CY flag to determine whether A<#80h-- you must have cleared the CY flag before doing the SUBB, n.b., to make this an honest test. PUSH, POP stores register contents on stack (only bytes: there is no "PUSH PUSH ACC, POP ACC DPTR"). Note funny names: not "A" but "ACC". Bit Operations JB, JNB JB P3.4,hangup test the specified bit--here, bit 4 of built-in port 3--and hop to label "hangup" if that bit is High. This operation is permitted only on certain on-chip locations: so-called "bit-addressable" region, 128 bits between 20h and 2Fh, plus a few others including SFR locations ending in 8 or zero!. JC, JNC JNC greater_than same as JNB, but looks at the Carry bit SETB SETB ACC.1 forces a single bit high CLR CLR P3.0 forces a single bit low. Despite the lack of "B" in the mnemonic, this is a BIT operation, except for CLR A, which I think is the only 8-bit clear. CLR A CPL CPL P3.1 complement (flip) CPL A flips all 8 bits (but permitted only on A)

20 Carlos New Improved 8051-programming Reference Summary 5/18/04 COMMANDS What does it mean? THINGS Who the hell is that? INC [] Increments [] # Just the number, not the value DEC [] Decrements [] xxxxh A hex number CPL [] Complements [] (flips it 0 1) A Accumulator = privileged register CLR [] Clears [] (Makes it LOW (=00)) B Another privileged register SETB [] Sets this bit, [], HIGH At the address the thing points SJMP label Short Jump to a labeled section DPTR Data pointer AJMP label Absolute Jump to a labeled section. (Longer than SJMP but not as long as LJMP) DPL Main Data pointer low byte LJMP label Long Jump (the longest) to any section DPH Main Data pointer high byte ACALL label Absolute Call a labeled subroutine DPL1 Alt. data pointer low byte LCALL label Call a labeled subroutine that s a long way away DPH1 Alt. data pointer high byte JB [], label Jump to labeled section if this bit, [], is set HIGH. JB ACC.2, label Think: jump if (this thing is) high DPS Data Pointer Select; 0 gives 1 st, 1 gives 2 nd JNB [], label Jump to labeled section if this bit, [], is not HIGH. JNB ACC.4, label Think: jump if (this thing is) low SP Stack pointer JC label Jump to label if Carry/Borrow flag is set HIGH. Another way to say accumulator, used with ACC Jump if Carry (flag is) high. DJNZ, JB, JNB, PUSH, POP JNC label Jump to label if Carry/Borrow flag is Not set HIGH. Jump if Carry (flag is) low. Rx Register 0-7 MOV [d], [s] MOV DPTR, #8002h MOV R3, #93h MOVX [d], [s] MOVX A ADD A, [x] if A=81 & Cy=1 or 0 then ADD A, #82h gives A=03, Cy=1 ADDC A, [x] If Cy=1, A=81 then ADDC A, #82h gives A=04, Cy=1. If Cy was 0, then A=03, Cy=1 SUBB A, [x] If Cy is 0 & A=72 then SUBB A, #81 gives A=F1, Cy=1. If Cy was 1, then A=F1, Cy=0 DJNZ [], label First: MOV R6, #06h and later: DJNZ R6, label counts down from 06 PUSH [] PUSH ACC, PUSH DPH PUSH DPL POP [] POP ACC, POP DPH RRC A For A=05, Cy=0, RRC A gives A=2, Cy=1. Nice. RR A For A=04, RR A gives 02. Fine. If A=03, RR A gives 81. Weird. MUL AB A=06, B=02; MUL AB gives A=0C, B=00. DIV AB A=0D, B=03; DIV AB gives A=04, B=01. RET RETI Internal move, puts source into destination External move, puts source into destination, always into or out of Accumulator Add x to Acc, put sum into Acc. Does not add the Carry flag at the LSB the way ADDC does. Sets Carry flag HIGH if necessary, otherwise puts it LOW. Add x to Acc, put sum into Acc, and also add the Carry flag (whether HIGH or LOW) at the LSB. Sets Carry flag HIGH if necessary, otherwise LOW. Subtract x from Acc, put results into Acc. Sets the Carry/Borrow flag HIGH if a Borrow is needed for bit 7 (A<x), otherwise, clear Cy flag. Good to clear Cy flag before the first SUBB operation. Decrement [], and then jump to labeled section if result of decrement is not zero. Nice to first load a Rx register with a countdown value Pushes a copy of [] onto the top of the stack so it can be manipulated and thrown out, and the original recovered. Pull the original version of [] off the top of the stack, replacing whatever you ve been handling Rotates Acc Right thru the Carry flag. Divides Acc by two. Bit 0 goes to Cy flag; original Cy flag goes to bit 7. Px.x ACC.7 C ISR SETB EA SETB EX0 SETB IT0 PSW.1 EQU ORG [xxxx] Port 3, bit 1. These refer to 8051 s internally defined ports 7 th bit of accumulator The Carry/Borrow Flag. Sometimes it s Carry (like with Addition) and sometimes it s Borrow (like with subtraction) Interrupt Service Routine. On interrupt, program hops to interrupt address (03h for Int0) and executes ISR. Often, just LCALL a subroutine from here. To enable interrupts, do these three things. EA is global interrupt enable. EX0 enables External Interrupt 0. IT0 is a timer control thingy for ext. interrupt 0 that makes it edge sensitive. Could also use interrupt 1 (SETB EX1 and IT1) but let s keep things simple Program Status Word, can use this bit as a general purpose flag A FEW OTHER THINGS Gives a name to a location. FLAGNAME EQU 05h allows you to refer to 05h by the name FLAGNAME Origin. Just a start line Rotates Acc Right. Bit 0 goes to bit 7. This is a funny divide-bytwo where the remainder, if any, affects high digit. NOP No Operation. Does nothing, just takes up a line Multiply Acc times B, high byte of product into B, low byte into Acc. Cy flag cleared. Divides Acc by B. Integer of quotient into Acc, remainder into B. Cy flag cleared. Return from a subroutine to the next line in main code Return from an interrupt to the next line in main code DA END Decimal Adjust the accumulator End of a program

Microcontroller Intel [Instruction Set]

Microcontroller Intel [Instruction Set] Microcontroller Intel 8051 [Instruction Set] Structure of Assembly Language [ label: ] mnemonic [operands] [ ;comment ] Example: MOV R1, #25H ; load data 25H into R1 2 8051 Assembly Language Registers

More information

Microprocessors 1. The 8051 Instruction Set. Microprocessors 1 1. Msc. Ivan A. Escobar Broitman

Microprocessors 1. The 8051 Instruction Set. Microprocessors 1 1. Msc. Ivan A. Escobar Broitman Microprocessors 1 The 8051 Instruction Set Microprocessors 1 1 Instruction Groups The 8051 has 255 instructions Every 8-bit opcode from 00 to FF is used except for A5. The instructions are grouped into

More information

8051 Overview and Instruction Set

8051 Overview and Instruction Set 8051 Overview and Instruction Set Curtis A. Nelson Engr 355 1 Microprocessors vs. Microcontrollers Microprocessors are single-chip CPUs used in microcomputers Microcontrollers and microprocessors are different

More information

8051 Microcontroller

8051 Microcontroller 8051 Microcontroller EE4380 Fall 2001 Pari vallal Kannan Center for Integrated Circuits and Systems University of Texas at Dallas 8051 Architecture Programmer s View Register Set Instruction Set Memory

More information

Architecture & Instruction set of 8085 Microprocessor and 8051 Micro Controller

Architecture & Instruction set of 8085 Microprocessor and 8051 Micro Controller of 8085 microprocessor 8085 is pronounced as "eighty-eighty-five" microprocessor. It is an 8-bit microprocessor designed by Intel in 1977 using NMOS technology. It has the following configuration 8-bit

More information

Contents 8051 Instruction Set BY D. BALAKRISHNA, Research Assistant, IIIT-H Chapter I : Control Transfer Instructions Lesson (a): Loop Lesson (b): Jump (i) Conditional Lesson (c): Lesson (d): Lesson (e):

More information

SN8F5000 Family Instruction Set

SN8F5000 Family Instruction Set SONiX Technology Co., Ltd. 8051-based Microcontroller 1 Overview SN8F5000 is 8051 Flash Type microcontroller supports comprehensive assembly instructions and which are fully compatible with standard 8051.

More information

Memory organization Programming model - Program status word - register banks - Addressing modes - instruction set Programming examples.

Memory organization Programming model - Program status word - register banks - Addressing modes - instruction set Programming examples. MICROCONTROLLERS AND APPLICATIONS 1 Module 2 Module-2 Contents: Memory organization Programming model - Program status word - register banks - Addressing modes - instruction set Programming examples. MEMORY

More information

UNIT 2 THE 8051 INSTRUCTION SET AND PROGRAMMING

UNIT 2 THE 8051 INSTRUCTION SET AND PROGRAMMING UNIT 2 THE 8051 INSTRUCTION SET AND PROGRAMMING Instructions Alphabetical List of Instructions ACALL: Absolute Call ADD, ADDC: Add Accumulator (With Carry) AJMP: Absolute Jump ANL: Bitwise AND CJNE: Compare

More information

Digital Blocks Semiconductor IP

Digital Blocks Semiconductor IP 805 SFR Bus Digital Blocks Semiconductor IP 805 Microcontroller Configurable Peripherals General Description The Digital Blocks (Configurable Peripherals) Microcontroller Verilog IP Core is complaint with

More information

Digital Blocks Semiconductor IP

Digital Blocks Semiconductor IP Digital Blocks Semiconductor IP 805 Microcontroller General Description The Digital Blocks Microcontroller Verilog IP Core is complaint with the MCS 5 Instruction Set and contains standard 805 MCU peripherals,

More information

Programming of 8085 microprocessor and 8051 micro controller Study material

Programming of 8085 microprocessor and 8051 micro controller Study material 8085 Demo Programs Now, let us take a look at some program demonstrations using the above instructions Adding Two 8-bit Numbers Write a program to add data at 3005H & 3006H memory location and store the

More information

Digital Blocks Semiconductor IP

Digital Blocks Semiconductor IP Digital Blocks Semiconductor IP DB805C-FSM 805 Microcontroller FSM Finite State Machine General Description The Digital Blocks DB805C-FSM IP Core contains Digital Blocks compact DB805C CPU Core & GPIO

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

UNIT-III ASSEMBLY LANGUAGE PROGRAMMING. The CPU can access data in various ways, which are called addressing modes

UNIT-III ASSEMBLY LANGUAGE PROGRAMMING. The CPU can access data in various ways, which are called addressing modes 8051 Software Overview: 1. Addressing Modes 2. Instruction Set 3. Programming 8051 Addressing Modes: UNIT-III ASSEMBLY LANGUAGE PROGRAMMING The CPU can access data in various ways, which are called addressing

More information

Q. Classify the instruction set of 8051 and list out the instructions in each type.

Q. Classify the instruction set of 8051 and list out the instructions in each type. INTRODUCTION Here is a list of the operands and their meanings: A - accumulator; Rn - is one of working registers (R0-R7) in the currently active RAM memory bank; Direct - is any 8-bit address register

More information

Microcontroller. Instruction set of 8051

Microcontroller. Instruction set of 8051 UNIT 2: Addressing Modes and Operations: Introduction, Addressing modes, External data Moves, Code Memory, Read Only Data Moves / Indexed Addressing mode, PUSH and POP Opcodes, Data exchanges, Example

More information

UNIT THE 8051 INSTRUCTION SET AND PROGRAMMING

UNIT THE 8051 INSTRUCTION SET AND PROGRAMMING UNIT THE 8051 INSTRUCTION SET AND PROGRAMMING Instructions Alphabetical List of Instructions ACALL: Absolute Call ADD, ADDC: Add Accumulator (With Carry) AJMP: Absolute Jump ANL: Bitwise AND CJNE: Compare

More information

Dodatak. Skup instrukcija

Dodatak. Skup instrukcija Dodatak Skup instrukcija Arithmetic Operations [@Ri] implies contents of memory location pointed to by R0 or R1 Rn refers to registers R0-R7 of the currently selected register bank 2 ADD A,

More information

DR bit RISC Microcontroller. Instructions set details ver 3.10

DR bit RISC Microcontroller. Instructions set details ver 3.10 DR80390 8-bit RISC Microcontroller Instructions set details ver 3.10 DR80390 Instructions set details - 2 - Contents 1. Overview 7 1.1. Document structure. 7 2. Instructions set brief 7 2.1. Instruction

More information

Programming Book Microcontroller Kit. Rev 3.0 January, Wichit Sirichote

Programming Book Microcontroller Kit. Rev 3.0 January, Wichit Sirichote Programming Book1 8051 Microcontroller Kit Rev 3.0 January, 016 016 Wichit Sirichote 1 Contents Overview...3 SAFTY INFORMATION...3 Tools...3 Experiment 1 Blinking LED...4 Experiment Binary number counting...9

More information

Module Contents of the Module Hours COs

Module Contents of the Module Hours COs Microcontrollers (EE45): Syllabus: Module Contents of the Module Hours COs 1 8051 MICROCONTROLLER ARCHITECTURE: Introduction to Microprocessors and Microcontrollers, the 8051 Architecture, 08 1 and pin

More information

8051 Microcontroller Assembly Programming

8051 Microcontroller Assembly Programming 8051 Microcontroller Assembly Programming EE4380 Fall 2002 Class 3 Pari vallal Kannan Center for Integrated Circuits and Systems University of Texas at Dallas Topics Machine code 8051 Addressing Modes

More information

Instruction Set Of 8051

Instruction Set Of 8051 Instruction Set Of 8051 By Darshan Patel M.Tech (Power Electronics & Drives) Assistant Professor, Electrical Department Sankalchand Patel college of Engineering-Visnagar Introduction The process of writing

More information

Assembly Language programming (2)

Assembly Language programming (2) EEE3410 Microcontroller Applications LABORATORY Experiment 2 Assembly Language programming (2) Name Class Date Class No. Marks Arithmetic, Logic and Jump instructions Objectives To learn and practice the

More information

MICROCONTROLLER AND PLC LAB-436 SEMESTER-5

MICROCONTROLLER AND PLC LAB-436 SEMESTER-5 MICROCONTROLLER AND PLC LAB-436 SEMESTER-5 Exp:1 STUDY OF MICROCONTROLLER 8051 To study the microcontroller and familiarize the 8051microcontroller kit Theory:- A Microcontroller consists of a powerful

More information

Embedded Controller Programming

Embedded Controller Programming Embedded Controller Programming Counters, Timers and I/O in Assembly Language Ken Arnold Copyright 2000-2004 Ken Arnold 1 Outline Timer/Counters Serial Port More 8051 Instructions Examples Copyright 2000-2004

More information

Principle and Interface Techniques of Microcontroller

Principle and Interface Techniques of Microcontroller Principle and Interface Techniques of Microcontroller --8051 Microcontroller and Embedded Systems Using Assembly and C LI, Guang ( 李光 ) Prof. PhD, DIC, MIET WANG, You ( 王酉 ) PhD, MIET 杭州 浙江大学 2014 Chapter

More information

Principle and Interface Techniques of Microcontroller

Principle and Interface Techniques of Microcontroller Principle and Interface Techniques of Microcontroller --8051 Microcontroller and Embedded Systems Using Assembly and C LI, Guang ( 李光 ) Prof. PhD, DIC, MIET WANG, You ( 王酉 ) PhD, MIET 杭州 浙江大学 2011 Chapter

More information

TUTORIAL Assembly Language programming (2)

TUTORIAL Assembly Language programming (2) 8051 Assembly Language programming (2) TUTORIAL 4 EEE3410 Microcontroller Applications 1. Write the instructions to move value 34h into register A and value 3Fh into register B, then add them together.

More information

HW D1: Gates & Flops: Spring 2015

HW D1: Gates & Flops: Spring 2015 HW D1: Gates & Flops: Spring 15 1 Contents HW D1: Gates & Flops: Spring 2015 1 Apply a Regulator (6 pts, total) 1 1.1 VariableRegulator(1 pt)......................... 1 1.2 Power Dissipation, efficiency(1

More information

ET355 Microprocessors Thursday 6:00 pm 10:20 pm

ET355 Microprocessors Thursday 6:00 pm 10:20 pm ITT Technical Institute ET355 Microprocessors Thursday 6:00 pm 10:20 pm Unit 4 Chapter 6, pp. 139-174 Chapter 7, pp. 181-188 Unit 4 Objectives Lecture: BCD Programming Examples of the 805x Microprocessor

More information

ET2640 Microprocessors

ET2640 Microprocessors ET2640 Microprocessors Unit -2 Processor Programming Concepts Basic Control Instructor : Stan Kong Email : skong@itt-tech.edu Figure 2 4 Bits of the PSW Register 8051 REGISTER BANKS AND STACK 80 BYTES

More information

MASSEY UNIVERSITY PALMERSTON NORTH CAMPUS

MASSEY UNIVERSITY PALMERSTON NORTH CAMPUS MASSEY UNIVERSITY PALMERSTON NORTH CAMPUS EXAMINATION FOR 159.233 COMPUTER SYSTEMS Semester One June 2008 Time allowed: THREE (3) hours This exam contains THREE (3) questions ANSWER ALL THREE (3) QUESTIONS

More information

ENSC E-123: Homework D10: Counter as Peripheral

ENSC E-123: Homework D10: Counter as Peripheral Homework D10, Counter as Peripheral 1 REV 4 1 ; April 9, 2015 ENSC E-123: Homework D10: Counter as Peripheral Contents 1 Counter as Peripheral (9 points, total) 1 1.1 Computer-driven Load* Switch, to Clear

More information

C51 Family. Architectural Overview of the C51 Family. Summary

C51 Family. Architectural Overview of the C51 Family. Summary Architectural Overview of the C51 Family C51 Family Summary 1. Introduction............................................................ I.1. 1.1. TSC80C51/80C51/80C31.................................................................

More information

What Registers are available? Programming in Assembler. Assembler Programming - like early Basic. Assembler Data Movement Instructions

What Registers are available? Programming in Assembler. Assembler Programming - like early Basic. Assembler Data Movement Instructions Programming in Assembler Need knowledge of CPU 8051 Programmers model what registers are available? what memory is available? code memory (for programs) data memory (for variables and the stack) what instructions

More information

CPEG300 Embedded System Design. Lecture 6 Interrupt System

CPEG300 Embedded System Design. Lecture 6 Interrupt System CPEG300 Embedded System Design Lecture 6 Interrupt System Hamad Bin Khalifa University, Spring 2018 Correction Lecture 3, page 18: Only direct addressing mode is allowed for pushing or popping the stack:

More information

Assembly Language programming (3)

Assembly Language programming (3) EEE3410 Microcontroller Applications LABORATORY Experiment 3 Assembly Language programming (3) Name Class Date Class No. Marks Conditional Program Branching and Subroutine Call in 8051 Objectives To learn

More information

~: Simple Programs in 8051 assembly language :~

~: Simple Programs in 8051 assembly language :~ ~: Simple Programs in 8051 assembly language :~ Here some simple programs of 8051 are given to understand the operation of different instructions and to understand the logic behind particular program.

More information

Control Transfer Instructions Jump, Loop, and Call. ECE473/573 Microprocessor System Design, Dr. Shiue

Control Transfer Instructions Jump, Loop, and Call. ECE473/573 Microprocessor System Design, Dr. Shiue Control Transfer Instructions Jump, Loop, and Call 1 Jump Instructions JZ label ; Jump if A=0 JNZ label ; Jump if A!=0 DJNZ reg, label ; Decrement and Jump if A (or reg.)!=0 CJNE A, byte ; Compare and

More information

Question Bank Microprocessor and Microcontroller

Question Bank Microprocessor and Microcontroller QUESTION BANK - 2 PART A 1. What is cycle stealing? (K1-CO3) During any given bus cycle, one of the system components connected to the system bus is given control of the bus. This component is said to

More information

ENE 334 Microprocessors

ENE 334 Microprocessors Page 1 ENE 334 Microprocessors Lecture 10: MCS-51: Logical and Arithmetic : Dejwoot KHAWPARISUTH http://webstaff.kmutt.ac.th/~dejwoot.kha/ ENE 334 MCS-51 Logical & Arithmetic Page 2 Logical: Objectives

More information

8051 Microcontrollers

8051 Microcontrollers 8051 Microcontrollers Richa Upadhyay Prabhu NMIMS s MPSTME richa.upadhyay@nmims.edu March 15, 2016 8051 INSTRUCTIONS JUMP, LOOP AND CALL INSTRUCTIONS 8051 INSTRUCTIONS Repeating a sequence of instructions

More information

8051 Core Specification

8051 Core Specification 8051 Core Specification Authors: Jaka Simsic Simon Teran jakas@opencores.org simont@opencores.org Rev. 0.1 August 14, 2001 First Draft www.opencores.org Rev 0.1 First Draft 1 of 26 Revision History Rev.

More information

Dragonchip. Instruction Set Manual

Dragonchip. Instruction Set Manual Dragonchip Instruction Set Manual Version 3.1 July 2004 The Objective of this document is to provide the user a detail description to the each instruction set used in Dragonchip s MCU family. There are

More information

INSTRUCCIONES ARITMETICAS ERROR! MARCADOR NO DEFINIDO.

INSTRUCCIONES ARITMETICAS ERROR! MARCADOR NO DEFINIDO. INSTRUCCIONES ARITMETICAS ERROR! MARCADOR NO DEFINIDO. ADD A,Rn Add register to 28..2F 1 12 X X X accumulator ADD A,direct Add direct byte 25 2 12 X X X to accumulator ADD A,@Ri Add indirect RAM 26..27

More information

Lab-Report Microprocessors

Lab-Report Microprocessors Lab-Report Microprocessors Digital Voltage Meter (DVM) NO YES Name: Dirk Becker Course: BEng 2 Group: A Student No.: 9801351 Date: 05/May/1999 1. Contents 1. CONTENTS... 2 2. INTRODUCTION... 3 3. THE PROJECT...

More information

Chapter Family Microcontrollers Instruction Set

Chapter Family Microcontrollers Instruction Set Chapter 4 8051 Family Microcontrollers Instruction Set Lesson 5 Program Flow Control and Interrupt Flow Control Instructions 2 Branch instructions- Jump to new value of Program Counter (PC) LJMP address16

More information

CHAPTER 6 ARITHMETIC, LOGIC INSTRUCTIONS, AND PROGRAMS

CHAPTER 6 ARITHMETIC, LOGIC INSTRUCTIONS, AND PROGRAMS CHAPTER 6 ARITHMETIC, LOGIC INSTRUCTIONS, AND PROGRAMS Addition of Unsigned Numbers The instruction ADD is used to add two operands Destination operand is always in register A Source operand can be a register,

More information

8051 Microcontrollers

8051 Microcontrollers 8051 Microcontrollers Richa Upadhyay Prabhu NMIMS s MPSTME richa.upadhyay@nmims.edu March 8, 2016 Controller vs Processor Controller vs Processor Introduction to 8051 Micro-controller In 1981,Intel corporation

More information

TUTORIAL. Donal Heffernan University of Limerick May Tutorial D.Heffernan 2000,

TUTORIAL. Donal Heffernan University of Limerick May Tutorial D.Heffernan 2000, 8051 TUTORIAL Donal Heffernan University of Limerick May-2002 8051 Tutorial D.Heffernan 2000, 2001 1 Blank 8051 Tutorial D.Heffernan 2000, 2001 2 Some reference material: Test books + MacKenzie Scott.

More information

EXPERIMENT NO.1. A Microcontroller is a complete computer system built on a single chip.

EXPERIMENT NO.1. A Microcontroller is a complete computer system built on a single chip. EXPERIMENT NO.1 AIM: Study of 8051 Microcontroller TOOLS: 8051 kit THEORY: Salient Features of 8051 A Microcontroller is a complete computer system built on a single chip. It contains all components like

More information

Highlights. FP51 (FPGA based 1T 8051 core)

Highlights. FP51 (FPGA based 1T 8051 core) Copyright 2017 PulseRain Technology, LLC. FP51 (FPGA based 1T 8051 core) 10555 Scripps Trl, San Diego, CA 92131 858-877-3485 858-408-9550 http://www.pulserain.com Highlights 1T 8051 Core Intel MCS-51 Compatible

More information

2. Write an 8051 program to generate a square wave of 25 khz at pin P2.3 using XTAL = 12 MHz. Solution:

2. Write an 8051 program to generate a square wave of 25 khz at pin P2.3 using XTAL = 12 MHz. Solution: Assignment 2 1. Assume that 5 binary data items are stored in RAM locations starting at 50h, as shown below. Write a program to find the sum of all the numbers. The calculation is in 16-bit format and

More information

ELEG3924 Microprocessor

ELEG3924 Microprocessor Department of Electrical Engineering University of Arkansas ELEG3924 Microprocessor Ch.2 Assembly Language Programming Dr. Jing Yang jingyang@uark.edu 1 OUTLINE Inside 8051 Introduction to assembly programming

More information

ELEG3923 Microprocessor Ch.2 Assembly Language Programming

ELEG3923 Microprocessor Ch.2 Assembly Language Programming Department of Electrical Engineering University of Arkansas ELEG3923 Microprocessor Ch.2 Assembly Language Programming Dr. Jingxian Wu wuj@uark.edu OUTLINE 2 Inside 8051 Introduction to assembly programming

More information

MODULE-1. Short Answer Questions

MODULE-1. Short Answer Questions MODULE-1 Short Answer Questions 1. Give the comparison between microprocessor and microcontroller. It is very clear from figure that in microprocessor we have to interface additional circuitry for providing

More information

ELEG3923 Microprocessor Ch.6 Arithmetic and Logics

ELEG3923 Microprocessor Ch.6 Arithmetic and Logics Department of Electrical Engineering University of Arkansas ELEG3923 Microprocessor Ch.6 Arithmetic and Logics Dr. Jingxian Wu wuj@uark.edu OUTLINE 2 Arithmetic instructions Signed number operations Logic

More information

MICROPROCESSOR LABORATORY MANUAL

MICROPROCESSOR LABORATORY MANUAL MICROPROCESSOR LABORATORY MANUAL T.C. AYDIN ADNAN MENDERES UNIVERSITY ENGINEERING FACULTY ELECTRICAL & ELECTRONICS ENGINEERING DEPARTMENT Prepared by: Res. Asst. Abdullah GÜLDEREN Aydın 2019 Contents 1.

More information

8051 I/O and 8051 Interrupts

8051 I/O and 8051 Interrupts 8051 I/O and 8051 Interrupts Class 7 EE4380 Fall 2002 Pari vallal Kannan Center for Integrated Circuits and Systems University of Texas at Dallas Agenda 8051 I/O Interfacing Scanned LED displays LCD displays

More information

Interrupts. EE4380 Fall 2001 Class 9. Pari vallal Kannan. Center for Integrated Circuits and Systems University of Texas at Dallas

Interrupts. EE4380 Fall 2001 Class 9. Pari vallal Kannan. Center for Integrated Circuits and Systems University of Texas at Dallas 8051 - Interrupts EE4380 Fall 2001 Class 9 Pari vallal Kannan Center for Integrated Circuits and Systems University of Texas at Dallas Polling Vs Interrupts Polling: MCU monitors all served devices continuously,

More information

Application Brief D-005

Application Brief D-005 Interfacing the Avago HDSP-2xxx LED Alphanumeric Displays with the Intel 8751H Microcontroller Application Brief D-005 Introduction The HDSP-21xx/-25xx series of products is ideal for applications where

More information

ET355 Microprocessors Friday 6:00 pm 10:20 pm

ET355 Microprocessors Friday 6:00 pm 10:20 pm ITT Technical Institute ET355 Microprocessors Friday 6:00 pm 10:20 pm Unit 3 Chapter 4, pp. 100-106 Chapter 5, pp. 109-135 Unit 3 Objectives Lecture: Review I/O Ports and Flags of 805x Microprocessor Review

More information

1. Write A Program to move a block of data within the internal RAM

1. Write A Program to move a block of data within the internal RAM UNIT 2: Example Programs. 1. Write A Program to move a block of data within the internal RAM Org 0h start1: mov r0,#40h ;r0 pointed to internal RAM 40h mov r1,#30h ;r1 pointing to internal RAM 030h mov

More information

8051 Programming: Arithmetic and Logic

8051 Programming: Arithmetic and Logic 8051 Programming: Arithmetic and Logic EE4380 Fall 2002 Class 4 Pari vallal Kannan Center for Integrated Circuits and Systems University of Texas at Dallas Topics Signed and Unsigned arithmetic Binary

More information

CHAPTER ASSEMBLY LANGUAGE PROGRAMMING

CHAPTER ASSEMBLY LANGUAGE PROGRAMMING CHAPTER 2 8051 ASSEMBLY LANGUAGE PROGRAMMING Registers Register are used to store information temporarily: A byte of data to be processed An address pointing to the data to be fetched The vast majority

More information

Vidyalankar T.E. Sem. V [ETRX] Microprocessors and Microcontrollers I Prelim Question Paper Solution

Vidyalankar T.E. Sem. V [ETRX] Microprocessors and Microcontrollers I Prelim Question Paper Solution 1. (a) 1. (b) T.E. Sem. V [ETRX] Microprocessors and Microcontrollers I Prelim Question Paper Solution Priority modes. 1) Fully Nested Mode : It is a general purpose mode. IR 0 highest priority IR 1 lowest

More information

Y51 Microcontroller. Technical Manual

Y51 Microcontroller. Technical Manual Y51 Microcontroller Technical Manual Disclaimer Systemyde International Corporation reserves the right to make changes at any time, without notice, to improve design or performance and provide the best

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

Module I. Microcontroller can be classified on the basis of their bits processed like 8bit MC, 16bit MC.

Module I. Microcontroller can be classified on the basis of their bits processed like 8bit MC, 16bit MC. MICROCONTROLLERS AND APPLICATIONS 1 Module 1 Module I Introduction to Microcontrollers: Comparison with Microprocessors Harvard and Von Neumann Architectures - 80C51 microcontroller features - internal

More information

e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: 8051 Architecture Module No: CS/ES/5 Quadrant 1 e-text

e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: 8051 Architecture Module No: CS/ES/5 Quadrant 1 e-text e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: 8051 Architecture Module No: CS/ES/5 Quadrant 1 e-text In this lecture the detailed architecture of 8051 controller, register bank,

More information

MCS -51 Programmer s Guide and Instruction Set

MCS -51 Programmer s Guide and Instruction Set MCS -51 Programmer s Guide and Instruction Set November 1992 Order Number 270249-003 COPYRIGHT INTEL CORPORATION 1996 MCS -51 PROGRAMMER S GUIDE AND INSTRUCTION SET CONTENTS PAGE MEMORY ORGANIZATION 1

More information

JUMP, LOOP AND CALL INSTRUCTIONS

JUMP, LOOP AND CALL INSTRUCTIONS JUMP, LOOP AND CALL INSTRUCTIONS After you have understood the tutorial on Introduction to assembly language which includes simple instruction sets like input/output operations, now it s time to learn

More information

Three criteria in Choosing a Microcontroller

Three criteria in Choosing a Microcontroller The 8051 Microcontroller architecture Contents: Introduction Block Diagram and Pin Description of the 8051 Registers Some Simple Instructions Structure of Assembly language and Running an 8051 program

More information

Chapter 3. Bit Addressable Area. By DeccanRobots

Chapter 3. Bit Addressable Area. By DeccanRobots Chapter 3 Bit Addressable Area By DeccanRobots What is Bit Addressable Area? FFh 2Fh 20h 00h Data Memory General purpose Memory Area Bit Addressable Memory Registers Memory Area from 20H to 2FH is Bit

More information

ELEG3924 Microprocessor

ELEG3924 Microprocessor Department of Electrical Engineering University of Arkansas ELEG3924 Microprocessor Ch.3 Jump, Loop, and Call Dr. Jing Yang jingyang@uark.edu 1 OUTLINE Loop and Jump instructions Call instructions Time

More information

8051 Microcontroller

8051 Microcontroller 8051 Microcontroller 1 Salient Features (1). 8 bit microcontroller originally developed by Intel in 1980. (2). High-performance CMOS Technology. (3). Contains Total 40 pins. (4). Address bus is of 16 bit

More information

Introduction To MCS-51

Introduction To MCS-51 Introduction To MCS-51 By Charoen Vongchumyen Department of Computer Engineering Faculty of Engineering KMITLadkrabang 8051 Hardware Basic Content Overview Architechture Memory map Register Interrupt Timer/Counter

More information

Figure Programming model

Figure Programming model LAB 1: Intel 8051 CPU PROGRAMMING DATA TRANSFER INSTRUCTIONS OBJECTIVES At the end of the laboratory works, you should be able to write simple assembly language programs for the Intel 8051 CPU using data

More information

VALLIAMMAI ENGINEERING COLLEGE

VALLIAMMAI ENGINEERING COLLEGE VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur 603 203 DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING QUESTION BANK V SEMESTER EE6502- MICROPROCESSORS AND MICROCONTROLLERS Regulation 2013

More information

CS 320. Computer Architecture Core Architecture

CS 320. Computer Architecture Core Architecture CS 320 Computer Architecture 8051 Core Architecture Evan Hallam 19 April 2006 Abstract The 8051 is an 8-bit microprocessor designed originally in the 1980 s by the Intel Corporation. This inexpensive and

More information

1 MALP ( ) Unit-1. (1) Draw and explain the internal architecture of 8085.

1 MALP ( ) Unit-1. (1) Draw and explain the internal architecture of 8085. (1) Draw and explain the internal architecture of 8085. The architecture of 8085 Microprocessor is shown in figure given below. The internal architecture of 8085 includes following section ALU-Arithmetic

More information

8051 Programming using Assembly

8051 Programming using Assembly 8051 Programming using Assembly The Instruction Addressing Modes dest,source ; dest = source A,#72H ;A=72H A, # r ;A= r OR 72H R4,#62H ;R4=62H B,0F9H ;B=the content of F9 th byte of RAM DPTR,#7634H DPL,#34H

More information

CPEG300 Embedded System Design. Lecture 3 Memory

CPEG300 Embedded System Design. Lecture 3 Memory CPEG300 Embedded System Design Lecture 3 Memory Hamad Bin Khalifa University, Spring 2018 Review Von Neumann vs. Harvard architecture? System on Board, system on chip? Generic Hardware Architecture of

More information

Microcontroller and Applications

Microcontroller and Applications S.Y. Diploma : Sem. IV [DE/EJ/ET/EN/EX/EQ/IS/IC/IE] Microcontroller and Applications Time: 3 Hrs.] Prelim Question Paper Solution [Marks : 70 Q.1 Attempt any FIVE of the following : [10] Q.1(a) Define

More information

VALLIAMMAI ENGINEERING COLLEGE S.R.M. NAGAR, KATTANKULATHUR-603203. DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING VII-EEE EE6502- MICROPROCESSORS AND MICROCONTROLLERS QUESTION BANK UNIT I 1. What

More information

ELEG3923 Microprocessor Ch.3 Jump, Loop, and Call

ELEG3923 Microprocessor Ch.3 Jump, Loop, and Call Department of Electrical Engineering University of Arkansas ELEG3923 Microprocessor Ch.3 Jump, Loop, and Call Dr. Jingxian Wu wuj@uark.edu OUTLINE 2 Loop and Jump instructions Call instructions Time delay

More information

8051 Single Board Monitor Programming. Minmon - Yeralan & Ahluwalia. PaulMon1 & PaulMon2 - Paul Stoffregen

8051 Single Board Monitor Programming. Minmon - Yeralan & Ahluwalia. PaulMon1 & PaulMon2 - Paul Stoffregen 8051 Single Board Monitor Programming Monitor Program Available Monitor Program Minmon - Yeralan & Ahluwalia Programming and Interfacing the 8051 Microcontroller PaulMon1 & PaulMon2 - Paul Stoffregen http://www.pjrc.com/tech/8051

More information

BHARATHIDASAN ENGINEERING COLLEGE. III Year / V Semester / EEE MICROPROCESSORS AND MICROCONTROLLERS (R-2013)

BHARATHIDASAN ENGINEERING COLLEGE. III Year / V Semester / EEE MICROPROCESSORS AND MICROCONTROLLERS (R-2013) BHARATHIDASAN ENGINEERING COLLEGE III Year / V Semester / EEE MICROPROCESSORS AND MICROCONTROLLERS (R-2013) FREQUENTLY ASKED QUESTIONS IN UNIVERSITY EXAMINATION PART A UNIT 1-8085 PROCESSOR 1. Draw the

More information

AL8051S 8-BIT MICROCONTROLLER Application Notes

AL8051S 8-BIT MICROCONTROLLER Application Notes AL8051S 8-BIT MICROCONTROLLER Application Notes 6-14-2012 Table of Contents GENERAL INFORMATION... 3 FEATURES... 3 Key features... 3 Design features... 3 INTERFACE... 4 Symbol... 4 Signal description...

More information

Lecture 5. EEE3410 Microcontroller Applications Department of Electrical Engineering Assembly Language Programming (1)

Lecture 5. EEE3410 Microcontroller Applications Department of Electrical Engineering Assembly Language Programming (1) Department of Electrical Engineering Lecture 5 8051 Assembly Language Programming (1) 1 In this Lecture 8051 programming model Assembly language syntax Operation codes and operands Machine instructions

More information

Assembly Language Programming of 8085

Assembly Language Programming of 8085 Assembly Language Programming of 8085 Topics 1. Introduction 2. Programming model of 8085 3. Instruction set of 8085 4. Example Programs 5. Addressing modes of 8085 6. Instruction & Data Formats of 8085

More information

MODEL ANSWER WINTER 17 EXAMINATION Subject Title: Microcontroller and applications

MODEL ANSWER WINTER 17 EXAMINATION Subject Title: Microcontroller and applications Important Instructions to examiners: 1) The answers should be examined by key words and not as word-to-word as given in the model answer scheme. 2) The model answer and the answer written by candidate

More information

Microcontroller and Embedded Systems:

Microcontroller and Embedded Systems: Microcontroller and Embedded Systems: Branches: 1. Electronics & Telecommunication Engineering 2. Electrical & Electronics Engineering Semester: 6 th Semester / 7 th Semester 1. Explain the differences

More information

MODEL ANSWER SUBJECT- MICROCONTROLLER(12187) CLASS-EJ5E CLASS TEST-02 Q1.)Attempt any THREE of the following.

MODEL ANSWER SUBJECT- MICROCONTROLLER(12187) CLASS-EJ5E CLASS TEST-02 Q1.)Attempt any THREE of the following. MODEL ANSWER SUBJECT- MICROCONTROLLER(12187) CLASS-EJ5E CLASS TEST-02 Q1.)Attempt any THREE of the following. (9M) 1) Describe the instructions SWAP A and MOVX@DPTR,A with one example. (3Marks) SWAP A

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

CHAPTER 5 : Introduction to Intel 8085 Microprocessor Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY

CHAPTER 5 : Introduction to Intel 8085 Microprocessor Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY CHAPTER 5 : Introduction to Intel 8085 Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY The 8085A(commonly known as the 8085) : Was first introduced in March 1976 is an 8-bit microprocessor with 16-bit address

More information

The Microcontroller. Lecture Set 3. Major Microcontroller Families. Example Microcontroller Families Cont. Example Microcontroller Families

The Microcontroller. Lecture Set 3. Major Microcontroller Families. Example Microcontroller Families Cont. Example Microcontroller Families The Microcontroller Lecture Set 3 Architecture of the 8051 Microcontroller Microcontrollers can be considered as self-contained systems with a processor, memory and I/O ports. In most cases, all that is

More information

8051 Memory Organization BY D. BALAKRISHNA, Research Assistant, IIIT-H Chapter 1: Memory Organization There are 2 types of memories available in 8051 microcontroller. Program memory/c code memory (ROM)

More information