move func usart and enc_vt to files