Atmega32 input sensing

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I am getting PWM signal from asensor which is sensed by atmega32. Which input pin is better for sensing PWM digital input Or PWM input.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Timer2 input capt pin would be my first choice!

 

Jim

 

 

(Possum Lodge oath) Quando omni flunkus, moritati.

"I thought growing old would take longer"

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

uc_coder wrote:
Or PWM input.

Tell what you mean by "PWM input".

 

What is the frequency of the signal?  Min and max.

What is the duty cycle of the signal?  Min and max.

What is the needed accuracy and resolution?\

What do you need to measure -- frequency?  duty? other?

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.