Hallo,
weiß jemand, warum meine neue Hardware (USB) nicht gefunden wird. Oder
funktioniert mein Initialierungsprogramm noch nicht?
Code:
void USB_Init()
{
UHWCON|=(1<<UIMOD)|(1<<UVCONE)|(1<<UVREGE); //enable the usb device
mode
USBCON=(1<<USBE)|(1<<OTGPADE)|(0<<FRZCLK);
PRR1=0x00; //wake up usb
UDCON&=~_BV(LSM); //select full speed mode
UDADDR|=1<<ADDEN; //activate usb address, device address is 0
UENUM=0x02; //the number of the endpoint: 2
}
void main()
{
USB_Init();
}
Vielen Dank.
Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.