What is this "DEBUG" argument? Is this a CCS ICDU40-specific thing?
I use a MAX232 and simply do a printf("my string\r\n");
Furthermore, is there a way to avoid using so many printf() statements everywhere? Maybe i should just use sprintf and call one function where the only printf function calll resides.
-Mike
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
Posted: Wed Mar 09, 2005 6:19 pm
fprintf() allows you to direct the output to a certain stream instead of printf which should do it to the last stream. DEBUG is nothing more than a stream identifier used in the #use rs232 statement.
Douglas Kennedy
Joined: 07 Sep 2003 Posts: 755 Location: Florida
Posted: Thu Mar 10, 2005 8:34 am
#use rs232(DEBUGGER)
DEBUGGER directs the chars out via the CCS ICSP connections that go to e.g. portB and then onto the terminal window that is part of the CCS debugger IDE. An add on level shifter ( ex MAX232 ) is not needed since the data is transferred via the ICD link cable ( e.g. in the case of ICDU-40 the transfer is via USB). With that said it is no different than any other stream directive.
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