The potentiometer R1 pin is read from the analog-to-digital conversion and its value is printed in the Terminal I/O on regular intervals.
To build and run the benchmark, select
Project
→Make
(or F7)
Once the build is complete, connect your evaluation board debugger 20-pin header to the I-jet debugging probe and then select
Project
→Download and Debug
(or CTRL + D)
The IDE will slightly change its initial appearance and new menu options will become available as it enters in debug mode.
This project uses the IAR Embedded Workbench integrated Terminal I/O to show results.
In order to see the results, select
View
→Terminal I/O
A new window named Terminal I/O will show up without any output so far.
Next, execute the program by selecting
Debug
→Go
(or F5)
The expected Terminal I/O output visualization should be similar to the one below, with the values changing when the R1 potentiometer position changes:
> ---
> Potentiometer example
>
> Value: 1168
> Value: 1255
> Value: 1347
> Value: 1431
> Value: 1789
> Value: 2247
> Value: 3047
> ...
> ```