Hi all

I was wondering if it will be possible to use the following pin configuration

RB0-RB3 as LCD D4-D7
RA6,RA7 as E,RS

RA0-RA4 (AN0-AN4) as 10bit ADC
RB6,RB7 (AN5,AN6) as 10bit ADC

And use the UART as a RS485 driver

RB2 as RX (already in use for the LCD)
RB5 as TX (already in use for the LCD)

RB0,RB1,RB3 or RB4 as TX/RX for the SP485 line driver


Thanks