Datasheet

PIC24FJ128GC010 FAMILY
DS30009312B-page 362 2012-2013 Microchip Technology Inc.
REGISTER 26-11: ACCONH: A/D ACCUMULATOR CONTROL HIGH REGISTER
U-0 U-0 U-0 U-0 U-0 U-0 U-0 U-0
bit 15 bit 8
R/W-0, HC R/W-0 U-0 U-0 U-0 U-0 U-0 U-0
ACEN
(1)
ACIE
bit 7 bit 0
Legend: HC = Hardware Clearable bit
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 15-8 Unimplemented: Read as0
bit 7 ACEN: Accumulator Enable bit
(1)
1 = Accumulation is enabled; sample and convert the current sample list entry on trigger event and add
to the contents of ACRESH/L
0 = The accumulation process has not started or is complete (cleared in hardware when accumulation
COUNTx bits decrement to zero)
bit 6 ACIE: Accumulator Interrupt Enable bit
1 = An interrupt event is generated when the accumulator decrements to zero
0 = Accumulator interrupt events are disabled
bit 5-0 Unimplemented: Read as ‘0
Note 1: To avoid unexpected or erroneous results, do not write to ACCONH or ACCONL while ACEN is set.
REGISTER 26-12: ACCONL: A/D ACCUMULATOR CONTROL LOW REGISTER
U-0 U-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
TBLSEL5 TBLSEL4 TBLSEL3 TBLSEL2 TBLSEL1 TBLSEL0
bit 15 bit 8
R/W-0, HSC R/W-0, HSC R/W-0, HSC R/W-0, HSC R/W-0, HSC R/W-0, HSC R/W-0, HSC R/W-0, HSC
COUNT7 COUNT6 COUNT5 COUNT4 COUNT3 COUNT2 COUNT1 COUNT0
bit 7 bit 0
Legend: HSC = Hardware Settable/Clearable bit
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 15-14 Unimplemented: Read as ‘0
bit 13-8 TBLSEL<5:0>: Pointer to ADTBLn Used to Select ANxx Channel to be Accumulated bits
The ANxx channel is designated by the ADTBLn register (where n = TBLSEL<5:0> value).
bit 7-0 COUNT<7:0>: Accumulations to be Completed Counter bits
Decrements on each accumulated sample. Before starting the accumulation process, preload this
COUNTx bits field with the number of samples to accumulate (ex: To get a 9 sample sum, load COUNT
with 9). Starting with a COUNT value of 0 will result in 256 samples being accumulated.