I am using systic interrupt at 48000Hz,Every time interrupt occur my x2 and x1 values are updated, i have run in to confusion,when i print values on console using 115200 baud rate ,while my UARTprintf statement is inside my while loop,my x1 values are not displayed consequtively but with jumps in it like 12 then 62, but when i use UARTprintf inside my interrupt all values are repeated consequtively.I want to know whether it is problem with UART's speed or is my while loop taking too much time?
when is use UARTprintf("[%i %i] %i \n\n",x2,x1,out); inside while loop
when i use UARTprintf inside interrupt.
my while loop look like this.