This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
In SCI with FIFO it is possible to get an TX interrupt only when the buffer is empty. How it goes with LIN in SCI mode? Do I get an interrupt every time one character is sent or only when the buffer is empty? I try to avoid to go too often to TX interrupt. Is it possible somewhere to change the interrupt level. The documentation doesn't give any answers.
JHi
When LIN is in SCI mode,
a) Single-Buffer Mode: TX Interrupt is generated whenever TX Buffer (SCITD register) is empty (i.e. immediately after reset or data byte is shifted to shift register)
b) Multi-Buffer Mode: TX Interrupt is generated when programmed length of bytes in LINTD0/1 registers are shifted to shift register.
i.e. in multi-buffer mode, we’ll get an interrupt only when all the buffers (LINTD0/1 registers) are empty. This is same as LIN in multi-buffer mode.
Thanks for answering. The problem with LIN TX is that if I don't know how many bytes I will have to send, for example if I use SLIP-protocol, then it is quite difficult to use LIN in buffered mode. I decided to use polling method and use own software buffers.