Push Button Sequence

Thread Starter

74266

Joined Mar 20, 2016
41
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
 

Attachments

Thread Starter

74266

Joined Mar 20, 2016
41
I already get how to make rb0-rb1 a edge triggered but I still dont understand how will I PUT The 4 Sequences @ MAIN?

and in the previous program I post I dont know why do you need to use RETFIE FAST
and when you DECLARE RETURN where will it return?
 

jpanhalt

Joined Jan 18, 2008
11,087
The datasheet describes interrupts in Chapter 9. Priorities, edges, and so forth are controlled by those registers discussed.

John
 
Top