Other Parts Discussed in Thread: HALCOGEN, TMS570LC4357,
Tool/software: Code Composer Studio
I am new to the Hercules platform and am learning it from the example programs provided with the HALCoGen. I made a project for calculating the voltage at the AI1_0 & AI1_1 pins. I did everything as the example program had suggested.
For the connections part: I connected the AD REF LO to Ground and AD REF HI to 5V.
When I connect AI1_1 or AI1_0 to 5V, the result on the terminal shows to be 0x000000FO, and for 3.3 V 0x0000009A. Which is confusing since for 5V I expected 0x00000FFF.
I Calculated the 9A value considering F0 to be 5V and it comes around 3.2V which is fine. But can anyone help me get the 5V as FFF to have the 12Bit resolution of the ADC that I wanted?
I will attach my project file.https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/312/4743.ADC_5F00_UART.7z
Also I am getting only the Channel ID and the Data. Is there a easy way to get the Pin ID too?