8051 micro controller course
TRANSCRIPT
8051 MICROCONTROLLER COURSE Objective: 1. Familiarization with different types of Microcontroller 2. To know 8051 microcontroller in detail 3. Programming and Interfacing 8051 microcontroller Prerequisites: Motivation, Patience and Determination Allocated Time: Duration: 2 month Periods/week: 5days Apparatus Required
1. Personal computer 2. 8052 Kit and Manual 3. Software
a. HyperTerminal b. Reads51 c. SDCC d.
Course: 1. Introduction
a. General Overview Of Microcontroller i. General Block Diagram
b. Difference Between Microcontroller and Microprocessor c. Different Kind of Architectures with Examples
i. RISC ii. CISC iii. Harvard iv. Von – Neumann
d. Address Decoding
i. Definition ii. Importance of Address Decoding iii. Types of Address Decoding iv. Examples
e. Compiler, Assembler, Linker
ASSIGNMENT
1. List different kinds of Micro Controller (name, company, compiler, assembler, WebPages, no of bits, peripherals, Architecture)
2. Address decoding Problems
2. 8051 Architecture
a. Features of 8051 b. 8051 Block diagram c. Pin Diagram d. Oscillator e. Reset Circuit f. Machine Cycle diagram g. Registers Description
i. A and B ii. Program counter iii. Data Pointer iv. PSW v. Register Banking
h. Ram structure LAB
1. Block Diagram of 8052 kit 2. Introduction to HyperTerminal, SDCC, READS51, TSEMU 3. Practice commands using a known hex file.
a. Download command b. Single Step c. Memory Editing Command
4. Address decoding in 8052 kit
3. 8051 Assembly and C Language Programming
a. Assembly i. Addressing Modes ii. Logical Operations iii. Bit Label Operations iv. Arithmetic Operations v. Rotate And Swap operation vi. Jump instructions vii. Call Instructions
b. Basic Review Of C i. Variable Declaration
ii. If –else statement, switch statement iii. For/while/do-while iv. Structure and Union v. Functions vi. Pointer and Arrays
LAB Lab should be done using emulator • Copy the data in internal RAM location 12h to 15h to internal RAM
Locations 20 to 30 h • Copy the data in internal RAM location 12h to 15 to external RAM
Location 20h to 30h • Copy program bytes 0100h to 0102h to internal RAM locations 20h
to 22h • …………………..
4. Interfacing Led and switches
a. The bi-directional ports b. 8051 ports description c. Electrical Characteristics
i. VOH, VOL, VIH, VIL d. Internal Block Diagram of PORT
i. Block Diagram ii. Description
e. Interfacing LED i. Circuit Diagram ii. Calculation iii. Graph
f. Interfacing Switches i. Circuit Diagram ii. Calculation iii. Debounce
g. Interfacing Array of Switches i. Circuit Diagram ii. Calculation iii. Various Configuration
LAB:
• blinky • Scrolling • Switch Controlled LED
5. 8255 Interfacing a. Block Diagram b. Internal structure c. Modes of 8255 d. Reset Condition
e. 8051 and 8255 interfacing Techniques
LAB: • I/0 modes problems • BSR mode problems
6. Interrupt
a. Definitions b. Types of Interrupt Request
i. Vectored Interrupts ii. Non Vectored Interrupts
c. 8051 interrupt related registered i. Priority ii. IE, IP iii. Vectored Addresses iv. Writing ISR
LAB:
• Examples of EX0, EX1
7. Asynchronous Communication
a. Definition, Importance and Usages b. BAUD Rate c. SDU d. RS232 standard e. MAX232 configuration f. Serial registers of 8051 g. Modes of serial transmission h. Baud Rate Calculation i. Polling based serial Transmission j. Interrupt based serial Transmission
LAB: • Examples of Serial Transmission (polling and Interrupt Based) • “Hello World” Transmission • Software Loop Back
8. Synchronous Communication
a. Definition, Importance and Usage b. I2C communication protocol
i. START Condition ii. STOP Condition iii. DEVICE, ADDRESS etc
LAB: • Interfacing Serial EEPROM (AT24C08), RTC
9. Timer /Counter a. Difference between Timer and Counter b. Timer /Counter Registers c. Reload Value calculation d. Modes of Timer/Counter e. Timer/Counter using Polling and Interrupt f. Application of Timer/Counter
LAB:
• Blinky in Timer Mode • Pulse Counter
10. Interfacing Output Devices (Optical Devices)
a. Seven Segment Display i. Basic Principle ii. Types of Seven Segment System iii. Register Calculation iv. Interfacing Techniques v. Programming Techniques
b. Dot Matrix display i. Basic Principle ii. Interfacing Techniques iii. Programming Techniques
c. LCD i. Basic Principle ii. Interfacing Techniques iii. Programming Techniques
LAB:
• 0 to 99 counter in 7 segment Display • Hello world in LCD
11. Interfacing ADC/DAC a. Definition b. Types of ADC/DAC c. Interfacing Techniques
LAB: • Ramp Generator • Digital Data storage
12. Memory Interfacing a. Types of Memory b. Problem in Memory Interfacing c. RAM interfacing in 8051 d. ROM interfacing in 8051
13. Interfacing Inductive Devices 14. ……………………………………….
PROJECT 1.Simple Calculator (LCD, Switch Matrix) 2.Simple Calculator (Seven segment Display, Switch Matrix) 3.Voltmeter (0 -5) (ADC, LCD) 4.Voltmeter (0 -5) (ADC, LCD) 5.Pulse generator (DAC)