Hello, I am using CY8CKIT-037 and I am trying to understand about Phase Current Detecting and Processing Circuit, in this I have found that the gain of the op amp mathly and simulating is 5, but in the code Sensorless FOC is 10000/2400 is meaning 4.166.... Why does this happen?. Are values wrong in the schematic presented in CY8CKIT-037 PSoC4 Motor Control Evaluation Kit Guide in the Figure 4-6 called Current Detecting and Processing Circuit? Thanks.
Values are wrong in the code example. Checked the board using the multimeter and confirming the resistor is 2K.
This #define OPAMP_GAIN is not very significant, as it is only used for additional overcurrent protection.