engmunir
Member level 1
Dear Experts
I want to use one pin as input and output. My application is that I want to pullup same pin by using software command bit_set(PORTA,2) and the same pin I want to use as switch input. I mean initially the software will pullup PORTA,2 by using software command. From hardware side i have connected transistor collector which is switching Zero Logic on PORTA,2. I am sensing that Zero Logic in my program. Actually I do not want to use external pullup on PORTA,2. I want to use software pullup on PORTA,2. How can I solve this problem ?
I want to use one pin as input and output. My application is that I want to pullup same pin by using software command bit_set(PORTA,2) and the same pin I want to use as switch input. I mean initially the software will pullup PORTA,2 by using software command. From hardware side i have connected transistor collector which is switching Zero Logic on PORTA,2. I am sensing that Zero Logic in my program. Actually I do not want to use external pullup on PORTA,2. I want to use software pullup on PORTA,2. How can I solve this problem ?