I noticed a strange behaviour. When turning RBPU=0 and TRISB = 0xFF, PORTB pins rise to logical 1 (as documented).
But when TRISB = 0b11011111 then RB0 RB1 RB5 remains low.
If TRISB2_bit is set to true, everything woks as expected.
Is this behaviour documented somewhere ?
Registers:
Code: Select all
USBEN_bit = 0;
RBPU_bit = 0;
ADCON0 = 0b00000000;
ADCON1 = 0b00001111;
TRISA = 0x00;
TRISB = 0b11011111;
TRISC = 0b00000001;