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 support@ccsinfo.com

Maybe of topic -- interrupt on change + LED

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







Maybe of topic -- interrupt on change + LED
PostPosted: Wed Feb 08, 2006 8:54 am     Reply with quote

I have conected LED to all free pins on chip.
and i use normal output_high(), function for each pin.

All LED's are conected on this way:

PIN --> resistor -->LED -->ground

and all are working fine ( lighting ) exept the ones where pin is definied as
Input/output pin (with interrupt-on-change).

Can i change this thru program ( light them programaticly ) or is this HW errror ?
rwyoung



Joined: 12 Nov 2003
Posts: 563
Location: Lawrence, KS USA

View user's profile Send private message Send e-mail

PostPosted: Wed Feb 08, 2006 11:55 am     Reply with quote

Which pin EXACTLY? Some pins (RA4 on PIC16F877A and others) for example are open collector when used as an output.
_________________
Rob Young
The Screw-Up Fairy may just visit you but he has crashed on my couch for the last month!
treitmey



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

View user's profile Send private message Visit poster's website

PostPosted: Wed Feb 08, 2006 12:03 pm     Reply with quote

And being an open collector it can only pull a signal down. NOT UP. So in that case you have a pull-up resistor on that pin tied to +5.
Guest








PostPosted: Thu Feb 09, 2006 3:35 am     Reply with quote

Im using chip 16C84 and this are the pins where i can't get no output, on LED

pin RB4-RB7 (I/o with interrupt on change)
pin A4 ( output is open drain type ).

It look like that this is my HW error so if i can not use this:

PIN --> resistor -->LED -->ground

i should take your option ?
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