Hello,
I am using the F28069 controlcard and the controlstick. Currently I am trying to sample the several channels with the F28069 ADC.
I execute the example Example_2806xAdcSoc supplied with ControlSuite.
I detected one error in the code, the access to the register AdcRegs.ADCCTL2.bit.CLKDIV2EN is EALLOW protected and it was not being access in the code as such, so the clock going to the ADC was the 80MHz.
A part from that, everything seems to be ok.
I call the device_cal function and the value of the registers ADCREFTRIM and ADCOFFTRIM are changed to the following:
ADCREFTRIM => 0x15AA
ADCOFFTRIM => 0x0000
This happens in the two F28069 that I have (the controlcard and controlstick). Is it normal for them to be equal on two different devices?
Then when I am converting, if I connect the analog input to 3v3 via a resistor I don't get 4095 on the conversion register. I get about 4010.
I have tried to set
AdcRegs.ADCCTL2.bit.CLKDIV2EN = 1;
AdcRegs.ADCCTL2.bit.CLKDIV4EN = 1;
and
AdcRegs.ADCSOC0CTL.bit.ACQPS = 63;
AdcRegs.ADCSOC1CTL.bit.ACQPS = 63;
and I still dont get 4095.
If I connect them both to GND, I get zero, which is ok.
If I connect one of them to gnd and another to 3v3, the one connected to ground gives about 56 and the one connected to VCC gives about 4019 with ACQPS of 8, and with ACQPS=63 it gives the values 0 and 4024.
Can someone tell me what is the maximum sampling rate we can have with the F28069 and if the calibration function of this device still has some errors? I would expect to be able to sample 5 channels in under 2microseconds...
Best regards
