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

Search found 6 matches
CCS Forum Index
Author Message
  Topic: Input state with #BIT pre-processor
Valentinus

Replies: 2
Views: 5847

PostForum: General CCS C Discussion   Posted: Mon Jan 20, 2014 3:48 pm   Subject: Input state with #BIT pre-processor
Thank you very much for this practical idea. That was very helpfull.

And the answer for my question is: Yes, it will work!!! :D

Thank you again!
  Topic: Input state with #BIT pre-processor
Valentinus

Replies: 2
Views: 5847

PostForum: General CCS C Discussion   Posted: Mon Jan 20, 2014 2:49 pm   Subject: Input state with #BIT pre-processor
Hi all!

I'm using PIC18F258 and I would like to refer inputs with #bit pre-processor.
Is this would work?

// setting the pin direction to input
set_tris_a(0xFF);
//
#byte PORTA = ge ...
  Topic: Array index in function parameter
Valentinus

Replies: 6
Views: 11557

PostForum: General CCS C Discussion   Posted: Wed Dec 04, 2013 5:42 pm   Subject: Array index in function parameter
The problem is solved! It looks like that the simulator software includes one or more bugs. I tested the project in the MPLAB X's own simulator with printf function and looks like that the values are ...
  Topic: Array index in function parameter
Valentinus

Replies: 6
Views: 11557

PostForum: General CCS C Discussion   Posted: Wed Dec 04, 2013 4:29 pm   Subject: Array index in function parameter
PIC18?... thats a different compiler...
Simulator?... read the first sticky post about Proteus (a simulator)

G.

I wrote the code in CCS but tested in other simulator.
I just wanted to see the ...
  Topic: Array index in function parameter
Valentinus

Replies: 6
Views: 11557

PostForum: General CCS C Discussion   Posted: Wed Dec 04, 2013 3:37 pm   Subject: Array index in function parameter
Define "not as expected"

Is it not working at all?
Is it working but with a wrong crazy value?
Is the wrong value one of the possible values but not the right one?

G.

The question ...
  Topic: Array index in function parameter
Valentinus

Replies: 6
Views: 11557

PostForum: General CCS C Discussion   Posted: Wed Dec 04, 2013 12:39 pm   Subject: Array index in function parameter
Hi everybody!

I would like to pass an integer type value via function's parameter and I would like to use it to get a long type value from a multidimensional array. This array declared global varia ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group