Dear All,
I have written code for SCI communication with PC and its working fine.
and i am having ADC isr to measure AC signal as well which also working correctly.
But as ADC isr is running and i transmits some data in main code of around 20bytes to 100 bytes at interval of 1S baud rate is 38400. it affects ADC isr. it can be seen from variation on GPIO width which i am toggiling in ADC ISR.
in SCI communication while transiting data i am checking TXBUFF EMPTY flag in while loop, which might be creating some delay and messing up main loop timings or increase it further.
How can SCI communication can be improved and what are methods ?
should keeping Tx ISR will improve it and my code can become faster ?
As i am not using ISR for SCI (Tx & Rx is done in main code) then why its affecting ADC isr ?
will FIFO communication will improve this scenario ?
I want ADC isr should be of high priority and keep other ISR to the minimum length and priority.
Thank You in Advance.