This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

STM32 analog-digital converter

Hello.
I am a beginner and i am trying to use one of the ADCs on my stm32f103ze.I have been using the examples from keil, they are well written and understandable. The problem is, they dont have an example showing use of an ADC. I have read the example from the stm firmware library and they use a different way of of setting up things than the examples from keil so i understood nothing.
Can anyone link me to an (understandable,keil-example-like) example describing setting up the adc, and receiving values from it?

Parents
  • "The Keil examples are about showing the compiler, the ST examples are about showing the chip."
    Well, exactly- i do understand basically the examples of st in the level of what each code line does. so maybe i didnt explain myself correctly.the problem i encounter is when i attempt to use this in Keil.
    first of all, in the st examples the library used is stm32f10x.h and in the keil examples for everything else stm32f10x_lib.h is the library of choice.
    second of all, when using stm32f10x_lib.h, the examples of st are not functional at all, because the wont compile. so yeah, basically i dont need instructions on the chip itself and all of its registers and stuff, i need instructions on getting my code compiled "keil-example" style.

    please bear with me, i might be very stupid about that, but yet again i am a beginner and highly dependent on the Keil examples, so i must apologize in advance for any dumb comments.

Reply
  • "The Keil examples are about showing the compiler, the ST examples are about showing the chip."
    Well, exactly- i do understand basically the examples of st in the level of what each code line does. so maybe i didnt explain myself correctly.the problem i encounter is when i attempt to use this in Keil.
    first of all, in the st examples the library used is stm32f10x.h and in the keil examples for everything else stm32f10x_lib.h is the library of choice.
    second of all, when using stm32f10x_lib.h, the examples of st are not functional at all, because the wont compile. so yeah, basically i dont need instructions on the chip itself and all of its registers and stuff, i need instructions on getting my code compiled "keil-example" style.

    please bear with me, i might be very stupid about that, but yet again i am a beginner and highly dependent on the Keil examples, so i must apologize in advance for any dumb comments.

Children