LPC4078FBD100 USB device

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC4078FBD100 USB device

1,200 Views
ianfarquharson
Contributor I

We have made a board using an LPC4078FBD100 with the following circuit:

LPC4078-USB-Device-circuit.png

Using Keil MDK 5.24a I have copied the example for an Embedded Artists LPC4088-32 Developers Kit and modified it for the LPC4078. Since the FBD100 packages only has U1 on the pins (I believe) I've changed the port functionality to U1=device, U2=host.

RTE_Device options.png

After setting up the USB pins and trying this I cannot get any life from the USB port. Plugging it into Windows 10 and using usbview.exe there is nothing detected on the port.

Should the LPC4078FBD100 U1 port be able to work as a USB device? It is not clear from the Product Data Sheet Section 13.1 (https://www.nxp.com/docs/en/data-sheet/LPC408X_7X.pdf).

My Project files:

LPC4078-USB Project files

Any help would be appreciated,

Thanks

Labels (2)
Tags (1)
3 Replies

711 Views
pepoja
Contributor II

Hello Ian,

In your scheme, is missing connected pin "USB_Connect" to connect 1k5 resistor on DP signal, I think.

Example can you find in datasheet (fig. 25, fig. 26) https://www.nxp.com/docs/en/data-sheet/LPC408X_7X.pdf 

Some MCU (ex. LPC1549) has internal 1k5 resistor. But LPC408x not.

The 1k5 resistor is used to allow the PC to detect that a new full speed USB device has been connected to the USB port.  This resistor must be used for the device to enumerate over USB.  This is defined in section 7.1.5.1 of the USB specification.

Peter.

711 Views
ianfarquharson
Contributor I

Ah thank you, I was puzzled by that as there previous MCU (LPC43XX) did not have such a thing in its USB device circuit. Your explanation cleared that up. So we need the self-powered circuit, but I don't know what the "SoftConnect switch" is specifically (Sorry I'm a software engineer).

USB Device circuit.png

Any advice on what component we need for this?

Thanks for the help.

0 Kudos

711 Views
pepoja
Contributor II

Hello Ian,

there are two ways.

A. With SoftConnect feature:

pastedImage_1.png

B. Without SoftConnect:

Use 1k5 resistor directly between USB-DP and VCC

Have a nice day.

Regards.

Peter