
Rev.1.00 May 22 2012
REJ09B0566
Library Reference
R_ADC_10_Create
4.2.10 41B10-bit Analog to Digital Converter
• Interrupts are enabled automatically if a callback function is specified.
• A callback function is executed by the interrupt processing function. This means that no other interrupt
can be processed until the callback function has completed.
Program example
/* PDL definitions */
#include “r_pdl_adc_10.h”
/* PDL device-specific definitions */
#include “r_pdl_definitions.h”
/* ADC unit 1 callback function */
void ADC1IntFunc(void){}
void func(void)
{
/* Configure ADC channel AN6 in One shot mode */
R_ADC_10_CreateAll( PDL_ADC_10_MODE_SINGLE |
PDL_ADC_10_CHANNELS_OPTION_7 | \
PDL_ADC_10_INTERRUPT_DISABLE,
150E3,
ADC_callback,
7
);
}
Comentários a estes Manuais