PWM event each second not works STM32F4
Ratio is razão. The amount of time ON over the total PWM period. 50% ratio is ON half of the time. 1Hz@50% = 0.5s ON - 0.5s OFF, 1Hz@30% = 0.3s ON - 0.7s OFF.

So if your TIM1 output clock is really 1Hz the LED gonna change state every 0.5s.

If you go to page 211 of the datasheet you can see that TIM1 is driven by APB2 (RCC_APB2ENR). On page 517 you can see that the pulse clock for TIM1 is derived from CK_INT that, on slave mode OFF, comes from the APB2 clock.

The TIMx clocks can be either x1 or x2 the APBx clock, it depends on the APBx prescaler (x2 if APBx prescaler is not /1). If you are using STM32Cube you can see the prescaler value on the Clock Tab, otherwise search your code for SystemClock_Config() and you can find the prescaler for APB2 searching for the following line:

static void SystemClock_Config(void){
  (...)
  RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV2;
  (...)
}


In the example above APB2 prescaler is /2. So, let's assume that the PLL clock output is 180MHz (the maximum clock for your MCU), the APB2 clock gonna be 90MHz, for TIMx that's doubled, as prescaler is greater than /1. Therefore, on your code that would mean:

TIM1_INPUT_CLK = 180MHz;
TIM1_PSC = 19;
TIM1_PSC_OUTPUT_CLK = 180MHz / (19 + 1) = 9MHz;
TIM1_CNT = 49999;
TIM1_PERIOD_CLK = 9MHz / (49999 + 1) = 180Hz;


Using your values your PWM period would be one millionth of your PLL output clock. Are you sure that your system clock is 1MHz? Seems rather low. You can check that value on STM32Cube. Or find this snippet on your code:

static void SystemClock_Config(void){
  (...)
  RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE;
  RCC_OscInitStruct.HSEState = RCC_HSE_ON;
  RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
  RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
  RCC_OscInitStruct.PLL.PLLM = Xm;
  RCC_OscInitStruct.PLL.PLLN = Xn;
  RCC_OscInitStruct.PLL.PLLP = Xp;
  (...)
}


Where SYSCLK = ((Crystal / Xm) * Xn) / Xp)