You are on page 1of 7

11 slaid magistrali

.
,
()
.
()
.
()
, / , .
( ) (
).
:
,
, / /;
, /
;
12 slaid
-
; /
; ; .;
( )
/
/ .
/
.

/ .
/ ()
.
13 slaid

- .
Intel, IN OUT ,
/
/ (I/O).
/ :
,

, I/O.
.

14 slaid temata za izpita

15

, .
,

.
,
, , .
.

, ..
.
16
, :
;
();
();
;
..
() -
.
,
.
, ,
() .

17
:
(8, 16 32-), ;
(8, 16 32-),
;
:
RD () WR () ,
;
clock () ,

18

reset ( ),
( )
.
A, B C
latch.
latch.
, , ,
.

19
(program counter) - latch
1 .

, ,
.
latch
, .
20
, "3-State" .0, .1
. (
)
.
(Instruction register)
(instruction decoder) ,
.
21
, ,
:
A ;
B ;
C ;
;
;

;
22
1;
;
;
( ) ;
-;
-;
(RD);
(WR);
.
42instrukcii format

14- ( , ..
- )
.
- 6 ,
8 , .
d,
- RAM , .

43
- f - , d
(, )
d=1 - f, d=0 W.
- (1 )
-, d,
- f .
44
- b ,
, f , .
k 8 11-
.
45
,
8- ().
(CALL) (GOTO),
11 . ,
( 0000h 03FFh)
167
()
.

0000h, (Reset Vector).
- SFR
- , .
168
SFR .
POR
.
- POR, MCLR
MCLR SLEEP.
, - ,
.
-
170
TO PD STATUS 1
, .
.

172

, .., .
, .

MCLR .
PWRT
72 mS POR.
PWRTE.
145 taimeri
0

.
0 8- - TMR0, 0 255
.
255, - .
0 ,
.

146
0 :
;
/;
8- e (Prescaler)
;
;
FFh 00h;
.
T0CS (OPTION_REG<5>).
0, ( - TMR0)
( )
.
157 taimer detail
WDT (
),
.
WDT
( CLRWDT), , ..
WDT, ,
.
SLEEP, WDT
.

WDT CLRWDT SLEEP ( ,


WDT).
158
( ).
SLEEP,
( OSC1/CLKIN OSC2/ CLKOUT)
.
0,5 mA 2V
2mA . 5V.
5V 4MHz
1000 - SLEEP.
,
SLEEP,
SLEEP

You might also like