reading pwm

This -

or this -

or like mike says, if you want to keep it simple use pulse in

Duane B
rcarduino.blogspot.com