Академический Документы
Профессиональный Документы
Культура Документы
Prof. R.P.Chaudhari
II.
systems.
This
system
uses
ATmega328p
FUNDAMENTAL COMPONENTS
listed below.
host microcontroller using SPI pins. There are several I/O pins
available at the microcontroller which are used to interface with
sensors and relays for monitoring and controlling operations.
Nowadays, Internet has spread worldwide and most of the
internet connections use Ethernet as media for data transfer. In
industries or in home appliances, most of the time we need to
monitor
and
control
different
parameters
using
Ethernet
controller;
TCPI/P
stack;
serial
INTRODUCTION
Ethernet's
in
offices
infrastructure,
and
SPI interface
110 system
files.
An
Ethernet
communication
can
industrial
buildings.
interoperability and
scalability
IEEE
802.3
compliant
Ethernet
frames
are
Nlnlbe r
Red
ofB)'t-!s
{ I'''m
p::
:::=:== 1 }
..... .-( I
{
SFD
J.
DA
SA
TypeJLength
Used in the
Calculation
ot the FCS
"'"
Pacl;etPay50ad
(with Clp60nal padding)
46-1500
Padding
FCS(1)
bit. O.
take
Ethernet
A. Ethernet
to
I.
634
Paclle-t
C.
MCU
TfIT,WOC
SCLK
..
p
SCLK
SPI
MOSI
..
MOS I
SPI
)laste,"
MISO
MISO
S la ve
..
SS
SS
III.
HARDWARE ARCHITECTURE
Medium
Access
Controller
(MAC),
providing
reliable
Ethernet
link/activity
the data on the twisted pair interface while the MAC contains
digital
handle
circuitry
to
control
when
to
transmit,
controller
[C
lights,
ENC2SJ60,
Ethernet
RJ45
socket
transformer,
host
AT me gal28
ENe 28J60
RELAYS
SLSORS
with
DRI\1NG
_ IOSI
CIRCUITRY
SI
MISO
SCK
OPTO
ISOLATORS
635
EJ
use
(standard
UTP
cable).
Most
Ethernet
networks
I'5GECA: ETHERNET ENABLED DIGITAL 1/0 CONlROL SYSTEM Windows Internet Explorer
Ethernet transformer
@@
Eile
dit
favorites
lID 10.1.1.1
fgvorites
lools
t1elp
Ix ..
j ieGECA: ETHERNET ENABLED DIGITAL I/O CONTROL s -[ l
.iew
...
ADC= 0516
Temparature = 29cC
OFF [ON]
1101.11
II AVRIP I
1101.1.76
II
Server IP
Refresh
ENC28J60
The ENC28J60 is a stand-alone Ethernet controller with an
IV.
Communication
with
the
host
controller
is
contains
program
code
that
manages
communications
TCP-IP
stack,
need
to
be
configured
powerful
D. MCV A Tmega328p
AVR
SOFTWARE REQUIREMENT
RISC
instructions
architecture
in
single
[4].
By
clock
executing
cycle,
the
As
we
are
using
AVR
ATmega328p
636
V.
TCP/IP layers are "live", in the sense that they not only act
when a service is requested, but also when events like time
out or new packet arrival occurs.
The stack is modular in design and is written in the 'C'
programming language. Effective implementations can be
accomplished in roughly 25-30 KB of code, depending on
modules used,
AVRStudio
is
the
Integrated
Development
REFERENCES
" DW[2ndSem\[NC\PractltepIORl4l1ls\avr
// GIClb".l 'Janables
M.l.C_ADDR avr_"ac
IPj.DDR ""r_ip;
[I]
[2]
IIIlC_IlDDR "",rv",r_""c;
IP_llDDR ''''':rv!!r_ip;
a d
{
},
!;.::.::;;:;;i;l!!.;:.:.!.;.;.;.:.........
.:I;;::POATA
JI::gPORT8
JIPORTC
.:I;;gPORTD
.:ISF1
.:IGTIHER_courHl
.:IGTIHEA_COUNTI
"TIHERCOUtHl"
n............
// Funchon
"".VeT_process
// De"cription
Run web =rver and listen on port 80
<
<
>
[3]
[4]
[5]
[6]
[7]
[8]
[9]
IIUildsuccccd.dvithOhrninq. . .
>
<. 1.".g.
==------I
Ot
"i findin fil" I Li Br,,point '.ndT'","POlnts
lnSO,Coll
ETHERNET
CONTROLLER
(ENC28J60)
637