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 ![Frown :( :(]()
PIC24EP512GP202 CTMU Software Test
I'm struggling to get any valid readings from a CTMU module on the PIC24EP512GP202 below is the code i am using


Code (Text):
- void CtmuTimeConfigManualADC(void)
- {
- // Step 1 Configure the CTMU
- CTMUCON1 = 0x0000; // Disable CTMU
- CTMUCON1bits.TGEN = 0; // Disable Time Generation mode...