COE 538 Exam M/C

0.0(0)
Studied by 2 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/19

flashcard set

Earn XP

Description and Tags

Last updated 9:00 PM on 12/14/23
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

20 Terms

1
New cards

When a microcontroller completes execution of an interrupt service routine, it resumes the main program execution from the address saved in:

Stack

2
New cards

Where does the 9S12 processor start to execute the program when power is turned on?

The program starting address is fetched from a fixed memory location

3
New cards

How many bytes are reserved by the following Assembler directive: dc.b $16 ?

1 byte

4
New cards

The following interface allows the 9S12 to communicate asynchronously with peripheral devices

SCI

5
New cards

After execution of the following instruction: movb #$FC, $1020 , the Carry bit will be

Not affected

6
New cards

A microcontroller normally has the following devices on-chip

RAM, ROM, I/O units

7
New cards

The capacity of the memory chip with the 11-bit address bus and 8-bit data bus is:

2KB

8
New cards

What register is used to keep track of the address of the next instruction to be executed

Program Counter

9
New cards

List the instruction used to enable and disable all interrupts in the HCS12.

Interrupt enable instruction: _____

Interrupt disable instruction: ———

CLI - clear interior mask, SEI - set interrupt mask

10
New cards

For a CPU of 16 address line and 8 data lines, the address space available for the memory, ports, and peripheral devices is equal to:

Address area = 2^20 = 2^10 × 2^16 = 64K locations

11
New cards

For a CPU bus of 16 address lines and 8 data lines, how many E-clocks are required to store a 16-bit result into memory, if each byte reading/writing cycle requires 4 E-clocks:

Number of clock cycles = 16/8 = 2 read/write cycles, 2 × 4 = 8 E-clocks

12
New cards

What makes a microcontroller different from a microprocessor?

Embedded peripheral devices (ports, timers, ADC, etc.)

13
New cards

For a CPU bus of 20 address lines and 8 data lines, the address space available for the memory, ports, and peripheral devices is equal to:

Address area = 2^20 = 2^10 × 2^10 = 1024K

14
New cards

For a CPU by of 20 address lines and 8 data lines, how many E-clocks are necessary for the CPU to write a 32-bit result into memory if each byte reading/writing cycle requires 4 E-clocks:

Number of clock cycles = 32/8 = 4 read/write cycles, 4 × 4 = 16 E-clocks

15
New cards

Convert 4K to decimal representation

4K = 4 × 2^10 = 4 × 1024 = 4096

16
New cards

How many locations are contained in the memory space $2000-$29FF?

10 × 16 × 16 = 2560

17
New cards

What HCS12 instruction is used to disable all maskable interrupts?

SEI

18
New cards

What does MISO stand for

Master-Input-Slave-Output

19
New cards

Instruction to allocate 10 bytes for local variables in the stack

LEAS -10, SP

20
New cards

What is the major difference between the SCI and SPI serial data transfer protocols?

The SCI is an asynchronous transfer protocol; whereas the SPI is a synchronous one (includes the clock signal)