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

PIC18C452-I/L 参数 Datasheet PDF下载

PIC18C452-I/L图片预览
型号: PIC18C452-I/L
PDF下载: 下载PDF文件 查看货源
内容描述: 高性能微控制器,10位A / D [High-Performance Microcontrollers with 10-Bit A/D]
分类和应用: 微控制器
文件页数/大小: 296 页 / 4835 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC18C452-I/L的Datasheet PDF文件第95页浏览型号PIC18C452-I/L的Datasheet PDF文件第96页浏览型号PIC18C452-I/L的Datasheet PDF文件第97页浏览型号PIC18C452-I/L的Datasheet PDF文件第98页浏览型号PIC18C452-I/L的Datasheet PDF文件第100页浏览型号PIC18C452-I/L的Datasheet PDF文件第101页浏览型号PIC18C452-I/L的Datasheet PDF文件第102页浏览型号PIC18C452-I/L的Datasheet PDF文件第103页  
PIC18CXX2  
10.2  
Timer1 Oscillator  
10.3  
Timer1 Interrupt  
A crystal oscillator circuit is built-in between pins T1OSI  
(input) and T1OSO (amplifier output). It is enabled by  
setting control bit T1OSCEN (T1CON<3>). The oscilla-  
tor is a low power oscillator rated up to 200 kHz. It will  
continue to run during SLEEP. It is primarily intended  
for a 32 kHz crystal. Table 10-1 shows the capacitor  
selection for the Timer1 oscillator.  
The TMR1 Register pair (TMR1H:TMR1L) increments  
from 0000h to FFFFh and rolls over to 0000h. The  
TMR1 Interrupt, if enabled, is generated on overflow,  
which is latched in interrupt flag bit TMR1IF (PIR1<0>).  
This interrupt can be enabled/disabled by setting/clear-  
ing TMR1 interrupt enable bit TMR1IE (PIE1<0>).  
10.4  
Resetting Timer1 using a CCP Trigger  
Output  
The user must provide a software time delay to ensure  
proper start-up of the Timer1 oscillator.  
If the CCP module is configured in compare mode to  
generate a “special event trigger" (CCP1M3:CCP1M0  
= 1011), this signal will reset Timer1 and start an A/D  
conversion (if the A/D module is enabled).  
TABLE 10-1: CAPACITOR SELECTION FOR  
THE ALTERNATE OSCILLATOR  
Osc Type  
Freq  
C1  
C2  
TBD (1)  
TBD (1)  
Note: The special event triggers from the CCP1  
module will not set interrupt flag bit  
TMR1IF (PIR1<0>).  
LP  
32 kHz  
Crystal to be Tested:  
32.768 kHz Epson C-001R32.768K-A ± 20  
Timer1 must be configured for either timer or synchro-  
nized counter mode to take advantage of this feature. If  
Timer1 is running in asynchronous counter mode, this  
reset operation may not work.  
PPM  
Note 1: Microchip suggests 33 pF as a starting  
point in validating the oscillator circuit.  
2: Higher capacitance increases the stability  
of the oscillator, but also increases the  
start-up time.  
In the event that a write to Timer1 coincides with a spe-  
cial event trigger from CCP1, the write will take prece-  
dence.  
3: Since each resonator/crystal has its own  
characteristics, the user should consult the  
resonator/crystal manufacturer for appro-  
priate values of external components.  
4: Capacitor values are for design guidance  
only.  
In this mode of operation, the CCPR1H:CCPR1L regis-  
ters pair effectively becomes the period register for  
Timer1.  
10.5  
Timer1 16-Bit Read/Write Mode  
Timer1 can be configured for 16-bit reads and writes  
(see Figure 10-2). When the RD16 control bit  
(T1CON<7>) is set, the address for TMR1H is mapped  
to a buffer register for the high byte of Timer1. A read  
from TMR1L will load the contents of the high byte of  
Timer1 into the Timer1 high byte buffer. This provides  
the user with the ability to accurately read all 16-bits of  
Timer1 without having to determine whether a read of  
the high byte followed by a read of the low byte is valid  
due to a rollover between reads.  
A write to the high byte of Timer1 must also take place  
through the TMR1H buffer register. Timer1 high byte is  
updated with the contents of TMR1H when a write  
occurs to TMR1L. This allows a user to write all 16 bits  
to both the high and low bytes of Timer1 at once.  
The high byte of Timer1 is not directly readable or writ-  
able in this mode. All reads and writes must take place  
through the Timer1 high byte buffer register. Writes to  
TMR1H do not clear the Timer1 prescaler. The pres-  
caler is only cleared on writes to TMR1L.  
7/99 Microchip Technology Inc.  
Preliminary  
DS39026B-page 99  
 复制成功!