Quote Originally Posted by paul borgmeier
His schematic shows a F88 but he fixed his code by adding TRISA.0 = 1 (pot on RA1 not RA0) - does not make sense??

Try this for the second block of ASM code

Code:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;    AUTHORIZATION OF COUNTING
TMR0 = 0
TRISABUF.3 = 1
PORTA = TRISABUF
;;;;;;;;;;;;;;;;;;;;;;;;;;;;    BASE TIME  
COUNT1=TEMPS
PAUSEUS (COUNT*4+2)
PAUSE 5
;;;;;;;;;;;;;;;;;;;;;;;;;;;      STOP OF COUNTING
TRISABUF.3=0
PORTA=TRISABUF
;;;;;;;;;;;;;;;;;;;;;;;;;;;      RECUPERATION OF THE METERS
FHI=TMR0
COUNT1=0
Toggle:
COUNT1=COUNT1+1
PORTA.3=1
PORTA.3=0
IF (FHI-TMR0) = 0 THEN Toggle
COUNT1=(COUNT1^$FF)
FLO=COUNT1+1	
;;;;;;;;;;;;;;;;;;;;;;;;;;;     BASE TIME
Any second opinions on the conversion?

Savnik, what does your program do?
Sorry ,the pot is on RA0 (the schematic is wrong)

With the first block of asm the frequency meter work.

When i change the second asm with yours code i take error when compile.
When I change the PAUSEUS (COUNT*4+2) with PAUSEUS (COUNT1*4+2) and the Toggle with Toggle1 the code compile , but the frequency on LCD is above 14Mhz the regular (90.6Mhz -> 104.6Mhz)