The PIC will use the 4 bytes in 1 of several ways:
- simplest setup is a stepper driven machine. In this case the PIC will just transfer the bytes to ports as output.
- next case is servo driven machine. In this case hardware PWM will be updated to reflect the new values just received. So the PIC just transfers bytes to registors (I haven't given much thought to this case as my current needs are for stepper control)
In either case, there should be no real processing on the PIC side, just Move the data and wait for the next packet.
Bookmarks