Download Renesas Peripheral Driver Library User`s Manual (RX63N Group)

Transcript
RX63N Group
4.2.6.
1)
4. Library Reference
Voltage Detection Circuit
R_LVD_Create
Synopsis
Configure the voltage detection circuit.
Prototype
bool R_LVD_Create(
uint16_t data1,
uint16_t data2
);
Description
// Monitor 1 Configuration selection
// Monitor 2 Configuration selection
Set the voltage detection configuration.
[data1]
Monitor 1 voltage detection configuration.
If the monitor is not required specify PDL_NO_DATA, otherwise use “|” to separate each
selection.
• Operation.
PDL_LVD_MONITOR_ONLY or
PDL_LVD_RESET_NEGATION_VCC_MORE_THAN_VDET or
PDL_LVD_RESET_NEGATION_AFTER_DELAY or
PDL_LVD_INTERRUPT_NMI_DETECT_RISE or
PDL_LVD_INTERRUPT_NMI_DETECT_FALL or
PDL_LVD_INTERRUPT_NMI_DETECT_RISE_AND_FALL
• Digital Filter
PDL_LVD_FILTER_DISABLE or
PDL_LVD_FILTER_LOCO_DIV_1 or
PDL_LVD_FILTER_LOCO_DIV_2 or
PDL_LVD_FILTER_LOCO_DIV_4 or
PDL_LVD_FILTER_LOCO_DIV_8
Select no action, a reset
on low voltage detection
or non-maskable interrupt
when a specified voltage
event is detected.
Configure the digital filter.
[data2]
Monitor 2 voltage detection configuration.
If the monitor is not required specify PDL_NO_DATA, otherwise use “|” to separate each
selection.
• Operation
PDL_LVD_MONITOR_ONLY or
PDL_LVD_RESET_NEGATION_VCC_MORE_THAN_VDET or
PDL_LVD_RESET_NEGATION_AFTER_DELAY or
PDL_LVD_INTERRUPT_NMI_DETECT_RISE or
PDL_LVD_INTERRUPT_NMI_DETECT_FALL or
PDL_LVD_INTERRUPT_NMI_DETECT_RISE_AND_FALL
• Digital Filter
PDL_LVD_FILTER_DISABLE or
PDL_LVD_FILTER_LOCO_DIV_1 or
PDL_LVD_FILTER_LOCO_DIV_2 or
PDL_LVD_FILTER_LOCO_DIV_4 or
PDL_LVD_FILTER_LOCO_DIV_8
Return value
Category
References
Select no action, a reset
on low voltage detection
or non-maskable interrupt
when a specified voltage
event is detected.
Configure the digital filter.
True if the parameters are valid; otherwise false.
Voltage detection circuit.
R_INTC_CreateExtInterrupt, R_CGC_Set, R_LPC_GetStatus, R_CGC_Control,
R_LPC_Create, R_MCU_OFS
R20UT1963EE0100 Rev.1.00
Jul 19, 2012
Page 112 of 487