Professional Documents
Culture Documents
Rongmei
, Instrumentation & ontrol !ngg.
!le"tri"al !ngg. #epartment
$ITTTR ,han%igarh
&ur 'orl% is (ull o( integrate% "ir"uits.
)e "an (in% se*eral o( them in "omputers. +or
e,ample, mi"ropro"essor.
The mi"ropro"essor is an integrate% "ir"uit that
pro"esses all (un"tions in the "omputer.
But a mi"ropro"essor "an not 'ork alone .
It re-uires some e,ternal peripherals su"h as
memory.RAM & R&M/, Input0&utput ports ,
Timers, et".
But the a%%ition o( e,ternal RAM,R&M, Timers
an% I0& ports makes these systems 1ulkier an%
mu"h more e,pansi*e.
)hi"h (or"e% to engineers to %e*ol*e a spe"ial
type o( "hip ha*ing P2 .mi"ropro"essor/ 'ith a
(i,e% amount o( memory, I0& ports an% Timers.
3o 'e %o not nee% to a%% any e,ternal memory,
I0& port an% timer to it.
)hi"h re%u"es system "ost an% 'eight.
+ree3"ale 84<77.4-1it/
Toshi1a T>3-4?5
PI78,,, ha% :-
&ne Timer
&ne A#
PI75,,,
PI7:,,,
PI7;,,,
PI78,,,
PI74,,,
!
''
2P+/OSC1/CLKI(
2P//OSC,
2P./MCLR/!
PP
!
SS
2P,/ICSP'AT
2P1/ICSPCLK
2PO/ICSPT*CKI
P
I
C
1
,
#
+
*
/
+
*
3
Sl. Pin. Descriptions
01 V
DD
Power Supply
02 OSC1, Osill!tor Pi"
OSC2
0# V
PP
Pro$r!%%i"$ Volt!$e I"put
04 &P0 to &P' &e"er!l Purpose i"put(
output pi"s )*i+iretio"!l
e,ept &P#-
:7
Sl. Pin. Descriptions
0' CSPD./ I"-iruit Seri!l Pro$r!%%i"$
D!t! pi"
06 CSPC01 I"-iruit Seri!l Pro$r!%%i"$
lo2 pi"
07 V
SS
&rou"+
08 3C04 3!ster le!r
05 C01I6 7,ter"!l Clo2 i"put
::
:9
Pin
No
Pin
Name
*u88er
/ype
Descriptions
01 4.2 //0 *i+iretio"!l i(o port
02 4.# //0 *i+iretio"!l i(o port
0# 4.4(
/OC11
//0 C!" !lso be selete+ to be
t9e lo2 i"put to t9e /34O
/i%er ( Cou"ter: Output is
ope" +r!i" type:
:;
:6
Pin
No
Pin
Name
*u88er
/ype
Descriptions
04 3C04 S/ 3!ster Cle!r )4eset- i"put(
Pro$r!%%i"$ Volt!$e i"put:
/9is pi" is !" !ti;elow
47S7/ to t9e +e;ie:
0' V
SS
------- &rou"+ re8ere"e 8or lo$i
!"+ I"put ( Output pi"s
:8
Pin
No
Pin
Name
*u88er
/ype
Descriptions
06 4*O(I6/ //0(S/ *i+iretio"!l i(o port: Port *
!" be so8tw!re
pro$r!%%e+ 8or i"ter"!l
wee2 pull-up o" !ll i"put:
4*0(I6/ !" !lso be
selete+ !s !" e,ter"!l
i"terrupt pi":
:?
Pin
No
Pin
Name
*u88er
/ype
Descriptions
07 4*1 //0 *i+iretio"!l i(o port:
08 4*2 //0 *i+iretio"!l i(o port:
05 4*# //0 *i+iretio"!l i(o port:
10 4*4 //0 I"terrupt-o"-9!"$e pi"
11 4*' //0 I"terrupt-o"-9!"$e pi"
:4
Pin
No
Pin
Name
*u88er
/ype
Descriptions
12 4*6 //0(S/ I"terrupt-o"-9!"$e pi"
Seri!l Pro$r!%%i"$ lo2
1# 4*7 //0(S/ I"terrupt-o"-9!"$e pi"
Seri!l Pro$r!%%i"$ +!t!
14 V
DD
------- Positi;e supply 8or lo$i
!"+ I"put ( Output pi"s
:@
Pin
No
Pin
Name
*u88er
/ype
Descriptions
1' OSC2(
C01O</
-------- Osill!tor Cryst!l output ,
o""et to Cryst!l or
4eso"!tor i" ryst!l
osill!tor %o+e: I" 4C
%o+e, OSC2 pi" outputs
C01O</, w9i9 9!s = t9e
8re>ue"y o8 OSC1
The only 'ay 'e "an stop the )#T, (rom resetting the
)#T 1a"k to 55 throughout the program 'hi"h is
%one 1y the pro"essor.
It is an 4 1it register.
The @
th
1it is "opie% in the arry 1it.
6?
PI 78+4??
77 D Bank 9 .745h-7++h/
75 D Bank : .755h-7?+h/
57 D Bank 7 .45h-++h/
55 D Bank 5 .55h-?+h/
8: PI 78+4??
89 PI 78+4??
P&RT A
P&RT B
P&RT
P&RT #
P&RT !
84
A PI mi"ro"ontroller is an amaAingly po'er(ul (ully
(eature% pro"essor 'ith internal RAM, !!PR&M +>A3<
memory an% peripherals.
)e "an use it to "ontrol our proKe"ts .or 1uil% proKe"ts
aroun% it/. 3o it sa*es us (rom 1uil%ing a "ir"uit that
has separate e,ternalRAM, R&M an% peripheral "hips.
In (a"t PI has an amaAing num1er o( internal peripherals.
These are %i*i%e% in se*eral "ategories:
Communication peripherals8
D
R3:9:0R3;46
D
3PI
D
23B
D
Ra%io +re-uen"y
D
TP0IP
D
!thernet
D
A$. ontroller Area $et'ork/
D
>I$. >o"al Inter"onne"t $et'ork/
apture0ompare
ounters0Timers
)at"h%og Timers
'ispla7 Peripherals8
>!# %ri*ers
># %ri*ers
Analog Peripherals8
Bro'n-&ut #ete"tors
Temperature sensors
&s"illators
=oltage re(eren"es
#-A on*erters
=oltage Regulators
Mainly 9 Interrupt 3our"es :
Consumer le9el
Motion %ete"tors
Remote "ontrols
Ri"e "ookers
Battery management
3moke %ete"tors
Toys
In Communication
Telephone han%set
Mi"rophone "ontrol
2ART Repla"ements
In&ustrial applications
2tility metering
Porta1le instruments
#ata a"-uisition
Automoti9e applications
>ight #immers
Intelligent sensors
Pro,imity %ete"tors
Keyless entry
#ash ontrollers
3eat ontrollers
In Appliances
3mart relay
#elay Timers
Temperature 3ensors
T<A$K3