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

PIC16F690 IO problem

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








PIC16F690 IO problem
PostPosted: Fri Dec 18, 2009 7:43 am     Reply with quote

Hi !

My problem is PIC16F690 IO.

On port b pull ups enabled. Somehow port_b_pullups and port_a_pullups are mixed.

Main problem...

output_high(PIN_Ax or PIN_Cx) do not work as should and output_low does not work at all.

I tried use standard IO and fast and setting tris registers. ... does not fix problem.

Compiler version is 4.093

Thank you in advance !
mkuang



Joined: 14 Dec 2007
Posts: 257

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

PostPosted: Fri Dec 18, 2009 9:26 am     Reply with quote

Let's see your program.

If you enable the pull-ups but later use the output_high or output_low functions the compiler will set those pins as outputs, overriding the fact that these IOs are initially inputs.

IF you use standard IO then you do not have to set any tris.
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