View previous topic :: View next topic |
Author |
Message |
Jiewy
Joined: 27 Apr 2010 Posts: 8 Location: Penang Malaysia
|
Problem with MCLEAR and output value |
Posted: Tue Aug 10, 2010 4:24 am |
|
|
I am trying to do a keylock using IRS.
Guys, can someone teach me how to make an output pin HIGH when the mclear of a pic is grounded?
Coz, when the mclear is high, the output is high, which is great but when i mclear the pic , the output goes to low, but i want it to remain high. So can anyone help me out? |
|
|
MikeW
Joined: 15 Sep 2003 Posts: 184 Location: Warrington UK
|
|
Posted: Tue Aug 10, 2010 4:47 am |
|
|
When you put a low on mclear, it resets the pic.
All I/O pins will float, so you will need to tie the specific pin you want high to vcc via a suitable value resistor.
When mclear is low, the PIC is not running, so how do you expect software to be able to control the pin state.
Mike |
|
|
|