Hi all,
I'm just 'playing' with a PIC18F26K22 chip to replace a PIC16F886, and don't seem to be able to set it up for a standard Input operation, Output operation seems to be ok.
I have 6 leds (3 on Port A , 3 on Port C) and these operate fine via the LATA and LATC registers (TRISA.TRISC have all been setup ok)
I have 3 Push Buttons on PORTB, bits 0,1,2, pulling the input to 0v when pressed.
The WPU resistors are enabled, and TRISB set for inputs etc. but can't get the input to operate correctly ....
I'm sure its to do with the Config and/or other registers not being set up correctly.
I just wondered if any of you guys have any experience with the PIC18F26K22 and if so, a bit of sample code would be much appreciated.
Regards
Roy
I'm just 'playing' with a PIC18F26K22 chip to replace a PIC16F886, and don't seem to be able to set it up for a standard Input operation, Output operation seems to be ok.
I have 6 leds (3 on Port A , 3 on Port C) and these operate fine via the LATA and LATC registers (TRISA.TRISC have all been setup ok)
I have 3 Push Buttons on PORTB, bits 0,1,2, pulling the input to 0v when pressed.
The WPU resistors are enabled, and TRISB set for inputs etc. but can't get the input to operate correctly ....
I'm sure its to do with the Config and/or other registers not being set up correctly.
I just wondered if any of you guys have any experience with the PIC18F26K22 and if so, a bit of sample code would be much appreciated.
Regards
Roy