hi,
This was the latest version for the16F628A , lets know if you have a problem.
Hi Eric.
First, thanks for posting the code.
I run a test with your code and it run really, but really fast.
I noticed that the original welcome message (EPE LCF METER) doesn't show anymore.
And another thing is that when enter either in IND or CAP correction mode, the first letter (I or C) doesn't show.
Another thing that happens with all code I've tested is that when a overflow happens in the second line is displayed 'OVERFLOW 2'.
Checking the code, in the INDUCT section, I found these lines:
Code:
call COPY_REGA_REGB ; copy answer into REGB
call MULTIPLY ; REGA * REGB -> REGA (squaring REGA)
movf STATUS,W
andlw 1
movwf OVERFLOW
movlw '2'
movf OVERFLOW,F
btfss STATUS,Z
goto SHOWOVERFLOW
I'm not a asm programmer, but since values stored are not betwen ', I changed the line
to
With this modification, now when a overflow happens is displayed OVERFLOW !
Maybe someone can try this too.
Now the questions:
1) Can you tell me how to put the welcome message back again?
2) How to correct the missing first letters from IND and CAP correction modes?
3) The modification I've made to show OVERFLOW ! can mess with the results from program?
My project was running really good. I've put a 56pF (cause I don't have a 68pF) capacitor to solve problem with hang up in capacitance mode.
I'll do a layout for this excelent project, with all components on board and if anyone want it I'll post here (I don't have much time, but try to do as fast I can).
Thanks for all and happy new year.