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

16f628a use a6 as output

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



Joined: 06 Nov 2010
Posts: 22
Location: montreal qc

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

16f628a use a6 as output
PostPosted: Sun Nov 21, 2010 11:56 am     Reply with quote

Hi I'm using int osc in 16f628a. I want to use A6 for led (output).

Physically my circuit is ok. When I powered up, my led light right away. If I do reset, MCLR led goes off. When unpress mclr, goes on and stays on all time. I tried two 16F628a - same problem. I tried output_low(LED1) in my program...same thing. Do I have to define A6 as output? Question

Thanks for help..again... Exclamation
temtronic



Joined: 01 Jul 2010
Posts: 9246
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Sun Nov 21, 2010 1:03 pm     Reply with quote

Please show us your 'fuses' line.....
Hint...

In order to use A6 as an I/O pin it must be configured using the fuses options...
bauche



Joined: 06 Nov 2010
Posts: 22
Location: montreal qc

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

PostPosted: Sun Nov 21, 2010 1:16 pm     Reply with quote

#FUSES NOWDT,INTRC,NOPUT,NOPROTECT
Ttelmah



Joined: 11 Mar 2010
Posts: 19551

View user's profile Send private message

PostPosted: Sun Nov 21, 2010 1:32 pm     Reply with quote

INTRC_IO

Guess what the 'IO' stands for.....

Best Wishes
bauche



Joined: 06 Nov 2010
Posts: 22
Location: montreal qc

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

PostPosted: Sun Nov 21, 2010 1:56 pm     Reply with quote

WORKING!!!! Very Happy
Thanks a lot!!!!!
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