A BRIEF DESCRIPTION ABOUT MY PROJECT I am using a microcontroller 89S52 in my small project...My project is to display ration of the amount of air exhaled in the 1st second and also at the end of the forced expiration(normally 6 seconds ).For that im using a small fan.. in one end there is an IR LED source and in the other end there is an IR detector...so when the fan rotates due to the air blown it cuts the IR light to the detector and hence we get pulses as output..im trying to count that pulses using a counter of the microcontroller..and for counting the pulses at the end of the 1st second i have used a timer...How can i count the pulses at the end of the 6th second of expiration?please explain...
- posted
15 years ago