mod usart example to read port