Other Parts Discussed in Thread: LAUNCHXL-F28027, CONTROLSUITE
Tool/software: Code Composer Studio
Dear TI members,
I come here to ask two question after struggling for several hours for a couple of days trying to solve this issue by myself. My LAUNCHXL-F28027 says it can handle an input of 0-3.3V, so I am trying to send a signal with Vpp = 3V and Voffset = +1.5V (connected between ADCINA1 and GND in my board), but when I do that, my ADC becomes saturated as if the signal input is going beyond its limitations. Figures of my ports and my ADC output are shown below. Since my ADC is 12bits, I expected that if I send a signal Vhigh = 3.3V and Vlow = 0V, my ADC.RESULT would give me values ranging between 0 and 4095...
Besides the offset problem, I am also struggling with the simple task of adjusting this signal so that it can be sent to "spll1.AC_input" needed for the 1ph PLL function from Solar lib "SPLL_1ph_IQ_FUNC(&spll1);". Supposing that my ADC output signal is ranging from around 6600 to 24000 (when I send Vhigh = 1.5V and Vlow=0V), should I manually add a -15300 to set the signal to +- 8700, or is there a function from IQmath that does that?
I would really appreciate any help with these beginner questions since they are holding me from moving forward with my work.
Thank you,
Victor