Hi,
I'm working on an active rectifier. Which means that I need to, with the help of the PWM module in the f28335, switch the transistors on and off synchronized with the incoming sine wave to the active rectifier.
The sine wave will have an amplitude of roughly 90V and between 10kHz to 100kHz.
I basically have two ideas about how to do this. One way is to use the TB clock and phase direction of the PWM to find out what phase it has in relation to the sine wave (which can be measured using an ADC input) and then just setting the phase register of the PWM so they are synced.
The other way, which is probably faster, is to use the eCAP to determine frequency and sync the PWM to it. But I don't know whether the eCAP is able to detect rising/falling edge of the sine wave I'm measuring. Could anyone help me with this?
I'm scaling the sine wave down for the ADC/eCAP as follows:
100V sine wave = 2.5V to ADC/eCAP
0V sine wave = 1.636V to ADC/eCAP
-100V sine wave = 0.773V to ADC/eCAP
Does anyone here have any advice on the eCAP module's ability to measure rising and falling edge of the down-scaled sine wave? Or should I use the ADC?
//Christian