Our professor want us to make a sequence machine with timer
where :
RB[4-7]-LED
RD[4-7]-LED
INPUTS
INT0 START/STOP
INT1 SEQ SELECTOR
DELAY TIMER :TIMER0
INTERRUPT
INT0: RISING EDGE,HIGH PRIORITY
INT1: FALLING EDGE,LOW PRIORITY
TIMER: HIGH PRIORITY
Conditions:
-Single write to the out register(LATB)
-Seq Generation is at main
-Seq Selector will work on all mode
-Stop will pause the current state starting again will only resume the sequence
-At least 4 sequence
-Use assembler.asm
What I am having a problem here is that I cant understand how to use and what is interrupt , high priority, low priority, how to use rising and falling edge in a switch and I am still confuse how to use timer
Can you at least explain or give an example how to use this ?
below is the program our prof use to explain how to use a timer
where :
RB[4-7]-LED
RD[4-7]-LED
INPUTS
INT0 START/STOP
INT1 SEQ SELECTOR
DELAY TIMER :TIMER0
INTERRUPT
INT0: RISING EDGE,HIGH PRIORITY
INT1: FALLING EDGE,LOW PRIORITY
TIMER: HIGH PRIORITY
Conditions:
-Single write to the out register(LATB)
-Seq Generation is at main
-Seq Selector will work on all mode
-Stop will pause the current state starting again will only resume the sequence
-At least 4 sequence
-Use assembler.asm
What I am having a problem here is that I cant understand how to use and what is interrupt , high priority, low priority, how to use rising and falling edge in a switch and I am still confuse how to use timer
Can you at least explain or give an example how to use this ?
below is the program our prof use to explain how to use a timer
Attachments
-
1.3 KB Views: 11