I am programming some UART communication. So far I have used the CCS functions to do that. But now I would like to write my own code for UART by writing directly to the UART registers.
There are good explanations in reference manual 70188. But now my hopefully not too stupid question? Where or how are the registers defined?
Example: The reference manual show in Example 17-2 how to write to the TX register:
U1TXREG = 'a';
But where is U1TXREG defined? Is there some include file I can use or do I have to define it myself? If I have to define it myself, then how do I do this? (e.g. where can I finde the address of this register?)
alan
Joined: 12 Nov 2012 Posts: 357 Location: South Africa
Posted: Wed Jul 02, 2014 12:41 am
Look in the compiler manual for "getenv". You'll find the use and explanation there.
Regards
arnadan
Joined: 11 Nov 2013 Posts: 13
Posted: Wed Jul 02, 2014 12:49 am
Thank you for your help. Problem solved. Simple, now that I know where to look it up.
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