Demo Projects - Renesas RX110 Application Note

12-bit a/d converter support
Table of Contents

Advertisement

RX Family

5. Demo Projects

Demo projects are complete stand-alone programs. They include function main() that utilizes the module and its
dependent modules (e.g. r_bsp). The standard naming convention for the demo project is <module>_demo_<board>
where <module> is the peripheral acronym (e.g. s12ad, cmt, sci) and the <board> is the standard RSK (e.g. rskrx113).
For example, s12ad FIT module demo project for RSKRX113 will be named as s12ad_demo_rskrx113. Similarly the
exported .zip file will be <module>_demo_<board>.zip. For the same example, the zipped export/import file will be
named as s12ad_demo_rskrx113.zip.
5.1
s12ad_int_demo_rskrx113
This demo uses periodic interrupts from MTU0 to trigger the ADC module to scan the potentiometer on the board. Each
time a scan completes, the program reads the converted value at interrupt level in a callback function and places it into a
global variable called "data". This variable should be added to the Expressions window and made into a Real-time
Watch (double-click to make real-time). As the program runs, change the potentiometer position and observe the
corresponding changes in the variable.
5.2
s12ad_poll_demo_rskrx113
This demo scans the potentiometer on the board via a software trigger in an endless loop. Each time a scan completes,
the program reads the converted value at the application level and places it into a global variable called "data". This
variable should be added to the Expressions window and made into a Real-time Watch (double-click to make real-time).
As the program runs, change the potentiometer position and observe the corresponding changes in the variable.
5.3
s12ad_poll_demo_rskrx130
This demo scans the potentiometer on the board via a software trigger in an endless loop. Each time a scan completes,
the program reads the converted value at the application level and places it into a global variable called "data". This
variable should be added to the Expressions window and made into a Real-time Watch (double-click to make real-time).
As the program runs, change the potentiometer position and observe the corresponding changes in the variable.
5.4
s12ad_demo_rskrx64m
This is a simple demo of the RX64M A/D Converter (S12AD) for the RSKRX64M starter kit (FIT module
"r_s12ad_rx"). The demo uses the Multi-Function Timer Pulse Unit (MTU3a) to periodically trigger the ADC module
to perform conversion on channel 0 which is connected to the on-board potentiometer. Each time a scan completes, the
program reads the converted value at interrupt level in a callback function and places it into a global variable called
"g_data". This variable should be added to the Expressions window and made into a Real-time Watch (double-click to
make real-time). As the program runs, change the potentiometer position and observe the corresponding changes in the
variable.
5.5
s12ad_demo_rskrx71m
This is a demo of the RX71M A/D Converter (S12AD) for the RSKRX71M starter kit (FIT module "r_s12ad_rx"). The
demo uses the Multi-Function Timer Pulse Unit 3 (MTU3a) to periodically trigger the ADC module to perform
conversion on channel 0 which is connected to the on-board potentiometer. Each time a scan completes, the program
reads the converted value at interrupt level in a callback function and places it into a global variable called "g_data".
This variable should be added to the Expressions window and made into a Real-time Watch (double-click to make real-
time). As the program runs, change the potentiometer position and observe the corresponding changes in the variable.
5.6
s12ad_demo_rskrx231
This is a demo of the RX231 A/D Converter (S12ADE) for the RSKRX231 starter kit (FIT module "r_s12ad_rx"). The
demo uses the Multi-Function Timer Pulse Unit 2 (MTU2a) to periodically trigger the ADC module to perform a
conversion on channel 0, which is connected to the on-board potentiometer. Each time a scan completes, the program
reads the converted value at interrupt level in a callback function and places it into a global variable called "g_data".
This variable should be added to the Expressions window and made into a Real-time Watch. To do that, add it to the
Expressions window then right-click it. From the drop-down menu click on "Real-time Refresh". Right click again and
select "Real-time Refresh Interval" and set the refresh value to 200 ms. As the program runs, change the potentiometer
position and observe the corresponding changes in the variable.
R01AN1666EJ0220 Rev. 2.20
Dec 01, 2016
ADC Module Using Firmware Integration Technology
Page 72 of 74

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents