Hi there;
I've tried to clean the code and got advance.
The problem is TXEN bit. It is set by RS_INIT routine. It creates an interrupt and program is branched to the interrupt continuously.
I think it must be set only transmitting process, right?
I thought before, by setting TXEN, i can get an interrupt to transmit the next byte. I think this is wrong while not transmitting.
To add the code here is very difficult due to linux and windows new line and return carriage compatibility. By copy-paste, all lines is in one line.
anyway, the solution of my problem is TXEN.
wp100 thanks for your interest. i like to use only one hex code to configure the config word. your way is also well.