ucos ii - using interrupts
The following is My ISR Routine, if I Use CLI ,the Task Tick Stop ,if disable CLI, the Task Tick run normal, why?
UART1ISR:
ldaa PPAGE
psha
inc OSIntNesting ; 4~, Notify uC/OS-II about ISR
; cli ; 2~, Enable interrupts to allow interrupt nesting
jsr UART1Process
jsr OSIntExit
pula
staa PPAGE
rti
Added after 5 minutes:
Now,I can not use OS_ENTER_CRITICAL() and OS_EXIT_CRITICAL() for acess the ringbuffer for read a char from buffer to send to SCI,
Would you please help me, give me a correct por and an ISR example