Renesas Single-Chip Microcomputer M38C89T-ADF Manuel d'utilisateur Page 113

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 138
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 112
Rev.1.00 May 22 2012
REJ09B0566
4-93
Library Reference
R_ADC_10_Create
4
4.2.10 41B10-bit Analog to Digital Converter
Remarks (2/2)
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
);
}
Vue de la page 112
1 2 ... 108 109 110 111 112 113 114 115 116 117 118 ... 137 138

Commentaires sur ces manuels

Pas de commentaire