PIC18F6722-E/PT Microchip Technology, PIC18F6722-E/PT Datasheet - Page 8

IC,MICROCONTROLLER,8-BIT,PIC CPU,CMOS,TQFP,64PIN,PLASTIC

PIC18F6722-E/PT

Manufacturer Part Number
PIC18F6722-E/PT
Description
IC,MICROCONTROLLER,8-BIT,PIC CPU,CMOS,TQFP,64PIN,PLASTIC
Manufacturer
Microchip Technology
Series
PIC® 18Fr

Specifications of PIC18F6722-E/PT

Rohs Compliant
YES
Core Processor
PIC
Core Size
8-Bit
Speed
25MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, HLVD, POR, PWM, WDT
Number Of I /o
54
Program Memory Size
128KB (64K x 16)
Program Memory Type
FLASH
Eeprom Size
1K x 8
Ram Size
3.8K x 8
Voltage - Supply (vcc/vdd)
4.2 V ~ 5.5 V
Data Converters
A/D 12x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 125°C
Package / Case
64-TFQFP
Processor Series
PIC18F
Core
PIC
Data Bus Width
8 bit
Data Ram Size
3936 B
Interface Type
SPI, I2C, EUSART
Maximum Clock Frequency
40 MHz
Number Of Programmable I/os
54
Number Of Timers
5
Maximum Operating Temperature
+ 125 C
Mounting Style
SMD/SMT
3rd Party Development Tools
52715-96, 52716-328, 52717-734, 52712-325, EWPIC18
Development Tools By Supplier
PG164130, DV164035, DV244005, DV164005, PG164120, ICE2000, ICE4000, DV164136, DM183032, DM183022
Minimum Operating Temperature
- 40 C
On-chip Adc
10 bit, 12 Channel
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
MA180020 - MODULE PLUG-IN HPC EXPL 18F87J11
Lead Free Status / Rohs Status
 Details

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F6722-E/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
PIC18F6627/6722/8627/8722
24. Module: Timer1 (Asynchronous Counter)
EXAMPLE 5:
EXAMPLE 6:
DS80221C-page 8
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
Table 3.
Work around
Operating Conditions: F
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.
ISR @ 0x0008
HIGHINT
ISR @ 0x0018
EXIT
BRA
BTFSC
BSF
RETFIE FAST
MOVFF
MOVFF
MOVFF
BTFSS
BRA
BSF
MOVFF
MOVFF
MOVFF
RETFIE
HIGHINT
PIR1, TMR1IF
TMR1H, 7
STATUS, STATUS_TEMP
WREG, WREG_TEMP
BSR, BSR_TEMP
PIR1, TMR1IF
EXIT
TMR1H, 7
BSR_TEMP, BSR
WREG_TEMP, WREG
STATUS_TEMP, STATUS
PIC18 HIGH PRIORITY INTERRUPT SERVICE ROUTINE
PIC18 LOW PRIORITY INTERRUPT SERVICE ROUTINE
OSC
≥ 4 MHz, no wake-ups
Total = 12-13 T
Total = 7-8 T
; (3-4Tcy), fixed interrupt latency
; (2Tcy), go to high priority interrupt routine
; (1Tcy), did a Timer1 overflow occur?
; (1Tcy) Yes, reload for a 1 second overflow
; (3-4Tcy), fixed interrupt latency
; (2Tcy), save STATUS register
; (2Tcy), save working register, refer to note 1
; (2Tcy), save BSR register, refer to note 1
; (2Tcy), did a Timer1 overflow occur?
; No
; (1Tcy) Yes, reload for a 1 second overflow
;restore BSR register, refer to note 1
;restore working register, refer to note 1
;restore STATUS register
CY
CY
(if Timer1 overflow occurred)
(if Timer1 overflow occurred)
TABLE 3:
Note:
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.
16 MHz
20 MHz
40 MHz
1 MHz
2 MHz
4 MHz
8 MHz
F
OSC
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.
FREQUENCY DEPENDENT
INSTRUCTION EXECUTION
AMOUNTS
T
© 2006 Microchip Technology Inc.
CY
0.25
0.5
0.2
0.1
4
2
1
(μs)
T
15.25 μs
CY
15.25
76.25
152.5
3.81
7.63
30.5
61
within

Related parts for PIC18F6722-E/PT