Hi TI Tech support,
With DSP C5504, USB System Control Register (USBSCR) [1C32h] bit 15, USBPWDN is always in ON state. Regardless USB cable is plug-in with PC or not, Bit 15 is 0.
In our equipment when Blue-tooth is on, USB module shall be off. Then following code is used. But anyway, USBPWDN is always 0 and could not be set to 1.
void usb_power_ctr(Uint16 mode)
{
if(mode)
*(ioport unsigned int *)USBSCR = 0x6040; //USB power on
else
*(ioport unsigned int *)USBSCR = 0xE040; //USB power off
}
Please help. Thanks.
Howard