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.

TUSB3410: help GPIO toggling of TUSB3410

Part Number: TUSB3410

Hi

      I am trying to toggle the GPIO pins of TUSB3410. I have the TUSB3410PDK EVM kit. I downloaded  a simple code that I wrote which is as below. After I download this code the device is not recognized in the device manager. So my question is :

1) Do I have to load a new code that helps the USB enumeration and hence connect to the PC?

2)  If I do not want to re-enumerate but just toggle  GPIO can I not do that without new enumeration?.

void main(void)
{

int index;
//bWDCSR = 0x2a; // this would disable the watchdog (tested!) *

//bWDCSR |= WDCSR_WDT;

while ( 1 )
{

(* (char __xdata *)(0xFF9E))&=0xF7;

for (index=0;index<10000000L;index++)
{
}

(* (char __xdata *)(0xFF9E))|=0x08;
bWDCSR |= WDCSR_WDT;

}

regards

Bala

  • Hello Bala,

    My apologies for the delay in this response.

    You can see the TUSB3410 is a general purpose 8052 microcontroller with a USB interface. If you want the TUSB3410 to enumerate as a USB device, then you need to add the code to properly respond to all of the USB requests made by the USB host during the device enumeration (getting USB descriptors, etc)

    However, if you simply want to toggle a GPIO and you do not care about the USB interface, you can do that either. The device will be like a regular 8052 microcontroller, but do not expect it to enumerate in Device Manager since the USB interface is not configured in your code.

    Hope this helps,
    Jorge