Question
Offered Price $70.00

ECET 330 Exam

Question # 00077320
Subject: Computer Science
Due on: 06/25/2015
Posted On: 06/23/2015 04:30 PM

Rating:
4.1/5
Expert tutors with experiences and qualities
Posted By
Best Tutors for school students, college students
Questions:
10
Tutorials:
0
Feedback Score:

Purchase it
Report this Question as Inappropriate
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)


  • Tutorials for this Question
    Available for
    $135.00

    Devry ECEt330 final exam

    Tutorial # 00072035
    Posted On: 06/23/2015 06:18 PM
    Posted By:
    Best Tutors for school students, college students msmonopoly
    Expert tutors with experiences and qualities
    Questions:
    996
    Tutorials:
    955
    Feedback Score:
    Report this Tutorial as Inappropriate
    Tutorial Preview …330…
    Attachments
    Ecet330_final_exam_2015.docx (69.73 KB)
    Preview: is:          xxxxxxxxxxxxxxxxxxxxxx #$BB          xxxxxxxxxxxxxxxxxxxxxx #$CC          ANDA         xxxxxxxxxxxxxxxxxxxxxx ANDB         #$F0 (Points x 8)       $FFFF xxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx        $0BC0 xxxxxxxxxxxxxxxxxx of the xxxxxxxxxxxxx 4 4 xxxxxx 5) xxxxx xxx is xxxx to indicate xxx sign of x 16-bit xxxxxx xxxxxxxxxxxxxxxx : xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 5 5 xxxxxx 5) In xxx following xxxxxxxx xxx maximum xxxxxx of iterations xx limited to xxxxxxxxx  L1          xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxx NOP              xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx BNE            xxxxxxxxxxx : 8)       255       100       0x200       0x99Question x 6 xxxxxx xx What xxxxxxxxxx construct does xxx following assembly xxxx implement?                 xxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx bpl xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx addb #$30                xxx CONTADD37H:                addb xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx stab xxxxxxxxxxxx x 8)       Loop       If       If xxxxxxxxxxxxxxxxxxxxxx of the xxxxxxxxxxxxxxxxxxxxxxx of the xxxxxxxxxxxxx 7 x xxxxxx 8) xxxxxx that PORTB xxx a value xx 0x37 xxxxx xx the xxxxxxxxx gives us xxxxxxxx BCD for xxxxxxxxxxx : xxxxxxxxxxxxxxxxxxxxx x PORTB xxxxx 0x37;       PORTB = xxxxx | 0x30;       PORTB x PORTB x xxxxxxxxxxxxxxxxxxxxxxxx = xxxxx & 0x0F;Question x 8  (TCO xx The xxxxxxxxx xxxxxxx creates xxxxxx wave pulses xx PB0 What xx the xxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx : xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 9 9 xxxxxx 8) Find xxx.....
    Purchase this Tutorial @ $135.00 *
    * - Additional Paypal / Transaction Handling Fee (3.9% of Tutorial price + $0.30) applicable
    Loading...