View Single Post
  #5   Spotlight this post!  
Unread 23-01-2006, 00:52
duane's Avatar
duane duane is offline
Registered User
FRC #0701 (RoboVikes)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2003
Location: Vacaville
Posts: 98
duane is an unknown quantity at this point
Send a message via AIM to duane
Re: using all port pins

Quote:
Originally Posted by AMIRAM
In the FRC u have 18 digtal inputs/outputs that u can use i want to use 8 of them together to connect another microcontroller ...

can u understand now ?
You can look at the processor specific header file to figure out which port you want to use (I'm not sure which one it is this year). But here's an educated guess.

In ifi_aliases.h rc_dig_in01 is defined as:
#define rc_dig_in01 PORTBbits.RB2

The definition fo PORTBBits comes from the processor specific include file. There is also a corresponding definition for PORTB which is an unsigned char. (The linker must have a memory map that defines what addresses these ports are located.) That should provide you with an 8-bit wide read of all the lines.