Welcome in the forum, Daniel!
To solve problems it is always advisable to post your complete project, so that we all can have a look at all of your settings. To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.
The actual version for Creator is 3.2 SP1 and I would strongly suggest you to upgrade to latest version using Cypress Update Manager.
In the case that you are using an outdated development kit with a PSoC 5 (without the "LP") I would suggest to buy a CY8CKIT-059 witch has got the latest PSoC 5 chip on it.
Keep in mind the following -
1) Analog inputs to pins on PSOC can only range Vdda >= Vpin >= Vssa,
no negative inputs allowed. Attached some methods to handle signals that
range < Vssa.
2) If you are using NI PGA, then its output simple, Vout = G x Vin. If
inverting then you need to bias up input to get output into its CM range.
Also keep in mind the input Z of NI is ~ infinity, whereas the inv mode
is significantly lower due to feedback R's
Here is a tool that will allow you to predict/design setting up correct CM range/bias.
thanks for the answer!
I uploaded the project as you said. I am using the CY8CKIT-001 PSoC® Development Kit, and it details can be seen in this page http://www.cypress.com/documentation/development-kitsboards/cy8ckit-001-psoc-development-kit.
I already tried to use the PSoC Creator 3.2, but I can't find my device in the Device Selector. As you have said, probably my PSoC 5, which number is CY8C5568AXI-60, is outdated. Sadly I can't buy the CY8CKIT-059, because I live in Brazil and the importation fee is very high.
Is there a way of include my device number in the Device Selector inside PSoC Creator 3.2?
I'm using Vpin = 2.6v, Vdda = 3.3v and Vssa = 0v. And I used the Vref connected internally to ground. Since I am respecting the Vdda >= Vpin >= Vssa , I can´t see why it is not working.
I have got the same kit as you have, but a few years ago Cypress replaced all PSoC5 boards with PSoC5LP versions for free. Probably you have missed that action. I would suggest you to get in contact with one of the representatives.
The CY8CKIT-010 is exactly what you need to replace and whatever the price is, it is worth using the -001 Kit you have got., even when the fee is 100%.
Your input of 2.6 V x G = 2 is trying to drive the PGA output outside its CM range,
which in this case is 3.3V, but you are asking it to generate 5.2 V, the PGA out cannot
Thanks for the information. I am going to search about it.
That's right ! I forgot to look the output range. I tried again but with Vin = 0.6v and the output was 1.2v (for gain = 2). Thanks for the help!
You are always welcome !
I am facing similar issue, I am using psoc 5lp, input from a photodiode , when the analog range is 56 mv it shows pga (gain set 2)output of 110mv etc, howeevr whan gain 50 with same input shows only 130 mv, any reason for this ?attached workspace.
TEST_24_03.Bundle02.zip 2.1 MB
You are waiting until one adc result is ready, but you read 20 values from ADC to average them. Better put the wait into the loop.
Is your VDDA 5V or are you powering with 3.3V?