cancel
Showing results for 
Search instead for 
Did you mean: 

Reading from STPM32 ic by STM32F103. is it an Error?

sabaRamin
Associate II

Hi Guys,

I use STM32F103 with STPM32(single phase electric meter ic) evaluation board. i used of stpm002 firmware to connect with stpm32 and read measured data from it. like RMS voltage and.....  I want activate LED1(It connected to pin 4 of STPM32) ,to produce 1000 pulse/kwh. this is part of my code:

void Metro_LedSetting(void)

{

Metro_HAL_Set_Led_Power_Config(EXT1, LED1,LED_W_ACTIVE);

HAL_Delay(5);  

Metro_HAL_Set_Led_Channel_Config(EXT1, LED1, PRIMARY);

HAL_Delay(5);  

Metro_HAL_Set_Led_Speed_divisor(EXT1, LED1, 0x06);

HAL_Delay(5);  

Metro_HAL_Set_Led_On_Off(EXT1, LED1, DEVICE_ENABLE);

}

but I always have a 50Hz signal on LED1 pin.whit this chopper:

 0693W00000QO64RQAT.jpgis it correct? or i must have a clear signal on LED1 pin?

0 REPLIES 0