- This topic has 7 replies, 3 voices, and was last updated 10 years, 4 months ago by .
Viewing 8 posts - 1 through 8 (of 8 total)
Viewing 8 posts - 1 through 8 (of 8 total)
- You must be logged in to reply to this topic.
|
Microcontroller › 8051 › 8051 Timer as a Counter
I want to ask you a question about using Timer as a counter for external events ..
Does the counter increases if the feeding signals is a high to low pulse ? ,or it must be a low to high pulses ?
I am currently using 89C51
Please help guys
Hi osama,
Yes. If you are using Timer as a counter, it starts counting external events as the pulses it gets through its corresponding input pin. You can count the pulses.
Yeah but in my circuit i am using a 555 timer ,and the output of the 555 timer is a high to low pulse , and I want to count these pulses ,but I am not sure if the 8051 counter increase with high to low pulses ,
counter can increase on any edge transition. if you want low to high transition from IC555 use transistor at the output
I didn’t get it
how could I use a transistor
could you please expalin to me
you can give trigger to counter directly by IC555. if your counter does not count then there is a problem in your program. or in your hardware circuit
Okay it works well in Proteus ,I just wanted to make sure before implement my circuit