Chat with us, powered by LiveChat ECET 330 Exam | Writedemy

ECET 330 Exam

ECET 330 Exam

Question

I need help on a final in ECET 330. It is 3 and 1/2 hours.

  • There are 20 multiple-choice questions
  • There are three short-answer questions
  • There are 2 Essay questions
  • Page 1

    Question 1.1. (TCO 1) The characteristics of dynamic memory compared to static memory are (Points : 8)

    higher density, higher cost.

    higher density, lower cost.

    lower density, higher cost.

    lower density, lower cost.

    Question 2.2. (TCO 1) Which of the following is volatile memory? (Points : 8)

    ROM

    RAM

    Flash

    All of the above

    None of the above

    Question 3.3. (TCO 1) With a 24-bit address bus, we get _____ bytes of memory space. (Points : 8)

    24M

    16M

    64M

    64K

    Question 4.4. (TCO 2) Which bus is bidirectional? (Points : 8)

    Address

    Data

    Control

    All of the above

    None of the above

    Question 5.5. (TCO 2) Which bus carries memory contents? (Points : 8)

    Data bus

    Address bus

    Control bus

    None of the above

    Question 6.6. (TCO 2) The address bus is __________. (Points : 8)

    bidirectional

    unidirectional

    able to be programmed to be either bidirectional or unidirectional

    None of the above

    Question 7.7. (TCO 3) To use JSR (or CALL) instruction, we must initialize _____ register. (Points : 8)

    X

    Y

    PC

    SP

    Question 8.8. (TCO 3) Find the value of Register A for the following program.

    LDAA #$55

    EORA #$AA (Points : 8)

    A = $00

    A = $FF

    A = $7F

    None

    Question 9.9. (TCO 3) The dollar sign ($) that precedes numbers in MC9S12 assembly language means that (Points : 8)

    it is a hexadecimal number.

    it is a decimal number.

    it is immediate mode.

    All of the above

    None of the above

    Question 10.10. (TCO 3) The largest value (in hex) that can be loaded into Register A of HCS12 is (Points : 8)

    $08.

    $255.

    $65535.

    $FF.

    Page 2

    Question 1.1.(TCO 4) What addressing mode is used for the instruction, INX? (Points : 8)

    Direct
    Indexed
    Inherent
    Immediate
    None of the above

    Question 2.2.(TCO 5) When instruction, “jsr”, is executed, the return address is stored at (Points : 8)

    PC.
    CCR.
    SP.
    memory pointed by SP.

    Question 3.3.(TCO 5) After the execution of the following code, the value in Register D is:

    LDAA #$BB
    LDAB #$CC
    ANDA #$0F
    ANDB #$F0 (Points : 8)

    $FFFF.
    $CCBB.
    $C00B.
    $0BC0.
    None of the above

    Question 4.4.(TCO 5) Which bit is used to indicate the sign of a 16-bit signed number? (Points : 8)

    D0
    D15
    D7
    D1

    Question 5.5.(TCO 5) In the following program, the maximum number of iterations is limited to _________.

    L1 CLRA
    NOP
    NOP
    DECB
    BNE L1 (Points : 8)

    255
    100
    0x200
    0x99

    Question 6.6.(TCO 7) What C-language construct does the following assembly code implement?

    cmpb #10
    bpl ADD37H
    addb #$30
    bra CONT
    ADD37H:
    addb #$37
    CONT:
    stab 0,x (Points : 8)

    Loop
    If
    If /else
    All of the above
    None of the above

    Question 7.7.(TCO 8) Assume that PORTB has a value of 0x37. Which of the following gives us unpacked BCD for 7? (Points : 8)

    PORTB = PORTB & 0x37;
    PORTB = PORTB | 0x30;
    PORTB = PORTB | 0x0F;
    PORTB = PORTB & 0x0F;

    Question 8.8.(TCO 8) The following program creates square wave pulses on PB0. What is the duty cycle?

    ORG $8000
    LDS #$4000
    LDAA #$FF
    STAA DDRB
    BACK BSET PORTB,000001
    JSR DELAY
    JSR DELAY
    BCLR PORTB,000001
    JSR DELAY
    JSR DELAY
    BRA BACK

    (Points : 8)

    75%
    66%
    50%
    25%

    Question 9.9.(TCO 8) Find the value for PORTB after the execution of the following code:

    PORTB = 0x55 ^ 0xFF; (Points : 8)

    PORTB = 0x05
    PORTB = 0x0A
    PORTB = 0xAA
    PORTB = 0xFF

    Question 10.10.(TCO 8) Fill in the blank to get 0x38 on PORTB.

    unsigned char BCD_Byte = 0x89;
    unsigned char x;
    x = BCD_Byte & 0xF0;
    _____;
    PORTB = x | 0x30; (Points : 8)

    x=x>>4;
    x=x>>2;
    x=x<<4;
    x=x<<2;

    Page 3

    Question 1.1.(TCO 4) Write the assembly code to specify
    a word constant named num1 that has a value of $5423.
    a byte constant named num2 that has a value of 15.
    a word variable named big. (Points : 15)
    Question 2.2.(TCO 5) Given the value of Register B shown below, show the value of Register B and the carry after the execution of ASRB.

    Given the original content of Register B and carry flag
    1 0 1 0 0 1 0 1 0
    C
    Show the new values after executing:
    ASRB
    C

    (Points : 15)

    Question 3.3.(TCO 7) Write assembly instructions to clear Bit 5 of variable bar without changing other bits. (Points : 15)
    Question 4.4.(TCO 5) Show code for a nested loop to perform an action 10,000 times. (Points : 25)
    Question 5.5.(TCO 6) Write a C program to toggle PA2 of PORTA ON and OFF with a 1-ms delay after each toggle. Assume that clock frequency is 6.25 MHz. Write inline assembly-language code inside of the delay function.(Points : 35)

Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.

Do you need an answer to this or any other questions?

About Writedemy

We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.

How It Works

To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Are there Discounts?

All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.

Hire a tutor today CLICK HERE to make your first order