PWM coding is used to drive the motor.
Pulse is generated by using the sequence structure, and there is a problem in receiving the encoder value simultaneously while driving the motor.
Since the sequence structure cannot be escaped in the middle, I don't know how to construct the code to get the encoder value while driving.
Please help.
How can I implement PID control by using this code(FPGA pulse in sequence structure) ??