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

Can i mix STANDARD_IO with FIXED_IO ?

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



Joined: 27 May 2004
Posts: 12
Location: Austria

View user's profile Send private message Send e-mail

Can i mix STANDARD_IO with FIXED_IO ?
PostPosted: Tue Apr 11, 2006 3:40 am     Reply with quote

Is it possible to declare PORTB as fixed_io (with all pins set as outputs) and
declare PORTC for compiling as standard_io ?

Can i even declare some pins of a PORT as fixed_io's and other pins of the very same PORT as standard_io's?

If yes, how is it done ?
Question Question Question[/b]
Ttelmah
Guest







PostPosted: Tue Apr 11, 2006 4:28 am     Reply with quote

Part 1: Yes, the declarations for each port are seperate. You can use 'standard_io' on one port, and 'fixed_io' on another.
Part 2: No. The declarations are on a 'per port' basis.
Remember though, that there is nothing to stop you generating yout own input/output 'macro', which changes the I/O direction, and accesses a bit, just like standard_io, and using this on a port using with the IO normally fixed.

Best Wishes
YUM



Joined: 27 May 2004
Posts: 12
Location: Austria

View user's profile Send private message Send e-mail

PostPosted: Tue Apr 11, 2006 4:42 am     Reply with quote

Say, i have all pins on portb as inputs, is the following declaration correct ?
Can i leave the ouput - declaration for the fixed_io blank ?

#use standard_io(A)
#use fixed_io(b_outputs=)
#use standard_io(C)
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