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

PIC18F2320-I/SP 参数 Datasheet PDF下载

PIC18F2320-I/SP图片预览
型号: PIC18F2320-I/SP
PDF下载: 下载PDF文件 查看货源
内容描述: 28 /40/ 44引脚高性能,增强型闪存微控制器与10位A / D和纳瓦技术 [28/40/44-Pin High-Performance, Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology]
分类和应用: 闪存微控制器和处理器外围集成电路光电二极管PC时钟
文件页数/大小: 388 页 / 6899 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC18F2320-I/SP的Datasheet PDF文件第126页浏览型号PIC18F2320-I/SP的Datasheet PDF文件第127页浏览型号PIC18F2320-I/SP的Datasheet PDF文件第128页浏览型号PIC18F2320-I/SP的Datasheet PDF文件第129页浏览型号PIC18F2320-I/SP的Datasheet PDF文件第131页浏览型号PIC18F2320-I/SP的Datasheet PDF文件第132页浏览型号PIC18F2320-I/SP的Datasheet PDF文件第133页浏览型号PIC18F2320-I/SP的Datasheet PDF文件第134页  
PIC18F2220/2320/4220/4320  
13.2 Timer2 Interrupt  
13.3 Output of TMR2  
The Timer2 module has an 8-bit period register, PR2.  
Timer2 increments from 00h until it matches PR2 and  
then resets to 00h on the next increment cycle. PR2 is  
a readable and writable register. The PR2 register is  
initialized to FFh upon Reset.  
The output of TMR2 (before the postscaler) is fed to the  
Synchronous Serial Port module which optionally uses  
it to generate the shift clock.  
FIGURE 13-1:  
TIMER2 BLOCK DIAGRAM  
Sets Flag  
TMR2  
bit TMR2IF  
(1)  
Output  
Prescaler  
Reset  
EQ  
TMR2  
FOSC/4  
1:1, 1:4, 1:16  
Postscaler  
1:1 to 1:16  
2
Comparator  
PR2  
T2CKPS1:T2CKPS0  
4
TOUTPS3:TOUTPS0  
Note 1: TMR2 register output can be software selected by the SSP module as a baud clock.  
TABLE 13-1: REGISTERS ASSOCIATED WITH TIMER2 AS A TIMER/COUNTER  
Value on  
all other  
Resets  
Value on  
POR, BOR  
Name  
Bit 7  
Bit 6  
Bit 5  
Bit 4  
Bit 3  
Bit 2  
Bit 1  
Bit 0  
INTCON GIE/GIEH PEIE/GIEL TMR0IE  
INT0IE  
TXIF  
RBIE  
SSPIF  
SSPIE  
SSPIP  
TMR0IF  
INT0IF  
RBIF  
0000 000x 0000 000u  
(1)  
PIR1  
PSPIF  
PSPIE  
PSPIP  
ADIF  
ADIE  
ADIP  
RCIF  
RCIE  
RCIP  
CCP1IF TMR2IF  
CCP1IE TMR2IE  
CCP1IP TMR2IP  
TMR1IF 0000 0000 0000 0000  
TMR1IE 0000 0000 0000 0000  
TMR1IP 1111 1111 1111 1111  
0000 0000 0000 0000  
(1)  
(1)  
PIE1  
TXIE  
TXIP  
IPR1  
TMR2  
T2CON  
PR2  
Timer2 Module Register  
TOUTPS3 TOUTPS2 TOUTPS1 TOUTPS0 TMR2ON T2CKPS1 T2CKPS0 -000 0000 -000 0000  
Timer2 Period Register  
IDLEN IRCF2  
1111 1111 1111 1111  
0000 qq00 0000 qq00  
OSCCON  
IRCF1  
IRCF0  
OSTS  
IOFS  
SCS1  
SCS0  
Legend: x= unknown, u= unchanged, -= unimplemented, read as ‘0’. Shaded cells are not used by the Timer2 module.  
Note 1: The PSPIF, PSPIE and PSPIP bits are reserved on the PIC18F2X2 devices; always maintain these bits clear.  
DS39599C-page 128  
2003 Microchip Technology Inc.