Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
INTRODUCTION-:
This Project is used to control our household electrical devices from anywhere throu h the cell !hone" The circuit consists of a DT#$ tone detector and a !owerful % &it #icrocontroller 'T%()*+" The microcontroller controls all the system" In this !roject we control total si, devices" The #icrocontroller senses the DT#$ si nal throu h the DT#$ decoder IC #T%%-. and it switch on/off the corres!ondin devices accordin to the user need" The circuit has an in&uilt !hone rin sensor circuit and the system will ta0e over the !hone control if it was not ta0en manually" Press the corres!ondin num&ers to turn on/off the devices1 for e,: !ress 2 to turn on/off device 21 !ress . to switch off all devices1 !ress ( to switch on all devices1 !ress % to disconnect the tele!hone
AT89S52: The 'T%()*+ is a low-!ower1 hi h!erformance C#O) %-&it microcontroller with %9 &ytes of in-system !ro ramma&le $lash memory" The device is manufactured usin 'tmel:s hi hdensity nonvolatile memory technolo y and is com!ati&le with the industry-standard %.C*2 instruction set and !inout" The on-chi! $lash allows the !ro ram memory to &e re!ro rammed in-system or &y a conventional nonvolatile memory !rorammer" 3y com&inin a versatile %-&it CPU with in-system !ro ramma&le $lash on a monolithic chi!1 the 'tmel 'T%()*+ is a !owerful microcontroller1 which !rovides a hi hly fle,i&le and cost-effective solution to many1 em&edded control a!!lications" The 'T%()*+ !rovides the followin standard features: %9 &ytes of $lash1 +*; &ytes of R'#1 <+ I/O lines1 =atchdo timer1 two data !ointers1 three 2;-&it timer/counters1 a si,-vector two-level interru!t architecture1 a full du!le, serial !ort1 on-chi! oscillator1 and cloc0 circuitry" In addition1 the 'T%()*+ is desi ned with static lo ic for o!eration down to >ero fre?uency and su!!orts two software selecta&le !ower savin modes" The Idle #ode sto!s the CPU while allowin the R'#1
timer/counters1 serial !ort1 and interru!t system to continue functionin " The Power-down mode saves the R'# con-tents &ut free>es the oscillator1 disa&lin all other chi! functions until the ne,t interru!t
The hardware is driven &y a set of !ro ram instructions1 or software" Once familiar with hardware and software1 the user can then a!!ly the microcontroller to the !ro&lems easily" The !in dia ram of the %.*2 shows all of the in!ut/out!ut !ins uni?ue to microcontrollers:
The followin are some of the ca!a&ilities of %.*2 microcontroller" Internal RO# and R'# I/O !orts with !ro ramma&le !ins Timers and counters )erial data communication The %.*2 architecture consists of these s!ecific features: 2; &it PC @data !ointer 6DPTR7 % &it !ro ram status word 6P)=7 % &it stac0 !ointer 6)P7 Internal RO# A0 Internal R'# of 2+% &ytes" A re ister &an0s1 each containin re isters %. &its of memory %
Two 2; &it timer/counters: T.-T2Two e,ternal and three internal interru!t sources Oscillator and cloc0 circuits"
TB4ORC-:
Bere is a teleremote circuit which ena&les switchin on and off of a!!liances throu h tele!hone lines" It can &e used to switch a!!liances from any distance1 overcomin the limited ran e of infrared and radio remote controls" The circuit descri&ed here can &e used to switch u! to si, a!!liances 6corres!ondin to the di its 2 throu h ; of the tele!hone 0ey-!ad7" The DT#$ si nals on tele!hone instrument are used as control si nals" The di it . in DT#$ mode is used to to le &etween the a!!liance mode and normal tele!hone o!eration mode" Thus the tele!hone can &e used to switch on or switch off the a!!liances also while &ein used for normal conversation"
The circuit uses IC 9T<2-. 6DT#$-to-3CD converter71 -A2*A 6A-to-2;-line demult-i!le,er71 and five CDA.2< 6D fli!-flo!7 ICs" The wor0in of the circuit is as follows" Once a call is esta&lished 6after hearin rin -&ac0 tone71 dial . in DT#$ mode" IC2 decodes this as 2.2.1 which is further demulti!le,ed &y IC+ as out!ut O2. 6at !in 227 of IC+ 6-A2*A7" The active low out!ut of IC+1 after inversion &y an inverter ate of IC< 6CDA.A(71 &ecomes lo ic 2" This is used to to le fli!-flo!-2 6$/$-27 and relay R52 is ener ised" Relay R52 has two chan eover contacts1 R526a7 and R526&7" The ener ised R526a7 contacts !rovide a ++.-ohm loo! across the tele!hone line while R526&7 contacts inject a 2.0B> tone on the line1 which indicates to the caller that a!!liance mode has &een selected" The ++.-ohm loo! on tele!hone line disconnects the rin er from the tele!hone line in the e,chan e" The line is now connected for a!!liance mode of o!eration" If di it . is not dialed 6in DT#$7 after esta&lishin the call1 the rin continues and the tele!hone can &e used for normal conversation" 'fter selection of the
a!!liance mode of o!eration1 if di it D2D is dialed1 it is decoded &y IC2 and its out!ut is D...2D" This 3CD code is then demulti!le,ed &y A-to-2;-line demulti!le,er IC+ whose corres!ondin out!ut1 after inversion &y a CDA.A( inverter ate1 oes to lo ic 2 state" This !ulse to les the corres!ondin fli!-flo! to alternate state" The fli!-flo! out!ut is used to drive a relay 6R5+7 which can switch on or switch off the a!!liance connected throu h its contacts" 3y dialin other di its in a similar way1 other a!!liances can also &e switched on or off" Once the switchin o!eration is over1 the ++.-ohm loo! resistance and 2. 0B> tone needs to &e removed from the tele!hone line" To achieve this1 di it . 6in DT#$ mode7 is dialed a ain to to le fli!flo!-2 to de-ener ies relay R521 which terminates the loo! on line and the 2.0B> tone is also disconnected" The tele!hone line is thus a ain set free to receive normal calls" This circuit is to &e connected in !arallel to the tele!hone instrument
References-:
The 8051 microcontroller and Embedded systems using assembly and C Muhammad Ali Mazidi, Janice Gilles ie Mazidi !eil "o#t$are, d"co e %ebugger, htt &''$$$()eil(com'
2"
<"
A"
*"