LED_1_Start();
LED_2_Start();
LED_3_Start();
LED_1_Switch(0); // Turn on LED_1
LED_2_Switch(0); // Turn on LED_2
LED_3_Switch(0); // Turn on LED_3
M8C_EnableGInt; //Enable Global Interrupts
USBFS_Start(0, USB_5V_OPERATION); //Start USBFS Operation using device 0 and with 5V operation
while(!USBFS_bGetConfiguration()); //Wait for Device to enumerate
//Enumeration is completed load endpoint 1. Do not toggle the first time
USBFS_LoadInEP(1, keycode, 8, USB_NO_TOGGLE);
USBFS_EnableOutEP(2);
while(1)
{
//ACK has occurred, load the endpoint and toggle the data bit
USBFS_LoadInEP(1, keycode, 8, USB_TOGGLE);
//converting read from Keyboard scan code to PC format
keycode[2]=MakeConversionTable(temp1);
}