PIC24FJ64GA004-I/PT Microchip Technology Inc., PIC24FJ64GA004-I/PT Datasheet - Page 181
![no-image](/images/manufacturer_photos/0/4/440/microchip_technology_inc__sml.jpg)
PIC24FJ64GA004-I/PT
Manufacturer Part Number
PIC24FJ64GA004-I/PT
Description
MCU, 16-Bit, 44-Pin, 64KB Flash, 8KB RAM, 35 I/O, Nanowatt
Manufacturer
Microchip Technology Inc.
Datasheet
1.PIC24FJ64GA004-IPT.pdf
(256 pages)
Specifications of PIC24FJ64GA004-I/PT
A/d Inputs
13 Channel, 10-Bit
Comparators
2
Cpu Speed
16 MIPS
Eeprom Memory
0 Bytes
Input Output
35
Interface
I2C/SPI/UART
Memory Capacity
64 Kbytes
Memory Type
Flash
Number Of Bits
16
Number Of Inputs
35
Number Of Pins
44
Package Type
44-pin TQFP
Programmable Memory
64K Bytes
Ram Size
8K Bytes
Speed
32 MHz
Timers
5-16-bit
Voltage, Range
2-3.6 V
Voltage, Rating
2-3.6 V
Lead Free Status / Rohs Status
RoHS Compliant part
Electrostatic Device
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
PIC24FJ64GA004-I/PT
Manufacturer:
MICREL
Quantity:
39 200
Company:
Part Number:
PIC24FJ64GA004-I/PT
Manufacturer:
NS
Quantity:
7 331
Company:
Part Number:
PIC24FJ64GA004-I/PT
Manufacturer:
MICROCHIP
Quantity:
215
Company:
Part Number:
PIC24FJ64GA004-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC24FJ64GA004-I/PT
Manufacturer:
MIC
Quantity:
20 000
REGISTER 18-10:
18.2
The real-time crystal input can be calibrated using the
periodic auto-adjust feature. When properly calibrated,
the RTCC can provide an error of less than 3 seconds
per month. This is accomplished by finding the number
of error clock pulses and storing the value into the
lower half of the RCFGCAL register. The 8-bit signed
value loaded into the lower half of RCFGCAL is multi-
plied by four and will be either added or subtracted from
the RTCC timer, once every minute. Refer to the steps
below for RTCC calibration:
1.
2.
EQUATION 18-1:
© 2007 Microchip Technology Inc.
(Ideal Frequency† – Measured Frequency) * 60 = Clocks
per Minute
bit 15
bit 7
Legend:
R = Readable bit
-n = Value at POR
bit 15
bit 14-12
bit 11-8
bit 7
bit 6-4
bit 3-0
Using another timer resource on the device, the
user must find the error of the 32.768 kHz
crystal.
Once the error is known, it must be converted to
the number of error clock pulses per minute.
U-0
U-0
—
—
† Ideal frequency = 32,768 Hz
Calibration
Unimplemented: Read as ‘0’
MINTEN2:MINTEN0: Binary Coded Decimal Value of Minute’s Tens Digit; Contains a value from 0 to 5
MINONE3:MINONE0: Binary Coded Decimal Value of Minute’s Ones Digit; Contains a value from 0 to 9
Unimplemented: Read as ‘0’
SECTEN2:SECTEN0: Binary Coded Decimal Value of Second’s Tens Digit; Contains a value from 0 to 5
SECONE3:SECONE0: Binary Coded Decimal Value of Second’s Ones Digit; Contains a value from 0 to 9
SECTEN2
MINTEN2
R/W-x
R/W-x
ALMINSEC: ALARM MINUTES AND SECONDS VALUE REGISTER
W = Writable bit
‘1’ = Bit is set
SECTEN1
MINTEN1
R/W-x
R/W-x
SECTEN0
MINTEN0
R/W-x
R/W-x
PIC24FJ64GA004 FAMILY
Preliminary
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
SECONE3
MINONE3
R/W-x
R/W-x
3.
4.
Writes to the lower half of the RCFGCAL register
should only occur when the timer is turned off, or
immediately after the rising edge of the seconds pulse.
Note:
a) If the oscillator is faster then ideal (negative
result form step 2), the RCFGCAL register value
needs to be negative. This causes the specified
number of clock pulses to be subtracted from
the timer counter once every minute.
b) If the oscillator is slower then ideal (positive
result from step 2) the RCFGCAL register value
needs to be positive. This causes the specified
number of clock pulses to be subtracted from
the timer counter once every minute.
Divide the number of error clocks per minute by
4 to get the correct CAL value and load the
RCFGCAL register with the correct value.
(Each 1-bit increment in CAL adds or subtracts
4 pulses).
It is up to the user to include in the error
value the initial error of the crystal, drift
due to temperature and drift due to crystal
aging.
SECONE2
MINONE2
R/W-x
R/W-x
x = Bit is unknown
SECONE1
MINONE1
R/W-x
R/W-x
DS39881B-page 179
SECONE0
MINONE0
R/W-x
R/W-x
bit 8
bit 0