µTasker Forum

µTasker Forum => NXPTM LPC2XXX and LPC17XX => Topic started by: Prakash on December 20, 2011, 02:27:13 PM

Title: LED(GPIO) ON/OFF using EMAC Protocol (LPC1768 )
Post by: Prakash on December 20, 2011, 02:27:13 PM
Hello,

I am very new to EMAC. I have chosen the controller LPC1768 which have
inbuilt Ethernet MAC.

I am trying to write firmware to operate some leds connected to LPC1768
Board using EMAC protocol.i.e Ethernet cable is connected between
LPC1768 Board and Laptop, make led on/off by laptop through EMAC.

It would be great if somebody give thoughts on it.

Thanks in advance.
Title: Re: LED(GPIO) ON/OFF using EMAC Protocol (LPC1768 )
Post by: mark on December 20, 2011, 02:43:48 PM
Hi

Which LEDs are these? Are they the ones connected to the PHY or are they ones connected to the processor?

Do you want then to flash shen there is Ethernet activity and display the Ethernet link state or do you want to be able to control them via an Ethernet protocol (TCP/IP) from an application (or web browser) on a PC?

Regards

Mark
Title: Re: LED(GPIO) ON/OFF using EMAC Protocol (LPC1768 )
Post by: Prakash on December 20, 2011, 02:48:56 PM
Thanks for your fast reply:)

LEDs are connected to some GPIOs of controller.

I want to control these GPIOs via Ethernet protocol from an web browser on a PC.
Title: Re: LED(GPIO) ON/OFF using EMAC Protocol (LPC1768 )
Post by: mark on December 20, 2011, 05:07:06 PM
Hi

The LPC17xx project includes all support for this - see page 11 of http://www.utasker.com/docs/LPC23XX/uTaskerV1.4_LPC2XXX.PDF (this is from the LPC2xxx tutorial but it is the same for the LPC17xx).

Regards

Mark
Title: Re: LED(GPIO) ON/OFF using EMAC Protocol (LPC1768 )
Post by: Prakash on December 21, 2011, 01:42:26 PM
Thanks for link. I will check
Title: Re: LED(GPIO) ON/OFF using EMAC Protocol (LPC1768 )
Post by: Prakash on December 28, 2011, 11:44:44 AM
Hello Mark,

The given files are .hex files.

Could you please assist to build a new html page with buttons
and read the html code and generate events and all.

Thanks in advance.
Title: Re: LED(GPIO) ON/OFF using EMAC Protocol (LPC1768 )
Post by: mark on December 28, 2011, 07:11:07 PM
Hi

Reference web pages can be found in the project directory \Applications\uTaskerV1.4\WebPages
The web server user interface is webInterface.c which inteacts with the HTML as described in http://www.utasker.com/forum/index.php?topic=94.0

Regards

Mark

Title: Re: LED(GPIO) ON/OFF using EMAC Protocol (LPC1768 )
Post by: Prakash on December 29, 2011, 08:16:52 AM
Hello Mr. Mark

Thanks for update.

Where shall I download uTaskerV1.4 Folder?

Thanks in advance.

Title: Re: LED(GPIO) ON/OFF using EMAC Protocol (LPC1768 )
Post by: mark on December 29, 2011, 12:28:07 PM
Hi

The LPC2xxx software versions are here: http://www.utasker.com/forum/index.php?topic=1324.msg5589#msg5589

Registration is at http://www.utasker.com/Licensing/request.html

Regards

Mark