Need explainton about this code how to set timer priority ?

Jul 12, 2006 2 Replies

First reply

Peter

Because it puts a 2 in the interrupt priority list into the timer B position. Is that some sort of DSP language you are using? Consult your hardware manual for more information about interrupts. Peter

Read the full reply

Hi All,



Can any one explain why this can set a timer's priority as 2 ?



// -- xxxxx Memory Mapped I/O Registers -- .CONST $INT_PRIORITIES 0xFFFFAA; .CONST $INT_SOURCE_TIMERB_POSN 1;



r0 = M[$INT_PRIORITIES]; r0 = r0 OR (2


Because it puts a 2 in the interrupt priority list into the timer B position. Is that some sort of DSP language you are using? Consult your hardware manual for more information about interrupts.

Peter

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required