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

Noob problem

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



Joined: 10 Dec 2011
Posts: 376
Location: Sofiq,Bulgariq

View user's profile Send private message

Noob problem
PostPosted: Wed Mar 28, 2012 1:27 pm     Reply with quote

Hello!
How can I read the value of the given port (defined as an input) and store it in the RAM like integer value? Just like to invert parallel to serial data.
Thx in advance!
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Mar 28, 2012 2:48 pm     Reply with quote

Download the manual:
http://www.ccsinfo.com/downloads/ccs_c_manual.pdf
Look in the following sections that lists all the CCS functions:
BUILT-IN-FUNCTIONS

Anytime you have a question about an i/o port function, look in this
sub-section: DISCRETE I/O and just click on the most likely function
and read the description for it.

You want to input from a port and put the result in a variable. If I click
on the most likely looking function in the DISCRETE I/O section, if shows
examples that do exactly that.

I'm trying to make you use the manual instead of using us as the manual.
rikotech8



Joined: 10 Dec 2011
Posts: 376
Location: Sofiq,Bulgariq

View user's profile Send private message

PostPosted: Thu Mar 29, 2012 10:57 am     Reply with quote

I was searching for this function, but none success until now. I didn't know, just where exactly to searching for. Thanks to you I find my purpose.
Quote:
data=input_X()

Next time I'll look around better, before writing to the forum Embarassed Smile
temtronic



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

View user's profile Send private message

PostPosted: Thu Mar 29, 2012 11:22 am     Reply with quote

if you press F11 while your project is open , the CCS Help files FULL of information, is super easy to search !!
ezflyr



Joined: 25 Oct 2010
Posts: 1019
Location: Tewksbury, MA

View user's profile Send private message

PostPosted: Thu Mar 29, 2012 2:53 pm     Reply with quote

Hi,

Sometimes being a 'NOOB' is more a state of mind than anything else. Instead of falling into this mindset, I'd recommend that you dig into the compiler manual, and the supplied examples - you can learn a lot from both these resources. Also, make a point to read the forum for 10 minutes every day, and in no time you'll have a huge advantage over all those that refuse to make this effort!

John
rikotech8



Joined: 10 Dec 2011
Posts: 376
Location: Sofiq,Bulgariq

View user's profile Send private message

PostPosted: Fri Mar 30, 2012 10:47 am     Reply with quote

I will admit this advice!
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