CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Checking TRMT pin in TXSTA register

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
severnml



Joined: 25 May 2005
Posts: 1

View user's profile Send private message

Checking TRMT pin in TXSTA register
PostPosted: Wed May 25, 2005 3:42 pm     Reply with quote

I'm trying to use the USART on an 18F452 at its maximum speed (2.5 Mbps), and am thus trying to avoid function calls while managing it. Is there a simple way to directly poll the TRMT pin <1> in the TXSTA register to see when the buffer's empty? Thanks!
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed May 25, 2005 4:41 pm     Reply with quote

Use the CCS #bit statement to declare the register address of the TXSTA
register and bit number of the TRMT bit. Then access the TRMT bit
directly by name, in your code.

Look up the register address and bit number in the data sheet.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group