2021-07-07 06:46 PM
I am trying to use the Nucleo-F429ZI board to read the ZVS signal.
This is possible using an STM32F100 on PC15 GPIO pin, according to UM1631 (page 19).
I simulated the circuit with "LTspice" and added the two cutting diodes inside the MCU's I/O port, as described in AN4899 (page 9).
The figure shown below is the simulation result:
The green curve is the mains voltage (230Vrms, 50Hz) divided by 100.
The red curve is the expected ZVS signal.
Then I added the blue 3.3VDC line which is the ZVS curve as obtained from the oscilloscope using EXTI0 on PA0 GPIO pin.
2021-07-07 08:43 PM
Yes, I am able to see the signal on the scope.
I used this code:
static GPIO_InitTypeDef GPIO_InitStruct;
int main(void)
{
HAL_Init();
SystemClock_Config();
__HAL_RCC_GPIOA_CLK_ENABLE();
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
GPIO_InitStruct.Pull = GPIO_PULLUP;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
GPIO_InitStruct.Pin = GPIO_PIN_0;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
while (1)
{
HAL_GPIO_TogglePin(GPIOA, GPIO_PIN_0);
HAL_Delay(100);
}
}
2021-07-07 09:10 PM
2021-07-07 09:31 PM
Is there a way to test the diodes ?