2.1 ????????? Intel MCS-51 - PowerPoint PPT Presentation

1 / 36
About This Presentation
Title:

2.1 ????????? Intel MCS-51

Description:

Title: Author: Inna Last modified by: Lyulicheva Created Date: 6/28/2006 4:47:27 AM Document presentation format – PowerPoint PPT presentation

Number of Views:88
Avg rating:3.0/5.0
Slides: 37
Provided by: Inna3
Category:
Tags: mcs | intel

less

Transcript and Presenter's Notes

Title: 2.1 ????????? Intel MCS-51


1
?????? 5
  • ???? 2 ????????????? ????????????????
  • 2.1 ????????? Intel MCS-51

?????? ???????? ?.?.
2
??????????
  • ????? ????? ? ???????? ?????????? ??
  • ???????? ???????? ??????? ??????????? 8051
  • ????? ??????
  • ???? ????????? ??????????? ???????
  • ??????? ??????

3
8-????????? ??
4
??????? ?????????? 8-????????? ??
5
??????????? ????? ????????? ?????????? ??
6
1. ????????? Intel MCS-51
  • ??????????????? ??????????????? 8051 ????????
    ?????????????? ?? ????????? Intel MCS-51, ???????
    ? ????????? ????? ???????? ?????????? ??????? ??
    ?????????? ?????????????? ? ?????????? ????????,
    ??????? ????????? ??? ???????????.
  • ?? ??????????? ???? ?????????? ?????? 200
    ??????????? ?????????????????, ???????
    ??????????? ????? 20 ??????????. ?????????
    ??????????????? ?????? MCS-51 ???????? ?????
    Philips, Siemens, Intel, Atmel, Dallas
    Semiconductor, Temic Semiconductor, Oki, AMD,
    Gold Star, Winbond ? ??? ??????.

7
Intel MCS-51
  • ??????????? 8051 ?????????? ? ????? ???????????
    ??????? ????????????? ???????????? ????????????,
    ???????? MCS- ?????????? (Mixed Signal
    Microcontroller). ????????, Analog Devices,
    Burr-brown, Texas Instruments ? ??????.
  • ????????????? ??????????? MCS-51 ???????? ?????
    Intel, ??????? ? 1980 ???? ?????????
    ??????????????? 8051 ?? ???? n-??? ??????????, ?
    ????????? ???? ???????????? 128 ?????
    ????????????, ??? ? 4 ???? ????????? ??????????
    ???????????? ? 16- ????????? ??????????????? 8086.

8
Intel MCS-51
  • ???????? ??????????? ??????? ?????? 8051
  • n-??? ??????????
  • 8031AH (KP1816BE31) - ??? ??????????? ??????
    ????????
  • 8051?? ( KP1816BE51)
  • 8751H (KM1816BE751) EPROM (? ????????????????
    ????????? ??????????)
  • ???? ??????????
  • 80C31 (KP1830BE31)
  • 80C51 (KP1830BE51)
  • 87C751(KM1830BE751) EPROM.

9
??????????? ????? ??
  • ?????? ??????????? ????? ????????????????
    ???????? ?????????? ??????????????? 8- ?????????
    ????, ??????? ????????? ????? ????? ???????? ????
    ? ?????????? ????????????????
  • ?????????? ?????????? (CU),
  • ??????????-?????????? ?????????? (ALU),
  • ??????????? ?????? ???????? (??, RPM),
  • ??????????? ?????? ?????? (??, RDM),
  • ???? ????????? ??????????? ???????, ? ???????
    ?????? ???????????? ????? ?????/??????, ? ?????
    ??????????????? ??????? ? ???????????????? ????.

10
(No Transcript)
11
????? MCS-51
  • ??? 16-????????? ????????-???????
  • ?????? 8-????????? ????? ?????/??????, ??????
    ??? ??????? ????? ????????? ?? ???? ??? ?????
  • ????????? ????????????????? ?????
  • ????????? ????????? ?????????? ? ?????
    ??????????? ????????, ???? ?? ??????? ???????
  • ?????????? ???????? ?????????

12
Intel MCS-51
  • 8-????????? ???
  • ?????????? ?????????? ?????????
  • ???????? ??????? ?????? ? ??????????? ??????????
    ? ?????? ???????? ? ?????? ??????
  • ???????? ????????? ??????? ??????, ??????????? ?
    ??????????? ??? ?????? ? ? ???? ?????????
    ??????????? ????????

