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
Posted: Wed May 25, 2005 4:41 pm
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.
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