Hello and thank you joe61 and admin for your quick replies.
Joe61 you are right, pwm capture should do that. I already am using pwm generation using builtin hardware using timer3 and 4. I will try to do input capture.... but first need to read a bit about it... My apologies for simply asking without giving info about my system. I am doing flight control of a quadrotor, and for that process gyro, accel, mag, data, apply pid control for attitude stabilization and thus change 4 motor speeds (pwm values). Adding to that is my own RX input mostly for the collective throttle..... My control loop currently runs at 71Hz, and I want to increase this number.
Admin, I am already looking at webbot lib and envy its offerings .... I would really love to convert to webbot lib, however, this is a task that will require some time. I am on a very short deadline for now. Also, thanks for the analog input suggestion. I was using this same circuit initially and moved on to timers expecting a much linear and broad range. Later, learned that using interrupt would be the fastest..... My backup plan for now would be to use analog. I was hoping if I could get step by step instruction of how to setup J6, E5, 6 or 7 as input external interrupt and using timer2 or 5 to measure the pulse width.
When I try to do such it results in no response from Axon .... Here is what I did:
1. setup J6 as input in SoR_Utils
2. defining interrupt vector
3. not sure but some kind of masking is needed for PCINT ... for INT may be not?
4. setup to start timer on interrupt and then get timer value...
it does not work!
I might be able to post the code lines I wrote for this task tomorrow.