欢迎访问ic37.com |
会员登录 免费注册
发布采购

PIC12F629 参数 Datasheet PDF下载

PIC12F629图片预览
型号: PIC12F629
PDF下载: 下载PDF文件 查看货源
内容描述: 8引脚基于闪存的8位CMOS微控制器 [8-Pin FLASH-Based 8-Bit CMOS Microcontrollers]
分类和应用: 闪存微控制器
文件页数/大小: 132 页 / 4519 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC12F629的Datasheet PDF文件第52页浏览型号PIC12F629的Datasheet PDF文件第53页浏览型号PIC12F629的Datasheet PDF文件第54页浏览型号PIC12F629的Datasheet PDF文件第55页浏览型号PIC12F629的Datasheet PDF文件第57页浏览型号PIC12F629的Datasheet PDF文件第58页浏览型号PIC12F629的Datasheet PDF文件第59页浏览型号PIC12F629的Datasheet PDF文件第60页  
PIC12F629/675  
9.2.3  
EXTERNAL CLOCK IN  
9.2.5  
INTERNAL 4 MHZ OSCILLATOR  
For applications where a clock is already available  
elsewhere, users may directly drive the PIC±2F629/  
675 provided that this external clock source meets the  
AC/DC timing requirements listed in Section ±2.0.  
Figure 9-2 shows how an external clock circuit should  
be configured.  
When calibrated, the internal oscillator provides a fixed  
MHz (nominal) system clock. See Electrical  
4
Specifications, Section ±2.0, for information on  
variation over voltage and temperature.  
Two options are available for this Oscillator mode  
which allow GP4 to be used as a general purpose I/O  
or to output FOSC/4.  
9.2.4  
RC OSCILLATOR  
9.2.5.1  
Calibrating the Internal Oscillator  
For applications where precise timing is not a require-  
ment, the RC oscillator option is available. The opera-  
tion and functionality of the RC oscillator is dependent  
upon a number of variables. The RC oscillator  
frequency is a function of:  
A calibration instruction is programmed into the last  
location of program memory. This instruction is a  
RETLW XX, where the literal is the calibration value.  
The literal is placed in the OSCCAL register to set the  
calibration of the internal oscillator. Example 9-±  
demonstrates how to calibrate the internal oscillator.  
For best operation, decouple (with capacitance) VDD  
and VSS as close to the device as possible.  
• Supply voltage  
• Resistor (REXT) and capacitor (CEXT) values  
• Operating temperature.  
The oscillator frequency will vary from unit to unit due  
to normal process parameter variation. The difference  
in lead frame capacitance between package types will  
also affect the oscillation frequency, especially for low  
CEXT values. The user also needs to account for the  
tolerance of the external R and C components.  
Figure 9-3 shows how the R/C combination is  
connected.  
Note: Erasing the device will also erase the pre-  
programmed internal calibration value for  
the internal oscillator. The calibration value  
must be saved prior to erasing part as  
specified in the PIC±2F629/675 Program-  
ming specification. Microchip Develop-  
ment Tools maintain all calibration bits to  
factory settings.  
Two options are available for this Oscillator mode  
which allow GP4 to be used as a general purpose I/O  
or to output FOSC/4.  
EXAMPLE 9-1:  
CALIBRATING THE  
INTERNAL OSCILLATOR  
bsf  
STATUS, RP0  
3FFh  
;Bank 1  
FIGURE 9-3:  
RC OSCILLATOR MODE  
call  
;Get the cal value  
;Calibrate  
movwf OSCCAL  
bcf  
STATUS, RP0  
;Bank 0  
VDD  
PIC12F629/675  
REXT  
GP5/OSC1/  
CLKIN  
Internal  
Clock  
9.2.6  
CLKOUT  
The PIC±2F629/675 devices can be configured to  
provide a clock out signal in the INTOSC and RC  
oscillator modes. When configured, the oscillator  
frequency divided by four (FOSC/4) is output on the  
GP4/OSC2/CLKOUT pin. FOSC/4 can be used for test  
purposes or to synchronize other logic.  
CEXT  
VSS  
FOSC/4  
GP4/OSC2/CLKOUT  
DS41190C-page 54  
2003 Microchip Technology Inc.  
 复制成功!