What happens if I disable interruption inside my ISR?

What happens if you disable the interrupt inside this ISR interrupt?
For example, if I transfer data via USART from the buffer, and the data ends in this buffer, I want to temporarily stop the transfer, so after sending the last byte in the buffer, I turn off the interrupt.

(This is on the PIC18F4580)

Technical Data Sheet PIC18F4580 states that “erroneous behavior may occur” if the interrupt is disabled inside the ISR.

+3
source share
3 answers

:. PIC32 dsPIC, , PIC18F4580 (PIC18F4580 ).

PIC18F4580:

MOVFF , . .

, , INTCONx. , USART , , PIE, INTCONx. , PIE . (GIE), ALL . , / ( INTCON).

mjv , USART - .

+1

PIC18F4580, ,
ISR

, ISR (.. , - ), ISR, .
, ISR , , (, , ).

, , / , /.

+4

. ? , ?

ISR , .

0

Source: https://habr.com/ru/post/1766501/


All Articles