Chapter 2 Flashcards

1
Q

4 advantages of C programming

A

Easier and quicker to write in C
Easier to modify and update
Allows use of function libraries
Portable to other microcontrollers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a register?

A

A register is a storage location n-bits wide that can be written to or read from all bits simultaneously

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Accumulator

A

Register to accumulate results - most versatile

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

R registers

A

general purpose registers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

B registers

A

similar to accumulators but only for multiplication and division

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Data pointer

A

Points to data, the only 16 bit register

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Program counter

A

Points to next instruction in memory, 2-byte register

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Stack pointer

A

indicates the next value to be removed from the stack

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Unsigned char

A

8-bits, range of 0-255

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Signed char

A

8-bits, MSB denotes sign, range of -128 to +127

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Unsigned int

A

16-bits, range of 0-65535

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Signed int

A

16-bits, MSB denotes sign, range of -32768 to +32767

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Bit

A

1-bit, used for RAM

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Sbit

A

1-bit, used for Special function registers (SFR)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Machine cycle

Fetch

A

Get an instruction from memory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Machine cycle

Decode

A

Translate instruction into computer commands

17
Q

Machine cycle

Execute

A

Actually process a command

18
Q

Machine cycle

Store

A

Write the result of a processed command to memory