#include <18f4550.h>
#device adc=10
#fuses HSPLL,NOWDT,NOPROTECT,NOLVP,NODEBUG,USBDIV,PLL5,CPUDIV1,VREGEN
#use delay(clock = 20M)
#define USB_CON_SENSE_PIN_PIN_B2
#include <usb_cdc.h>
void main ()
{
usb_cdc_init();
usb_init();
do {
usb_task();
if (usb_enumerated()){
printf(usb_cdc_putc,"\n\rHola mundo !!!");
}
} while(true);
}
No hay comentarios:
Publicar un comentario