caramoan tour package

caramoan tour package

Author Topic: MikroC's SPI Ethernet ENC28J60 Library  (Read 9742 times)

Offline ΔЅịMø

  • Gas Turbine
  • **
  • Posts: 2903
  • Pogi/Ganda Points: 140
  • Gender: Male
  • "Live Curious"
Re: MikroC's SPI Ethernet ENC28J60 Library
« Reply #340 on: May 23, 2012, 10:16:18 AM »
Up ko lang. Ready na ready na sir. ;D Comply ko muna grades ko this summer, deadline na kasi. Balik lang ako ulit. :D :D



maagang natulog ang mga adik ah. naubusan ata ng mahihithit. ;D ;D ;D

Napagod siguro si boy femfem sir kakalaba. :D :D :D
Computer Engineering National Organization registration thread


Philippine Electronics Forum

Re: MikroC's SPI Ethernet ENC28J60 Library
« Reply #340 on: May 23, 2012, 10:16:18 AM »

Offline carlsberg11

  • Lead Acid Battery
  • *******
  • Posts: 526
  • Pogi/Ganda Points: 30
  • Gender: Male
Re: MikroC's SPI Ethernet ENC28J60 Library
« Reply #341 on: May 23, 2012, 10:47:31 AM »
UP!

Ahahahaha akala ko nagawa nila. ;D ;D ;D

Ready na ba LCD mo prof?

Gusto ninyo LCD na tayo? Hindi muna yung scrolling display. ;D

nakuha ko na po pero indi pa align yung mga buttons sa table.. saglit lang po ha.. :D :D :D go lang po tayo sa LCD!! :D :D

EDIT:

prof present ako! :D :D :D badtrip lang kagabi nawawala connection ko e. naka smartbroke kasi ako...
Anyone who has never made a mistakes has never tried anything new.

-Albert Einstein

Philippine Electronics Forum

Re: MikroC's SPI Ethernet ENC28J60 Library
« Reply #341 on: May 23, 2012, 10:47:31 AM »

Offline dummy_c

  • Diesel Generator
  • *
  • Posts: 1588
  • Pogi/Ganda Points: 162
  • Gender: Male
  • If I die 2nyt, 8's bcoz maimai is not at my side!
Re: MikroC's SPI Ethernet ENC28J60 Library
« Reply #342 on: May 23, 2012, 10:57:45 AM »
^^ Pakita nga ng codes... ;D ;D

By the way matanong lang sir femfem, ano ginamit ni master na XTAL sa board ninyo?

Salamat.
The world's technology is always changing, no doubt about it, and I hope it’s a while yet before it impacts my ability to tinker.

Philippine Electronics Forum

Re: MikroC's SPI Ethernet ENC28J60 Library
« Reply #342 on: May 23, 2012, 10:57:45 AM »

Offline carlsberg11

  • Lead Acid Battery
  • *******
  • Posts: 526
  • Pogi/Ganda Points: 30
  • Gender: Male
Re: MikroC's SPI Ethernet ENC28J60 Library
« Reply #343 on: May 23, 2012, 11:36:25 AM »
^^ Pakita nga ng codes... ;D ;D

By the way matanong lang sir femfem, ano ginamit ni master na XTAL sa board ninyo?

Salamat.

sir nakuha ko na po, kaso delay po yung recording sa c*mtasia.... same parin po nung last, nag oon na yung LED before i click yung ON,, saglit po upload ko lang..
Anyone who has never made a mistakes has never tried anything new.

-Albert Einstein

Philippine Electronics Forum

Re: MikroC's SPI Ethernet ENC28J60 Library
« Reply #343 on: May 23, 2012, 11:36:25 AM »

Offline dummy_c

  • Diesel Generator
  • *
  • Posts: 1588
  • Pogi/Ganda Points: 162
  • Gender: Male
  • If I die 2nyt, 8's bcoz maimai is not at my side!
Re: MikroC's SPI Ethernet ENC28J60 Library
« Reply #344 on: May 23, 2012, 11:39:31 AM »
^^ Pakita nga ng codes... ;D ;D

By the way matanong lang sir femfem, ano ginamit ni master na XTAL sa board ninyo?

