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

PIC24EP512GP202 CTMU Software Test

$
0
0
Hi Guys,

I'm struggling to get any valid readings from a CTMU module on the PIC24EP512GP202 below is the code i am using :( i struggled to do the current calibration as well and i am wonder if perhaps there is an issue with the way i setup the ADC or perhaps something wrong with the CTMU on this particular chip itself :(

Code (Text):
  1. void CtmuTimeConfigManualADC(void)
  2. {
  3. // Step 1 Configure the CTMU
  4. CTMUCON1 = 0x0000; // Disable CTMU
  5. CTMUCON1bits.TGEN = 0; // Disable Time Generation mode...
PIC24EP512GP202 CTMU Software Test

Viewing all articles
Browse latest Browse all 4930

Trending Articles