13
?????????? ??????? ??51
  • RST - ?????? ?????? ??????
  • XTAL1. XTAL2 - ?????? ??? ??????????? ??????????
    ??????????.
  • Ucc, Vcc( GND) ??????? ? ?????.
  • PSEN - ?????????? ??????? ?????? ????????.
  • ALE - ???????? ?????? ?????? ?????? (??? ???
    ?????? ??????).
  • ????????? (?0-?3, ??) ???????? ? ????????? ?
    ??1 ? ??????? ???????.

14
?????? MCS-51
  • ?????????? ?????? ?? ??????? ??
  • ??????? ?????? ????????? ?? 8 ????????? ? ??????
  • ??????????? ?????? ???????? 4??8
  • ??????????? ?????? ?????? (???) 128 ????
    (00-7fh), ??????? ???????????? ??????
    ?????????? ??? ????????? ?? ????????? ?? 3 ??
    ???? - ?????????, ????? ? ????????? ????
  • ???????????? ????????? ??????????? ??????? 128
    ???? (80h-ffh)

15
?????? MCS-51
  • ?? 8051 ????? ??????????? ???????????. ???????
    ??? ??????????? ?????? ???????? (??) ? ??????
    ?????? (??), ????????? ? ????????? ?????????,
    ????? ?????? ????????? ?????????, ???????? ???
    ??????????? ?????? ???????? ? ????????? ??????
    ???????.

16
??????????? ?????? ??????
17
??????????? ?????? ???????? 8051
  • ?????????? (???????????) ?????? ???????? ?????
    ??????? 4 ????? ? ????????????? ??? ????????
    ??????, ????????, ??????????? ???? ?????????????,
    ?????? ????????????? ? ?.?.
  • ??????????? ?????? ???????? ????? 12- ?????? ????
    ??????, ?????????? ??????? ??????????? ?????????
    ?????? (PC), ? ????? ????????? - ??????????
    ?????? (DPTR). ????????? ????????? ???????
    ???????? ???????? ??? ????????? ?????????, ???
    ???????????? ? ???????? ?????? ? ?????????.

18
?????? ?????????? ? ??
  • ??????? ?????????? ???????? 5 ??????????
    ?????????? ? ?????????????? ?????????, ?? ???????
    2 ??????? (????? INT0, INT1) ? 3 ??????????
    (??????? 0 ? 1, ???????????????? ????) ?????????.

0030 Free memory
0023 SINT
001? ?1
0013 Int1
000B T0
0003 Int0
0000 Reset
19
??????? ??????
  • ??? ????????????? ???????????? ????? ?????????
    ?????? ???????? ?????????? ???????? ???.
  • ?????? ? ??????????? ??? ???????? ???
    ???????????? ????????? ??????? ?? ?????? ??
    (External Access) EA Ucc (?????????? ???????)
    ?????? ? ??????????? ??? EA 0 (?????????
    ?????) ?????? ? ???????? ???.
  • ??????? ?????? ???????? ? ?????? ????? ??????????
    ?? 64 ????? ? ???????????? ? ??????? ?????? P0 ?
    P2.

20
??????????? ??????? ?????? ????????
21
???? ????????? ??????????? ???????
  • ???????? ??????????? ??????? - ??? ??????????????
    ??????????, ??????? ???????????? ? ????????
    ???????????? ?????????? ?????? ??????.
  • ? ????????? ?51-??????????? ?????????????????
    ?????? ?????????????? ????????? ???????????.
    ???????????????? ??????????? ????? ?????
    ??????????? ???????????? ??????, ????????????????
    ??????, ????????.
  • ???????? ??????????? ??????? (??? ?????
    ???????????? ????????? x51) ? ????????? ??
    ??????? ? ???????? ???????????? SFR ???????????
    ??? ????????? ?? ????????? ??????.

22
???? ????????? ??????????? ??????? (????. ??????
8051)
23
?????????????? ??????? ????? ?3
24
??????? ?????? ????????????? ????????????????
  • ??????? ?????? ?????? ?????????? ???????????????
  • ????????? ??????,
  • ???????? ?????? (????? ???????????!)
  • ? ?????? ?????????.
  • ??????? ?????? ??????? ?? ??????????? ??, ????
    ?????????, ? ????? ?? ??????????? ??????????? ??.

