#define	INPUT_1							PORTBbits.RB11
#define	INPUT_2							_RB11


#define OUTPUT_1(state)					LATBbits.LATB10 = state
#define OUTPUT_2(state)					_LATB10 = state
#define OUTPUT_3(state)					(state ? (_LATB10 = 1) : (_LATB10 = 0))

Peripheral Pin Select

dsPIC33EP256MU806 example:

	RPINR14bits.QEA1R = 66;		//QEI1 Phase A on RP66
	RPINR14bits.QEB1R = 67;		//QEI1 Phase B on RP67
	RPINR16bits.QEA2R = 68;		//QEI2 Phase A on RP68
	RPINR16bits.QEB2R = 69;		//QEI2 Phase B on RP69


We benefit hugely from resources on the web so we decided we should try and give back some of our knowledge and resources to the community by opening up many of our company’s internal notes and libraries through mini sites like this. We hope you find the site helpful.
Please feel free to comment if you can add help to this page or point out issues and solutions you have found, but please note that we do not provide support on this site. If you need help with a problem please use one of the many online forums.