Need uart interfacing example code

you can have a look on this: