参数资料
型号: PIC18F6722T-I/PT
厂商: Microchip Technology
文件页数: 15/16页
文件大小: 0K
描述: IC PIC MCU FLASH 64KX16 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
程序存储器容量: 128KB(64K 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)
配用: MA180020-ND - MODULE PLUG-IN HPC EXPL 18F87J11
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描述
PIC18F448-E/PT IC MCU FLASH 8KX16 W/CAN 44-TQFP
PIC14000-20/SO IC MCU OTP 4KX14 A/D 28SOIC
VE-J43-IX-F3 CONVERTER MOD DC/DC 24V 75W
PIC16F877-04E/PQ IC MCU FLASH 8KX14 EE 44-MQFP
PIC16F877-20I/PQ IC MCU FLASH 8KX14 EE 44-MQFP
相关代理商/技术参数
参数描述
PIC18F6723-E/PT 功能描述:8位微控制器 -MCU 128KB 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
PIC18F6723-I/PT 功能描述:8位微控制器 -MCU 128KB 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
PIC18F6723T-I/PT 功能描述:8位微控制器 -MCU 128KB 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
PIC18F67J10 DEVELOPMENT BOARD KIT 制造商:Custom Computer Services (CCS) 功能描述:BOARD DEV FOR PIC18F67J10
PIC18F67J10 DEVELOPMENT KIT 功能描述:KIT DEV EMBEDDED C RoHS:否 类别:编程器,开发系统 >> 通用嵌入式开发板和套件(MCU、DSP、FPGA、CPLD等) 系列:- 标准包装:1 系列:PICDEM™ 类型:MCU 适用于相关产品:PIC10F206,PIC16F690,PIC16F819 所含物品:板,线缆,元件,CD,PICkit 编程器 产品目录页面:659 (CN2011-ZH PDF)