- This topic has 0 replies, 1 voice, and was last updated 10 years, 8 months ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
- You must be logged in to reply to this topic.
|
Microcontroller › AVR › PROGRAMMING Atmega 16.. Doubts
i got a sensor which measures speed from TYRE and give out different digital pulses at different speeds(ie frequency is different as speed changes=Pwm). MY INTENTION is,for a particular frequency (coreponding to a specified speed) say 20Hz,i need to make an output pin HIGH. I wrote the program for TIMER COUNT, and to make the output high.
NOW, I WANNA know to which pin i should give the SENSOR OUTPUT ie the pwm signal, which is the input to my ATMEGA 16. Through Input capture pin? If so,how do i configure it.
Please do help.
my code so far: all i need is an input pwm to ATMEGA 16
#include <avr/io.h>