I want to know the difference between ADC ,QADC,EQADC...and i am going to use ADC in MPC5674F..so Please tell me the configuration details step by step..and send me sample code ...
Chronologically first module has been used with legacy MPC55x/56x devices and it was QADC. Second generation is being used with MPC55xx, called eQADC (Redundant Signed Digit ADC Architecture), and the difference explanation you can find at the end of eQADC chapter.
MPC56xx offers two options: yet improved eQADC (backward compatible with MPC55xx’s - see attached comparison) or module that is simply called ADC, either 10 or 12 bit, and it is Successive Approximation ADC.
eQADC module is rather high-end, quite complex and universal module, with large number of multiplexed, general purpose inputs, it is present on Powertrain product line.
SAR ADC is rather mid or low-end, not so complex, it is present on the rest of MPC56xx (Body/Gateways, Chassis and Safety and Instrument Cluster).
Currently I have published two examples dealing with eQADC, although targeted to different device, eQADC code portion is compatible:
Second project contain header file eQADC_macros_MONACO.h that can be used for eQADC configuration (for MPC5674F as well) and simplify indirect access to on-chip ADC registers.
You can simply adapt it to MPC5674F with using of following base project:
Retrieving data ...