Author Topic: LED(GPIO) ON/OFF using EMAC Protocol (LPC1768 )  (Read 13587 times)

Offline Prakash

  • Newbie
  • *
  • Posts: 17
    • View Profile
LED(GPIO) ON/OFF using EMAC Protocol (LPC1768 )
« 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.

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3236
    • View Profile
    • uTasker
Re: LED(GPIO) ON/OFF using EMAC Protocol (LPC1768 )
« Reply #1 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

Offline Prakash

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: LED(GPIO) ON/OFF using EMAC Protocol (LPC1768 )
« Reply #2 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.

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3236
    • View Profile
    • uTasker
Re: LED(GPIO) ON/OFF using EMAC Protocol (LPC1768 )
« Reply #3 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

Offline Prakash

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: LED(GPIO) ON/OFF using EMAC Protocol (LPC1768 )
« Reply #4 on: December 21, 2011, 01:42:26 PM »
Thanks for link. I will check

Offline Prakash

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: LED(GPIO) ON/OFF using EMAC Protocol (LPC1768 )
« Reply #5 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.

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3236
    • View Profile
    • uTasker
Re: LED(GPIO) ON/OFF using EMAC Protocol (LPC1768 )
« Reply #6 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


Offline Prakash

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: LED(GPIO) ON/OFF using EMAC Protocol (LPC1768 )
« Reply #7 on: December 29, 2011, 08:16:52 AM »
Hello Mr. Mark

Thanks for update.

Where shall I download uTaskerV1.4 Folder?

Thanks in advance.


Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3236
    • View Profile
    • uTasker
Re: LED(GPIO) ON/OFF using EMAC Protocol (LPC1768 )
« Reply #8 on: December 29, 2011, 12:28:07 PM »