Quote Originally Posted by Demon View Post
I used the 16F628 and 16F877 before but it looks like I'll have to move up the food chain and the 18F2xK22 and 18F4xK22 series look like just what I need. At least I'm not forced to upgrade to PBP 3.0 yet:

http://melabs.com/support/patches.htm#pbp



And I can even use the low voltage versions if I want. WOOT!

Robert



Robert




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