Professional Documents
Culture Documents
Embedded Ethernet Systems
Embedded Ethernet Systems
1. INTRODUCTION
There is a general consensus that in years to come more and more Ethernet
devices will be embedded and pc oriented. just one prediction is that by 2010 95% of
internet connected devices will not be computers. so if they are not computers what will
they be? Embedded Ethernet devices.
When connected, another pc connected to the device can see and access data in
the device as though it were another pc-remote weather station used for ending weather
data from a remote weather monitoring station to a control station
The embedded system includes the interfacing of the sensors like temp sensors
light, humidity and pressure sensors … to the micro control the remote weather station
also as got a LCD interface which can enabled if required if it is enable the system itself
will display the weather data in the LCD.
The sensors give analog output s and they have to be converted to digital values
for processing external ADC or more preferably an internal ADC(in micro controller)
the microcontroller which is the controlling device regularly reads sensor out put a
proper communication protocol has to be established for communication between the
control room remote system
The remote weather station is a low cost devices which can be used for remote
weather forecasting unlike existing device it can connect and send the data to the remote
control station and send a variety of data from deferent sensors
SYSTEM INTERFACE
The data from the weather station is send through Ethernet to the computer
system the computer system displays the weather parameter using a GUI software the
software can be developed using visual basics and can be installed in the main computer
system
3. ETHERNET TECHNOLOGY
The original Ethernet design used a coaxial cable as in figure called the ether.
The connection between a computer and a coaxial Ethernet cable requires a hardware
device called a transceiver. Physically the connection between a transceiver and the
Ethernet requires a small hole in the outer layers of the cable. Technicians usually use
the term tap to describe the connection between an Ethernet transceiver and the cable.
analog electrical signals on the ether to digital form. a cable called attachment unit
interface[AUI].cable connects the transceiver to an adapter board to a computer.
Informally called a transceiver cable, the AUI cable contains many wires. The wires
carry the electrical power needed to operate the transceiver, signals that control the
transceiver operation and the contents of the packet being send or received. Below
figure shows how the componenents form a connection between a bus in a computer
system and an Ethernet cable.
Fig
To reduce cost of environment like offices that do not contain much electrical
interference engineers developed an alternative Ethernet wiring scheme called thin wire
Ethernet thin net the alternative coaxial cable is thinner less expensive and moiré
flexible how thin wire ether net has some disadvantage because it does not provide as
much protection from electrical interference thin wire Ethernet cannot be placed
adjacent o powerful electrical equipment like that found in factory further more thin
wire ether net covers some what shorter distance s and supports fewer computer
connection per network than thick Ethernet
To further reduce cost with thin wire Ethernet, engneers replaced the costly
transceiver with specially high speed digital circuit and provided direct connection from
a computer to ether thus in a thin wire scheme a computer contain both the host inter
phase and the circuitry that connect to the cable.beacuse a thin wire ether net connects
directly from one computer to another, the wiring scheme works well when many
computer occupy an single room. Thin wire cable runs directly from one computer to
the next to add a new computer only need kink it in to the chain
Advances in technology has made it possible to build Ethernet that do not need
the electrical shielding of a coaxial cable .called twisted pair Ethernet the technology
allows the computer excess an Ethernet using a pair of conventional unshielded copper
wire similar to the wires used to connect telephone. The advantage of using twister
pairing it further reduces cost and protect other computer on the net work from a user
who disconnect a single computer a twisted pair technology for an organization to use
ether net over exciting telephone wiring with out adding new cable
.
The hub is an electronic device that stimulate the signals on Ethernet cable
physically hub consist of a small box that usually resides in a wiring closet a connection
between a hub and a computer must be less than 100ms log it have required power can
allow other used personal to monitor and control for the over the net work
The ether net is a 10Mbps broadcast technology with bust effort delivery and
semantics and distributed accessory control it is a bus because all station share a single
communication channel it is broadcast because all transceiver every transmission. a
transceiver passes all packet from the cable to the host inter phase which choices packet
the computer should receive and filters out all others. Ethernet is called a best effort
delivery mechanism because the hard ware provide no information to the center about
weather the packet was delivered
Ethernet access scheme is called carriers send multiple access with collision
detect(CSMA/CD)it CSMA because multiple machine can access the Ethernet
simultaneously and each machine determines weather the ether is idle by sensing
weather a carrier wave is present
When a transceiver begins transmission, the signal does not reach all parts of the
network simultaneously. Instead it travels along the cable approximately 80% of the
speed of light. Thus it is possible two transceiver to both sense that the net work is idle
and begin transmission simultaneously. When the two electrical signal cross they
become scrambled, such that neither is meaningful. such incident is called collision.
The standard Ethernet is rated at 10Mbps, which means that data can be
transmitted on to the cable at 10 million bit per second. although a computer can
generate data at a Ethernet speed ,raw network should be thought of as the rate at which
two computer can exchange data. instead network speed should be thought of as
measure of network total traffic capacity.
Usually the Ethernet address is fixed in machine readable form on the host
interface hardware .because Ethernet addresses belong to hardware devices they are
some time called hardware address or physical address. note the following important
property of Ethernet physical address
[Physical addresses are associated with the Ethernet interface hardware; moving
the hardware interface to a new machine or replacing a hardware interface that has
failed changes the machine’s physical address]
The host interface hardware examine s packet and determine the packet that
should be send to the host. Recall that each interface receives a copy every packet even
those addressed to other machine. the host inter face uses the destination address field in
a packet as filter. The interface ignores those packets that are addressed to it. the
addressing machine and hardware filter are needed to prevent a computer from being
overwhelmed with incoming data
4. CIRCUIT DIAGRAM
5. IMPORTANT PINS
T has the following peripheral features which suits best for the project:
Timer0:8-bit timer/counter with 8 bit prescalar.
10 bit multi channel Analog to digital converter having 8 input channels.
Universal Synchronous Asynchronous Receiver Transmitter (USART)
with 9b bit address detection.
.
It has 8 inputs
It generates a Digital signal for analog levels via successive
approximation .The A/D module has 4 registers .These registers are :
1. A/D Result High Register (ADESH).
2. A/D Result Low Register (ADRESL).
3. A/D Control Register0 (ADCON)
4. A/D Control Register1 (ADCON!)
6. SENSOR SPECIFICATION
7. FLOW CHART
8. SOFTWARE PROGRAM
include"P16877.INC"
LIGHTH EQU 20H
LIGHTL EQU 21H
TEMPH EQU 22H
TEMPL EQU 23H
HUMH EQU 24H
HUML EQU 25H
PRESH EQU 26H
PRESL EQU 27H
TRANS EQU 28H
org 0000h
CLRF PCLATH ;FOR LOADING
goto start
org 0020h
start
CALL UARTINIT
BSF STATUS,RP0 ;ADCON1 IS IN BANK1
MOVLW B'10000000' ;RIGHT JUSTIFIED,ALL ANALOG MODE
MOVWF ADCON1 ;CONTROL REGISTER1 FOR ADC INITIALISED
BCF STATUS,RP0 ;BANK 0
CONVCHK1
BTFSC ADCON0,2 ;CHECK WETHER CONVERSION OVER
GOTO CONVCHK1 ;NOT OVER,GO BACK
MOVF ADRESH,0 ;VALUE OF ADRESH IN WR
ANDLW H'03' ;AND WF WITH 0F
MOVWF TEMPH
BSF STATUS,RP0 ;ADRESL IS BANK1
MOVF ADRESL,O ;VALUE OF ADRESH IN WR
BCF STATUS,RP0,BANK0
MOVWF TEMPL
CALL DELAY2 ;DELAY WITH TIMER1IS CALLED
MOVF LIGHTL,0
MOVWF TRANS
CALL UART TRANSMIT ;TRANSMIT LIGHT VALUE
CALL UART TRANSMIT
MOVF TEMPL,0
MOVWF TRANS
CALL UART TRANSMIT ;TRANSMIT TEMP VALUE
MOV HUML,0
MOVWF TRANS
CALL UART TRANSMIT ;TRANSMIT HUMIDITY VALUE
MOVF PRESSL,0
MOVWF TRANSF
UARTINIT
CLRF RCSTA
BSF STATUS,RP0 ;TXSTA IS IN BANK 1
CLRF TXSTA
BSF TXSTA,BRGH ;HIGH BAUD RATE IS USED
BCF TXSTA,SYNC
MOVLWD'129'
MOVWF SPBRG ;SINCE V USE 9600 BAUD RATE(BITS/SEC)
BCF STATUS,RP0 ;RCSTA IS IN BANK0
BSF RCSTA,SPEN ;SERIAL PORT ENABLED
BSF STATUS,RP0 ;BANK1
BSF TXSTA,TXEN ;TRANSMIT ENABLED
BCF STATUS,RP0 ;TXREG IS IN BANK0
RETURN
END
9. WORKDONE SO FAR
10. CONCLUSION
10.1 GOALS
11. BIBILOGRAPHY
1. www.microchip.com
APPENDIX
ABSTRACT
Ethernet is the most popular local area network or land technology. An Ethernet LAN
typically use twisted pair wires or fiber optics cable transmit at 10 Mbps.Ethernet are in
expensive and provide a relatively high through put and low delay that can support
many applications. most importantly Ethernet provides inexpensive, relatively high
speed network access to individual users. This project is an attempt to connect an
embedded device to an Ethernet. The embedded device is a REMOTE WEATHER
STATION.
With help of this remote weather monitoring station, the master control station
located at another geographical area can receive the weather data. The remote weather
system monitors temperature, humidity, atmospheric pressure, light intensity etc.. And
send the data to the master control station at regular intervals when required. The
weather station communicates through Ethernet for sensing the temperature; humidity
respective sensors are used data from the sensors are analyzed by the microcontroller
and processed
CONTENTS
1. INTRODUCTION 1
3. ETHERNET TECHNOLOGY 4
4. CIRCUIT DIAGRAM 11
5. IMPORTANT PINS 12
6. SENSOR SPECIFICATION 14
7. FLOW CHART 16
8. SOFTWARE PROGRAM 18
9. WORKDONE SO FAR 24
10. CONCLUSION 25
11. BIBILOGRAPHY 26