This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM3354 USB 问题

Other Parts Discussed in Thread: AM3354

AM3354 手册里USB CORE没有提供介绍吗?

 我需要实现U盘识别的功能,使用的是USB1接口,在usb_lowlevel_init函数里有下列语句:

do{

     if(musb_readb(mbase,MUSB_DEVCTL) & MUSB_DEVCTL_HM)

             break;

}while(--timeout);

mbase指向USB1 CORE,MUSB_DEVCTL=0x60,MUSB_DEVCTL_HM=0x04。

do循环之前读取的寄存器值是0x81,然后等待bit2=1,但是一直得不到,最终超时。

想请问下,这个寄存器具体的作用,还有什么情况可能导致bit2一直不等于1?