Preview

Microprocessor Project

Powerful Essays
Open Document
Open Document
1302 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Microprocessor Project
NAME : PAAVENTHAN RAJ S/O SALVARAGH
ID:EP087833
QUESTION 7
EEEB373
SECTION 3B
ASSIGNMENT 1
PN AYUNIZA
ASM FILE
#include<p18F458.inc>

;program start template

count set 0x0 ;NUMBER OF DATA READ i set 0x1 ;NUMBER OF DATA AS
TOT_EL4 set 0x100 org 0x00 goto start org 0x08 retfie org 0x18 retfie org 0x250

;main program

start movlw 0x00 movwf TBLPTRU movlw 0x01 movwf TBLPTRH movlw 0x50 movwf TBLPTRL CLRF i,A CLRF count,A BRANCH1 INCF count,F,A MOVLW 0X96 CPFSGT count,A BRA BRANCHTABLE BRA FINISH BRANCHTABLE TBLRD*+ BTFSC TABLAT,0,A BRA BRANCH1 ; NOT ZERO(1) BRA BRANCH2 ; ZERO(0)

BRANCH2 BTFSC TABLAT,1,A BRA BRANCH1 ; NOT ZERO(1) BRA BRANCH3 ; ZERO(0)

BRANCH3 BTFSS TABLAT,7,A BRA BRANCH1 ; ZERO(0) BRA RESULT ; NOT ZERO(1)

RESULT INCF i,F,A MOVFF i,0X100 BRA BRANCH1
FINISH NOP

org 0x150 radix dec
DATA_ARR db 3,97,4,88,120,14,63,0,165,26 db 28,118,149,80,0,107,171,8,162,25 db 96,110,11,6,77,0,29,196,123,88 db 10,57,49,188,20,24,63,0,165,216 db 12,170,242,119,0,23,52,50,155,81 db 16, 74,69,01,13,0,89,198,64,53 db 36,0,211,61,177,0,9,196,123,88 db 14,70,255,119,0,0,52,150,55,191 db 6,174,0,01,133,0,9,18,22,188 db 60,200,131,22,59,0,66,19,173,0 db 20, 78,73,05,138,4,94,202,68,57 db 42,215,0,0,81,5,14,200,127,98 db 18,78,205,19,100,60,02,50,0,0 db 65, 74,70,0,33,0,89,108,220,08 db 36,20,0,212,159,0,06,119,173,152

END

LST FILE

MPASM 5.41 FINAL.ASM 7-22-2013 14:57:23 PAGE 1

LOC OBJECT CODE LINE SOURCE TEXT VALUE

