- This topic has 2 replies, 3 voices, and was last updated 8 years, 4 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
|
Microcontroller › 8051 › Microcontroller
hey, im building a microcontroller circuit to calculate the frequency of pulses since it is a part of my project. while coding i used counter 0 to count the number of pulses and timer 1 to provide the necessary delay.
when i teste in proteus, i got the expected output but when i did the circuit and loaded the code to microcontroller, it was not working.
what maybe the possible reason for that?
i can not understand what u r doing? for counting pulses use any one timer as pulse counter and annother timer to generate exact 1 sec delay. after 1 sec delay count pulses in counter. convert it into decimal value. thats all
vignesh aithal,
you made so many mistake on the prgm side. i.e (condition statement, using timer aas wrng).
errors:
P2=0;
ip=1;
. TH0=0x00;