I have my own MCF5282 target board in which VDD,VDDA, VRH and VDDH are connected to 3.3V and VSS, VSSA and VRL are connected to 0v. Analog Input channels are conneted to QB0 and QB1.
QADC module is configured as below.
MCF5282_QADC_CCW(0) = 0x0240; //QB0
MCF5282_QADC_CCW(1) = 0x0241; //Qb1
MCF5282_QADC_CCW(2) = 0x003F; //End of Queue
MCF5282_QADC_DDRQA = 0x0;
MCF5282_QADC_DDRQB = 0x0;
MCF5282_QADC_QADCMCR = 0x0080;
MCF5282_QADC_QACR0 = 0x0024; // fsysclk = 73.73Mhz(Tested with different presclaer values.)
MCF5282_QADC_QACR1 = 0x1E00;
MCF5282_QADC_QACR2 = 0x007F;
When I read the result registers(RJURR(0), RJURR(1)) after Queue completion flag is set, the value is 0 when the analog input is below 3.3v and 0x3ff when the analog input is above 3.3v respectively. Result registers are not updating when the analog input is varying. Even for the channel numbers 60(VRL), 61(VRH), 62((VRH-VRL)/2), the result registers are showing some random values.
Its not working.
I have checked the voltage levels. all are fine.
or else i have to connect the VDDA, VRH to 5v and VSSA ,VRL to 0v?(As per MCF5282 user manual table 33-10, 33-11, QADC characteristics are GUARANTEED only for 5v and we can use QADC module at lower voltage only as GPIO.)
Please clarify