Robert, I've got my GLCD working with very little modification to your code. I'm using an 18F45K22. I still have a few bugs to work out with the GLCD code but at least I have something on the screen. The migration to 18F was not too difficult with the exception of a problem I had with ports. my first setup was the same as if I was using 16F and the ports did not work. I then set up ports like this:
asm
;PortA setup
MOVLB 0Fh
CLRF PORTA
CLRF ANSELA
MOVLW 30h ;PortA <5:4> input - Navigator
MOVWF TRISA
;PortB setup
MOVLB 0Fh
CLRF PORTB
CLRF ANSELB
MOVLW 03h ;PortB <1:0> input - Navigator
MOVWF TRISB
;PortC setup
MOVLB 0Fh
CLRF PORTC
CLRF ANSELC
CLRF TRISC
;PortD setup
MOVLB 0Fh
CLRF PORTD
CLRF ANSELD
CLRF TRISD
;PortE setup
MOVLB 0Fh
CLRF PORTE
CLRF ANSELE
MOVLW 0Fh ;PortE <2:0> input - Navigator
MOVWF TRISE
ENDASM
and all works well. I haven't had time to look at Darrel's 'All digital' to see how he handled 18F series but it may be easer to use his include rutine.
Wayne
Bookmarks