Re: Power-on Reset
Thanks frinds your replays
if so, what type relationship between WEAK PULL-UP,Power-on Reset ,power up timr and Tris.
I wrote in mycode
port_a_pullups(0b000001); // pull_up only PORTA bit 0
SET_TRIS_A(0b001111); // PORTA bit 4 and bit 5 as output
at startup.
but some time power is on,
PORTA bit 5 as input and pull_up enabled // wrong
(PORTA bit 5 I use for a Relay via Transister, by the wrong pull_up the Relay will on)
my config "#fuses WDT,INTRC_IO, PROTECT, BROWNOUT, NOMCLR, NOCPD, PUT "
in PIC16F676 Datasheet.
----------------------------
3.2.1 WEAK PULL-UP
Each of the PORTA pins, except RA3, has an individually
configurable weak internal pull-up. Control bits
WPUAx enable or disable each pull-up. Refer to
Register 3-3. Each weak pull-up is automatically turned
off when the port pin is configured as an output. The
pull-ups are disabled on a by the
RAPU bit (OPTION<7>).
Micro_brain