My program collects data using DMA in circular buffer. I have following procedure to "start" collecting data. // "reenable" measurment (enable results readout)
void restart_measurment(void){
run=1;
// DMA channel reset
CLEAR_BIT(TIM1->DIER, TIM_DIER_...
Hi,Few days ago i've encountered a strange behavior of the comparator at STM32G4. I investigated the problem under controlled conditions (used Nuclo kit instead application PCB) and the result is startling.Comparator 4 configured to get positive inpu...
Hi,HAL and LL DAC configuration structure and its parameters naming can be confusing. Reference manual claims that DAC "mode" (register ADC->MCR, bits 0..2 or 16..17) can be in one of following four combinations when not used sample and hold mode: 0 ...
I brought the sinewave with 120mVpp amplitude as positive input to STM32G431K8 onboard comparator (COMP4). Negative input is internaly taken from DAC. Comparator hardware output is connected to oscilloscope probe (short trace, spring connection) and ...
@waclawek.jan wrote:What you should do, is, disable DMA, wait until it signals its disabled (btw. that sets transfer-complete flag, too), and only after then disable the request source (here TIMx_DIER.CCxDE).Thanks, that sounds promising. I will do a...
@STOne-32 wrote: Another one is to check if you have an on-going DMA transaction waiting an acknowledgment from previous part of the code...Thanks for tip. I am disabling Timers DMA request enable bits in IRQ routine to stop data collect.CLEAR_BIT(TI...
Collection of interesting websites about STM8:https://blog.mark-stevens.co.uk/category/stm8/https://hw-by-design.blogspot.com/search?q=stm8https://hw-by-design.blogspot.com/2018/07/stm8-software-spi.htmlhttps://lujji.github.io/blog/bare-metal-program...