User`s manual
RX62N Group, RX621 Group 4. Library Reference
4.2.15. 8-bit Timer
1) R_TMR_Set
Synopsis
Configure the optional TMR pins.
Prototype
bool R_TMR_Set(
uint8_t data
// Configuration
);
Description
Set up the global TMR options.
[data]
Configure the global options. Use "|" to separate each selection.
•
Pin selection (required only if the pin is used for the timer function).
PDL_TMR_PIN_TMR0_A or
PDL_TMR_PIN_TMR0_B
Select the -A or -B pins for TMCI0 and TMRI0.
PDL_TMR_PIN_TMR1_A or
PDL_TMR_PIN_TMR1_B
Select the -A or -B pin for TMCI1.
PDL_TMR_PIN_TMR2_A or
PDL_TMR_PIN_TMR2_B
Select the -A or -B pin for TMCI2.
PDL_TMR_PIN_TMR3_A or
PDL_TMR_PIN_TMR3_B
Select the -A or -B pins for TMCI3 and TMRI3.
Return value
True if all parameters are valid and exclusive; otherwise false.
Category
Timer TMR
Reference
R_TMR_CreateChannel, R_TMR_CreateUnit
Remarks
•
Before calling any R_TMR_Create function, if the selected device package offers -A or -B pins
for TMR signals then call this function to configure the relevant pins.
•
Pins which are not used for the TMR functions may be omitted.
Program example
#include "r_pdl_tmr.h"
/* RPDL device-specific definitions */
#include "r_pdl_definitions.h"
void func(void)
{
/* Configure the applicable TMR pins */
R_TMR_Set(
PDL_TMR_PIN_TMR0_A | PDL_TMR_PIN_TMR1_B | PDL_TMR_PIN_TMR2_B
);
}
R20UT0084EE0112 Rev.1.12 Page 4-126
July. 16, 2014