PDA

View Full Version : 16f628a porta.5 as input



naga
- 29th October 2009, 15:52
HI ALL,
Using portb as output : working well.
Using porta.0 to 7 except porta.4 & 5 as input with pull-up resistor working well with 0v trigger, Can i use also a pull-up resistor to porta.4 &5? or do i need to use pull-down resistor then trigger with +5v input.. Looking for help before messing up my IC.( didn't try yet,)
Thanks.

Max Power
- 29th October 2009, 16:03
you should be able to wire the resistor as a pullup or pulldown depending on what your input signal is.

Acetronics2
- 29th October 2009, 20:18
Hi, Naga

you can always use pullup or pulldown with inputs ...

But take care to PORTA.4 and 5 ... They're not protected against voltage over VDD !!! ( see Datasheet p 33 ...)

Alain

naga
- 31st October 2009, 12:04
Thanks to all, Is there any way that can porta.5 be used as output?..Thanx again.

Acetronics2
- 31st October 2009, 12:18
Hi,

The only way is to use it as output is as an OPEN Collector output ...

Alain