Hello,
i try to read two ADC's but the program seems to "hang"....
My code:
...
dim ch1 as integer
dim ch2 as integer
main:
ADC_Set_Input_Channel(_ADC_CHANNEL_5 or _ADC_CHANNEL_9) 'PORTB.0 and PORTB.1
ADC1_Init
while TRUE
ch1 = ADC1_Read(5)
ch2 = ADC1_Read(9)
display_menu(10, ch1) 'send to my display
display_menu(10, ch2) 'send to my display
wend
end.
Regards,
Ralf
STM32H743VI and ADC Problem
- jovana.medakovic
- mikroElektronika team
- Posts: 986
- Joined: 18 Dec 2018 10:36
Re: STM32H743VI and ADC Problem
Hi Ralf,
I believe that I answered you on the ticket, so we can continue the conversation there.
Kind regards,
Jovana
I believe that I answered you on the ticket, so we can continue the conversation there.
Kind regards,
Jovana
Re: STM32H743VI and ADC Problem
I have this problem. How to solve?
Re: STM32H743VI and ADC Problem
Hi,
If you are using ADC2 to read channel 9 does this work :
Regards,
Filip.
If you are using ADC2 to read channel 9 does this work :
Code: Select all
ADC1_Init()
ADC2_Init()
ADC1_Get_Sample(5)
ADC2_Get_Sample(9)
Filip.
Re: STM32H743VI and ADC Problem
Hi!
mikroBasic PRO for ARM, stm32h743, project edit - default. ADC will work?
mikroBasic PRO for ARM, stm32h743, project edit - default. ADC will work?
Re: STM32H743VI and ADC Problem
Hey! Where can I find the new __Lib_System_H7xx.emcl file for STM32H7 in mikroBasiс?
Re: STM32H743VI and ADC Problem
Found and replaced the file, PLL works, but ADC does not work!