Pulsing two pins to create 40 khz
Cenlasoft
Posts: 265
Hello,
I have an h-bridge (ZXMHC3A01T8) that I am using to excite an ultrasonic transducer. I need to turn one prop pin high and the other low to produce a 40 khz pulse. How would I calculate the waitcnt between the pins on/off to get this frequency? I have the hardware figured out. Any help would be great. Thanks, Cenlasoft
I have an h-bridge (ZXMHC3A01T8) that I am using to excite an ultrasonic transducer. I need to turn one prop pin high and the other low to produce a 40 khz pulse. How would I calculate the waitcnt between the pins on/off to get this frequency? I have the hardware figured out. Any help would be great. Thanks, Cenlasoft
Comments
There is a counter mode which outputs NCO on two pins with inverted signals:
Andy
Thanks, Cenlasoft