2017-01-13 12:53 PM
I would like to generate 7MHz output signal with 50% period on/off with complementary output on TA1 and TA2. I have set as follows:
So in that configuration signal should have been in complementary mode (phase shifted by 180 deg) but unfortunately they are shifted less than 180deg.
So my question is how to synchronize that both output pin to let TA1 being opposite polarity to TA2?
My current measurements (Analog Discovery Digilent logic analyser):
#stm32f334 #output #hrtim #synchronization2017-01-13 01:12 PM
Hi, you should be able to use the PWM outputs. 217pS offers an absolute maximum frequency of 460MHz ?
the hardware PWM should give you no delays, no interrupts and less than 10nS jitter (as a guess)
did you use the CubeMX ?
you can use the same values for the PWM timers,
but make one mode 1 and the other mode 2(complimentary output)
I can make up a CubeMX file for you, if you would like
added notes:
its not 460MHz its 4.6GHz !
but the output PIN-clock is slower, 72MHz pin-clock is the limiting factor.
Half this rate and count twice offers your maximum output frequency approx 18MHz with minimal jitter
9Mhz with minimal jitter.
but 7MHz ?, I think there will be jitter.
I think the max jitter is half the clock out rate. so approx 27nS.
2017-01-13 01:21 PM
Yes I'm using CubeMX. I would be gratefull if you could make such CubeMX file.
2017-01-13 01:37 PM
I had to use an 8MHz crystal to get the maximum processor core frequency.
what is the email address ?
2017-01-13 02:23 PM
Which exact processor is it ?
there are 8 different available ....
2017-01-13 02:24 PM
STM32F334C6
2017-01-13 02:46 PM
patlas92 at gmail.com
2017-01-16 03:57 PM
did you get it running ?
2017-01-17 12:26 AM
What do you mean by TA1/TA2 in terms of DS pins names/ RM signal names?
Is there dead time enabled in HRTIM_OUTxR.DTEN?
JW
2017-02-11 04:40 AM
TA1 and TA2 are HRTIM output pins that correspond to TIMERA