Doin a small project for a friend, it is to be a temperature controller with PC interface(RS232 of course)
I have made myself a decent uart library with the standard ring-buffer, and got it up and running.
At the moment i do poll for data to be transmittet to the PC, but i find this method very limiting/confusing. For example, if i update the TX buffer inside a submenu, the data will not be sent before exiting the submenu and reaching the polling code.
I know, it is kind of trivial, might just be me having a brain fart, but how do you transmitt data immediatly after updating the buffer instead of waiting for the poll??
Edit: By the way, the code is interrupt driven from the point when first byte is transmitted....