View previous topic :: View next topic |
Author |
Message |
rikotech8
Joined: 10 Dec 2011 Posts: 376 Location: Sofiq,Bulgariq
|
Noob problem |
Posted: Wed Mar 28, 2012 1:27 pm |
|
|
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
|
|
Posted: Wed Mar 28, 2012 2:48 pm |
|
|
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
|
|
Posted: Thu Mar 29, 2012 10:57 am |
|
|
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.
Next time I'll look around better, before writing to the forum |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9269 Location: Greensville,Ontario
|
|
Posted: Thu Mar 29, 2012 11:22 am |
|
|
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
|
|
Posted: Thu Mar 29, 2012 2:53 pm |
|
|
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
|
|
Posted: Fri Mar 30, 2012 10:47 am |
|
|
I will admit this advice! |
|
|
|