View Single Post
  #8   Report Post  
Old January 30th 06, 10:10 PM posted to rec.radio.amateur.homebrew
xpyttl
 
Posts: n/a
Default OM3CPH frequency counter doesn't work?

"JJ" wrote in message
...

Which line or area in LCD4CNTR.ASM can I find this extra 0x40 to remove?


If you look at the code:

movlw LINE1 ; continue at right half of display
iorlw 080h ; Function set
call PutCMD ; Position cursor leftmost on first line

under the label NoDot, this code moves the cursor to the second line. It
looks as if all you will see on the second line is the string " MHz"
(leading space). Anyway, comment out these three and the " " should get
written after the last digit instead of on the second line.

Looking more closely at this code, Peter does use the busy flag -- I had
looked at his initialization code where he only uses timing, but when he
goes to write, he checks the busy.

Up at the top of his code, the lines:

E equ 2 ; LCD Enable control line RA2
R_W equ 0 ; LCD Read/Write control line RA0
RS equ 1 ; LCD Register-Select control line RA1

set the pins for LCD enable, R/W and Register Select. If you look at Mag's
schematic, he places RS on RA0, RW on RA1, and E also on RA2. Peter's
comment above those lines would lead you to suspect that they were on PORTB,
but he actually uses them on PORTA. If you swap the connections to LCD pins
4 and 5 Peter's code might work.

...