00001 #include<p18F458.inc> 00001 LIST 00002 00003

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Ac553 Week 1 Assignment

    • 336 Words
    • 2 Pages

    Compute Marie's taxable income for 2012, assuming she is single and claims two dependent children. Her adjusted gross income is $70,000, and she has itemized deductions of $9,000.…

    • 336 Words
    • 2 Pages
    Satisfactory Essays
  • Better Essays

    #include #include float avg_wt,avg_tt; int i = 0,ttl_wt=0,ttl_tt=0,qt; struct process { int prn; char type; int bt; int wt; int tt; struct process *nxt; }*stfor,*stbck,*np,*endfor,*endbck,*temp; void ins_node(struct process *np) { if(np->type == 'f') { if(stfor == NULL) stfor = endfor = np; else { endfor->nxt = np;…

    • 401 Words
    • 2 Pages
    Better Essays
  • Good Essays

    Acc 291 Weekly Reflection

    • 380 Words
    • 2 Pages

    This week’s consensus is overwhelmingly a feeling of clarity as compared to last week. Our team feels much more comfortable with statements of cash flows and financial statement analysis than with dividends, bonds, etc. The following are individual reflections on what we learned during week four.…

    • 380 Words
    • 2 Pages
    Good Essays
  • Best Essays

    Linux Course Project

    • 2602 Words
    • 11 Pages

    In the workplace today there are many different options for operating systems be they providers of server related services or end-user desktops there is a different Linux distribution for many different applications. There are also a number of advantages and disadvantages to adding onto or switching network operating systems within a company. In the following pages I would like to discuss some of the different options available to us and what apparent advantages the offer along with their disadvantages. Many operating systems are fundamentally the same. Servers provide access to files and information stored remotely within the network, while workstations provide application support as well as connectivity to the World Wide Web. You might say that when we talk about network operating systems there are generally two sides to the coin in a large network. The side of the workstation and the end-user, and the side of the server providing cloud storage, e-mail, and other remote end-user services.…

    • 2602 Words
    • 11 Pages
    Best Essays
  • Powerful Essays

    Microcomputer

    • 532 Words
    • 3 Pages

    From 2-var mux we design 4-bit expandable by use 4 components of 2-var mux. We base on tables follow to design them:…

    • 532 Words
    • 3 Pages
    Powerful Essays
  • Powerful Essays

    Microsystem Case Study

    • 2162 Words
    • 9 Pages

    Chen, W., & Gregory, A. (2009). Parental Involvement as a Protective Factor During the Transition to High School. Journal of Educational Research, 103(1), 53-62. Retrieved from Academic Search Premier data base.…

    • 2162 Words
    • 9 Pages
    Powerful Essays
  • Satisfactory Essays

    548 Heartbeats 1

    • 23633 Words
    • 271 Pages

    stream xmTYo0 2hvzbtuXvQz_q/ 8Bxh/3OXqRG0OlBWeK5zAI0O0RR@3FZ9bKA8sIeEthou8)a-K1(oyr/,kF-iqQFu(NG7lYWOk i9-H7Kg, T7YajZ1)0i V GC cj nweXa(DV44saTO M/g0 e5U h YQW,I,3m.8185j. _nl,3/ 5brvxvGOpGce xiQfNiBSwuj 1KqP(fjz endstream endobj 20 0 obj /Type /Page…

    • 23633 Words
    • 271 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Case Study - Hamilton County Judges Case (Chapter 4) Commom Pleas Court Q. 1Probibility of Cases Being Appealed and Q. 2 Probability of Q.3 Probability of Judge Reversed Appeal Rank Reversal Rank Fred Cartolano 0.04511 14 0.00395 Thomas Crush 0.03529 4 0.00297 Patrick Dinkelacker 0.03498 3 0.00636…

    • 476 Words
    • 10 Pages
    Satisfactory Essays
  • Good Essays

    Microsystem Case Study

    • 675 Words
    • 3 Pages

    4. A teacher in a childcare center notices that one of her students is particularly withdrawn and isolated from her peers. The child actually avoids other children and virtually never speaks. Describe specific strategies a psychodynamic (psychoanalytic) theorist would recommend to solve this classroom problem.…

    • 675 Words
    • 3 Pages
    Good Essays
  • Better Essays

    Beetroot Lab Report

    • 1395 Words
    • 6 Pages

    Table one; shows the effect of water temperature has on the rate at which the anthocyanin pigment leaves of a beetroot tap root cells…

    • 1395 Words
    • 6 Pages
    Better Essays
  • Satisfactory Essays

    Tables Of Interest Factors

    • 10579 Words
    • 333 Pages

    P1: OTA/XYZ JWBT106-APP-C P2: ABC JWBT106-Halpin June 26, 2009 8:56 Printer: Sheridan Books FINANCIAL MANAGEMENT AND A CCOUN TlNG FUNDAMENTALS FOR CONS TRUC TlON DANIEL W. HALPIN, BOLIVAR A. SENIOR Copyright 02009 by John Wiley & Sons, Inc. All rights reserved APPENDIX C COMPOUND INTEREST TABLES 275 P1: OTA/XYZ P2:…

    • 10579 Words
    • 333 Pages
    Satisfactory Essays
  • Powerful Essays

    Na steku stvarnih parametara je potrebno cuvati i povratnu liniju odakle treba nastaviti citanje ulaza po zavrsetku ekspanzije ugnezdenog poziva (nije precizirano u algoritmu).…

    • 2164 Words
    • 9 Pages
    Powerful Essays
  • Satisfactory Essays

    8085 microprocessor

    • 9441 Words
    • 38 Pages

    EE 201 : Digital Circuits and Microprocessors Dr. Amit Sethi Room 303, EEE Dept. 2529, amitsethi Objectives for this session Introduce the 8085 Microprocessor Introduction to 8085 programming model Introduction to 8085 instruction set All computers are based on the Turing Machine concept • In 1937, Alan Turing described this abstract idea of a computer • Turing Machines consist of: – A tape of infinite length with symbols printed in cells – A read-write head that can move along the tape to read and write symbols – A state from a finite set stored inside the machine – A finite set of instructions that translate the current state and the read symbol into an action which can be: • Change to another state • Move to another place on the tape • Write a symbol on the tape Computer: Basic definitions • Computer is a machine that sequentially and automatically carries out a sequence of arithmetic or logical operations given as instructions in form of a program, which can be changed readily, allowing the computer to solve more than one kind of problem • Data and programs can be read from memories, storage or input devices • Data can be written into memory, storage and output devices Computer components: Memory • Write: An arbitrary word can be written into the memory • Store: Memory can store data (multiple words) • Read: An arbitrary word can be read from the memory for usage • Examples so far – Data latches are 1-bit memories – Registers are 1-word (e.g. 1-byte) memories • But, we want to study bigger memories Each bit of a memory is a latch I1 2n lines out DECODER n-bit address in bit Lx EN D ……

    • 9441 Words
    • 38 Pages
    Satisfactory Essays
  • Good Essays

    With the increasing pace of innovations and technology people are trying to add technology into things which are not even required which in turn is just complicates things for individuals . The greater down side to this is that there is no progress due to technology in the greater picture. When technology first came in we thought it help reduce pollution , improve the environment conditions . However that is not the case, global warming is increasing at an accelerated speed rate with the weather being extremely in-stable. The 32 megabytes microchip requires 1.7 kilograms of materials to make it and gives out thousands of potential toxic chemicals while manufacturing.…

    • 775 Words
    • 4 Pages
    Good Essays