参数资料
型号: PIC18F6627T-I/PT
厂商: Microchip Technology
文件页数: 15/16页
文件大小: 0K
描述: IC PIC MCU FLASH 48KX16 64TQFP
产品培训模块: Asynchronous Stimulus
PIC18 J Series MCU Overview
标准包装: 1,200
系列: PIC® 18F
核心处理器: PIC
芯体尺寸: 8-位
速度: 40MHz
连通性: I²C,SPI,UART/USART
外围设备: 欠压检测/复位,HLVD,POR,PWM,WDT
输入/输出数: 54
程序存储器容量: 96KB(48K x 16)
程序存储器类型: 闪存
EEPROM 大小: 1K x 8
RAM 容量: 3.8K x 8
电压 - 电源 (Vcc/Vdd): 4.2 V ~ 5.5 V
数据转换器: A/D 12x10b
振荡器型: 内部
工作温度: -40°C ~ 85°C
封装/外壳: 64-TQFP
包装: 带卷 (TR)
PIC18F6627/6722/8627/8722
DS80221C-page 8
2006 Microchip Technology Inc.
24. Module: Timer1 (Asynchronous Counter)
When writing to the TMR1H register, under
specific conditions, it is possible that the TMR1L
register will miss a count while connected to the
external oscillator via the T1OSO and T1OSI pins.
When Timer1 is started, the circuitry looks for a
falling edge before a rising edge can increment the
counter. Writing to the TMR1H register is similar to
starting Timer1; therefore, the former logic stated
applies any time the TMR1H register is written. If
the TMR1H register is not completely written to
during the high pulse of the external clock, then the
TMR1L register will miss a count due to the circuit
operation stated previously. The high pulse of a
32.768 kHz external clock crystal yields a 15.25
μs
window for the write to TMR1H to occur. The
amount of instructions that can be executed within
this window is frequency dependent, as shown in
Work around
Operating Conditions: FOSC
≥ 4 MHz, no wake-ups
from Sleep, Timer1 interrupt enabled, global
interrupts enabled.
The code excerpts in Example 5 and Example 6
show how the TMR1H register can be updated
while the external clock (32.768 kHz) is still on its
high pulse.
The importance of the code examples is that the
bold instructions are executed within the first
15.25
μs high pulse on the external clock after the
Timer1 overflow occurred. This will allow the
TMR1L register to increment correctly.
TABLE 3:
FREQUENCY DEPENDENT
INSTRUCTION EXECUTION
AMOUNTS
EXAMPLE 5:
PIC18 HIGH PRIORITY INTERRUPT SERVICE ROUTINE
EXAMPLE 6:
PIC18 LOW PRIORITY INTERRUPT SERVICE ROUTINE
Note:
These instructions are required based on
the function of the ISR. If the only code in
the ISR is to reload Timer1, then they are
not required, but may be required if
additional code is added.
FOSC
TCY (
μs)
TCY within
15.25
μs
1MHz
4
3.81
2MHz
2
7.63
4MHz
1
15.25
8 MHz
0.5
30.5
16 MHz
0.25
61
20 MHz
0.2
76.25
40 MHz
0.1
152.5
ISR @ 0x0008
; (3-4Tcy), fixed interrupt latency
BRA
HIGHINT
; (2Tcy), go to high priority interrupt routine
HIGHINT
BTFSC
PIR1, TMR1IF
; (1Tcy), did a Timer1 overflow occur?
BSF
TMR1H, 7
; (1Tcy) Yes, reload for a 1 second overflow
RETFIE
FAST
Total = 7-8 TCY (if Timer1 overflow occurred)
ISR @ 0x0018
; (3-4Tcy), fixed interrupt latency
MOVFF
STATUS, STATUS_TEMP
; (2Tcy), save STATUS register
MOVFF
WREG, WREG_TEMP
; (2Tcy), save working register, refer to note 1
MOVFF
BSR, BSR_TEMP
; (2Tcy), save BSR register, refer to note 1
BTFSS
PIR1, TMR1IF
; (2Tcy), did a Timer1 overflow occur?
BRA
EXIT
; No
BSF
TMR1H, 7
; (1Tcy) Yes, reload for a 1 second overflow
EXIT
MOVFF
BSR_TEMP, BSR
;restore BSR register, refer to note 1
MOVFF
WREG_TEMP, WREG
;restore working register, refer to note 1
MOVFF
STATUS_TEMP, STATUS
;restore STATUS register
RETFIE
Total = 12-13 TCY (if Timer1 overflow occurred)
相关PDF资料
PDF描述
PIC18F2682-E/SO IC PIC MCU FLASH 40KX16 28SOIC
PIC16LF767-I/SS IC PIC MCU FLASH 8KX14 28SSOP
DSPIC33FJ128GP204-E/PT IC DSPIC MCU/DSP 128K 44-TQFP
DSPIC30F5013T-20E/PT IC DSPIC MCU/DSP 66K 80TQFP
VI-2TY-IX-S CONVERTER MOD DC/DC 3.3V 49.5W
相关代理商/技术参数
参数描述
PIC18F6628-E/PT 功能描述:8位微控制器 -MCU 96KB Flash 4KB RAM 1024 DataEE 12B ADC RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18F6628-I/PT 功能描述:8位微控制器 -MCU 96KB Flash 4KB RAM 1024 DataEE 12B ADC RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18F6628T-I/PT 功能描述:8位微控制器 -MCU 96KB Flash 4KB RAM 1024 DataEE 12B ADC RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18F6680-E/L 功能描述:8位微控制器 -MCU 64KB 3328 RAM 52 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18F6680-E/PT 功能描述:8位微控制器 -MCU 64KB 3328 RAM 52 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT