Renesas Single-Chip Microcomputer M38C89T-ADF Manual do Utilizador Página 113

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 138
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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
);
}
Vista de página 112
1 2 ... 108 109 110 111 112 113 114 115 116 117 118 ... 137 138

Comentários a estes Manuais

Sem comentários