GD32F10x User Manual
219
ETSRC[2:0]
Trigger Source
Trigger Type
101
TIMER4_CH0
110
TIMER4_CH2
111
SWRCST
Software trigger
11.4.10.
DMA request
The DMA request, which is enabled by the DMA bit of ADC_CTL1 register, is used to transfer
data of routine sequence for conversion of more than one channel. The ADC generates a
DMA request at the end of conversion of a routine channel. When this request is received,
the DMA will transfer the converted data from the ADC_RDATA register to the destination
location which is specified by the user.
11.4.11.
ADC internal channels
When the TSVREN bit of ADC_CTL1 register is set, the temperature sensor channel
(ADC0_IN16) and V
REFINT
channel (ADC0_IN17) are enabled. The temperature sensor can
be used to measure the ambient temperature of the device. The sensor output voltage can
be converted into a digital value by ADC. The sampling time for the temperature sensor is
recommended to be set to at least t
s_temp
µs (please refer to the datasheet). When this sensor
is not in use, it can be put in power down mode by resetting the TSVREN bit.
The output voltage of the temperature sensor changes linearly with temperature. Because
there is an offset, which is up to 45 °C and varies from chip to chip due to the chip production
process variation, the internal temperature sensor is more appropriate to
detect temperature
variations instead of absolute temperature. When it is used to detect accurate temperature,
an external temperature sensor part should be used to calibrate the offset error.
The internal voltage reference (V
REFINT
) provides a stable (bandgap) voltage output for the
ADC and Comparators. V
REFINT
is internally connected to the ADC0_IN17 input channel.
To use the temperature sensor:
1.
Configure the conversion sequence (ADC_IN16) and the sampling time (t
s_temp
μs)
for the channel.
2.
Enable the temperature sensor by setting the TSVREN bit in the ADC control
register 1 (ADC_CTL1).
3.
Start the ADC conversion by setting the ADCON bit or by the triggers.
4.
Read the
internal temperature sensor output voltage(V
temperature
), and get the
temperature with the following equation:
Temperature (°C) = {(V
25
– V
temperature
(digit)) / Avg_Slope} + 25.
V
25
: internal temperature sensor output voltage at 25°C, the typical value please
refer to the datasheet.
Avg_Slope: average slope for curve between temperature vs. internal temperature
sensor output voltage, the typical value please refer to the datasheet.
Содержание GD32F10 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32F10x Arm Cortex M3 32 bit MCU User Manual Revision 2 6 Jun 2022 ...
Страница 63: ...GD32F10x User Manual 63 programmed during the chip production ...
Страница 117: ...GD32F10x User Manual 117 010 1 0 011 0 9 ...
Страница 416: ...GD32F10x User Manual 416 shadow register updates every update event ...
Страница 427: ...GD32F10x User Manual 427 value ...
Страница 518: ...GD32F10x User Manual 518 These bits are not used in SPI mode ...