Salamat.
The world's technology is always changing, no doubt about it, and I hope it’s a while yet before it impacts my ability to tinker.

Philippine Electronics Forum

Re: MikroC's SPI Ethernet ENC28J60 Library
« Reply #344 on: May 23, 2012, 11:39:31 AM »

Offline carlsberg11

  • Lead Acid Battery
  • *******
  • Posts: 526
  • Pogi/Ganda Points: 30
  • Gender: Male
Re: MikroC's SPI Ethernet ENC28J60 Library
« Reply #345 on: May 23, 2012, 11:41:06 AM »
Code: [Select]
const code char  *automation=
"<form name=\"input\" action=\"/\" method=\"get\">
<body bgcolor=#99FFCC>
<h1 align=center>ENC28j60 Home Automation System</h1>
<h2 align=center> by: Boyfemfem</h2>
<br>\
<table align=center width=200 bgcolor=#4974E2 border=2><tr>
<td align=center colspan=2><font size=6><b>MahiwagangGate</b></font>";

const code char *defaultbutton =
"</td></tr><tr><td align=center bgcolor=#F52887><input name=\"1\" width=60
type=\"submit\" value=\"ON\"></td><td align=center bgcolor=#F52887>
<input name=\"1\" type=\"submit\" value=\"OFF\"></td></tr></table>
</form></body></html>";

const code char *onbutton =
"</td></tr><tr><td align=center bgcolor=#FFFF00><input name=\"1\" width=60
type=\"submit\" value=\"ON\"></td><td align=center bgcolor=#F52887>
<input name=\"1\" type=\"submit\" value=\"OFF\"></td></tr></table>
</form></body></html>";

const code char *offbutton =
"</td></tr><tr><td align=center bgcolor=#F52887><input name=\"1\" width=60
type=\"submit\" value=\"ON\"></td><td align=center bgcolor=#FFFF00>
<input name=\"1\" type=\"submit\" value=\"OFF\"></td></tr></table>
</form></body></html>";


ito po HTML codes ko po.....

tapos dito ko po sila nilagay

Code: [Select]
    if(!memcmp(getRequest+6, "1=ON", 4))   // do we have ON command
                {
                  LATC6_bit = 1;      // set PORTD bit7
                  len =  putConstString(httpHeader) ;             // HTTP header
                  len += putConstString(httpMimeTypeHTML) ;       // with HTML MIME type
                  len += putConstString(automation);
                  len += putConstString(onbutton) ;

                  }
                if(!memcmp(getRequest+6, "1=OFF", 4))     // do we have OFF command
                {
                  LATC6_bit = 0;
                  len =  putConstString(httpHeader) ;             // HTTP header
                  len += putConstString(httpMimeTypeHTML) ;       // with HTML MIME type
                  len += putConstString(automation)  ;
                  len += putConstString(offbutton) ;
                  }


                 len =  putConstString(httpHeader) ;             // HTTP header
                 len += putConstString(httpMimeTypeHTML) ;       // with HTML MIME type
                 len += putConstString(automation) ;
                 len += putConstString(defaultbutton) ;


20 MHz po yung Xtal ng board sir lurker
Anyone who has never made a mistakes has never tried anything new.

-Albert Einstein

Offline carlsberg11

  • Lead Acid Battery
  • *******
  • Posts: 526
  • Pogi/Ganda Points: 30
  • Gender: Male
Re: MikroC's SPI Ethernet ENC28J60 Library
« Reply #346 on: May 23, 2012, 11:42:21 AM »



ito naman po yung recording kaso po delay yung recording, sorry po, pero realtime yan at walang daya :o :o :o


EDIT:

credits po sayo sir lurker! +1 po :D :D
Anyone who has never made a mistakes has never tried anything new.

-Albert Einstein

Offline dummy_c

  • Diesel Generator
  • *
  • Posts: 1588
  • Pogi/Ganda Points: 162
  • Gender: Male
  • If I die 2nyt, 8's bcoz maimai is not at my side!
Re: MikroC's SPI Ethernet ENC28J60 Library
« Reply #347 on: May 23, 2012, 12:03:42 PM »
Another +2 for that sir carlsberg.

