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 port D of 30F5015

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



Joined: 20 Jul 2011
Posts: 375

View user's profile Send private message

Problem with port D of 30F5015
PostPosted: Sat Dec 07, 2013 2:53 am     Reply with quote

Hi! I can't set the direction of pins D0 and D11 of this port. I tried this:
Code:

output_drive(PIN_D0);
output_drive(PIN_D11);
...

*0x02D2=0x0000;


Neither of them managed to set these pins to output. After I set the both pins to high level:
Code:

output_high(PIN_D0);
output_high(PIN_D11);

I always have 0 volts on both pins. I have 4.7k pull-up resistors on the pins.
Where is the problem?
Thanks!
Ttelmah



Joined: 11 Mar 2010
Posts: 19513

View user's profile Send private message

PostPosted: Sat Dec 07, 2013 3:46 am     Reply with quote

Classic reason for behaviour like this is 'something else is on the pin'.

OC1, or EMUC2

Latter depends on how the ICD is set up.

Former is the output compare channel 1.

So, how is output compare setup, and how is the iCD set up?.

Best Wishes
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