Hi, Skimask
I wonder it was a typo ...
but inverting "formula" is :
Inv.pulsewidth = ( 2*Neutral ) - pulsewidth
so, in µS it's .... ( 2*1500 ) - pulsewidth
Alain
I've been using my bit of 'pseudo-code' for awhile, works for me, but there's also a lot of assumptions (4mhz osc, 1500us perfect center, 2000 perfect endpoint, etc).
I like your bit of code better and I'm going to change my ways of doing those.
Bookmarks