Hi!
I am in the process of using a PIC24FJ64GA106 to design a time domain reflectometer in Proteus, using MPLAB X IDE and C16. However, I am having problems with the current calibaration and capactiance calibration. I have referred all app notes and the datasheet, but I am still getting the value of CTMUIsrc as 0 and that of CTMUCap as NaN. Could someone take a look at the code and see if I'm doing something wrong?
Attached is the code and the Proteus schematic.
Thanks in advance!
(BTW, there might be some discrepancies in the comments in the code, I haven't been able to clear them out yet. Sorry about that.)
I am in the process of using a PIC24FJ64GA106 to design a time domain reflectometer in Proteus, using MPLAB X IDE and C16. However, I am having problems with the current calibaration and capactiance calibration. I have referred all app notes and the datasheet, but I am still getting the value of CTMUIsrc as 0 and that of CTMUCap as NaN. Could someone take a look at the code and see if I'm doing something wrong?
Attached is the code and the Proteus schematic.
Thanks in advance!
(BTW, there might be some discrepancies in the comments in the code, I haven't been able to clear them out yet. Sorry about that.)
Attachments
-
515.6 KB Views: 79
-
13.5 KB Views: 47