Hello,
I allready post on the melabs forum. But here is another very visit forum, perhaps anyone can help me

Hours try to comunicate to a 7segment display without sucess

I have a 18f4520 on there i conect on Porte.0 and Porte.2 TX and RX pins of a RS485 driver to send data to a 7segment display that have also a RS485 driver.

The direction pin is already output and also high for transmitting
dir_rs485 var PORTE.1 'RS485 Mode
high dir_rs485 'transmitting mode

The 7segment display have a Atmega88P controller. This display works on a network of manys slaves very good, all with Atmega controllers at baudrate 38400.
Now i want to communicate with this display trough a pic 18f4520 on baud 2400. I tried everything like:

disp_pos var PORTE.0 'Tx to a RS485 driver

serout2 disp_pos,16780,5,[hex2 master,hex2 destino,hex2 posicao,13,10]
serout2 disp_pos,16780,5,[hex2 master,hex2 destino,hex2 posicao,13]
serout2 disp_pos,16780,5,[hex2 master,hex2 destino,hex2 posicao,10]
serout2 disp_pos,16780,5,[hex2 master,hex2 destino,hex2 posicao]
serout2 disp_pos,16780,5,[#master,#destino,#posicao,13,10]
serout2 disp_pos,16780,5,[#master,#destino,#posicao,13]
serout2 disp_pos,16780,5,[#master,#destino,#posicao,10]
serout2 disp_pos,16780,5,[#master,#destino,#posicao]

All the same with serout2 disp_pos,396,5,
serout2 disp_pos,33164,5,
serout2 disp_pos,49548,5,
Like i said the display works fine on the Atmega as slave on the Atmegas network

Have the same baud of 2400 on the display

Anyone idea what i make wrong on the pic code?
Compiled with PBP247

Thanks in advance
visitac