参数资料
型号: DV164101
厂商: Microchip Technology
文件页数: 70/76页
文件大小: 0K
描述: KIT DEV PICKIT1 FLASH 8/14PIN
产品培训模块: Asynchronous Stimulus
标准包装: 1
系列: PICkit™ 1
类型: MCU
适用于相关产品: Microchip 8-14 引脚闪存微控制器
所含物品: PIC 套件 1 电路板、光盘、USB 接口缆线和手册
产品目录页面: 659 (CN2011-ZH PDF)
配用: AC164122-ND - BOARD DAUGHT PICTAIL SD/MMC CARD
AC164120-ND - BOARD SIGNAL ANALYSIS PICKIT
其它名称: DV164101R
DV164101R-ND
PICkit ? 1 Flash Starter Kit User’s Guide
C.9
LESSON 7 – FREQUENCY COUNTING WITH TIMER1 GATE
This program introduces the concept of auto-calibration of the PIC12F6XX internal RC
oscillator using a known reference frequency. The PIC12F6XX has an internal RC
oscillator capable of being calibrated to ±1%.
This lesson covers the following:
?
?
?
?
How to set up and use the Timer1 gate peripheral
How to calibrate the PIC12F6XX internal RC oscillator
Useful applications that use the concepts presented in this lesson
Files needed to customize source code for the application
C.9.1
Design
This program takes advantage of the TIMER1 gate peripheral onboard the PIC12F6XX
for auto-calibration of the PIC12F6XX device. A 2.5 kHz reference signal is connected
to pin GP4/Timer1Gate input on the PIC12F6XX device.
The PIC12F6XX internal RC oscillator has the capability to run at 4 MHz ±1%.
Using Timer1Gate is advantageous because it can eliminate busy waiting on the PIC
microcontroller. Using Timer1Gate allows the hardware to manage capturing of the
reference signal low-edge pulse width, while allowing the PIC12F6XX to process other
events for a given amount of time. The time will depend on the period of the signal
being measured. In this case, there is a 2.5 kHz reference signal. This allows 400 μ s
to go and process something else before we would need to read TIMER1 for a
measurement.
C.9.2
Implementation
In this program, GP0 is used to output a test signal. If the PIC12F6XX internal RC
oscillator is calibrated, the test signal will be a 5 kHz square wave. In addition, the
program uses the GP3 push button input to select calibration mode. To turn on the
2.5 kHz fixed frequency source, select the box from the Board Controls area in the
PICkit 1 Flash Starter Kit control panel. See Figure C-19 through Figure C-22 for
program flowcharts.
C.9.3
Applications
This program could be useful in the following applications:
1. High volume production environment.
2. Battery applications could use on-board calibration to recalibrate the internal RC
oscillator as the battery voltage drops.
3. Applications that are exposed to varying voltage and temperature ranges could
have intelligent on-board recalibration.
DS40051D-page 66
? 2004 Microchip Technology Inc.
相关PDF资料
PDF描述
DV164120 KIT STARTER PICKIT 2
DV164121 KIT PICKIT 2 DEBUG EXPRESS
DV164122 ANALYZER SRL PICKIT W/DEMO BOARD
DV164131 KIT STARTER PICKIT 3
DV164132 KIT EVAL F1 FOR PIC12F1/PIC16F1
相关代理商/技术参数
参数描述
DV164101 制造商:Microchip Technology Inc 功能描述:TOOLS: FLASH MICROCONTROLLER (
DV164102 功能描述:开发板和工具包 - 无线 rfPICkit RoHS:否 制造商:Arduino 产品:Evaluation Boards 工具用于评估:AT32UC3L 核心:AVR32 频率: 接口类型:USB 工作电源电压:5 V
DV164120 功能描述:电路内置调试器 PICkit 2 8/14/20P Flash RoHS:否 制造商:Microchip Technology 产品:In-Circuit Debugger Kits 工具用于评估:PIC MCUs, dsPIC DSCs 用于:07-00024, AC164113 核心:dsPIC, PIC 接口类型:USB 工作电源电压:3 V to 5 V
DV164121 功能描述:电路内置调试器 PICkit 2 Debug Express RoHS:否 制造商:Microchip Technology 产品:In-Circuit Debugger Kits 工具用于评估:PIC MCUs, dsPIC DSCs 用于:07-00024, AC164113 核心:dsPIC, PIC 接口类型:USB 工作电源电压:3 V to 5 V
DV164121 制造商:Microchip Technology Inc 功能描述:ICPICKIT2 PROGRAMMER/DEBUGGER ((NW))