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

replacement output_low/high(VARIABLE) code issues...
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Eugeneo



Joined: 30 Aug 2005
Posts: 155
Location: Calgary, AB

View user's profile Send private message

PostPosted: Mon Jan 23, 2006 8:22 pm     Reply with quote

I don't really understand what this does.

Can you not just use #USE FAST_IO to lock the tris register and then read and write to the port directly?
Ringo42



Joined: 07 May 2004
Posts: 263

View user's profile Send private message

PostPosted: Mon Jan 23, 2006 9:27 pm     Reply with quote

I don't think it has anything to do with the serial buffer, it si with the pin_table array.
This is why I think that;

this does not work
ccs_pin = pin_table[pinn];

but neither does
ccs_pin = pin_table[1];


But this does work
ccs_pin=PIN_D2;


So it is something with Pin_table. This is the same code that worked with my PCM compiler, just not the old PCH. I have ordered a new PCH that will be here later this week but I would like to know why it does not work here. Is there another int8-int16 type error? It doesn't look like there is, but what am I missing?
Thanks for all the help so far.
Ringo
_________________
Ringo Davis
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Jan 23, 2006 9:52 pm     Reply with quote

I don't have your version of the compiler and I cannot test the code.
Ringo42



Joined: 07 May 2004
Posts: 263

View user's profile Send private message

PostPosted: Tue Jan 24, 2006 8:53 pm     Reply with quote

My new compiler came today and magically everything works now. Thanks for all the help.
Ringo
_________________
Ringo Davis
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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