I am working with two PICs different in different frequencies (10 and 20 MHz).
My doubt if relates to the use of HSERIN and HSEROUT. The baud rate is 9600.
The first PIC1 read seven sensors/potentiometers and send for the second PIC2, only three variables with eight bits. The second PIC2 will control an industrial DC motor.
In case of timeout, ok, stop the motor. Could be a broken wire. No problem here. The project is working.
These two pics are work fine. The motor control is OK and HSERIN/HSEROUT are OK
My problem is:
How to make the verification of the data sent?
In case that it occurs errors in the data, it will be able to cause an accident.
I do not know as to make or a verification or a automatic correction of the data sent.
The maximum time of delay will not be able to exceed 1,5mS
Do you can help me? Thanks,
Daniel
Bookmarks