microprocessor week 2: ch2 circuit and operation

17
Chapter 2: Circuit and System Operation

Upload: arkhom-jodtang

Post on 12-Apr-2017

157 views

Category:

Engineering


3 download

TRANSCRIPT

Page 1: Microprocessor Week 2: CH2 Circuit and Operation

Chapter 2: Circuit and System Operation

Page 2: Microprocessor Week 2: CH2 Circuit and Operation

MCS51 System Circuit

Page 3: Microprocessor Week 2: CH2 Circuit and Operation

• Pin configuration– Power– Ground– System Clock (18, 19 Crystal pin)

• Operation Sample Add A, R1• Machine Cycle is package of clock signal

– Reset– External Access (/EA)

• Port• Schematic• Machine Cycle

Page 4: Microprocessor Week 2: CH2 Circuit and Operation

Pin 40: Power SupplyHandout Chapter 2

Page 5: Microprocessor Week 2: CH2 Circuit and Operation

Pin 20: GroundHandout Chapter 2

Page 6: Microprocessor Week 2: CH2 Circuit and Operation

Pin 18, 19: CrystalHandout Chapter 2

Page 7: Microprocessor Week 2: CH2 Circuit and Operation

Pin 31: External AccessHandout Chapter 2

Page 8: Microprocessor Week 2: CH2 Circuit and Operation

Pin 9: ResetHandout Chapter 2

Page 9: Microprocessor Week 2: CH2 Circuit and Operation

Port

• 32 I/O Lines• Bidirectional Property• Bit-Addressable port Property• Pulled-up Resister pin (Port 1, 2 and 3)• Open collector pin

Page 10: Microprocessor Week 2: CH2 Circuit and Operation

Port 0

• Handout Chapter 2

Page 11: Microprocessor Week 2: CH2 Circuit and Operation

Port 1

• Handout Chapter 2

Page 12: Microprocessor Week 2: CH2 Circuit and Operation

Port 2

• Handout Chapter 2

Page 13: Microprocessor Week 2: CH2 Circuit and Operation

Port 3

• Handout Chapter 2

Page 14: Microprocessor Week 2: CH2 Circuit and Operation

Basic Output Device

• LED

https://en.wikipedia.org/wiki/Light-emitting_diode

Page 15: Microprocessor Week 2: CH2 Circuit and Operation

Basic Input Device

• Switch

http://www.digibay.in/158-momentary-tactile-dip-push-button-switch

Page 16: Microprocessor Week 2: CH2 Circuit and Operation

MCS51 System Circuit

Page 17: Microprocessor Week 2: CH2 Circuit and Operation

Homework 1• Draw schematic of MCS51 System circuit with following specification.

– Reset Switch– Connect with 8 Display LEDs– Connect with 4 Push button switchesCheck list: Identify Component ID for every devices in the diagram (such as U1, SW1,

SW2, LED1, LED2) Identify all used Pin Number Identify all used Pin Name Specify Component's value Specify Voltage of Power Supply

Note: Submit Homework BEFORE the next class start.