??? 08/12/08 08:46 Read: times |
#157416 - Re: pulse counter with lcd Responding to: ???'s previous message |
is this hard to do? Nothing is hard. It all depends on YOU. There are 2/3 ways to do this: 1) Use an interrupt pin such as INT0 / INT1. Write code to count the number of interrupts. 2) Similar thing can be done using a timer/counter input pin too. 3) Else you can use any port pin and continuously scan the pin for pulses on it and then count them. Well, little bit more tricky part is handling such a large number. 999999 converts to F423F. So you will need 5 memory locations and keep track of overflow of each of them just like the odometer on a vehicle's dashboard. This is the software's burden. i am totally new with asembly and 8051 uC. still learning from tutorials :p
schematics and sample source code will be helpfull :) Search on google and also read some textbooks on 8051. Good luck! |
Topic | Author | Date |
pulse counter with lcd | 01/01/70 00:00 | |
Re: pulse counter with lcd | 01/01/70 00:00 | |
5 memory locations? | 01/01/70 00:00 | |
Re: pulse counter with lcd | 01/01/70 00:00 | |
counting pules | 01/01/70 00:00 | |
Definitely use hardware if available | 01/01/70 00:00 | |
HUH? | 01/01/70 00:00 | |
All depends on language capabilities | 01/01/70 00:00 | |
good idea... | 01/01/70 00:00 | |
Bad choices![]() | 01/01/70 00:00 |