Dear Michael, I have gotten that far (and learnt a lot in the process). I have two hurdles at the moment. 1: Converting a 32 bit number (or at least 24 bit) to ascii to send to an lcd display 2: Because I'm using effectivly a 16 bit counter to count the pulses at the input, this gives me at the most a 5 digit resolution. The frequency meter from weeder technologies uses the same principle but achieves a 7 digit resolution. Any ideas how? Thanks for your time and help Regards Stuart O'Reilly 10/4/01 7:28:02 PM, lu01ts@gmx.net wrote: >Hello Stuart, > >I hope I got the question right and will try to answer it. > > _R_ > f ---|___|------ RA4 > | > |-- RA3 > >The frequency is connected to RA4 using a resistor. >The 'trick' is to connect another port-pin directly to the RA4 input (e.g. RA3). >Setting RA4 to input (as required for the counting-part) and setting >RA3 to input during the gate is open (the time the counter should >count) will make everthing work as 'normal'. But now here's the trick. >Making RA3 an output will stop the counter from working. Now you're >able to read out the 8-bit register for TMR0. After that you can clock >RA3 (and with that the prescaler register which you can't read >directly) until TMR0 increments by 1. Counting the clocks it takes to >increment the TMR0 gives you (indirectly) the number that was in the >prescaler register. > >I hope this will help you. If there are any further questions don't >hestitate to write. > >Greets, > Michael > >SOR> Dear All, >SOR> I'm trying to build a 50 meg frequency meter as per the application note AN592 from microchip. I'm using a mixture of PBP and assembly. The application says to use the TMR0 and prescaller >SOR> which will give you a count of 16 bits (5 decimal digits). I have also looked at the code for the frequency meter developed by weeder technology (this is displayed on www.piclist.com), and >SOR> although it appears to use the same theory of operation it does actually produce a seven digit display. Can anyone explain how it produces a seven digit display? I've tried reading the asm code >SOR> but slowly got lost. Also any comments etc regarding this project would be appreciated. >SOR> Regards >SOR> Stuart O'Reilly > >SOR> -- >SOR> http://www.piclist.com hint: To leave the PICList >SOR> mailto:piclist-unsubscribe-request@mitvma.mit.edu > >-- >http://www.piclist.com hint: PICList Posts must start with ONE topic: >[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads > > > -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads