Hi, I'm trying to simulate working of a UART. When I write into SBUF, the TI flag doesn't go high even though I have enabled interrupts. Is there any way I can simulate it using SOUT VTREG. can't find example how to use SOUT.
You need to choose whether to use interrupts or a polled approach. You are trying to mix the two - this will only make your life difficult.