Цитата(jartsev @ Jul 26 2011, 16:56)

Да нет, вроде правильно написал. Или я не правильно понимаю что есть LATE?
LATx - регистр-защёлка для выходов PORTx.
Цитата
Reads from the latch (LATx) read the latch.
Writes to the latch, write the latch. Reads from the port
(PORTx) read the port pins, while writes to the port pins
write the latch.
Вы, поминая LATB, перепутали источник и приёмник.
Корректнее было бы
Код
LATEbits.RE3=PORTBbits.RB0;
LATEbits.RE4=PORTBbits.RB1;
А источник проблемы, вероятно, живёт в приоритете периферийных функций над стандартным вводом/выводом.
Цитата
A parallel I/O port that shares a pin with a peripheral is
generally subservient to the peripheral.
...
When a peripheral is enabled and the peripheral is
actively driving an associated pin, the use of the pin as
a general purpose output pin is disabled. The I/O pin
can be read, but the output driver for the parallel port bit
is disabled. If a peripheral is enabled, but the peripheral
is not actively driving a pin, that pin can be driven by a
port.
Лень качать ДШ на используемый Вами контроллер, поэтому не скажу, что именно нужно отключать, но нужно отключить все периферийные функции на RE3, RE4.