- Joined
- Jul 4, 2009
- Messages
- 16,235
- Helped
- 5,140
- Reputation
- 10,309
- Reaction score
- 5,120
- Trophy points
- 1,393
- Location
- Aberdyfi, West Wales, UK
- Activity points
- 137,398
Well done!
The next step is to decide which pins do which function and set the PIC configuration. GP3 can only be used as an input so we can ignore it for now, only GP0 and GP1 can be used as an analog input and you only need one so I suggest you use GP0. That leaves GP1 and GP2 to talk to the shift register driving the LCD.
I have another job I must finish so your 'homework' is to work out the values to write to the various registers to make GP0 an analog input and the other pins digital outputs. Post the values you choose and I will confirm them and show you how to put the values in the registers tomorrow.
Brian.
The next step is to decide which pins do which function and set the PIC configuration. GP3 can only be used as an input so we can ignore it for now, only GP0 and GP1 can be used as an analog input and you only need one so I suggest you use GP0. That leaves GP1 and GP2 to talk to the shift register driving the LCD.
I have another job I must finish so your 'homework' is to work out the values to write to the various registers to make GP0 an analog input and the other pins digital outputs. Post the values you choose and I will confirm them and show you how to put the values in the registers tomorrow.
Brian.