Professional Documents
Culture Documents
Vdocument - in Electricity Billing System
Vdocument - in Electricity Billing System
Vdocument - in Electricity Billing System
CHAPTER – 1
INTRODUCTION
1.1 OVERVIEW
SeminarsTopics.com
SeminarsTopics.com
• 9o'er #&erheads
• No :ills
• Disconnections
SeminarsTopics.com
CHAPTER&2
When 'e gi&e the dial a code from ;<= Matri> )ey%ad then the (nit
%rice ? recharge amo(nt are stored in side the EEPR#M AT1;".1*
If card is com%letely recharged then and then the green led 'ill glo'
and if it fails then the red led 'ill glo' for a long %eriod
SeminarsTopics.com
When 'e enter a charged card in to a card reader of o(r main circ(it/
micro controller 'ill ta)e data and store it inside a memory of
microcontroller
Micro controller also ta)es the %(lses from the energymeter &ia
o%toco(%ler I" M"T1E and co(nts the %(lses (%to =1.. beca(se of the
meter s%ecifications are =1.. %(lses58Wh
SeminarsTopics.com
And 'hene&er the %(lse co(nt reaches the =1.. then it decreases the
charged amo(nt and it 'ill increases the meter reading by 0 and dis%lays
it on the 9"D screen*
And 'hene&er the chaged amo(nt reading reaches the minim(m amo(nt
then it 'ill send %(lse to the @9N 1..= dri&er Ic and it 'ill t(rn of the
relay*and 'hen relay off then the %o'er 'ill off*
If the (ser do not recharge the card then 'e 'ill not get the energy*
SeminarsTopics.com
CHAPTER – #
SCHE+ATIC DIA*RA+
SeminarsTopics.com
SeminarsTopics.com
01 &5=. A Relay
SeminarsTopics.com
SeminarsTopics.com
SeminarsTopics.com
CHAPTER&4
HP#RT DE"9ERATI#N
H <<<9"D "#NTR#9<<<
SeminarsTopics.com
H <<<4Y4TEM IN4TR@"TI#N4<<<
!9AG40 D4 0
READING D4 1
AM#@NT D4 =
"#@NTER D4 1
TEMPD4 0
PRI"E D4 1
:A9AN"E D4 0
:@KKL"#@NT D4 0
READL:YTE D4 =
!0 D40
!1 D40
!= D40
4TA"8 D4 0
SeminarsTopics.com
AOMP MAIN
#RG ...=
P@4 P4W
P@4 A""
"A99 IN"L"#@NTER
P#P A""
P#P P4W
RETI
M# IE/0......0:
"A99 RE4ET9"D;
"A99 TIT9E0
"9R :@KKER
4ET: RE9AY
"9R T:IT0
M# :@KKL"#@NT/..
M# READL:YTE/.!!
"A99 READL"#@NTER
M# A/"#@NTER
"ONE A/.!!/:YPA44
"A99 RE4ETLREADING
"A99 RE4ETLAMT
"A99 RE4ETL"#@NTER
"A99 RE4ETLPRI"E
"A99 4T#REL@NITLPRI"E
SeminarsTopics.com
"A99 AMTLRE"ARGE
"A99 4Y4TEMLRE4ET
"A99 DE9AYY4
"A99 READLPRI"E
"A99 READL:A9AN"E
"A99 DE9AYY
M# A/:A9AN"E
"ONE A/../!G0
"9R RE9AY
"A99 RE"AGRE
"A99 DE9AYY
4ET: :@KKER
AOMP MAIN4
"ONE A/../AK0
"9R :@KKER
AOMP AK1
"A99 READLEEPR#M
"A99 DI4PLREADING
M# TEMP/READING
SeminarsTopics.com
"A99 4EPLDI4P
M# TEMP/READINGQ0
"A99 4EPLDI4P
"A99 DE9AYY
"A99 READLEEPR#M
"A99 AMTLREADING
M# TEMP/AM#@NT
"A99 4EPLDI4P
M# TEMP/AM#@NTQ0
"A99 4EPLDI4P
M# R;/*
"A99 WR9"DDATA
"A99 MDE9AY
M# TEMP/AM#@NTQ1
"A99 4EPLDI4P
"A99 DE9AYY
"A99 READLEEPR#M
"A99 "#@NTLREADING
M# TEMP/"#@NTER
"A99 4EPLDI4P
M# TEMP/"#@NTERQ0
"A99 4EPLDI4P
SeminarsTopics.com
"A99 DE9AYY
"A99 READLEEPR#M
"A99 READLPRI"E
"A99 @NITLPRI"E
M# A/PRI"E
ADD A/=.h
M# R;/A
"A99 WR9"DDATA
"A99 MDE9AY
M# R;/*
"A99 WR9"DDATA
"A99 MDE9AY
M# TEMP/PRI"EQ0
"A99 4EPLDI4P
"A99 DE9AYY
AOMP MAIN4
HIN"REMENT "#@NTER :Y 0
ADD A/.0
DA A
M# "#@NTERQ0/A
ON" D"1
M# A/"#@NTER
ADD A/.0
SeminarsTopics.com
DA A
M# "#@NTER/A
"ONE A/=1h/D"1
M# "#@NTER/..
M# "#@NTERQ0/..
"A99 4T#RELEEPR#M
"A99 DE9AY
AOMP D:0
"A99 4T#RELEEPR#M
"A99 DE9AY
RET
ADD A/.0
DA A
M# READINGQ0/A
ON" D"40
M# A/READING
ADD A/.0
DA A
M# READING/A
SeminarsTopics.com
"A99 4T#RELEEPR#M
"A99 DE9AY
"9R "
4@:: A/PRI"EQ0
"A99 :"DL"#N
M# AM#@NTQ1/A
4@:: A/PRI"E
"A99 :"DL"#N
M# AM#@NTQ0/A
"A99 :"DL"#N
M# AM#@NT/A
"A99 4T#RELEEPR#M
"A99 DE9AY
M# A/AM#@NTQ0
"ONE A/;./!"0
M# :@KKL"#@NT/.1
4ET: :@KKER
M# :@KKL"#@NT/.1
4ET: :@KKER
SeminarsTopics.com
M# :@KKL"#@NT/.1
4ET: :@KKER
M# :@KKL"#@NT/.=
4ET: :@KKER
M# :@KKL"#@NT/.=
4ET: :@KKER
M# :@KKL"#@NT/.=
4ET: :@KKER
M# :@KKL"#@NT/.;
4ET: :@KKER
M# :@KKL"#@NT/.;
4ET: :@KKER
M# :@KKL"#@NT/.;
4ET: :@KKER
"9R "
4@:: A/PRI"EQ0
"A99 :"DL"#N
M# A/AM#@NT
"9R T:IT
ON" P#P0
SeminarsTopics.com
4ET: T:IT
M# :A9AN"E/..
"A99 4T#RELEEPR#M
"A99 DE9AY
"9R RE9AY
4ET: :@KKER
:A"8 RET
"9R "ARRY
ON" 9#P1
4ET: "ARRY
4ET: :"D"ARRY
"9R "
4@:: A/.
"9R "
4@:: A/.
ON: "ARRY/9#P;
4ET: "
9#P; RET
SeminarsTopics.com
"A99 READLEEPR#M
RET
"A99 READLEEPR#M
RET
"A99 READLEEPR#M
RET
AN9 A/.!.
4WAP A
"ONE A/../DAP0
M# A/AM#@NT
AN9 A/.!
AOMP DAP=
M# R;/A
"A99 WR9"DDATA
"A99 MDE9AY
AN9 A/.!
SeminarsTopics.com
ADD A/=.
M# R;/A
"A99 WR9"DDATA
"A99 MDE9AY
AN9 A/.!.
4WAP A
ADD A/=.
M# R;/A
"A99 WR9"DDATA
"A99 MDE9AY
AN9 A/.!
ADD A/=.
M# R;/A
"A99 WR9"DDATA
"A99 MDE9AY
M# R;/*
"A99 WR9"DDATA
"A99 MDE9AY
M# A/AM#@NTQ1
AN9 A/.!.
4WAP A
ADD A/=.
M# R;/A
"A99 WR9"DDATA
"A99 MDE9AY
M# A/AM#@NTQ1
SeminarsTopics.com
AN9 A/.!
ADD A/=.
M# R;/A
"A99 WR9"DDATA
"A99 MDE9AY
RET
M# A/AM#@NTQ0
AN9 A/.!.
4WAP A
AOMP DAP-
AN9 A/.!.
4WAP A
ADD A/=.
M# R;/A
"A99 WR9"DDATA
"A99 MDE9AY
M# A/TEMP
AN9 A/.!
ADD A/=.
M# R;/A
"A99 WR9"DDATA
"A99 MDE9AY
RET
SeminarsTopics.com
M# READL:YTEQ0/..
M# READL:YTEQ1/0.
"A99 DE9AY
RET
M# READL:YTEQ0/.0
M# READL:YTEQ1/..
SeminarsTopics.com
"A99 DE9AY
RET
RE4ETL:A9AN"E
M# :A9AN"E/.!!
"A99 4T#RELEEPR#M
"A99 DE9AY
RET
RE4ETLPRI"E
M# PRI"E/.1
M# PRI"EQ0/..
"A99 4T#RELEEPR#M
"A99 DE9AY
RET
RE4ETL"#@NTER
M# "#@NTER/..
M# "#@NTERQ0/0.
SeminarsTopics.com
"A99 4T#RELEEPR#M
"A99 DE9AY
RET
RE4ETLAMT
M# AM#@NT/.. H
M# AM#@NTQ0/.-
M# AM#@NTQ1/..
"A99 4T#RELEEPR#M
"A99 DE9AY
RET
RE4ETLREADING
M# READING/..
M# READINGQ0/.-
"A99 4T#RELEEPR#M
"A99 DE9AY
RET
DONK !1/4EP1
"A99 "ARDLREAD
SeminarsTopics.com
M# A/READL:YTE
"ONE A/.!!/D4P0
"9R T:IT0
D4P=DONK !0/4EP=
RET
DONK !1/4-P1
DONK !0/4-P=
RET
D4P0O: T:IT0/D4P=A
"A99 TIT9E=
"A99 DE9AY4
"A99 DE9AY4
"A99 "ARDLREAD
M# A/READL:YTE
"ONE A/../D4P1
M# PRI"E/READL:YTEQ0
M# PRI"EQ0/READL:YTEQ1
"A99 4T#RELEEPR#M
"A99 DE9AY4
SeminarsTopics.com
4ET: T:IT0
AOMP RE4ETL"IP
"A99 READLEEPR#M
M# A/AM#@NT
ADD A/READL:YTEQ0
DA A
M# AM#@NT/A
M# A/AM#@NTQ0
ADD" A/READL:YTEQ1
DA A
M# AM#@NTQ0/A
"A99 4T#RELEEPR#M
"A99 DE9AY4
4ET: T:IT0
"A99 RE4ETL:A9AN"E
RE4ETL"IP
M# READL:YTEQ0/.!!
M# READL:YTEQ1/.!!
SeminarsTopics.com
"A99 DE9AY
RET
"A99 DE9AY4
4ET: T:IT0
D4P; RET
DE9AYM# R/.!!
RE N#P
DONK RJ/RE
DONK R/RE0
RET
"ARDLREAD
SeminarsTopics.com
4ET: 4"90
N#P HN#TE 0
N#P
N#P
N#P HN#TE 1
N#P
"9R 4"90
READLEEPR#M
HADDRE44
SeminarsTopics.com
4ET: 4"90
N#P HN#TE 0
N#P
N#P
N#P HN#TE 1
N#P
"9R 4"90
4T#RELEEPR#M
SeminarsTopics.com
RET
HDI4P9AY R#@TINE4
TIT9E0
M# DPTR/M4AG0
"A99 9"DLM4G
RET
M4AG0
D: 0/B;/PREPAID/."1/ENERGY METER/..
DI4PLREADING
M# DPTR/M4AG1
"A99 9"DLM4G
RET
M4AG1
D: 0/B1/METER READING/."/..
AMTLREADING
M# DPTR/M4AG=
"A99 9"DLM4G
RET
M4AG=
D: 0/B0/:A9AN"E AM#@NT/."=/Rs*/..
"#@NTLREADING
M# DPTR/M4AG;
"A99 9"DLM4G
RET
M4AG;
D: 0/B1/P@94E "#@NT/."/..
@NITLPRI"E
M# DPTR/M4AG0;
SeminarsTopics.com
"A99 9"DLM4G
RET
M4AG0;
RE"AGRE
M# DPTR/M4AG-
"A99 9"DLM4G
RET
M4AG-
TIT9E=
M# DPTR/M4AG
"A99 9"DLM4G
RET
M4AG
TIT9E;
M# DPTR/M4AGJ
"A99 9"DLM4G
RET
M4AGJ
TIT9E-
M# DPTR/M4AGB
"A99 9"DLM4G
RET
M4AGB
SeminarsTopics.com
TIT9E
M# DPTR/M4AGC
"A99 9"DLM4G
RET
M4AGC
D: 0/B1/INA9ID "ARD/."./<<<<<<<<<<<<<<<</..
4Y4TEMLRE4ET
M# DPTR/M4AGC0
"A99 9"DLM4G
RET
M4AGC0
D: 0/B./4ystem Restored/."./<<<<<<<<<<<<<<<</..
INIT9"D;
H 9INE4/ !#NT4
"A99 WR9"D"#M;
"A99 WR9"D"#M;
"A99 WR9"D"#M;
RET
RE4ET9"D;
SeminarsTopics.com
4ET: 9"DLD:-
4ET: 9"DLD:;
"A99 MDE9AY
"A99 MDE9AY
"A99 MDE9AY
"A99 MDE9AY
"A99 WR9"D"#M;
"A99 WR9"D"#M;
SeminarsTopics.com
"A99 WR9"D"#M;
A"A99 WR9"D"#M;
OMP INIT9"D;
WR9"D"#M;
"9R 9"DLE
"9R 9"DLE
SeminarsTopics.com
"9R 9"DLE
"9R 9"DLE
"A99 MADE9AY
P#P A""
RET
WR9"DDATA
"9R 9"DLE
"9R 9"DLE
SeminarsTopics.com
"9R 9"DLE
"9R 9"DLE
N#P
N#P
P#P A""
RET
H N@99 +.,*
9"DLM4G
M# R;/A
M# R;/A
"A99 WR9"DDATA
OMP 9"DLM4G
SeminarsTopics.com
M# R;/A
9cdLMsgLData
M# R;/A
9cdLMsgC
MDE9AY
P@4 A""
M# A/.A
MDL#9P
IN" A
N#P
N#P
N#P
N#P
N#P
N#P
N#P
N#P
ONK MDL#9P
N#P
P#P A""
SeminarsTopics.com
RET
MADE9AY
P@4 A""
M# A/.=
MADL#9P
IN" A
N#P
N#P
N#P
N#P
N#P
N#P
N#P
N#P
ONK MADL#9P
N#P
P#P A""
RET
9##P:
A"A99 DE9AYM4 H call the ro(tine abo&e* It 'ill r(n and ret(rn to here*
SeminarsTopics.com
RET
9##PA
H 9##PA
RET Hret(rn to the %oint that this ro(tine 'as called from
H to the EEPR#M and incl(des 4TART condition* Refer to the data sheets
N#P HN#TE 0
N#P
N#P
N#P HN#TE 0
N#P
N#P
ON" :IT94
SeminarsTopics.com
N#P HN#TE 0
N#P
N#P
N#P HN#TE 0
N#P HN#TE 0
N#P
N#P
"9R 4"90
RET
ON" :IT9
N#P HN#TE 0
N#P
SeminarsTopics.com
N#P
N#P HN#TE 0
N#P HN#TE 0
N#P
N#P
"9R 4"90
RET
N#P HN#TE 0
N#P
N#P
N#P HN#TE 0
N#P
N#P
RET
SeminarsTopics.com
RET
N#P HN#TE 0
N#P
N#P
N#P
RET
H has been generated after the last data byte has been sent
H the EEPR#M* No A"8 'ill be recei&ed (ntil the EEPR#M is done 'ith
H ADDRE44
SeminarsTopics.com
N#P HN#TE 0
N#P
N#P
ON" A8T94
N#P HN#TE 0
N#P
N#P
N#P HN#TE 0
N#P HN#TE 0
N#P
N#P
N#P HN#TE 0
SeminarsTopics.com
N#P
N#P
N#P
N#P
RET
END
SeminarsTopics.com
CHAPTER&8
ADVANTA*ES , DISADVANTA*ES
8.1 ADVANTA*ES-
The Pre%aid Energy Meter for India* described in this Pro3ect has many
ad&antages*
Red(ced "hance of Meter Tam%ering The %ro3ect (ses electronic
energy meters 'ith b(ilt in tam%er detection facility 'hich eliminates
any chance of mechanical tam%ering
Red(ced Meter Reading "osts 4ince the b(rden of tra&eling to read and
recharge the energy meters is eliminated by (sing 'ireless media/ the
costs are significantly red(ced*
:etter Energy @sage 4ince the energy billing is %re %aid/ the cons(mers
'ill no' (se electricity in a better %lanned manner thereby red(cing
'astage*
!ast Resol(tion of Acco(nt (eries As there can be no meter reading
transcri%tion errors/ c(stomer com%laints 'ill be lo'er*
Im%ro&ed "(stomer "are !acilities The c(stomer can get f(ll details of
his energy cons(m%tion as a database for e&ery c(stomer is being
maintained*
Ada%table to "hange in Po'er Tariff The energy meter 'ill be
%rocesses only (nits and not r(%ees +money,* Th(s 'hen there is a
SeminarsTopics.com
change in %o'er tariff there is no need to chang the meter code* The
o%erator at the s(bstation 'ill calc(late the n(mber of (nits based on the
e>isting tariff and recharge the meters in terms of 8Wh*
:etter Energy Management 4ince the load %attern of a %artic(lar area
and c(stomers is a&ailable thro(gh the database/ it facilitates load
shedding in case of energy shortfall* The system 'ill enable easy energy
a(dits*
Red(ction in Po'er Theft :eca(se of the real time theft detection
system %o'er thefts can be drastically red(ced or remo&ed*
8.2 DISADVANTA*ES-
X Remedy
When the system is con&erted into engineering mod(le/ the b(l)y
hard'are can be con&erted into a small6integrated chi%* When the
hard'are is minimiFed nat(rally the system cons(mes less %o'er*
4ince it is a %rototy%e mod(le/ beca(se of h(ge hard'are the system
occ(%ies more s%ace*
The cons(mer or the electrical de%artment has to s%end more amo(nts
for installing this )ind of smart energy meters* Economically it is not
ad&ised*
SeminarsTopics.com
The %resent energy billing system %ro&ides em%loyment for nearly B60.
%eo%le in e&ery distrib(tion station for 3obs li)e billing/ %rocessing etc*
The %resently installed energy meters sho(ld be either modified or
re%laced 'ith the ne' meter/ 'hich cons(mes time/ labor and money*
The %re%aid system 'ill lea&e the c(stomer 'itho(t %o'er/ if he co(ld
not recharge his meter in time d(e to some (na&oidable reason*
The %re%aid system 'ill %ro&ide %o'er only to those 'ho can afford to
%re%ay*
"om%ared to the ad&antages/ the abo&e disad&antages are minimal in
their im%act*
SeminarsTopics.com
CHAPTER&9
APP(ICATION
The Pre%aid Energy Meter designed in this %a%er co(ld find a%%lication
in e&ery state distrib(tion com%any for energy billing a%art from intelligent
load shedding and theft detection* It can also be e>tended for metering and
monitoring other (tility commodities/ s(ch as Internet access/ %re%aid
drin)ing 'ater/ etc*
SeminarsTopics.com
CHAPTER&:
UTURE SCOPE
The Pre%aid Energy Meter for India/ has the %otential to change the f(t(re of
the energy billing system in India* It co(ld hel% the energy distrib(tion
com%anies red(ce costs and increase %rofits/ im%ro&e billing acc(racy and
efficiency/ and contrib(te to the energy s(stainability
The recharge method (sed here can be re%laced 'ith the G4M Modems
and can be e>tended to ma)e the energy billing system more 'ide
s%read and ma)e it one system for the entire state*
The mode of %ayment by the cons(mers can be e>tended to credit cards/
internet based %ayments/ ATM "enters etc* This ma)es the recharging
system sim%ler and eliminating the need for c(stomers to go to the
recharge centers allo'ing the (ser any time recharge*
Instead of recharging the chi%/ the readily a&ailable recharge cards
+smart cards, (sed in cell %hones can be introd(ced 'hich 'ill enable
easier recharging of meters* These cards can be made a&ailable at all
s(%er mar)ets/ grocery sho%s etc*
With these e>tensions c(stomers can be relie&ed of the b(rden of
recharging the meter only at the recharging centres* @sing these other
SeminarsTopics.com
CONC(USION
SeminarsTopics.com
'I'(IO*RAPH7
Re3eren/e '%%$
We;$!te
o '''*datasheets;(*com
o '''*B.-0*com
o '''*google*com
o '''*%rimegro(%india*com
o '''*indianengineer*'ord%ress*com
o '''*'i)i%edia*org
APPENDI<
A1. C%mp%nent C%$t Deta!$
SeminarsTopics.com
:(FFer =.*..
T%ta C%$t @14.55
A2.1 eature$-
SeminarsTopics.com
Watchdog Timer
Po'er6off !lag
A2.2 De$/r!pt!%n-
SeminarsTopics.com
is com%atible 'ith the ind(stry6 standard B."-0 instr(ction set and %ino(t* The
on6chi% !lash allo's the %rogram memory to be re%rogrammed in6system or
by a con&entional non&olatile memory %rogrammer* :y combining a &ersatile
B6bit "P@ 'ith in6system %rogrammable !lash on a monolithic chi%/ the Atmel
ATBC4-1 is a %o'erf(l microcontroller 'hich %ro&ides a highly6fle>ible and
cost6effecti&e sol(tion to many embedded control a%%lications* The ATBC4-1
%ro&ides the follo'ing standard feat(res B8 bytes of !lash/ 1- bytes of
RAM/ =1 I5# lines/ Watchdog timer/ t'o data %ointers/ three 06bit
timer5co(nters/ a si>6&ector t'o6le&el interr(%t architect(re/ a f(ll d(%le> serial
%ort/ on6chi% oscillator/ and cloc) circ(itry* In addition/ the ATBC4-1 is
designed 'ith static logic for o%eration do'n to Fero fre(ency and s(%%orts
t'o soft'are selectable %o'er sa&ing modes* The Idle Mode sto%s the "P@
'hile allo'ing the RAM/ timer5co(nters/ serial %ort/ and interr(%t system to
contin(e f(nctioning* The Po'er6do'n mode sa&es the RAM contents b(t
freeFes the oscillator/ disabling all other chi% f(nctions (ntil the ne>t interr(%t
or hard'are reset*
SeminarsTopics.com
SeminarsTopics.com
VCC- 4(%%ly &oltage*
*ND- Gro(nd*
%ort/ each %in can sin) eight TT9 in%(ts* When 0s are 'ritten to %ort .
%ins/ the %ins can be (sed as highim%edance in%(ts* Port . can also be
config(red to be the m(lti%le>ed lo'order address5data b(s d(ring
accesses to e>ternal %rogram and data memory* In this mode/ P. has
internal %(ll(%s* Port . also recei&es the code bytes d(ring !lash
%rogramming and o(t%(ts the code bytes d(ring %rogram &erification*
E>ternal %(ll(%s are re(ired d(ring %rogram &erification*
P%rt 1- Port 0 is an B6bit bidirectional I5# %ort 'ith internal %(ll(%s*
The Port 0 o(t%(t b(ffers can sin)5so(rce fo(r TT9 in%(ts* When 0s are
'ritten to Port 0 %ins/ they are %(lled high by the internal %(ll(%s and
can be (sed as in%(ts* As in%(ts/ Port 0 %ins that are e>ternally being
%(lled lo' 'ill so(rce c(rrent +II9, beca(se of the internal %(ll(%s* In
SeminarsTopics.com
The Port 1 o(t%(t b(ffers can sin)5so(rce fo(r TT9 in%(ts* When 0s are
'ritten to Port 1 %ins/ they are %(lled high by the internal %(ll(%s and
can be (sed as in%(ts* As in%(ts/ Port 1 %ins that are e>ternally being
%(lled lo' 'ill so(rce c(rrent +II9, beca(se of the internal %(ll(%s* Port
1 emits the high6order address byte d(ring fetches from e>ternal
%rogram memory and d(ring accesses to e>ternal data memory that (se
06bit addresses +M# DPTR,* In this a%%lication/ Port 1 (ses
strong internal %(ll6(%s 'hen emitting 0s* D(ring accesses to e>ternal
data memory that (se B6bit addresses +M# RI,/ Port 1 emits the
contents of the P1 4%ecial !(nction Register* Port 1 also recei&es the
high6order address bits and some control signals d(ring !lash
%rogramming and &erification*
SeminarsTopics.com
The Port = o(t%(t b(ffers can sin)5so(rce fo(r TT9 in%(ts* When 0s are
'ritten to Port = %ins/ they are %(lled high by the internal %(ll(%s and
can be (sed as in%(ts* As in%(ts/ Port = %ins that are e>ternally being
%(lled lo' 'ill so(rce c(rrent +II9, beca(se of the %(ll(%s* Port = also
ser&es the f(nctions of &ario(s s%ecial feat(res of the ATBC4-1/ as
sho'n in the follo'ing table* Port = also recei&es some control signals
for !lash %rogramming and &erification*
RST- Reset in%(t* A high on this %in for t'o machine cycles 'hile the
oscillator is r(nning resets the de&ice* This %in dri&es igh for C
oscillator %eriods after the Watchdog times o(t* The DI4RT# bit in 4!R
A@R +address BE, can be (sed to disable this feat(re* In the defa(lt
state of bit DI4RT#/ the RE4ET IG o(t feat(re is enabled*
SeminarsTopics.com
SeminarsTopics.com
feat(res* In that case/ the reset or inacti&e &al(es of the ne' bits 'ill
al'ays be .*
T!mer 2 Reg!$ter$- "ontrol and stat(s bits are contained in registers
register* T'o %riorities can be set for each of the si> interr(%t so(rces in
the IP register*
SeminarsTopics.com
e>ternal data memory/ t'o ban)s of 06bit Data Pointer Registers are
%ro&ided DP. at 4!R address locations B16B= and DP0 at B;6B-*
:it DP4 . in 4!R A@R0 selects DP. and DP4 0 selects DP0* The
(ser sho(ld al'ays initialiFe the DP4 bit to the a%%ro%riate &al(e before
accessing the res%ecti&e Data Pointer Register*
P%0er O33 ag- The Po'er #ff !lag +P#!, is located at bit ;
+P"#N*;, in the P"#N 4!R* P#! is set to “0$ d(ring %o'er (%* It can
be set and rest (nder soft'are control and is not affected by reset*
SeminarsTopics.com
A#.1 eature$
A#.2 De$/r!pt!%n-
SeminarsTopics.com
SeminarsTopics.com
SeminarsTopics.com
*ND- Gro(nd*
P%rt 1- The Port 0 is an B6bit bi6directional I5# %ort* Port %ins P0*1 to
P0*J %ro&ide internal %(ll6(%s* P0*. and P0*0 re(ire e>ternal %(ll6(%s*
P0*. and P0*0 also ser&e as the %ositi&e in%(t +AIN., and the negati&e
in%(t +AIN0,/ res%ecti&ely/ of the on6chi% %recision analog com%arator*
The Port 0 o(t6%(t b(ffers can sin) 1. mA and can dri&e 9ED dis%lays
directly* When 0s are 'ritten to Port 0 %ins/ they can be (sed as in%(ts*
When %ins P0*1 to P0*J are (sed as in%(ts and are e>ternally %(lled lo'/
they 'ill so(rce c(rrent +II9, beca(se of the internal %(ll6(%s* Port 0
also recei&es code data d(ring !lash %rogramming and &erification*
P%rt #- Port = %ins P=*. to P=*-/ P=*J are se&en bi6directional I5# %ins
RST- Reset in%(t* All I5# %ins are reset to 0s as soon as R4T goes high*
olding the R4T %in high for t'o machine cycles 'hile the oscillator is
SeminarsTopics.com
r(nning resets the de&ice* Each machine cycle ta)es 01 oscillator or
cloc) cycles*
<TA(1- In%(t to the in&erting oscillator am%lifier and in%(t to the
O$/!at%r Chara/ter!$t!/$- The TA90 and TA91 are the in%(t and
SeminarsTopics.com
the 4%ecial !(nction Register +4!R, s%ace is sho'n in the table belo'*
Note that not all of the addresses are occ(%ied/ and (nocc(%ied
addresses may not be im%lemented on the chi%* Read accesses to these
addresses 'ill in general ret(rn random data/ and 'rite accesses 'ill
ha&e an indeterminate effect* @ser soft'are sho(ld not 'rite 0s to these
(nlisted locations/ since they may be (sed in f(t(re %rod(cts to in&o)e
SeminarsTopics.com
ne' feat(res* In that case/ the reset or inacti&e &al(es of the ne' bits
'ill al'ays be .*
A6.1 eature$-
Internally #rganiFed 01B > B +08,/ 1- > B +18,/ -01 > B +;8,/
B6byte Page +08/ 18,/ 06byte Page +;8/ B8/ 08, Write Modes /Partial
Page Writes Allo'ed
igh6reliability
B6lead OEDE" PDIP/ B6lead OEDE" 4#I"/ B6lead @ltra Thin Mini6MAP
+M9P 1>=,/ -6lead
SeminarsTopics.com
A6.2 De$/r!pt!%n-
SeminarsTopics.com
SeminarsTopics.com
P!n De$/r!pt!%n-
SERIA( C(OC) >SC(?- The 4"9 in%(t is (sed to %ositi&e edge cloc)
data into each EEPR#M de&ice and negati&e edge cloc) data o(t of
each de&ice*
SeminarsTopics.com
SERIA( DATA >SDA?- The 4DA %in is bidirectional for serial data
transfer* This %in is o%en6drain dri&en and may be 'ire6#Red 'ith any
n(mber of other o%en6drain or o%encollector de&ices*
DEVICEPA*E ADDRESSES >A2B A1B A5?- The A1/ A0 and A. %ins
are de&ice address in%(ts that are hard 'ired for the AT1;".0A and the
AT1;".1* As many as eight 08518 de&ices may be addressed on a
single b(s system +de&ice addressing is disc(ssed in detail (nder the
De&ice Addressing section,* The AT1;".; (ses the A1 and A0 in%(ts
for hard 'ire addressing and a total of fo(r ;8 de&ices may be
addressed on a single b(s system* The A. %in is a no connect and can be
connected to gro(nd* The AT1;".BA only (ses the A1 in%(t for
hard'ire addressing and a total of t'o B8 de&ices may be addressed on
a single b(s system* The A. and A0 %ins are no connects and can be
connected to gro(nd* The AT1;"0A does not (se the de&ice address
%ins/ 'hich limits the n(mber of de&ices on a single b(s to one* The A./
A0 and A1 %ins are no connects and can be connected to gro(nd*
WRITE PROTECT >WP?- The AT1;".0A5.15.;5.BA50A has a
Write Protect %in that %ro&ides hard'are data %rotection* The Write
Protect %in allo's normal Read5Write o%erations 'hen connected to
gro(nd +GND,* When the Write Protect %in is connected to ""/ the
'rite %rotection feat(re is enabled and o%erates as sho'n in Table 1*
SeminarsTopics.com
A4.1 DESCRIPTION-
The @9N1..= has a 1*J)W series base resistor for each darlington %air
for o%eration directly 'ith TT9 or - "M#4 de&ices*
A4.2 EATURES-
SeminarsTopics.com
SeminarsTopics.com
SeminarsTopics.com
SeminarsTopics.com
SeminarsTopics.com
SeminarsTopics.com