Search found 5 matches
- Tue Sep 20, 2022 9:04 pm
- Forum: General discussion
- Topic: Analogread sampletime issue
- Replies: 3
- Views: 669
Re: Analogread sampletime issue
I think something is wrong with core. Arduino Ide doesnt take build_opt.h into account. so added flags manually. ADC_CLOCK_DIV_4 is undefined so i tried to give a value to it. So it throws another error. AdcHandle.Init.ClockPrescaler = ADC_CLOCK_DIV; /* (A)synchronous clock mode, input ADC clock div...
- Tue Sep 20, 2022 7:36 pm
- Forum: General discussion
- Topic: Analogread sampletime issue
- Replies: 3
- Views: 669
Re: Analogread sampletime issue
#define ADC_SAMPLINGTIME ADC_SAMPLETIME_55CYCLES_5; semicolon does the trick. Not sampling time worked. But i defined in SystemClock Config PeriphClkInit.AdcClockSelection = RCC_ADCPCLK2_DIV4 but I looked at the RCC register ADCPRE: ADC prescaler.. It it DIV2... should I define it with build_opt.h
- Tue Sep 20, 2022 5:39 pm
- Forum: General discussion
- Topic: Analogread sampletime issue
- Replies: 3
- Views: 669
Analogread sampletime issue
Hi, I searched forum, tried everything I read. I'm usingg STM32F103RCT based custom board. I want to read analog values for PC0 and PC1. I have created hal_conf_extra.h file #ifndef HAL_CONF_EXTRA_H_ #define HAL_CONF_EXTRA_H_ #define SERIAL_RX_BUFFER_SIZE 256 #define SERIAL_TX_BUFFER_SIZE 256 #defin...
- Fri Feb 14, 2020 12:27 pm
- Forum: General discussion
- Topic: STM32F1 DMA
- Replies: 2
- Views: 3118
Re: STM32F1 DMA
I found. After enabling Timer2 Channel 3, Timer Dier Register should be updated with this bit
Bit 11 CC3DE: Capture/Compare 3 DMA request enable
Bit 11 CC3DE: Capture/Compare 3 DMA request enable
- Fri Feb 14, 2020 8:17 am
- Forum: General discussion
- Topic: STM32F1 DMA
- Replies: 2
- Views: 3118
STM32F1 DMA
Hi, I try to implement XY2-100 galvo mirror scanner control protocol. I want to use dma for setting gpio pins. I rcc_clk_enable(RCC_DMA1); DMA1_BASE->CPAR1 = (uint32_t)&GPIOA->regs->ODR; DMA1_BASE->CMAR1 = (uint32_t)pingBuffer; DMA1_BASE->CNDTR1 = 10; DMA1_BASE->CCR1 = (DMA_CCR_PL_HIGH | DMA_CCR...