Babalik lang ako sir kasi bili pa ako ng 20mhz xtal.
Try ko paganahin ang bootloader.
May comment ako sa codes mo, mamaya na. ;D
The world's technology is always changing, no doubt about it, and I hope it’s a while yet before it impacts my ability to tinker.

Offline carlsberg11

  • Lead Acid Battery
  • *******
  • Posts: 526
  • Pogi/Ganda Points: 30
  • Gender: Male
Re: MikroC's SPI Ethernet ENC28J60 Library
« Reply #348 on: May 23, 2012, 12:05:42 PM »
Another +2 for that sir carlsberg.

Babalik lang ako sir kasi bili pa ako ng 20mhz xtal.
Try ko paganahin ang bootloader.
May comment ako sa codes mo, mamaya na. ;D

sige sir! go go go! salamat po sa ganda points :o :o :o, feel free to comment lang sir para naman may learnings ulit :D :D :D
Anyone who has never made a mistakes has never tried anything new.

-Albert Einstein

Offline ΔЅịMø

  • Gas Turbine
  • **
  • Posts: 2903
  • Pogi/Ganda Points: 140
  • Gender: Male
  • "Live Curious"
Re: MikroC's SPI Ethernet ENC28J60 Library
« Reply #349 on: May 23, 2012, 01:54:10 PM »
Teka teka. Huli na ako dito ah. ;D Basa mode muna. Pi-print ko nalang grades ko at babalik na dito. :D
Computer Engineering National Organization registration thread


Offline dummy_c

  • Diesel Generator
  • *
  • Posts: 1588
  • Pogi/Ganda Points: 162
  • Gender: Male
  • If I die 2nyt, 8's bcoz maimai is not at my side!
Re: MikroC's SPI Ethernet ENC28J60 Library
« Reply #350 on: May 23, 2012, 03:18:38 PM »
^^ Papakita ang grades mo dito prof or else minus points ka.... ;D ;D

sige sir! go go go! salamat po sa ganda points :o :o :o, feel free to comment lang sir para naman may learnings ulit :D :D :D
Sir carlserg I admire your effort kaya binibigyan kita ng pampa pogi.

Ok try this with your program sir,

Turn ON the LED using the browser.
Then after that go to your ENC's IP address, 192.168.1.2.
Is the ON button still active?
The world's technology is always changing, no doubt about it, and I hope it’s a while yet before it impacts my ability to tinker.

Offline PlCUSER

  • Diesel Generator
  • *
  • Posts: 1911
  • Pogi/Ganda Points: 153
Re: MikroC's SPI Ethernet ENC28J60 Library
« Reply #351 on: May 23, 2012, 03:25:48 PM »
ang gagaling nyo naman mga masters. sana share nyo naman samin ang galing nyo....

Offline ΔЅịMø

  • Gas Turbine
  • **
  • Posts: 2903
  • Pogi/Ganda Points: 140
  • Gender: Male
  • "Live Curious"
