Interrupts lab Flashcards
What does SFR stand for in the 8051 datashhet?
Special function register
What is the external interrupt in the lab and which pin/port is it connected to?
A button EX0
-connected to P3.2/ INT0 pin
What is the name of the register that enables the interrupts in the lab?
IEN0
Interrupt enable control 0
What is the purpose of the TMOD register?
When M00 (lsb) is set to 1, the timer is merged into a 16-bit timer
Utilising the IEN0 register, how can all the interrupts be set in one instruction?
with EA being the msb and EX0 the lsb, it can be written as
MOV IE, #10000011B (or #083H)
What is the purpose of the CJNE instruction?
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.
What is the time of the interrupts?
50ms
Why can’t the interrupt wait more than 1 second?
The timer is only 16-bits
What is the purpose of the debugger?
Allows us to click through the program and see the program memory address of each instruction