Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4924

Unable to Collect ADC Result_PIC32MZ2048ECH144

$
0
0
I have written code for ADC as below but i am not getting ADC output in ADC DATA (O\p Register). Please find code as below. Please suggest if any error or bug you get noticed.

#include <p32xxxx.h>
unsigned int Buffervalue;
unsigned int i, j;
int main(int argc, char** argv)
{
OSCCON=0x00002200; //Configuring Oscillator
ANSELGbits.ANSG15=0; //Setting pin as analog

//Setting Calibration values to registers
AD1CAL1 = 0xB3341210;
AD1CAL2 = 0x01FFA769;...

Unable to Collect ADC Result_PIC32MZ2048ECH144

Viewing all articles
Browse latest Browse all 4924

Trending Articles