21.07.2013 Views

Introduction to Microcontrollers Lab Manual - Microchip

Introduction to Microcontrollers Lab Manual - Microchip

Introduction to Microcontrollers Lab Manual - Microchip

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

INTRODUCTION TO MICROCONTROLLERS<br />

LAB MANUAL<br />

Table of Contents<br />

<strong>Lab</strong> 0. <strong>Introduction</strong> <strong>to</strong> <strong>Microcontrollers</strong><br />

0.1 Objective ........................................................................................................ 7<br />

0.2 Pre-<strong>Lab</strong> ........................................................................................................... 7<br />

0.3 The <strong>Lab</strong> .......................................................................................................... 9<br />

<strong>Lab</strong> 1. Timers<br />

1.1 Objective ...................................................................................................... 13<br />

1.2 Pre-<strong>Lab</strong> ......................................................................................................... 13<br />

<strong>Lab</strong> 2. Interrupts<br />

2.1 Interrupts ...................................................................................................... 19<br />

2.2 Pre-<strong>Lab</strong> ......................................................................................................... 19<br />

2.3 The <strong>Lab</strong> ........................................................................................................ 23<br />

<strong>Lab</strong> 3. UART<br />

3.1 Objective ...................................................................................................... 25<br />

3.2 Pre-<strong>Lab</strong> ......................................................................................................... 25<br />

3.3 The <strong>Lab</strong> ........................................................................................................ 30<br />

<strong>Lab</strong> 4. Watchdog Timer (WDT)<br />

4.1 Objective ...................................................................................................... 33<br />

4.2 Pre-<strong>Lab</strong> ......................................................................................................... 33<br />

4.3 The <strong>Lab</strong> ........................................................................................................ 35<br />

<strong>Lab</strong> 5. Compara<strong>to</strong>r<br />

5.1 Objective ...................................................................................................... 37<br />

5.2 Pre-<strong>Lab</strong> ......................................................................................................... 37<br />

5.3 The <strong>Lab</strong> ........................................................................................................ 40<br />

<strong>Lab</strong> 6. Analog-<strong>to</strong>-Digital Converter<br />

6.1 Objective ...................................................................................................... 43<br />

6.2 Pre-<strong>Lab</strong> ......................................................................................................... 43<br />

6.3 The <strong>Lab</strong> ........................................................................................................ 47<br />

<strong>Lab</strong> 7. Pulse-Width Modula<strong>to</strong>r (PWM)<br />

7.1 Objective ...................................................................................................... 51<br />

7.2 Pre-<strong>Lab</strong> ......................................................................................................... 51<br />

7.3 The <strong>Lab</strong> ........................................................................................................ 54<br />

<strong>Lab</strong> 8. External Memory<br />

8.1 Objective ...................................................................................................... 57<br />

8.2 Pre-<strong>Lab</strong> ......................................................................................................... 57<br />

8.3 The <strong>Lab</strong> ........................................................................................................ 60<br />

2011 <strong>Microchip</strong> Technology Inc. DS51963A-page 3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!