Renesas M16C/62P Group Manual de usuario Pagina 53

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 98
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 52
Rev.1.00 2007.11.1
REC10B0002-0100
53
__EnablePulseWidthModulationMode
Synopsis
<Control operation of pulse width modulation mode>
Boolean __EnablePulseWidthModulationMode(unsigned long data)
data Setup data
Description
Controls operation of the timer that is set to specified pulse width modulation mode by
starting or stopping it.
[data]
For data, the following definition values can be set. To set multiple definition values at
the same time, use the symbol “|” to separate each specified value.
RAPI_TIMER_A0
Selects timer A channel 0.
RAPI_TIMER_A1
Selects timer A channel 1.
RAPI_TIMER_A2
Selects timer A channel 2.
RAPI_TIMER_A3
Selects timer A channel 3.
RAPI_TIMER_A4
Selects timer A channel 4.
RAPI_TIMER_ON
Sets the timer that is set to pulse width modulation mode to
start operating.
RAPI_TIMER_OFF
Sets the timer that is set to pulse width modulation mode to
stop operating.
Return value
If the timer specification is incorrect, RAPI_FALSE is returned; otherwise, RAPI_TRUE
is returned.
Functionality
Timer (pulse width modulation mode (PWM mode))
Reference
__CreatePulseWidthModulationMode, __DestroyPulseWidthModulationMode
Remark
If an undefined value is specified in the argument, operation of the API cannot be
guaranteed.
Program example
#include "rapi_timer_m16c_62p.h"
void func( void )
{
/* Enable timer A2 as pulse width modulation mode */
__EnablePulseWidthModulationMode( RAPI_TIMER_A2|RAPI_TIMER_ON );
}
Vista de pagina 52
1 2 ... 48 49 50 51 52 53 54 55 56 57 58 ... 97 98

Comentarios a estos manuales

Sin comentarios