On Fri, Jan 16, 2009 at 11:44 AM, 4e fte <4eftefj@gmail.com> wrote: > Hi and thanks for the advice. Yes I have studied the datasheet and > made notes of what I think I might use. My problem is that I still can > not visualise how I can count rpm pulses or discern rpm when connected > to RB0/INT pin. Hence, wanting to study code so that it could make > sense probably sooner. > > I do understand mnemonics but then find it hard to locate the rpm > counting part of the code in that whole source code. > > I want to understand how rpm pulses will be counted from this source > code only, as this is someones working project and how is interrupt > and timer0 setup to do this task. > > This code is for a tachometer project but I only want to understand > the rpm counting/interpreting part. The display part is not that hard > to understand and is of no use to me. > > If you'll look at the bottom right corner of that colourful window > that opens after you click on the link I provided, then you'll see > something like - Save file to your PC: click here. > > Click on that and save the file. > > Looking forward to. > > > > On Fri, Jan 16, 2009 at 3:21 AM, Richard Seriani, Sr. > wrote: >> >> ----- Original Message ----- >> From: "4e fte" <4eftefj@gmail.com> >> To: "Microcontroller discussion list - Public." >> Sent: Wednesday, January 14, 2009 10:53 PM >> Subject: Re: [PIC]counting rpm with a 16F84A >> >> >>> thanks and appreciated. however, upon some digging on the net, i found >>> a project made by someone called the "a tacho for your car". i >>> downloaded the source code and the schematic as well. >>> >>> here it is: >>> >>> http://www.2shared.com/file/4649538/a24b0879/tacho.html >>> >>> now, can someone with experience just go thru this code and tell me >>> which part only deals with tacho/rpm pulse counting/interrupt? the >>> RB0/INT pin is the one connected to the -ve of the ignition coil for >>> rpm pulse pick up point. >>> >> >> You wrote that you were in the beginning stages of learning to program the >> PIC. How far have you gotten with your studies? Have you downloaded and >> studied the datasheet? Do you understand the basics of the 16F84A, >> especially interrupts and timers? If not, it would be futile for anyone to >> try to explain the code to you in terms you will understand. If you have >> gotten through the beginning stages (studied the datasheet and at least some >> of the available tutorial info), which part of the code don't you >> understand? >> >> As for the code, I was unable to download it but I doubt if it is much >> different than other implementations (counting pulses over a period of time >> and doing the math to output it as RPM). If you are having problems >> understanding a particular part of it, please post that part along with >> specific questions and you will probably get more help from the denizens of >> the PIClist than you want! >> >> Good luck. >> >> Richard >> >> >> >> -- >> http://www.piclist.com PIC/SX FAQ & list archive >> View/change your membership options at >> http://mailman.mit.edu/mailman/listinfo/piclist >> > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist