gIO Guest
|
Please help to printbin |
Posted: Thu Jun 05, 2008 8:57 am |
|
|
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 |
|