Hi all

I have a project where I have a slave PCB reading voltages and Inputs and setting some outputs and a master showing the value's on an LCD and having a Keyboard to contol the slave Outputs
Master and slave are connected over a halfduplex RS485 line (SP485)

I was wondering what the best way is to send variables (from ADCIN) from the slave to
the master
Shall i poll each ADchannel by a command or send all ADC values in one string
what about Sending from the master to the slave a cmd to control the IO's

a SERIN2 with WAIT wont work i guess

Eventually a CRC ?

anyone who has some example code ? or did something like this ?