Hi
I am going throw a tutorial from microship with this code:
INTCON2bits.RBPU = 0; // enable PORTB internal pullups
WPUBbits.WPUB0 = 1; // enable pull up on RB0
If we enabling all portb pullups in line one and pulling them up to Vdd, why do we need line 2 of code? can any one explain this or is the code wrong?
Tanks in advance
I am going throw a tutorial from microship with this code:
INTCON2bits.RBPU = 0; // enable PORTB internal pullups
WPUBbits.WPUB0 = 1; // enable pull up on RB0
If we enabling all portb pullups in line one and pulling them up to Vdd, why do we need line 2 of code? can any one explain this or is the code wrong?
Tanks in advance