Skip to content

Latest commit

 

History

History

potentiometer

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

IAR RISC-V GD32V EVAL - Potentiometer example

Introduction

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.

Building and Running

To build and run the benchmark, select

  • ProjectMake (or F7)

Once the build is complete, connect your evaluation board debugger 20-pin header to the I-jet debugging probe and then select

  • ProjectDownload 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

  • ViewTerminal I/O

A new window named Terminal I/O will show up without any output so far.

Next, execute the program by selecting

  • DebugGo (or F5)

Terminal I/O output

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
> ...
> ```