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.