Naumanpak
Member level 2
Hi,
I am trying to get my basics right for PIC microcontrollers, before going to interface to a keypad.
I need to know, how can I use a port pin as input. If I take output from an output port pin for eg,
TRISD.RD0=0;// declare output
PORTD.RD0=1//high
and use it as input to an input pin via wiring,
TRISD.RD1=1;//input
I don't get the results on performing any operation?
Please help me out experts!
cheers
I am trying to get my basics right for PIC microcontrollers, before going to interface to a keypad.
I need to know, how can I use a port pin as input. If I take output from an output port pin for eg,
TRISD.RD0=0;// declare output
PORTD.RD0=1//high
and use it as input to an input pin via wiring,
TRISD.RD1=1;//input
I don't get the results on performing any operation?
Please help me out experts!
cheers