Jing,
Thank you for your response.
Well No I didn't do that. I didn't find the Readme.txt until you just told me.The Demo user Guide that I found, Document Number: KSDK12DEMOUG, and Document Number: KSDK13DEMOUG were dated from 2015 and did not have my TWR-KV58F220M as supported nor did they point out J31-9 or that the readme.txt file had additional information. Is there a newer one that shows these pin connections? Also the TWR-KV58F220M Tower Module User's Guide Document Number: TWRKV58F220MUG says on page 8 and 9 that if you have the jumper J4 installed it is connected to:
Potentiometer J4 1-2 Enable (ADCA_CH6D)
So I expected it to work out of the box. Possibly there was an errata I missed.
Frankly even if I had known I wouldn't have realize J31-9 was on the back. The QuickStart Guide does not mention a J31 header. It should also probably mention the SDK Demo Example guide (above). I'm used to having an actual board layout in the documentation which shows me where all the connections are. I had to take a photo of the board to see where the jumpers were located. Can you point me to such a document?
Again, it surprised me that the Pot jumper was not just connected to an ADC input on the board, using the default example program so that the user did not have to actually have to run a jumper. I'm glad you have informed me of the above because I really wanted to use the 16Bit ADC vs the 12 but I also had trouble mapping the pot input to the code.
Also it seems strange to me that ADCA_CH6D points to CH12 -> Ch6 and the example program points to:
DEMO_ADC16_USER_CHANNEL 10U
How does 10U map to 12 or 6?
Though trial and error I found that pin
DEMO_ADC16_USER_CHANNEL 11U goes to PTE 12 for the program and wiring that I got working. I guess if you start counting from 0 that makes some sense.
Is there a map between all Channels, ADCs, and DEMO_ADC16_USER_CHANNEL in the program or somewhere?
Thanks again for your help your information was useful.
Ken