9 Hardware Connection and Hex File - Home Automation...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Home Automation, Networking, and Entertainment Lab Dept. of Computer Science and Information Engineering National Cheng Kung University, TAIWAN Chung-Ping Young 楊中平 HARDWARE CONNECTION AND INTEL HEX FILE The 8051 Microcontroller and Embedded Systems: Using Assembly and C Mazidi, Mazidi and McKinlay Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 2 HANEL PIN DESCRIPTION ¡ 8051 family members (e.g, 8751, 89C51, 89C52, DS89C4x0) ¾ Have 40 pins dedicated for various functions such as I/O, -RD, -WR, address, data, and interrupts ¾ Come in different packages, such as ¢ DIP(dual in-line package), ¢ QFP(quad flat package), and ¢ LLC(leadless chip carrier) ¾ Some companies provide a 20-pin version of the 8051 with a reduced number of I/O ports for less demanding applications Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 3 HANEL PIN DESCRIPTION (cont’) 8051/52 (DS89C4x0 AT89C51 8031) P1.0 P1.1 P1.2 P1.3 P1.4 P1.5 P1.6 P1.7 RST (RXD)P3.0 (TXD)P3.1 (-INT0)P3.2 (-INT1)P3.3 (T0)P3.4 (T1)P3.5 (-WR)P3.6 (-RD)P3.7 XTAL2 XTAL1 GND 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) 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 8051 pin diagram Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 4 HANEL PIN DESCRIPTION (cont’) 8051/52 (DS89C4x0 AT89C51 8031) P1.0 P1.1 P1.2 P1.3 P1.4 P1.5 P1.6 P1.7 RST (RXD) P3.0 (TXD) P3.1 (INT0) P3.2 (INT1) P3.3 (T0) P3.4 (T1) P3.5 (WR) P3.6 (RD) P3.7 XTAL2 XTAL1 GND 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) 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 A total of 32 pins are set aside for the four ports P0, P1, P2, P3, where each port takes 8 pins Grond-PSEN and ALE are used mainly in 8031-baded systems Vcc, GND, XTAL1, XTAL2, RST, -EA are used by all members of 8051 and 8031 families P1 P3 P2 P0 Provides +5V supply voltage to the chip Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 5 HANEL PIN DESCRIPTION XTAL1 and XTAL2 ¡ The 8051 has an on-chip oscillator but requires an external clock to run it ¾ A quartz crystal oscillator is connected to inputs XTAL1 (pin19) and XTAL2 (pin18) ¢ The quartz crystal oscillator also needs two capacitors of 30 pF value XTAL2 XTAL1 GND C2 C1 30pF 30pF P1.0 P1.1 P1.2 P1.3 P1.4 P1.5 P1.6 P1.7 RST (RXD)P3.0 (TXD)P3.1 (INT0)P3.2 (INT1)P3.3 (T0)P3.4 (T1)P3.5 (WR)P3.6 (RD)P3.7 XTAL2 XTAL1 GND 8051 (8031) Vcc P0.0(AD0) P0.1(AD1) P0.2(AD2) P0.3(AD3) P0.4(AD4) P0.5(AD5) P0.6(AD6)P0....
View Full Document

{[ snackBarMessage ]}

Page1 / 22

9 Hardware Connection and Hex File - Home Automation...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online