Interrupts lab Flashcards

1
Q

What does SFR stand for in the 8051 datashhet?

A

Special function register

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

What is the external interrupt in the lab and which pin/port is it connected to?

A

A button EX0
-connected to P3.2/ INT0 pin

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

What is the name of the register that enables the interrupts in the lab?

A

IEN0
Interrupt enable control 0

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

What is the purpose of the TMOD register?

A

When M00 (lsb) is set to 1, the timer is merged into a 16-bit timer

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

Utilising the IEN0 register, how can all the interrupts be set in one instruction?

A

with EA being the msb and EX0 the lsb, it can be written as
MOV IE, #10000011B (or #083H)

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

What is the purpose of the CJNE instruction?

A

Compares the button press operand with the interrupt. If the button has been pressed, when safe, the program will do the light sequence for pedestrian.

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

What is the time of the interrupts?

A

50ms

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

Why can’t the interrupt wait more than 1 second?

A

The timer is only 16-bits

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

What is the purpose of the debugger?

A

Allows us to click through the program and see the program memory address of each instruction

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