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

PORTC on pic16f76

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



Joined: 07 Sep 2003
Posts: 56

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

PORTC on pic16f76
PostPosted: Tue Mar 30, 2004 12:41 am     Reply with quote

Hello
I'm using PIC16F76 .
I made a simple program which turns on RC5,RC6,RC7 in a cyclic way (5,6,7 and then again 5,6,7,5,6,7...)
now, I can see the wave on the RC6,RC7 but not on the RC5.
The tris value is set to 0x18 (5,6,7 are output)
am I missing something which is related to the peripherals?
Confused Chava
Haplo



Joined: 06 Sep 2003
Posts: 659
Location: Sydney, Australia

View user's profile Send private message

PostPosted: Tue Mar 30, 2004 12:48 am     Reply with quote

Are you using set_tris_c() to set the directions, or are you writing to TRISC directly? Debug through your code. Does TRISC stay 0x18? What other peripherals do you have on PORTC? remember if you have any preperals on PORTC the compiler handles the TRISC in a different way:
http://www.ccsinfo.com/forum/viewtopic.php?t=17970&highlight=


Post your code.
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