cancel
Showing results for 
Search instead for 
Did you mean: 

To know the Register value to read ADC Converted Data

Saranraj
Associate II

I am writing the code to read the ADC data from internal temp sensor and ADC.

I want to know that what is the register value to read the ADC data from there.

 

I am using STM32H743ZIT6 Micro controller. We are  using ADC3,

The ADC is set to 16-bit resolution mode

The ADC input clock is 64 MHz.  The Clock Prescaler is set to 128. The sampling time for each input is set to 810.5

 

REgards

Saranraj

3 REPLIES 3

That will be in the Reference Manual - find it on the 'Documentation' Tab of the chip's Product Page:

https://www.st.com/en/microcontrollers-microprocessors/stm32h743zi.html#documentation

 

Or use HAL if you don't want to be delving into the register documentation ...

https://www.st.com/en/embedded-software/stm32cubeh7.html

Saranraj
Associate II

Hi Neil,

   I have searched the Reference manual i am not able to identify the register settings to read the ADC Data. 

Could you help me on this ??

The ADC is described in section 25 of the Reference Manual, RM0433, starting on page 912 (Rev 8):

AndrewNeil_0-1740994138043.png

https://www.st.com/resource/en/reference_manual/rm0433-stm32h742-stm32h743753-and-stm32h750-value-line-advanced-armbased-32bit-mcus-stmicroelectronics.pdf#page=912

The register descriptions are in section 25.6, starting on page 996:

AndrewNeil_1-1740994230190.png

The Data Register:

AndrewNeil_2-1740994357441.png

 

 

You haven't said what board you're using:

How to write your question to maximize your chances to find a solution.

  • If it's an ST board, look at the examples provided by CubeMX (standalone, or via CubeIDE)
  • If it's a 3rd-party or custom board, still look at the Cube examples, but adjust for your hardware.