how can I see int16 number (for example 1034)on screen?How can I use printf() function for this my simple problem?Can you help me?
Thanks a lot everyone...
rberek
Joined: 10 Jan 2005 Posts: 207 Location: Ottawa, Canada
Posted: Thu May 18, 2006 10:52 am
On what kind of screen? An LCD? your PC Monitor?
rwyoung
Joined: 12 Nov 2003 Posts: 563 Location: Lawrence, KS USA
Re: simple question
Posted: Thu May 18, 2006 12:09 pm
LEVENT wrote:
how can I see int16 number (for example 1034)on screen?How can I use printf() function for this my simple problem?Can you help me?
Thanks a lot everyone...
RS232, printf("\r\nMy number is %ld", (int16)myvar); should get you headed in the right direction.
LCD, review the examples that come with CCS and consider sprintf for loading up the string for display. Also I believe there is a non-standard arg list you can use for printf that will work.
In short, most of this is RTFM material but without clarification on your part we can't direct you the the exact example program or page #... _________________ Rob Young
The Screw-Up Fairy may just visit you but he has crashed on my couch for the last month!
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