Re: MikroC's SPI Ethernet ENC28J60 Library
« Reply #352 on: May 23, 2012, 03:51:16 PM »
Bakit kaya tuwing may natapos na ako, may nasisira. :( Sasali na sana ako pero, parang ayaw na naman ni ENC eh., Di na nagbi-blink yung Yellow LED nya at di na umiilaw ang green.
Computer Engineering National Organization registration thread


Offline PlCUSER

  • Diesel Generator
  • *
  • Posts: 1911
  • Pogi/Ganda Points: 153
Re: MikroC's SPI Ethernet ENC28J60 Library
« Reply #353 on: May 23, 2012, 03:57:24 PM »
awwww. ;D ;D ;D

Offline ΔЅịMø

  • Gas Turbine
  • **
  • Posts: 2903
  • Pogi/Ganda Points: 140
  • Gender: Male
  • "Live Curious"
Re: MikroC's SPI Ethernet ENC28J60 Library
« Reply #354 on: May 23, 2012, 04:02:07 PM »
Natuluyan na talaga ang ENC ko. Kung saan okay na sana lahat. Yung communication nalang nila at ng ARDUINO. Naku naman.
Computer Engineering National Organization registration thread


Offline carlsberg11

  • Lead Acid Battery
  • *******
  • Posts: 526
  • Pogi/Ganda Points: 30
  • Gender: Male
Re: MikroC's SPI Ethernet ENC28J60 Library
« Reply #355 on: May 23, 2012, 05:05:44 PM »
^^ Papakita ang grades mo dito prof or else minus points ka.... ;D ;D
Sir carlserg I admire your effort kaya binibigyan kita ng pampa pogi.

Ok try this with your program sir,

Turn ON the LED using the browser.
Then after that go to your ENC's IP address, 192.168.1.2.
Is the ON button still active?

sorry po sir lurker biglang po akong nawala, nag laba pa e :D :D :D baka maya ko pa itetest yan sir, medyo busy parin sa paglalaba e.. :D :D :D

prof ,baka ina away mo yung ENC module mo.. :D :D :D LQ ba kayo? ayan si doc picuser..... love doctor yan.. :D :D :D
Anyone who has never made a mistakes has never tried anything new.

-Albert Einstein

Offline ΔЅịMø

  • Gas Turbine
  • **
  • Posts: 2903
  • Pogi/Ganda Points: 140
  • Gender: Male
  • "Live Curious"
Re: MikroC's SPI Ethernet ENC28J60 Library
« Reply #356 on: May 23, 2012, 06:16:17 PM »

prof ,baka ina away mo yung ENC module mo.. :D :D :D LQ ba kayo? ayan si doc picuser..... love doctor yan.. :D :D :D

;D ;D Mukhang ayaw nya na talaga sir. Di na umiilaw eh. Ganito po ba talaga yan sir PIC? Nasa point na nasa ako na ipa-communicate si PIC at ARDUINO eh. :(
Computer Engineering National Organization registration thread


Offline dummy_c

  • Diesel Generator
  • *
  • Posts: 1588
  • Pogi/Ganda Points: 162
  • Gender: Male
  • If I die 2nyt, 8's bcoz maimai is not at my side!
Re: MikroC's SPI Ethernet ENC28J60 Library
« Reply #357 on: May 23, 2012, 06:30:14 PM »
Check mo ng multimeter prof if may supply ba ang ENC prof.

Kahit na walang mcu basta meron lang supply, iilaw talaga yang yellow at green LEDs.

By the way kakabalik lang ng net ko.

Sir carlsberg maka connect ka ba ng LCD sa ENC hardware mo.
If hindi plan B tayo, sa UART nalang.
Mas madali pa ang debugging.
The world's technology is always changing, no doubt about it, and I hope it’s a while yet before it impacts my ability to tinker.

Offline carlsberg11

  • Lead Acid Battery
  • *******
  • Posts: 526
  • Pogi/Ganda Points: 30
  • Gender: Male
Re: MikroC's SPI Ethernet ENC28J60 Library
« Reply #358 on: May 23, 2012, 06:37:45 PM »
Check mo ng multimeter prof if may supply ba ang ENC prof.

Kahit na walang mcu basta meron lang supply, iilaw talaga yang yellow at green LEDs.

By the way kakabalik lang ng net ko.

Sir carlsberg maka connect ka ba ng LCD sa ENC hardware mo.
If hindi plan B tayo, sa UART nalang.
Mas madali pa ang debugging.

yun ang hindi sir kasi yung LCD module ko nakabit sa PIC18F4550 at walang jumper dun sa ENC dev board. mukhang uart muna tayo sir :D
Anyone who has never made a mistakes has never tried anything new.

-Albert Einstein

Offline ΔЅịMø

  • Gas Turbine
  • **
  • Posts: 2903
  • Pogi/Ganda Points: 140
  • Gender: Male
  • "Live Curious"
Re: MikroC's SPI Ethernet ENC28J60 Library
« Reply #359 on: May 23, 2012, 06:39:58 PM »
Okay na mga sir. ;D Kinabahan naman ako nun. Grabe, 2 hours na try, ngayon lang gumana ulit. Hindi ko alam kung anong problema nya. :D



Computer Engineering National Organization registration thread


Philippine Electronics Forum

Re: MikroC's SPI Ethernet ENC28J60 Library
« Reply #359 on: May 23, 2012, 06:39:58 PM »

 

Privacy Policy

Contact Us: elabph@yahoo.com