I would like to throw all the serial data that is in the txreg register so that I can write new data into it and reset the TXSTA pin. May I know how should I do that? _________________ Einly
dyeatman
Joined: 06 Sep 2003 Posts: 1933 Location: Norman, OK
Posted: Thu Dec 30, 2004 10:21 pm
I believe TXSTA is a register not a pin...
Not sure why you would want to do this but....
According to the DATA SHEET in case you haven't read it, all you have to do is clear the TXEN bit then put your new data in the TXREG then set TXEN
See the section in the data sheet titled USART Asyncronous Transmitter
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum