8 years, 7 months ago.

Ethernet and LCD won't work together?

I'm trying to network an mbed with a uLCD-144-G2 attached. When I instantiate the uLCD, it immediately breaks my Ethernet code. Is there some kind of hardware conflict between the Ethernet and the uLCD??

Separately, Ethernet and the LCD work fine. When I add

uLCD_4DGL uLCD(p9,p10,p11);

to my ethernet code, (along with the appropriate header file), the ethernet hangs, and the screen will no longer draw lines.

To clarify, I'm trying to get two mbeds to communicate over ethernet. That works fine. When I try to add a uLCD to one of them, it dies!

Note that I have everything running off one USB connection from my laptop. Is it possible the USB connection can't supply enough current to run 2 mbeds, 2 ethernet PHYs, and 1 uLCD?

posted by Jordan Ford 25 Sep 2015

I have not read this, yes it is possible that the usb does not supply enough current. What are the specifications for the uLCD, how much current drawn?. Normal USB 2.0 ports only supply 500 mA

posted by Ney Palma 26 Sep 2015

Ok I figured it out. The problem had nothing to do with Ethernet + uLCD. I think I was trying to change the background on the LCD way too fast, and it was causing the LCD to hang. Thanks so much for your help, Ney!

posted by Jordan Ford 04 Oct 2015

1 Answer

8 years, 7 months ago.

Can you specify which board are you using to try to help you?

Sure! It's an LPC1768. It says mbed-005.1 on the silkscreen. https://developer.mbed.org/platforms/mbed-LPC1768/

posted by Jordan Ford 26 Sep 2015

Ok tell me something you are using mbed app board with the lpc1768? or are u using direct ethernet port with the lpc1768 only

posted by Ney Palma 26 Sep 2015

I'm using this: https://developer.mbed.org/media/img/boardlogos/lpc1768/400xNxpinout.png.pagespeed.ic.SXf15haHY6.jpg

with a sparkfun ethernet magjack wired to the Ethernet pins on the mbed board. I've tested both the Ethernet and the LCD separately, and they work fine.

posted by Jordan Ford 26 Sep 2015

Ok what is the problem exactly that do you have when connecting the two elements together? can you post your code?

posted by Ney Palma 26 Sep 2015