View previous topic :: View next topic |
Author |
Message |
YUM
Joined: 27 May 2004 Posts: 12 Location: Austria
|
Can i mix STANDARD_IO with FIXED_IO ? |
Posted: Tue Apr 11, 2006 3:40 am |
|
|
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 ?
[/b] |
|
|
Ttelmah Guest
|
|
Posted: Tue Apr 11, 2006 4:28 am |
|
|
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
|
|
Posted: Tue Apr 11, 2006 4:42 am |
|
|
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) |
|
|
|