0901DSmicrochipL1.doc/Listing 1 #include "system\usb\usb.h" #include "io_cfg.h" void main(void) { InitializeSystem(); while(1) { USBTasks(); // USB Tasks HelloWorld(); // send a message to the world }//end while }//end main HelloWorld(void) { If ( mUSBUSARTIsTxTrfReady()) // check if Tx buffer empty putrsUSBUSART( "Hello World!\r\n") // send a new text string } // Hello World