PDA

View Full Version : pc communicate with pic16f877



meyou
- 5th August 2004, 09:01
Please,
i need to do a program in java on my pc that controls and sends data to a pic16f877(master) via an interface max232.
The master also communicates with 31 slaves and all of them are programmed with picbasic to serially communicate each other.

Thank you very much.

CBUK
- 5th August 2004, 23:26
i take it your 'remote' pics will be operating under RS485 or so fourth (effectively and addressed RS232). the only thing i can think to suggest is ditch the 16F877 for the master and look for a pic with 2 hardware USART ( i think they exist) and use hserout/ hserin and hserout2/ hserin2 for two hardware comms.

or use the 16f877 but using hserout/ hserin for your RS485 comms(hardware USART to ensure the timing and speed is there for the network), and serin/ serout for the RS232(bog standard non hardware controlled communications ideal for the PC comms where missing an address because of the program being in a different location may not end the world.. but will eventually catch up) remembering to use the correct driver chips for the line loading etc.

Chris