AnsweredAssumed Answered

GPIOH Pin1 as normal GPIO

Question asked by karpavicius.linas on Oct 27, 2014
Latest reply on Oct 27, 2014 by karpavicius.linas
Hello, since i used all other pins inside STM32F415RG, i decided to use GPIOH pin1 as my mux enable for ADC frontedend channel selection. GPIOH pin0 is used as 25MHz CLK in from TCXO CMOS clock source.

For some reason, GPIOH pin1 is inactive, and i can't do any toggling . My original suspicion is that somewhere is is used as clk clock input for crystal, but i can't found where.
code of GPIOH pin1 init:
  GPIO_InitTypeDef  GPIO_InitStructure;
  RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOH, ENABLE);
   
  GPIO_InitStructure.GPIO_Pin = GPIO_Pin_1;// ENABLE_MUX
  GPIO_InitStructure.GPIO_Mode = GPIO_Mode_OUT;
  GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;
  GPIO_InitStructure.GPIO_Speed = GPIO_Speed_2MHz;
  GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_DOWN;
  GPIO_Init(GPIOH, &GPIO_InitStructure);
 
//  set/reset quick functions
GPIOH->BSRRH=GPIO_Pin_1;
GPIOH->BSRRL=GPIO_Pin_1;

Any idea how i can fix this ? ( at least is good that this pin is logic high, if that be low, i would be in a lot of trouble)

Outcomes