EasyManuals Logo

Microchip Technology PICkit 3 User Manual

Microchip Technology PICkit 3
102 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #72 background imageLoading...
Page #72 background image
PICkit™ 3 Starter Kit User’s Guide
DS41628B-page 72 2012 Microchip Technology Inc.
3.10 LESSON 9: TIMER0
3.10.1 Introduction
This lesson will produce the same output as 3.4 “Lesson 3: Rotate. The only differ-
ence is that this version uses Timer0 to provide the delay routine.
3.10.2 Hardware Effects
LEDs rotate from right to left, similar to Lesson 3.
3.10.3 Summary
Timer0 is a counter implemented in the processor. It may be used to count instruction
cycles or external events, that occur at or below the instruction cycle rate.
In the PIC18, Timer0 can be used as either an 8-bit or 16-bit counter, or timer. The
enhanced mid-range core implements only an 8-bit counter.
This lesson configures Timer0 to count instruction cycles and to set a flag when it rolls
over. This frees up the processor to do meaningful work rather than wasting instruction
cycles in a timing loop.
Using a counter provides a convenient method of measuring time or delay loops as it
allows the processor to work on other tasks rather than counting instruction cycles.
3.10.4 New Registers
3.10.4.0.1 Enhanced Mid-range
TABLE 3-30: ENHANCED MID-RANGE NEW REGISTER
Register Purpose
OPTION_REG Timer0 and pull-up/INT configuration

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Microchip Technology PICkit 3 and is the answer not in the manual?

Microchip Technology PICkit 3 Specifications

General IconGeneral
BrandMicrochip Technology
ModelPICkit 3
CategoryComputer Accessories
LanguageEnglish

Related product manuals