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

Please help to printbin

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







Please help to printbin
PostPosted: Thu Jun 05, 2008 8:57 am     Reply with quote

Hello.
I am searching to replicate with a 18f4550 a code originally built for an Atmel:

Code:


Dim ADC As Word

ADC = Getadc(1)

Printbin ADC



PRINTBIN is a command for tx on rs232 (with usb converter in my case)
but how to do this with CCS ?

This can to be ok ?

Code:


int16 ADC;

ADC = read_adc();

printf(usb_cdc_putc, "%02lu", ADC);




Thanks in advance, Giorgio
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