EasyManuals Logo
Home>Renesas>Control Unit>RX110

Renesas RX110 User Manual

Renesas RX110
88 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #67 background imageLoading...
Page #67 background image
RX Family ADC Module Using Firmware Integration Technology
R01AN1666EJ0220 Rev. 2.20 Page 67 of 74
Dec 01, 2016
3.4 R_ADC_Read()
This function reads conversion results from a single channel, sensor, double trigger, or self-diagnosis register.
Format
adc_err_t R_ADC_Read(uint8_t unit,
adc_reg_t const reg_id,
uint16_t * const p_data);
Parameters
unit
0 or 1. For MCUs with only one unit 0 should be passed (only the RX64M/RX71M/RX65x have 2 units).
reg_id
Id for the register to read. See type adc_reg_t in section 2.10 for the MCU being used.
p_data
Pointer to variable to load value into.
Return Values
ADC_SUCCESS: Success
ADC_ERR_INVALID_ARG: unit or reg_id contains an invalid value.
ADC_ERR_MISSING _PTR: p_data is FIT_NO_PTR/NULL
Properties
Prototyped in file r_s12ad_rx_if.h
Description
Reads conversion results from a single channel, sensor, double trigger, or self-diagnosis register.
Reentrant
Yes.
Example
uint16_t data;
:
/* Read channel 0 on unit 0 */
R_ADC_Read(0, ADC_CH0_REG, &data); // conversion value placed in data”
Special Notes (RX110/RX111/RX113):
For temperature sensor output and internal reference voltage, discard the first A/D conversion result after the open, and
use the second and the subsequent A/D conversion results.

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Renesas RX110 and is the answer not in the manual?

Renesas RX110 Specifications

General IconGeneral
BrandRenesas
ModelRX110
CategoryControl Unit
LanguageEnglish

Related product manuals