STM32 MCUs products

Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Does the Comparator Polarity Selection Work on STM32H7?

I am using an STM32H743ZIT6, and attempting to have COMP1 generate an NVIC interrupt when INP2 is lower than 1/4 Vref_comp. To this end, I set the POLARITY bit in the comparator configuration register to "1", which successfully 'inverts' the "cmp1_ou...

NickFF by Associate
  • 1 replies
  • 0 kudos

Resolved! STM32H5 Comparator always trigger interrupt

Hi. I get a STM32H5 Nucleo board (MB1814) and configured comparator with neccessary settings using CubeIDE and LL library and got next generated piece of main(void)   {   NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_3);   SystemClock_Config...

CChen.19 by Associate
  • 1 replies
  • 0 kudos

How to use COMP on STM32g431c8T6? I found it not work correctly. The pol is noninverted When INP(1.6V)<INM(2v),the out is high. Only INP=0, the out is low.

void Comp1Init(void){ Comp1GpioInit(); RCC -> APB2ENR |= 1;  //20230506///////////////////////////////////////////////////////// COMP1 -> CSR |= 3 << 19;//TIM3 OC3 Banking of CSA p739 /////////////////////////////////////////////////////////// COMP1 ...

立张.1 by Associate II
  • 0 replies
  • 0 kudos

Resolved! STM32F303CBT6 TIM input interconection

Hello,The COMParator have option of connection him output to TIMer IC.But timer IC is after edge detection unit.How can I connect the output of COMPx to TIMx in input capture mod (internaly)?

AOrlo.2 by Associate II
  • 2 replies
  • 0 kudos

Resolved! STM32L0 VREFBUF register config

Hello,I am using the STM32L071 with the latest STM32 studio software. I cannot find any sign of the VREFBUF configuration in the libraries (I need to enable the internal voltage reference for the COMP1 peripheral). I have found this article for H7 de...

STM32-L452RE comparator triggering in both edges

Hey!I have been with a problem with the stm32l452 comparator for a few days now and I can't figure it out. The interrupt of COMP1 triggers on both edges rather than rising edge.I tried differents configurations but main is the following:hcomp1.Init.I...

PParo.2 by Associate II
  • 1 replies
  • 0 kudos