Maitry07
Full Member level 2
Hello,
I wanted to use PID controller in VHDL to generate corrected output. This PID controller is basically for the amplitude control feedback system. PID controller's measured input is the Hex range 0052 Hex ( 82 decimal) to 1013 Hex (4115 decimal). while the reference input to PID controller is coming via 14 bit ADC with Digital output Hex range is 00000000000000( 14 bit binary) to FFFFFFFFFFFFFF( 14 bit binary).
So, all 1's ( 11111111111111 - 14 BIT Binary) reference digital input means the command to PID controller to go to the full scale ( which is 1013 Hex in terms of measured input range). So , there is a requirement of scaling that means when all ones 11111111111111- 14 bit received , that means PID controller logic should understand that the reference input is 1013 Hex. Let's say current measured input is 0052, the PID controller correction should be in such a way that my measured input becomes 1013 H and at that time error become zero.
In short , my PID controller reference input as well measured input range would be 0052 Hex to 1013 Hex. but currently , My my digital output which is further going to interface with PID controller reference input is 00000000000000- ( 14 bit binary) to 11111111111111- (14 bit binary) . which requires scaling in such a way that PID controller understand 1 11111111111111-14 bit binary as 013 Hex and it can understand all 0's (14 bit) as 0052 Hex.
Could you please provide what are the methods used in DSP for this kind of scaling?
Awaited your guidance.
I wanted to use PID controller in VHDL to generate corrected output. This PID controller is basically for the amplitude control feedback system. PID controller's measured input is the Hex range 0052 Hex ( 82 decimal) to 1013 Hex (4115 decimal). while the reference input to PID controller is coming via 14 bit ADC with Digital output Hex range is 00000000000000( 14 bit binary) to FFFFFFFFFFFFFF( 14 bit binary).
So, all 1's ( 11111111111111 - 14 BIT Binary) reference digital input means the command to PID controller to go to the full scale ( which is 1013 Hex in terms of measured input range). So , there is a requirement of scaling that means when all ones 11111111111111- 14 bit received , that means PID controller logic should understand that the reference input is 1013 Hex. Let's say current measured input is 0052, the PID controller correction should be in such a way that my measured input becomes 1013 H and at that time error become zero.
In short , my PID controller reference input as well measured input range would be 0052 Hex to 1013 Hex. but currently , My my digital output which is further going to interface with PID controller reference input is 00000000000000- ( 14 bit binary) to 11111111111111- (14 bit binary) . which requires scaling in such a way that PID controller understand 1 11111111111111-14 bit binary as 013 Hex and it can understand all 0's (14 bit) as 0052 Hex.
Could you please provide what are the methods used in DSP for this kind of scaling?
Awaited your guidance.