• AVR Freaks

PIC32MZDA FRC setting for ADC

Author
sridhar
New Member
  • Total Posts : 22
  • Reward points : 0
  • Joined: 2005/04/04 00:33:54
  • Status: offline
2018/10/26 06:25:46 (permalink)
0

PIC32MZDA FRC setting for ADC

Hi All,
 
I am using the PIC32MZ2064DAB176 microcontroller and I am working on the ADC module.
 
I am using the Harmony configurator for ADC configuration.
 
As per the PIC32MZDA Family datasheet, the value for setting the ADC clock source as FRC is "0x11" in the ADCCON3->ADCSEL. In the same data sheet it is advised to refer to "DS60001344" for more details.
 
But as per the DS60001344 "“PIC32 Family Reference Manual”, the the value for setting the ADC clock source as FRC is 0x01 in ADCCON3->ADCSEL.
 
The Harmony code generated sets the value of ADCCON3->ADCSEL as 0x01, which is as per DS60001344.
 
I was of the opinion that the PIC32MZDA family reference manual is to be followed for the PIC I am using.
 
Do I have to change the code generated by Harmony?
 
Enclosing the screen shots from the manuals.
 
Please advise.
 
Thanks
 
Regards
Sridhar
 
 
post edited by sridhar - 2018/10/26 06:32:48

Attached Image(s)

#1

1 Reply Related Threads

    cjohnson
    Starting Member
    • Total Posts : 31
    • Reward points : 0
    • Joined: 2017/04/27 11:55:47
    • Location: 0
    • Status: offline
    Re: PIC32MZDA FRC setting for ADC 2018/10/31 11:04:00 (permalink)
    0
    I'm using the internal FRC on a PIC32MZ2064DAG176 chip. I always use the SYSCLK for ADC and it does work.

    Colby Johnson
    Product Design Engineer
    OEM Solutions, Inc.
    #2
    Jump to:
    © 2019 APG vNext Commercial Version 4.5