25
?????????????? ??????? ?????? ?? 8051
  • ?????? ?????? ??
  • ???????? ??????
  • ??????????????
  • ??????????
  • ???????? ??????????
  • ?????? ? ??????
  • ??????? ??????
  • 1,2,3 ?????
  • ???? ????????? (10 ?????!)

26
??????? ??????
  • ????? ???????? ??????? (? ????????? ??????????
    ??? ?????? ? ????????????) ???????? 1 ????.
  • ??????? 1? ??????
  • NOP, INC A, RR A, MOV A, _at_Ro
  • ??????? ?????? 2? ??????? ??????, ??? ???? 1?
    ??? ????????, ? ?????? ??? 8-?????? ????? ??? 8
    ?????? ??????, ?? ???? ? ???????????? ???????
    AJMP addr11 ???, ??????? ???????? ?? ????
  • 5 ???!!

27
??????? ??????
28
??????? ??????
  • ??????? 3? ??????? ??????
  • LJMP ad16 - ??????? 2-????? ????? ????????.
  • CJNE R1,10,rel - ???, 8 ??? ??????, 8 ???
    ?????? ????????.

29
??????? ??????
30
???? ?????????
  • ??????? RR A, DAA 10-????. ????????? ?
  • CLR C ????? ???? ???????? (11000011).
  • ?????? ? ?????? ??? addr8
  • ?????? MOV R0, 40h ADD R1, R2
  • ?????? ? ????? ??? bit8
  • ?????? SETB P0.0, ORL R0.0, C
  • ???????????????? ??? data8
  • ?????? MOV R0, 40h ADD R1, 40h
  • ????????? ???????? ???? ????! - ???
  • ?????? MOV _at_R0, A MOVX _at_DPTR, 5
  • ???????? PUSH R0, ACALL, RET

31
?????? ??????
  • 1. ???????? ?????? MOV op1, 10 Rn _at_Ri Pi
    MOVX A,_at_DPTR XCH op1, op2 PUSH op1, POP op1.
    SWAP A ????? ?????????.
  • 2. ?????????????? ??????? INC ?? DEC ?? ADD
    op1, 10 Rn _at_Ri Pi SUB op1, op2 MUL AB DIV
    AB
  • 3. ?????????? ??????? ? ??????
  • ANL op1, op2 ORL op1, op2 XRL op1, op2
  • RL A,RR A, RLC A, RRC A ??????????? ?????? ?????
    ? ?????? ? ????? ???????.

32
?????? ??????
  • 4. ??????? ???????? ??????????
  • AJMP ad11 LJMP ad16 SJMP rel(-???7)
  • JZ/JNZ rel J?/JN? rel
  • JB/JNB rel DJNZ R1,rel
  • CJNE A,P0,rel
  • CJNE R1,10,rel CZNE r1,0111011b,rel
  • ACALL ad11 LCALL ad16, RET,RETI

33
?????? ??????
  • 5. ??????? ?????? ? ?????? ??? ??? ????? ??????
    ? ?????
  • CLR bit, SETB bit ???????? ??? ??????????
  • CPL bit ?????????????
  • ANL C,bit ORL C,bit XRL C,bit ?????. ????
  • MOV C,bit, MOV bit,C ???????? ?????????
  • ?? ? ???????? ?????????? ?? ???? JB/JNB.

34
?????? ???????? ?? ???? ????????? ??????
  • Mov R1, 20h ?????? ???. ????? ???????? ????????
    ?? ?????? 20?
  • M0 Mov R2, FFh
  • Djnz R2, ??????? ?? ????
  • Djnz R1, M0

35
???????????? ???????? ????????? ? ????? ?0
  • Mov R1, 50
  • IMP0 Setb P0.0
  • NOP
  • NOP
  • CLR P0.0
  • NOP
  • Djnz R1, IMP0

36
??????? ??? ????????????
  • ??? ????? ??, ????? ????? ? ???? ???????
  • ????? ????? ????????? ??????? 8051?
  • ???????? ????????? ????? ????????? ????. ???????
    ?? 8051.
  • ??????????? ?????? ?????? ?? 8051.
  • ????????? ?? 2 ??????? 1,2 ? 3 ??????? ??????.
  • ????????? ???????? ????????? ???????? ?? ????
    ??????.
Write a Comment
User Comments (0)
About PowerShow.com