
PS: SRAM1 and SRAM2 is for bankswitching the ram, it's in option.
jremington:
This part sets pins GP2 and GP3 as input, and sets the data bits in val_GPIO to the output pins.TRISIO = 0xC; //in GP2 & GP3
GPIO = val_GPIO; //high-low
If GP2 & GP3 are set as input then what are the other outputs because they aren't set.
What i did :
pinMode(GP2, INPUT);
pinMode(GP3, INPUT);
digitalWrite(?????? , val_GPIO);
Thanks