da
Paolino » 29 lug 2008, 13:32
Ma hai guardato il
datasheet? A pagina 60 trovi le indicazioni sui pull-up. Il documento dice proprio che
la porta RA3 non ha pull-up interno:
4.2.2 WEAK PULL-UPS
Each of the PORTA pins, except RA3, has an
individually configurable internal weak pull-up. Control
bits WPUAx enable or disable each pull-up. Refer to
Register 4-4. Each weak pull-up is automatically turned
off when the port pin is configured as an output. The
pull-ups are disabled on a Power-on Reset by the
RABPU bit of the OPTION register. A weak pull-up is
automatically enabled for RA3 when configured as
MCLR and disabled when RA3 is an I/O. There is no
software control of the MCLR pull-up.
Ti consiglio pertanto di porre un pull-up esterno. Io li uso da 10k, normalmente. Da 1k il consumo di corrente è eccessivo, secondo me.
Ciao.
Paolo.