CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Problem with MCLEAR and output value

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Jiewy



Joined: 27 Apr 2010
Posts: 8
Location: Penang Malaysia

View user's profile Send private message MSN Messenger

Problem with MCLEAR and output value
PostPosted: Tue Aug 10, 2010 4:24 am     Reply with quote

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

View user's profile Send private message

PostPosted: Tue Aug 10, 2010 4:47 am     Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group