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

port_x

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



Joined: 25 Nov 2005
Posts: 56
Location: Porto - Portugal

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

port_x
PostPosted: Tue Jan 02, 2007 11:33 am     Reply with quote

Hello

I'm trying to read port a... a0 to a5

data=port_a()
data_1=(data & 0b00111111)


The problem is that i have all input to ground but data and data 1 dont have a fixed value...

Thanks

Jaime
Guest








PostPosted: Tue Jan 02, 2007 12:16 pm     Reply with quote

Hi,

According to the Version 4 manual from Aug. 2006 on page 156, the correct syntax is:

Code:


data = input_a();



I don't think your code is doing what you think it is??

Ian
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