1346 A Single Chip Microcomputer

4,563 views

Published on

visit: www.techbed.blogspot.com

Published in: Education
0 Comments
4 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
4,563
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
81
Comments
0
Likes
4
Embeds 0
No embeds

No notes for slide

1346 A Single Chip Microcomputer

  1. 1. Study of 8051 – A Single Chip Micro Computer
  2. 2. A Micro controller is a ‘ complete computer ’ on a single chip… CPU / Microprocessor Memory / Hard Disk/RAM I/O Ports / I/O Devices
  3. 3. Micro controller Vs Micro processor 8051 ROM/27C512 RAM/6264 I/O Ports/8255 8085
  4. 4. Micro controller Vs Micro processor <ul><li>A complete computer </li></ul><ul><li>RAM, ROM, I/O ports on chip itself </li></ul><ul><li>Application specific </li></ul><ul><li>Fixed amount of ROM,RAM,I/O ports available </li></ul><ul><li>Cheap and takes up less space </li></ul><ul><li>A CPU only </li></ul><ul><li>RAM, ROM, I/O ports are provided externally </li></ul><ul><li>General purpose use </li></ul><ul><li>Flexibility to choose ROM,RAM,I/O ports to be connected </li></ul><ul><li>Costly & Bulky as compared to a micro controller </li></ul>
  5. 5. Micro controller & Embedded Processors <ul><li>Embedded Processors are used for complex systems that require high performance and processing capability. For e.g. Air Traffic monitoring and control, communication systems on spacecrafts etc. </li></ul>
  6. 6. Overview of 8051 family 6 8 6 Interrupts 1 1 1 Serial Port 2 3 2 Timers 32 32 32 I/O pins 128 bytes 256 bytes 128 bytes RAM 0K 8K 4K ROM 8031 8052 8051 Feature
  7. 7. Block Diagram of 8051 <ul><li>8-bit Controller </li></ul><ul><li>Data Bus (8 bits) </li></ul><ul><li>Address Bus (16-bits) </li></ul><ul><li>5V Power Supply </li></ul><ul><li>0 – 24MHz </li></ul>SERIAL PORT TIMERS I/O PORTS ROM RAM CPU
  8. 8. Architecture of 8051 CPU On-chip RAM (128 bytes) On-chip ROM for program code(4K) 4 I/O Ports Timer 0 Serial Port OSC External interrupts Timer 1 Timer/Counter Bus Control TxD RxD P0 P1 P2 P3 Address/Data Counter Inputs Interrupt Control
  9. 9. Pin Diagram of 8051 Port 1 Port 3 Port 2 Port 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 P1.0 P1.1 P1.2 P1.3 P1.4 P1.5 P1.6 P1.7 RST (RXD)P3.0 (TXD)P3.1 (T0)P3.4 (T1)P3.5 XTAL2 XTAL1 GND (INT0)P3.2 (INT1)P3.3 (RD)P3.7 (WR)P3.6 Vcc P0.0(AD0) P0.1(AD1) P0.2(AD2) P0.3(AD3) P0.4(AD4) P0.5(AD5) P0.6(AD6) P0.7(AD7) EA/VPP ALE/PROG PSEN P2.7(A15) P2.6(A14) P2.5(A13) P2.4(A12) P2.3(A11) P2.2(A10) P2.1(A9) P2.0(A8) 8051 (8031)
  10. 10. Application Development using 8051 (Development Tools) <ul><li>Keil Software </li></ul><ul><li>Universal Programmer/ Flash Magic </li></ul><ul><li>Soldering kit </li></ul><ul><li>Multi-meter </li></ul><ul><li>CAD Tools (ORCAD etc.) </li></ul>
  11. 11. Application Development using 8051 (Development Steps) <ul><li>Connecting Power Supply and Crystal </li></ul><ul><li>Connecting RESET circuit </li></ul><ul><li>I/O interfacing with 8051 </li></ul><ul><li>Writing Application Software </li></ul><ul><li>Burning the program in 8051 ROM </li></ul>
  12. 12. Connecting Power Supply and Crystal AT89C51
  13. 13. Connecting RESET circuit
  14. 14. Writing application Software A LED Blinking program ORG 0H START: SETB P3.7 SETB P3.6 ACALL DELAY CLR P3.7 CLR P3.6 ACALL DELAY JMP START DELAY: MOV R5, #11 H3: MOV R4, #248 H2: MOV R3, #255 H1: DJNZ R3, H1 DJNZ R4, H2 DJNZ R5, H3 RET END
  15. 15. Burning the program in 8051 ROM <ul><li>Use a Universal Programmer to program 8051 </li></ul><ul><li>Use a PC based programming software like Flash Magic </li></ul>

×